react-semaphor 0.1.281 → 0.1.283
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/chunks/{dashboard-controls-D3R8Z79V.js → dashboard-controls-DN8jYCON.js} +102 -102
- package/dist/chunks/{dashboard-controls-CLd_NTpW.js → dashboard-controls-wfMo3T6T.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-DLjcoN1G.js → dashboard-filter-controls-button-DKc_6T_O.js} +2 -2
- package/dist/chunks/{dashboard-filter-controls-button-zj4HH2IS.js → dashboard-filter-controls-button-zeiatmo1.js} +125 -113
- package/dist/chunks/{dashboard-json-BcdeYcFr.js → dashboard-json-DK_hQ4vs.js} +1 -1
- package/dist/chunks/{dashboard-json-CPyonfsi.js → dashboard-json-DyJBSpIU.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-Cpb9FCXf.js → dashboard-summary-settings-dialog-BPyawgMV.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-BYQfaQGZ.js → dashboard-summary-settings-dialog-CWtlFDFP.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-NyBBQhsY.js → edit-dashboard-visual-0lBlwTCM.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CsTmOttj.js → edit-dashboard-visual-4nQV1U_c.js} +319 -319
- package/dist/chunks/{index-CsX3UmQg.js → index-B7kUtCgG.js} +26420 -25515
- package/dist/chunks/{index-DvAOngur.js → index-BHWWNpG6.js} +223 -223
- package/dist/chunks/{resource-management-panel-lglhpWpc.js → resource-management-panel-D8xvqypt.js} +1 -1
- package/dist/chunks/{resource-management-panel-BxJ99bHx.js → resource-management-panel-Dpin6Ffw.js} +2 -2
- package/dist/chunks/use-create-flow-overlay-state-VwKDgVAy.js +1597 -0
- package/dist/chunks/use-create-flow-overlay-state-XkHgf9f3.js +21 -0
- package/dist/chunks/{use-visual-utils-C54WwvId.js → use-visual-utils-C8YSTPfX.js} +1 -1
- package/dist/chunks/{use-visual-utils-C7wVd3rs.js → use-visual-utils-CBocWNV1.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 +5 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard.d.ts +9 -1
- package/dist/types/main.d.ts +9 -1
- package/dist/types/shared.d.ts +9 -1
- package/dist/types/surfboard.d.ts +9 -1
- package/dist/types/types.d.ts +9 -1
- package/package.json +1 -1
- package/dist/chunks/use-create-flow-overlay-state-BjV5Q6Lb.js +0 -1443
- package/dist/chunks/use-create-flow-overlay-state-BrmQZdh2.js +0 -21
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
-
import { bM as Pe,
|
|
2
|
+
import { bM as Pe, e8 as Fo, x as ut, M as pe, U as F, e9 as ai, ea as Ro, L as z, y as ee, z as te, A as ae, E as ne, F as j, ac as We, B as Q, ct as St, eb as Hn, ec as ni, ed as si, ee as ri, ef as li, eg as Qn, a6 as Mt, X as nt, eh as Qs, ch as Jn, e as pa, f as fa, g as ga, h as xa, i as Va, bZ as Ct, bW as gt, bT as vt, bU as mt, bV as ht, ei as ol, ej as Lo, ek as ii, v as zn, el as Ba, cP as Ja, c as W, cc as Nt, em as oi, en as xs, cB as ci, eo as Po, ep as Vo, eq as Bo, er as un, es as zo, et as di, eu as _o, dq as Js, u as Me, ev as $o, ew as ui, ex as qo, ey as Yn, ez as jo, eA as qt, eB as La, cC as Ya, cD as Wa, eC as Vs, cF as Xa, cG as dt, eD as za, eE as Ko, eF as Bs, eG as Rn, b as Ca, ag as mi, e7 as mn, eH as Ys, eI as Go, eJ as Uo, eK as hi, eL as pi, eM as fi, dH as Ws, dF as Ho, I as Ie, P as Tt, eN as Qo, l as kt, eO as Jo, w as la, eP as Yo, eQ as Wo, H as Xo, eR as Zo, bN as Za, bO as wa, bP as Sa, bQ as xn, bR as Gt, bS as Pa, eS as zs, eT as Ht, eU as it, eV as Qt, eW as gi, eX as _n, eY as $n, eZ as qn, e_ as Xs, dn as _a, e$ as xi, f0 as ec, f1 as tc, f2 as ac, C as bi, f3 as nc, f4 as sc, f5 as rc, f6 as lc, f7 as vi, f8 as ic, f9 as bs, fa as oc, fb as cl, fc as cc, fd as dl, fe as Zs, ff as dc, fg as bn, fh as uc, R as vn, fi as Wn, fj as en, cQ as er, fk as yi, j as ia, fl as mc, cn as Pt, co as _t, fm as hc, cp as $t, c$ as tr, db as ar, N as Ni, fn as nr, fo as pc, fp as Ci, fq as wi, fr as zt, e0 as vs, fs as fc, ft as gc, fu as xc, fv as Si, ax as Ti, fw as ki, fx as bc, fy as vc, fz as yc, fA as hn, fB as Nc, fC as Cc, fD as ul, fE as wc, Z as Xn, a4 as sr, fF as Sc, fG as rr, ds as Tc, fH as ml, a7 as pt, fI as kc, dO as lr, dP as ir, dQ as ma, dR as Ln, fJ as Ic, e1 as Dc, fK as Ii, fL as Ac, fM as Mc, d4 as Zn, fN as Ec, fO as Oc, fP as hl, fQ as Fc, k as Et, dm as ba, dt as es, cK as Lt, fR as ea, fS as va, fT as ya, fU as oa, fV as $a, fW as Rc, fX as Lc, b2 as Pc, fY as Vc, fZ as Bc, f_ as zc, f$ as _c, da as ha, g0 as $c, g1 as Di, g2 as qc, g3 as jc, g4 as Kc, g5 as Ai, dI as pl, c6 as Gc, cd as Ut, dj as Uc, g6 as Hc, g7 as Qc, g8 as Jc, g9 as fl, ga as Yc, gb as Wc, gc as Xc, gd as Zc, af as ed, ge as td, gf as Mi, gg as ad, gh as nd, gi as sd, gj as rd, gk as ld, gl as id, gm as _s, gn as od, go as cd, gp as dd, gq as $s, gr as ud, gs as md, gt as hd, gu as pd, gv as gl, gw as fd, gx as xl, gy as bl, dd as qs, cS as gd, gz as xd, cT as bd, cU as vd, cV as yd, cW as Nd, cX as Cd, cY as wd, cZ as Sd, gA as tn, gB as Td, S as He, gC as kd, gD as Id, gE as Ei, cE as or, de as Dd, cH as Ad, gF as Md, gG as Ed, gH as pn, gI as jn, gJ as Od, gK as qa, gL as Ke, gM as Ge, gN as Ue, gO as Fd, gP as Rd, gQ as Oi, gR as Fi, gS as aa, gT as Mn, gU as vl, gV as Ld, dp as Ri, gW as Pd, gX as Vd, gY as Bd, gZ as yn, g_ as zd, g$ as _d, h0 as $d, m as ja, n as Ka, o as Ga, p as Ua, q as Ha, r as Qa, h1 as qd, h2 as jd, h3 as yl, h4 as Kd, s as Ta, h5 as Gd, h6 as ys, h7 as Nl, h8 as Ud, h9 as At, ha as Hd, hb as Qd, hc as Jd, hd as Yd, he as Wd, hf as Ns, hg as Li, hh as Xd, hi as Zd, hj as eu, hk as Kn, hl as tu, hm as au, hn as cr, ho as dr, hp as Pi, hq as nu, d2 as Vi, hr as Bi, hs as zi, ht as su, e6 as ru, hu as et, hv as lu, bg as iu, hw as En, hx as ou, hy as Cl, hz as cu, hA as du, bc as wl, hB as Sl, hC as uu, hD as mu, hE as hu, hF as pu, hG as fu, hH as gu, hI as xu, hJ as bu, hK as vu, hL as yu, hM as Nu, hN as Cu, hO as wu, hP as Su, hQ as _i, hR as Tu, hS as ku, hT as Iu, hU as Du, hV as Au, hW as Mu, hX as Eu, hY as Ou, hZ as Fu, h_ as Ru, h$ as Lu, i0 as $i, i1 as Pu, i2 as ur, i3 as ts, i4 as qi, i5 as Vu, i6 as Bu, i7 as zu, i8 as _u, i9 as $u, ia as qu, ib as as, ic as Cs, id as ju, ie as Ku, ig as Gu, ih as Uu, ii as Hu, ij as Tl, ik as Na, il as Qu, im as ji, io as Ki, ip as js, iq as Gi, ir as kl, d6 as Il, is as Ju, it as Yu, iu as Wu, iv as Pn, iw as Xu, ix as mr, iy as Zu, iz as em, iA as Gn, iB as tm, iC as am, iD as nm, iE as fn, iF as na, iG as Ks, iH as Gs, iI as gn, iJ as Ui, aY as sm, iK as rm, iL as ws, iM as Ss, iN as lm, iO as Ts, iP as im, iQ as Dl, iR as Al, iS as om, iT as cm, iU as dm, iV as um, iW as mm, iX as hm, iY as ns, cM as ss, iZ as rs, i_ as Ml, i$ as Hi, dX as ks, j0 as pm, j1 as fm, j2 as gm, _ as xm } from "./index-B7kUtCgG.js";
|
|
3
3
|
import * as Vn from "react";
|
|
4
4
|
import ta, { useState as G, useRef as Ee, useEffect as Ce, useCallback as Se, useMemo as ce, useContext as hr, Suspense as bm } from "react";
|
|
5
|
-
import { C as El, f as pr, g as wt, V as
|
|
5
|
+
import { C as El, f as pr, g as wt, V as Qi, u as vm, e as ym } from "./use-create-flow-overlay-state-VwKDgVAy.js";
|
|
6
6
|
import { createPortal as Nm } from "react-dom";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -36,7 +36,7 @@ const wm = Pe("ArrowUpAZ", [
|
|
|
36
36
|
* This source code is licensed under the ISC license.
|
|
37
37
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
39
|
+
const Ji = Pe("Blocks", [
|
|
40
40
|
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
41
41
|
[
|
|
42
42
|
"path",
|
|
@@ -871,7 +871,7 @@ function Um({
|
|
|
871
871
|
i.joins.length,
|
|
872
872
|
")"
|
|
873
873
|
] }),
|
|
874
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(
|
|
874
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(Q, { variant: "outline", size: "sm", onClick: f, children: [
|
|
875
875
|
/* @__PURE__ */ e(St, { className: "mr-1 h-4 w-4" }),
|
|
876
876
|
"Add Join"
|
|
877
877
|
] }) })
|
|
@@ -900,7 +900,7 @@ function Um({
|
|
|
900
900
|
] }),
|
|
901
901
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
902
902
|
/* @__PURE__ */ e(
|
|
903
|
-
|
|
903
|
+
Q,
|
|
904
904
|
{
|
|
905
905
|
variant: "ghost",
|
|
906
906
|
size: "sm",
|
|
@@ -910,7 +910,7 @@ function Um({
|
|
|
910
910
|
}
|
|
911
911
|
),
|
|
912
912
|
/* @__PURE__ */ e(
|
|
913
|
-
|
|
913
|
+
Q,
|
|
914
914
|
{
|
|
915
915
|
variant: "ghost",
|
|
916
916
|
size: "sm",
|
|
@@ -920,16 +920,16 @@ function Um({
|
|
|
920
920
|
}
|
|
921
921
|
),
|
|
922
922
|
/* @__PURE__ */ e(
|
|
923
|
-
|
|
923
|
+
Q,
|
|
924
924
|
{
|
|
925
925
|
variant: "ghost",
|
|
926
926
|
size: "sm",
|
|
927
927
|
onClick: () => v(N.id),
|
|
928
|
-
children: x ? /* @__PURE__ */ e(
|
|
928
|
+
children: x ? /* @__PURE__ */ e(Qn, { className: "h-4 w-4" }) : /* @__PURE__ */ e(Mt, { className: "h-4 w-4" })
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
931
|
/* @__PURE__ */ e(
|
|
932
|
-
|
|
932
|
+
Q,
|
|
933
933
|
{
|
|
934
934
|
variant: "ghost",
|
|
935
935
|
size: "sm",
|
|
@@ -939,7 +939,7 @@ function Um({
|
|
|
939
939
|
)
|
|
940
940
|
] })
|
|
941
941
|
] }) }),
|
|
942
|
-
x && /* @__PURE__ */ a(
|
|
942
|
+
x && /* @__PURE__ */ a(Qs, { className: "space-y-4 pb-6", children: [
|
|
943
943
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-3", children: [
|
|
944
944
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
945
945
|
/* @__PURE__ */ e(z, { children: "Source" }),
|
|
@@ -1100,7 +1100,7 @@ function Um({
|
|
|
1100
1100
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
1101
1101
|
/* @__PURE__ */ e(z, { children: "Join Conditions" }),
|
|
1102
1102
|
/* @__PURE__ */ a(
|
|
1103
|
-
|
|
1103
|
+
Q,
|
|
1104
1104
|
{
|
|
1105
1105
|
type: "button",
|
|
1106
1106
|
variant: "outline",
|
|
@@ -1156,7 +1156,7 @@ function Um({
|
|
|
1156
1156
|
}
|
|
1157
1157
|
),
|
|
1158
1158
|
/* @__PURE__ */ e(
|
|
1159
|
-
|
|
1159
|
+
Q,
|
|
1160
1160
|
{
|
|
1161
1161
|
type: "button",
|
|
1162
1162
|
variant: "ghost",
|
|
@@ -1165,7 +1165,7 @@ function Um({
|
|
|
1165
1165
|
N.id,
|
|
1166
1166
|
w
|
|
1167
1167
|
),
|
|
1168
|
-
children: /* @__PURE__ */ e(
|
|
1168
|
+
children: /* @__PURE__ */ e(Jn, { className: "h-4 w-4" })
|
|
1169
1169
|
}
|
|
1170
1170
|
)
|
|
1171
1171
|
] })
|
|
@@ -1310,7 +1310,7 @@ function Um({
|
|
|
1310
1310
|
}
|
|
1311
1311
|
) }),
|
|
1312
1312
|
/* @__PURE__ */ e(
|
|
1313
|
-
|
|
1313
|
+
Q,
|
|
1314
1314
|
{
|
|
1315
1315
|
type: "button",
|
|
1316
1316
|
variant: "ghost",
|
|
@@ -1329,7 +1329,7 @@ function Um({
|
|
|
1329
1329
|
B.id || R
|
|
1330
1330
|
)) }),
|
|
1331
1331
|
/* @__PURE__ */ a(
|
|
1332
|
-
|
|
1332
|
+
Q,
|
|
1333
1333
|
{
|
|
1334
1334
|
type: "button",
|
|
1335
1335
|
variant: "outline",
|
|
@@ -1354,7 +1354,7 @@ function Um({
|
|
|
1354
1354
|
] }),
|
|
1355
1355
|
/* @__PURE__ */ a("div", { className: "flex justify-end gap-2 border-t pt-4", children: [
|
|
1356
1356
|
/* @__PURE__ */ e(
|
|
1357
|
-
|
|
1357
|
+
Q,
|
|
1358
1358
|
{
|
|
1359
1359
|
variant: "outline",
|
|
1360
1360
|
onClick: () => {
|
|
@@ -1363,9 +1363,9 @@ function Um({
|
|
|
1363
1363
|
children: "Remove All"
|
|
1364
1364
|
}
|
|
1365
1365
|
),
|
|
1366
|
-
/* @__PURE__ */ e(
|
|
1366
|
+
/* @__PURE__ */ e(Q, { variant: "outline", onClick: d, children: "Cancel" }),
|
|
1367
1367
|
/* @__PURE__ */ e(
|
|
1368
|
-
|
|
1368
|
+
Q,
|
|
1369
1369
|
{
|
|
1370
1370
|
onClick: () => n(i),
|
|
1371
1371
|
disabled: !g(),
|
|
@@ -1591,7 +1591,7 @@ ${D.joinType} JOIN ${k.name}
|
|
|
1591
1591
|
]
|
|
1592
1592
|
}
|
|
1593
1593
|
) : /* @__PURE__ */ a(
|
|
1594
|
-
|
|
1594
|
+
Q,
|
|
1595
1595
|
{
|
|
1596
1596
|
onClick: () => f(!0),
|
|
1597
1597
|
variant: "outline",
|
|
@@ -1631,7 +1631,7 @@ ${D.joinType} JOIN ${k.name}
|
|
|
1631
1631
|
)
|
|
1632
1632
|
] });
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function Qm({
|
|
1635
1635
|
open: t,
|
|
1636
1636
|
onOpenChange: s
|
|
1637
1637
|
}) {
|
|
@@ -1667,7 +1667,7 @@ function Jm({
|
|
|
1667
1667
|
/* @__PURE__ */ e(xa, { children: "No Data Available" }),
|
|
1668
1668
|
/* @__PURE__ */ e(Va, { children: "No entities are currently available in the AI context. Please add some data sources to the dashboard first." })
|
|
1669
1669
|
] }),
|
|
1670
|
-
/* @__PURE__ */ e(zn, { children: /* @__PURE__ */ e(
|
|
1670
|
+
/* @__PURE__ */ e(zn, { children: /* @__PURE__ */ e(Q, { onClick: () => s(!1), children: "Close" }) })
|
|
1671
1671
|
] }) }) : /* @__PURE__ */ e(pa, { open: t, onOpenChange: s, children: /* @__PURE__ */ a(fa, { className: "flex max-w-2xl flex-col", children: [
|
|
1672
1672
|
/* @__PURE__ */ a(ga, { children: [
|
|
1673
1673
|
/* @__PURE__ */ e(xa, { children: "Select Data to Analyze" }),
|
|
@@ -1677,7 +1677,7 @@ function Jm({
|
|
|
1677
1677
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
1678
1678
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
1679
1679
|
/* @__PURE__ */ e(
|
|
1680
|
-
|
|
1680
|
+
Q,
|
|
1681
1681
|
{
|
|
1682
1682
|
variant: "outline",
|
|
1683
1683
|
size: "sm",
|
|
@@ -1687,7 +1687,7 @@ function Jm({
|
|
|
1687
1687
|
}
|
|
1688
1688
|
),
|
|
1689
1689
|
/* @__PURE__ */ e(
|
|
1690
|
-
|
|
1690
|
+
Q,
|
|
1691
1691
|
{
|
|
1692
1692
|
variant: "outline",
|
|
1693
1693
|
size: "sm",
|
|
@@ -1705,7 +1705,7 @@ function Jm({
|
|
|
1705
1705
|
] })
|
|
1706
1706
|
] }),
|
|
1707
1707
|
/* @__PURE__ */ e(Ba, {}),
|
|
1708
|
-
/* @__PURE__ */ e(
|
|
1708
|
+
/* @__PURE__ */ e(Ja, { className: "h-64", children: /* @__PURE__ */ e("div", { className: "space-y-2", children: o.map((m, y) => /* @__PURE__ */ a(
|
|
1709
1709
|
"div",
|
|
1710
1710
|
{
|
|
1711
1711
|
className: W(
|
|
@@ -1732,9 +1732,9 @@ function Jm({
|
|
|
1732
1732
|
)) }) })
|
|
1733
1733
|
] }),
|
|
1734
1734
|
/* @__PURE__ */ e(zn, { children: /* @__PURE__ */ e("div", { className: "flex w-full justify-between", children: /* @__PURE__ */ a("div", { className: "flex grow justify-end gap-2", children: [
|
|
1735
|
-
/* @__PURE__ */ e(
|
|
1735
|
+
/* @__PURE__ */ e(Q, { variant: "outline", onClick: () => s(!1), children: "Cancel" }),
|
|
1736
1736
|
/* @__PURE__ */ a(
|
|
1737
|
-
|
|
1737
|
+
Q,
|
|
1738
1738
|
{
|
|
1739
1739
|
onClick: u,
|
|
1740
1740
|
disabled: n.length === 0,
|
|
@@ -1833,7 +1833,7 @@ function to({
|
|
|
1833
1833
|
),
|
|
1834
1834
|
children: [
|
|
1835
1835
|
f === 0 && p === 0 ? /* @__PURE__ */ e("div", { className: "px-4 pt-4", children: /* @__PURE__ */ e("div", { className: "rounded-xl border border-border/55 bg-card p-3 shadow-[0_1px_2px_rgba(15,23,42,0.05)]", children: /* @__PURE__ */ a(
|
|
1836
|
-
|
|
1836
|
+
Q,
|
|
1837
1837
|
{
|
|
1838
1838
|
className: "w-full bg-background",
|
|
1839
1839
|
variant: "outline",
|
|
@@ -1888,7 +1888,7 @@ function to({
|
|
|
1888
1888
|
)
|
|
1889
1889
|
] }),
|
|
1890
1890
|
/* @__PURE__ */ e(
|
|
1891
|
-
|
|
1891
|
+
Q,
|
|
1892
1892
|
{
|
|
1893
1893
|
variant: "ghost",
|
|
1894
1894
|
size: "sm",
|
|
@@ -1896,7 +1896,7 @@ function to({
|
|
|
1896
1896
|
onClick: (S) => {
|
|
1897
1897
|
S.stopPropagation(), c(!l);
|
|
1898
1898
|
},
|
|
1899
|
-
children: l ? /* @__PURE__ */ e(Mt, { className: "h-4 w-4" }) : /* @__PURE__ */ e(
|
|
1899
|
+
children: l ? /* @__PURE__ */ e(Mt, { className: "h-4 w-4" }) : /* @__PURE__ */ e(Qn, { className: "h-4 w-4" })
|
|
1900
1900
|
}
|
|
1901
1901
|
)
|
|
1902
1902
|
]
|
|
@@ -1912,7 +1912,7 @@ function to({
|
|
|
1912
1912
|
children: [
|
|
1913
1913
|
/* @__PURE__ */ e("div", { className: "px-1", children: /* @__PURE__ */ e(vt, { children: /* @__PURE__ */ a(mt, { children: [
|
|
1914
1914
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ a(
|
|
1915
|
-
|
|
1915
|
+
Q,
|
|
1916
1916
|
{
|
|
1917
1917
|
className: "w-full bg-background",
|
|
1918
1918
|
variant: "outline",
|
|
@@ -1949,7 +1949,7 @@ function to({
|
|
|
1949
1949
|
}
|
|
1950
1950
|
),
|
|
1951
1951
|
/* @__PURE__ */ e(
|
|
1952
|
-
|
|
1952
|
+
Qm,
|
|
1953
1953
|
{
|
|
1954
1954
|
open: d,
|
|
1955
1955
|
onOpenChange: o
|
|
@@ -1959,11 +1959,11 @@ function to({
|
|
|
1959
1959
|
}
|
|
1960
1960
|
);
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function Jm(t) {
|
|
1963
1963
|
return _o({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
|
|
1964
1964
|
}
|
|
1965
1965
|
function ao(t) {
|
|
1966
|
-
const { theme: s } =
|
|
1966
|
+
const { theme: s } = Js(), n = Me((b) => b.theme), r = F((b) => b.frame), d = F((b) => b.card), o = F((b) => b.activeTabCardId), l = $o(), { refetch: c } = Ct(d), { updateCardTab: i, setRunSql: u } = pe(), h = Ee(void 0), f = Ee({}), p = r.cards.find((b) => b.id === o), m = Se(() => {
|
|
1967
1967
|
let b = "";
|
|
1968
1968
|
return t === "python" && (b = (p == null ? void 0 : p.python) || ui), t === "sql" && (b = (p == null ? void 0 : p.sql) || ""), b;
|
|
1969
1969
|
}, [t, p]);
|
|
@@ -2245,12 +2245,12 @@ function no({
|
|
|
2245
2245
|
};
|
|
2246
2246
|
return /* @__PURE__ */ a("div", { className: W("flex min-h-0 flex-1 flex-col", r), children: [
|
|
2247
2247
|
!h && /* @__PURE__ */ a("div", { className: "mb-3 flex items-center gap-2", children: [
|
|
2248
|
-
/* @__PURE__ */ a(
|
|
2248
|
+
/* @__PURE__ */ a(Q, { onClick: _, variant: "secondary", size: "sm", children: [
|
|
2249
2249
|
/* @__PURE__ */ e(Yi, { className: "mr-2 h-4 w-4" }),
|
|
2250
2250
|
"View in SQL Editor"
|
|
2251
2251
|
] }),
|
|
2252
2252
|
s && /* @__PURE__ */ a(
|
|
2253
|
-
|
|
2253
|
+
Q,
|
|
2254
2254
|
{
|
|
2255
2255
|
onClick: () => o(!d),
|
|
2256
2256
|
variant: "outline",
|
|
@@ -2266,7 +2266,7 @@ function no({
|
|
|
2266
2266
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
2267
2267
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold", children: "Card Information" }),
|
|
2268
2268
|
/* @__PURE__ */ e(
|
|
2269
|
-
|
|
2269
|
+
Q,
|
|
2270
2270
|
{
|
|
2271
2271
|
variant: "ghost",
|
|
2272
2272
|
size: "sm",
|
|
@@ -2301,7 +2301,7 @@ function no({
|
|
|
2301
2301
|
/* @__PURE__ */ e("p", { className: "text-xs font-semibold text-muted-foreground", children: "Debug Tools" }),
|
|
2302
2302
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(Ya, { children: [
|
|
2303
2303
|
/* @__PURE__ */ e(Wa, { asChild: !0, children: /* @__PURE__ */ a(
|
|
2304
|
-
|
|
2304
|
+
Q,
|
|
2305
2305
|
{
|
|
2306
2306
|
variant: "outline",
|
|
2307
2307
|
size: "sm",
|
|
@@ -2344,7 +2344,7 @@ function no({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
),
|
|
2346
2346
|
/* @__PURE__ */ a(
|
|
2347
|
-
|
|
2347
|
+
Q,
|
|
2348
2348
|
{
|
|
2349
2349
|
variant: "ghost",
|
|
2350
2350
|
size: "sm",
|
|
@@ -2561,7 +2561,7 @@ function ch({
|
|
|
2561
2561
|
);
|
|
2562
2562
|
},
|
|
2563
2563
|
[Fe]
|
|
2564
|
-
),
|
|
2564
|
+
), Je = Se((K) => de.current === K && !Te.current.has(K), []), H = Se(
|
|
2565
2565
|
(K, se, X) => {
|
|
2566
2566
|
je(K, (ye) => {
|
|
2567
2567
|
const De = ye.timelineSteps.includes(se) ? ye.timelineSteps : [...ye.timelineSteps, se];
|
|
@@ -2650,7 +2650,7 @@ function ch({
|
|
|
2650
2650
|
if (!se)
|
|
2651
2651
|
return;
|
|
2652
2652
|
const X = de.current;
|
|
2653
|
-
if (!
|
|
2653
|
+
if (!Je(X)) {
|
|
2654
2654
|
(st = Y.current) == null || st.call(Y, {
|
|
2655
2655
|
tool: se,
|
|
2656
2656
|
toolCallId: K.toolCallId,
|
|
@@ -2707,7 +2707,7 @@ function ch({
|
|
|
2707
2707
|
t,
|
|
2708
2708
|
le,
|
|
2709
2709
|
A.phase,
|
|
2710
|
-
|
|
2710
|
+
Je,
|
|
2711
2711
|
$e,
|
|
2712
2712
|
H
|
|
2713
2713
|
]
|
|
@@ -2719,7 +2719,7 @@ function ch({
|
|
|
2719
2719
|
if (!X || X !== oe.current)
|
|
2720
2720
|
return;
|
|
2721
2721
|
const ye = de.current;
|
|
2722
|
-
if (!
|
|
2722
|
+
if (!Je(ye))
|
|
2723
2723
|
return;
|
|
2724
2724
|
const De = zl([K]) || zl(se);
|
|
2725
2725
|
if (De) {
|
|
@@ -2728,18 +2728,18 @@ function ch({
|
|
|
2728
2728
|
}
|
|
2729
2729
|
Le.current && me.current.phase === "self-healing" && ue.current(ye);
|
|
2730
2730
|
},
|
|
2731
|
-
[
|
|
2731
|
+
[Je, $e]
|
|
2732
2732
|
), ct = Se(
|
|
2733
2733
|
(K) => {
|
|
2734
2734
|
if ($e !== ve.current)
|
|
2735
2735
|
return;
|
|
2736
2736
|
const se = de.current;
|
|
2737
|
-
|
|
2737
|
+
Je(se) && Le.current && me.current.phase === "self-healing" && ue.current(se);
|
|
2738
2738
|
},
|
|
2739
|
-
[
|
|
2739
|
+
[Je, $e]
|
|
2740
2740
|
), {
|
|
2741
2741
|
setMessages: xt,
|
|
2742
|
-
sendMessage:
|
|
2742
|
+
sendMessage: Jt,
|
|
2743
2743
|
addToolResult: jt,
|
|
2744
2744
|
status: Kt,
|
|
2745
2745
|
stop: he,
|
|
@@ -2786,10 +2786,10 @@ function ch({
|
|
|
2786
2786
|
onError: ct,
|
|
2787
2787
|
sendAutomaticallyWhen: Yo
|
|
2788
2788
|
});
|
|
2789
|
-
Y.current = jt, re.current =
|
|
2789
|
+
Y.current = jt, re.current = Jt;
|
|
2790
2790
|
const Re = !["ready", "error"].includes(
|
|
2791
2791
|
Kt
|
|
2792
|
-
), Ot = (Ye == null ? void 0 : Ye.message) || "Unable to generate a SQL draft right now. Try again.",
|
|
2792
|
+
), Ot = (Ye == null ? void 0 : Ye.message) || "Unable to generate a SQL draft right now. Try again.", Qe = Se(
|
|
2793
2793
|
(K) => {
|
|
2794
2794
|
const se = de.current, X = me.current.phase;
|
|
2795
2795
|
if (!(X === "drafting" || X === "self-healing" || X === "validating")) {
|
|
@@ -2816,7 +2816,7 @@ function ch({
|
|
|
2816
2816
|
), nn = Se(
|
|
2817
2817
|
async (K, se) => {
|
|
2818
2818
|
var ye;
|
|
2819
|
-
if (!
|
|
2819
|
+
if (!Je(se))
|
|
2820
2820
|
return null;
|
|
2821
2821
|
const X = U.current + 1;
|
|
2822
2822
|
U.current = X, H(se, "Validating SQL", {
|
|
@@ -2831,7 +2831,7 @@ function ch({
|
|
|
2831
2831
|
connectionId: f || void 0
|
|
2832
2832
|
}
|
|
2833
2833
|
);
|
|
2834
|
-
if (U.current !== X || !
|
|
2834
|
+
if (U.current !== X || !Je(se))
|
|
2835
2835
|
return null;
|
|
2836
2836
|
if ((De == null ? void 0 : De.valid) === !0)
|
|
2837
2837
|
return x({
|
|
@@ -2868,7 +2868,7 @@ function ch({
|
|
|
2868
2868
|
errorCode: Ae
|
|
2869
2869
|
};
|
|
2870
2870
|
} catch (De) {
|
|
2871
|
-
if (U.current !== X || !
|
|
2871
|
+
if (U.current !== X || !Je(se))
|
|
2872
2872
|
return null;
|
|
2873
2873
|
const Ae = Ho(
|
|
2874
2874
|
De,
|
|
@@ -2897,7 +2897,7 @@ function ch({
|
|
|
2897
2897
|
[
|
|
2898
2898
|
c == null ? void 0 : c.accessToken,
|
|
2899
2899
|
le,
|
|
2900
|
-
|
|
2900
|
+
Je,
|
|
2901
2901
|
f,
|
|
2902
2902
|
ze,
|
|
2903
2903
|
je,
|
|
@@ -2962,7 +2962,7 @@ function ch({
|
|
|
2962
2962
|
x({ status: "idle" });
|
|
2963
2963
|
return;
|
|
2964
2964
|
}
|
|
2965
|
-
if (!
|
|
2965
|
+
if (!Je(se) || Re)
|
|
2966
2966
|
return;
|
|
2967
2967
|
const X = `${se}:${fe.current}:${Pl(K)}`;
|
|
2968
2968
|
if (ke.current === X)
|
|
@@ -2971,7 +2971,7 @@ function ch({
|
|
|
2971
2971
|
let ye = !1;
|
|
2972
2972
|
return (async () => {
|
|
2973
2973
|
const Ae = await nn(K, se);
|
|
2974
|
-
if (!Ae || ye || !
|
|
2974
|
+
if (!Ae || ye || !Je(se) || Ae.status !== "invalid")
|
|
2975
2975
|
return;
|
|
2976
2976
|
if (!Wo.has(Ae.errorCode)) {
|
|
2977
2977
|
Yt(se, "terminal", Ae.error, Ae.errorCode);
|
|
@@ -3016,7 +3016,7 @@ function ch({
|
|
|
3016
3016
|
m,
|
|
3017
3017
|
le,
|
|
3018
3018
|
Re,
|
|
3019
|
-
|
|
3019
|
+
Je,
|
|
3020
3020
|
I,
|
|
3021
3021
|
C,
|
|
3022
3022
|
n,
|
|
@@ -3092,25 +3092,25 @@ function ch({
|
|
|
3092
3092
|
_e(), R(!0);
|
|
3093
3093
|
}, [_e]), ms = Se(
|
|
3094
3094
|
(K) => {
|
|
3095
|
-
|
|
3095
|
+
Qe("cancelled"), S(K);
|
|
3096
3096
|
},
|
|
3097
|
-
[
|
|
3097
|
+
[Qe]
|
|
3098
3098
|
), hs = Se(() => {
|
|
3099
|
-
Re || (
|
|
3099
|
+
Re || (Qe("cancelled"), Le.current = !1, U.current += 1, ke.current = "", fe.current = 0, S(""), _(""), M(""), D("draft"), E("draft"), P(""), O(!1), x({ status: "idle" }), rt(), xt([]), Fe((K) => ({
|
|
3100
3100
|
...As,
|
|
3101
3101
|
runId: K.runId
|
|
3102
3102
|
})));
|
|
3103
3103
|
}, [
|
|
3104
|
-
|
|
3104
|
+
Qe,
|
|
3105
3105
|
rt,
|
|
3106
3106
|
Re,
|
|
3107
3107
|
xt,
|
|
3108
3108
|
Fe
|
|
3109
3109
|
]), ps = Se(
|
|
3110
3110
|
(K) => {
|
|
3111
|
-
K ||
|
|
3111
|
+
K || Qe("cancelled"), R(K);
|
|
3112
3112
|
},
|
|
3113
|
-
[
|
|
3113
|
+
[Qe]
|
|
3114
3114
|
), Dt = A.timelineSteps.findIndex(
|
|
3115
3115
|
(K) => K === A.activeStep
|
|
3116
3116
|
), kn = A.phase === "self-healing" ? "Fixing validation issue" : A.phase === "validating" ? "Validating SQL" : A.activeStep || "Drafting SQL", Oa = L.status === "valid" ? {
|
|
@@ -3150,17 +3150,17 @@ function ch({
|
|
|
3150
3150
|
}
|
|
3151
3151
|
),
|
|
3152
3152
|
/* @__PURE__ */ a(Tt, { open: B, onOpenChange: ps, children: [
|
|
3153
|
-
/* @__PURE__ */ e(
|
|
3153
|
+
/* @__PURE__ */ e(Qo, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
|
|
3154
3154
|
/* @__PURE__ */ a("div", { className: "absolute right-1 flex items-center gap-1", children: [
|
|
3155
3155
|
Aa && /* @__PURE__ */ e(
|
|
3156
|
-
|
|
3156
|
+
Q,
|
|
3157
3157
|
{
|
|
3158
3158
|
type: "button",
|
|
3159
3159
|
variant: "ghost",
|
|
3160
3160
|
size: "sm",
|
|
3161
3161
|
className: "size-6 p-0",
|
|
3162
3162
|
onClick: (K) => {
|
|
3163
|
-
K.preventDefault(),
|
|
3163
|
+
K.preventDefault(), Qe("cancelled"), S("");
|
|
3164
3164
|
},
|
|
3165
3165
|
disabled: Re,
|
|
3166
3166
|
"aria-label": "Clear input",
|
|
@@ -3169,7 +3169,7 @@ function ch({
|
|
|
3169
3169
|
}
|
|
3170
3170
|
),
|
|
3171
3171
|
/* @__PURE__ */ e(
|
|
3172
|
-
|
|
3172
|
+
Q,
|
|
3173
3173
|
{
|
|
3174
3174
|
type: "button",
|
|
3175
3175
|
variant: "ghost",
|
|
@@ -3210,7 +3210,7 @@ function ch({
|
|
|
3210
3210
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
3211
3211
|
/* @__PURE__ */ a("div", { className: "inline-flex h-7 items-center rounded-md border border-border/60 bg-background p-0.5 shadow-sm", children: [
|
|
3212
3212
|
/* @__PURE__ */ e(
|
|
3213
|
-
|
|
3213
|
+
Q,
|
|
3214
3214
|
{
|
|
3215
3215
|
type: "button",
|
|
3216
3216
|
size: "sm",
|
|
@@ -3226,7 +3226,7 @@ function ch({
|
|
|
3226
3226
|
}
|
|
3227
3227
|
),
|
|
3228
3228
|
/* @__PURE__ */ e(
|
|
3229
|
-
|
|
3229
|
+
Q,
|
|
3230
3230
|
{
|
|
3231
3231
|
type: "button",
|
|
3232
3232
|
size: "sm",
|
|
@@ -3243,19 +3243,19 @@ function ch({
|
|
|
3243
3243
|
] }),
|
|
3244
3244
|
/* @__PURE__ */ e("div", { className: "h-4 w-px bg-border/70" }),
|
|
3245
3245
|
Re && /* @__PURE__ */ e(
|
|
3246
|
-
|
|
3246
|
+
Q,
|
|
3247
3247
|
{
|
|
3248
3248
|
variant: "ghost",
|
|
3249
3249
|
size: "sm",
|
|
3250
3250
|
className: "h-7 px-2 text-xs",
|
|
3251
3251
|
onClick: () => {
|
|
3252
|
-
|
|
3252
|
+
Qe("stopped");
|
|
3253
3253
|
},
|
|
3254
3254
|
children: "Stop"
|
|
3255
3255
|
}
|
|
3256
3256
|
),
|
|
3257
3257
|
!Re && /* @__PURE__ */ e(
|
|
3258
|
-
|
|
3258
|
+
Q,
|
|
3259
3259
|
{
|
|
3260
3260
|
variant: "ghost",
|
|
3261
3261
|
size: "sm",
|
|
@@ -3307,7 +3307,7 @@ function ch({
|
|
|
3307
3307
|
] }) })
|
|
3308
3308
|
] }),
|
|
3309
3309
|
/* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(
|
|
3310
|
-
|
|
3310
|
+
Jo,
|
|
3311
3311
|
{
|
|
3312
3312
|
mode: "full",
|
|
3313
3313
|
compact: !0,
|
|
@@ -3328,7 +3328,7 @@ function ch({
|
|
|
3328
3328
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between rounded-md border border-border/60 bg-muted/20 px-2.5 py-1.5 text-xs", children: [
|
|
3329
3329
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Refining editor SQL" }),
|
|
3330
3330
|
/* @__PURE__ */ e(
|
|
3331
|
-
|
|
3331
|
+
Q,
|
|
3332
3332
|
{
|
|
3333
3333
|
type: "button",
|
|
3334
3334
|
variant: "ghost",
|
|
@@ -3347,7 +3347,7 @@ function ch({
|
|
|
3347
3347
|
] }) : Wt ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed border-border/70 px-3 py-2 text-xs text-muted-foreground", children: "Validating SQL draft before preview." }) : !Re && /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed border-border/70 px-3 py-2 text-xs text-muted-foreground", children: Da ? "Choose Draft New or Refine Current, then press Enter or click send." : "Describe what you want to query, then press Enter or click send to generate a SQL preview." }),
|
|
3348
3348
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center justify-end gap-2", children: [
|
|
3349
3349
|
/* @__PURE__ */ e(
|
|
3350
|
-
|
|
3350
|
+
Q,
|
|
3351
3351
|
{
|
|
3352
3352
|
variant: "outline",
|
|
3353
3353
|
size: "sm",
|
|
@@ -3357,7 +3357,7 @@ function ch({
|
|
|
3357
3357
|
}
|
|
3358
3358
|
),
|
|
3359
3359
|
/* @__PURE__ */ e(
|
|
3360
|
-
|
|
3360
|
+
Q,
|
|
3361
3361
|
{
|
|
3362
3362
|
variant: "secondary",
|
|
3363
3363
|
size: "sm",
|
|
@@ -3368,7 +3368,7 @@ function ch({
|
|
|
3368
3368
|
}
|
|
3369
3369
|
),
|
|
3370
3370
|
/* @__PURE__ */ e(
|
|
3371
|
-
|
|
3371
|
+
Q,
|
|
3372
3372
|
{
|
|
3373
3373
|
size: "sm",
|
|
3374
3374
|
className: "h-8",
|
|
@@ -3532,7 +3532,7 @@ function dh() {
|
|
|
3532
3532
|
),
|
|
3533
3533
|
s && /* @__PURE__ */ a(Ne, { children: [
|
|
3534
3534
|
/* @__PURE__ */ e(
|
|
3535
|
-
|
|
3535
|
+
Qt,
|
|
3536
3536
|
{
|
|
3537
3537
|
withHandle: !0,
|
|
3538
3538
|
className: "data-[panel-group-direction=vertical]:ml-2 data-[panel-group-direction=vertical]:mr-6 data-[panel-group-direction=vertical]:w-auto"
|
|
@@ -3571,7 +3571,7 @@ function dh() {
|
|
|
3571
3571
|
className: "item-center flex w-full flex-wrap items-center gap-2 py-3 pl-2 pr-6",
|
|
3572
3572
|
children: /* @__PURE__ */ a("div", { className: "flex w-full items-center gap-3", children: [
|
|
3573
3573
|
/* @__PURE__ */ a(
|
|
3574
|
-
|
|
3574
|
+
Q,
|
|
3575
3575
|
{
|
|
3576
3576
|
title: "Shift + Enter",
|
|
3577
3577
|
disabled: B || R,
|
|
@@ -3600,7 +3600,7 @@ function dh() {
|
|
|
3600
3600
|
size: "sm",
|
|
3601
3601
|
variant: "outline",
|
|
3602
3602
|
children: [
|
|
3603
|
-
/* @__PURE__ */ e(
|
|
3603
|
+
/* @__PURE__ */ e(Jm, { className: "mr-2 size-4 text-foreground/70" }),
|
|
3604
3604
|
"Python"
|
|
3605
3605
|
]
|
|
3606
3606
|
}
|
|
@@ -3618,7 +3618,7 @@ function dh() {
|
|
|
3618
3618
|
}
|
|
3619
3619
|
),
|
|
3620
3620
|
/* @__PURE__ */ e("div", { className: "ml-auto flex shrink-0 items-center gap-3", children: i && i.length > 0 && /* @__PURE__ */ a(_n, { openDelay: 200, children: [
|
|
3621
|
-
/* @__PURE__ */ e($n, { asChild: !0, children: /* @__PURE__ */ a(
|
|
3621
|
+
/* @__PURE__ */ e($n, { asChild: !0, children: /* @__PURE__ */ a(Q, { variant: "outline", className: "h-8 gap-2 px-2", children: [
|
|
3622
3622
|
/* @__PURE__ */ e(_a, { className: "size-4" }),
|
|
3623
3623
|
/* @__PURE__ */ e(We, { className: "h-5 min-w-5 bg-purple-100 px-1.5 text-purple-700 hover:bg-purple-100 dark:bg-purple-950 dark:text-purple-300", children: i.length })
|
|
3624
3624
|
] }) }),
|
|
@@ -4068,8 +4068,8 @@ function gr({
|
|
|
4068
4068
|
{
|
|
4069
4069
|
open: i,
|
|
4070
4070
|
onOpenChange: u,
|
|
4071
|
-
children: /* @__PURE__ */ e(_t, { asChild: !0, children: /* @__PURE__ */ e(
|
|
4072
|
-
/* @__PURE__ */ e(
|
|
4071
|
+
children: /* @__PURE__ */ e(_t, { asChild: !0, children: /* @__PURE__ */ e(Q, { variant: "outline", size: "sm", className: "h-8", children: i ? /* @__PURE__ */ a(Ne, { children: [
|
|
4072
|
+
/* @__PURE__ */ e(Qn, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
4073
4073
|
"Hide Details"
|
|
4074
4074
|
] }) : /* @__PURE__ */ a(Ne, { children: [
|
|
4075
4075
|
/* @__PURE__ */ e(Mt, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
@@ -4078,7 +4078,7 @@ function gr({
|
|
|
4078
4078
|
}
|
|
4079
4079
|
),
|
|
4080
4080
|
r && s && /* @__PURE__ */ a(
|
|
4081
|
-
|
|
4081
|
+
Q,
|
|
4082
4082
|
{
|
|
4083
4083
|
variant: "outline",
|
|
4084
4084
|
size: "sm",
|
|
@@ -4091,7 +4091,7 @@ function gr({
|
|
|
4091
4091
|
}
|
|
4092
4092
|
),
|
|
4093
4093
|
l && o && /* @__PURE__ */ a(
|
|
4094
|
-
|
|
4094
|
+
Q,
|
|
4095
4095
|
{
|
|
4096
4096
|
variant: "outline",
|
|
4097
4097
|
size: "sm",
|
|
@@ -4104,7 +4104,7 @@ function gr({
|
|
|
4104
4104
|
}
|
|
4105
4105
|
),
|
|
4106
4106
|
d && /* @__PURE__ */ a(
|
|
4107
|
-
|
|
4107
|
+
Q,
|
|
4108
4108
|
{
|
|
4109
4109
|
variant: "outline",
|
|
4110
4110
|
size: "sm",
|
|
@@ -4260,12 +4260,12 @@ function ro({
|
|
|
4260
4260
|
};
|
|
4261
4261
|
q(ze), $(ze), n.sql && ((je = (Fe = n.preferences) == null ? void 0 : Fe.tablePrefs) != null && je.enableDevModePagination) && m(!0);
|
|
4262
4262
|
}, Te = (ue) => {
|
|
4263
|
-
var Fe, je,
|
|
4263
|
+
var Fe, je, Je, H, ge;
|
|
4264
4264
|
const Be = rr(
|
|
4265
4265
|
ue,
|
|
4266
4266
|
(Fe = n.config) == null ? void 0 : Fe.metricColumns,
|
|
4267
4267
|
(je = n.config) == null ? void 0 : je.groupByColumns,
|
|
4268
|
-
(
|
|
4268
|
+
(Je = n.config) == null ? void 0 : Je.detailColumns
|
|
4269
4269
|
), ze = {
|
|
4270
4270
|
...n,
|
|
4271
4271
|
config: {
|
|
@@ -4414,7 +4414,7 @@ function ro({
|
|
|
4414
4414
|
}
|
|
4415
4415
|
) }),
|
|
4416
4416
|
/* @__PURE__ */ e(fc, { card: n }),
|
|
4417
|
-
/* @__PURE__ */ e(
|
|
4417
|
+
/* @__PURE__ */ e(Qi, {}),
|
|
4418
4418
|
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(fh, {}) })
|
|
4419
4419
|
] }),
|
|
4420
4420
|
/* @__PURE__ */ e("div", { className: "w-1/2", children: /* @__PURE__ */ e(
|
|
@@ -4457,7 +4457,7 @@ function ro({
|
|
|
4457
4457
|
}
|
|
4458
4458
|
) }),
|
|
4459
4459
|
/* @__PURE__ */ a(
|
|
4460
|
-
|
|
4460
|
+
Qs,
|
|
4461
4461
|
{
|
|
4462
4462
|
className: W(
|
|
4463
4463
|
"flex min-h-0 grow flex-col pr-6",
|
|
@@ -4590,9 +4590,9 @@ const Ms = ({
|
|
|
4590
4590
|
onClose: d
|
|
4591
4591
|
}) => /* @__PURE__ */ a(zn, { className: "flex items-center", children: [
|
|
4592
4592
|
/* @__PURE__ */ e(z, { className: "mr-2 text-red-500", children: t }),
|
|
4593
|
-
/* @__PURE__ */ e(
|
|
4594
|
-
/* @__PURE__ */ e(
|
|
4595
|
-
/* @__PURE__ */ e(
|
|
4593
|
+
/* @__PURE__ */ e(Q, { disabled: !s, onClick: n, variant: "outline", children: "Reset" }),
|
|
4594
|
+
/* @__PURE__ */ e(Q, { onClick: r, variant: "outline", children: "Apply" }),
|
|
4595
|
+
/* @__PURE__ */ e(Q, { onClick: d, variant: "outline", children: "Close" })
|
|
4596
4596
|
] });
|
|
4597
4597
|
function vh({
|
|
4598
4598
|
triggerVariant: t = "icon",
|
|
@@ -4649,7 +4649,7 @@ function vh({
|
|
|
4649
4649
|
}, E = Object.keys(b || {}).length === 0;
|
|
4650
4650
|
return /* @__PURE__ */ a(pa, { open: r, onOpenChange: d, children: [
|
|
4651
4651
|
/* @__PURE__ */ e(Tc, { asChild: !0, children: t === "menu" ? /* @__PURE__ */ a(
|
|
4652
|
-
|
|
4652
|
+
Q,
|
|
4653
4653
|
{
|
|
4654
4654
|
variant: "ghost",
|
|
4655
4655
|
onClick: D,
|
|
@@ -5028,7 +5028,7 @@ function xr({
|
|
|
5028
5028
|
return /* @__PURE__ */ a("div", { className: W("relative w-full", r), children: [
|
|
5029
5029
|
/* @__PURE__ */ a(Tt, { open: d, onOpenChange: o, children: [
|
|
5030
5030
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ a(
|
|
5031
|
-
|
|
5031
|
+
Q,
|
|
5032
5032
|
{
|
|
5033
5033
|
size: "sm",
|
|
5034
5034
|
variant: n,
|
|
@@ -5147,7 +5147,7 @@ function br({
|
|
|
5147
5147
|
};
|
|
5148
5148
|
return /* @__PURE__ */ e("div", { className: W("flex items-center", t), children: /* @__PURE__ */ a(Ya, { modal: !1, open: c, onOpenChange: i, children: [
|
|
5149
5149
|
/* @__PURE__ */ e(Wa, { asChild: !0, children: s === "menu" ? /* @__PURE__ */ a(
|
|
5150
|
-
|
|
5150
|
+
Q,
|
|
5151
5151
|
{
|
|
5152
5152
|
variant: "ghost",
|
|
5153
5153
|
className: "h-8 w-full justify-start gap-2 px-2 text-sm",
|
|
@@ -5350,7 +5350,7 @@ function vr({
|
|
|
5350
5350
|
),
|
|
5351
5351
|
children: /* @__PURE__ */ a(Tt, { open: r, onOpenChange: d, children: [
|
|
5352
5352
|
/* @__PURE__ */ e(Et, { asChild: !0, children: C ? /* @__PURE__ */ a(
|
|
5353
|
-
|
|
5353
|
+
Q,
|
|
5354
5354
|
{
|
|
5355
5355
|
variant: "ghost",
|
|
5356
5356
|
className: W(
|
|
@@ -5435,7 +5435,7 @@ function Sh({
|
|
|
5435
5435
|
variant: "inline",
|
|
5436
5436
|
onAccept: (r) => s(r),
|
|
5437
5437
|
trigger: /* @__PURE__ */ e(
|
|
5438
|
-
|
|
5438
|
+
Q,
|
|
5439
5439
|
{
|
|
5440
5440
|
variant: "ghost",
|
|
5441
5441
|
size: "icon",
|
|
@@ -5447,7 +5447,7 @@ function Sh({
|
|
|
5447
5447
|
}
|
|
5448
5448
|
),
|
|
5449
5449
|
/* @__PURE__ */ e(
|
|
5450
|
-
|
|
5450
|
+
Q,
|
|
5451
5451
|
{
|
|
5452
5452
|
variant: "ghost",
|
|
5453
5453
|
size: "icon",
|
|
@@ -5685,14 +5685,14 @@ function Ah({
|
|
|
5685
5685
|
}
|
|
5686
5686
|
) }),
|
|
5687
5687
|
/* @__PURE__ */ e(
|
|
5688
|
-
|
|
5688
|
+
Q,
|
|
5689
5689
|
{
|
|
5690
5690
|
type: "button",
|
|
5691
5691
|
variant: "ghost",
|
|
5692
5692
|
size: "icon",
|
|
5693
5693
|
className: "h-8 w-8",
|
|
5694
5694
|
onClick: () => S(C),
|
|
5695
|
-
children: /* @__PURE__ */ e(
|
|
5695
|
+
children: /* @__PURE__ */ e(Jn, { className: "h-4 w-4" })
|
|
5696
5696
|
}
|
|
5697
5697
|
)
|
|
5698
5698
|
] }),
|
|
@@ -5794,7 +5794,7 @@ function Ah({
|
|
|
5794
5794
|
P
|
|
5795
5795
|
);
|
|
5796
5796
|
}),
|
|
5797
|
-
m ? /* @__PURE__ */ a(
|
|
5797
|
+
m ? /* @__PURE__ */ a(Q, { type: "button", variant: "outline", size: "sm", onClick: I, children: [
|
|
5798
5798
|
/* @__PURE__ */ e(St, { className: "mr-2 h-4 w-4" }),
|
|
5799
5799
|
"Add another control response"
|
|
5800
5800
|
] }) : null
|
|
@@ -5824,7 +5824,7 @@ function Eh({
|
|
|
5824
5824
|
card: v,
|
|
5825
5825
|
controls: S
|
|
5826
5826
|
}), M = {
|
|
5827
|
-
choices:
|
|
5827
|
+
choices: Qc(v),
|
|
5828
5828
|
targetMap: Object.fromEntries(
|
|
5829
5829
|
(((N = v == null ? void 0 : v.config) == null ? void 0 : N.groupByColumns) || []).map((L) => [
|
|
5830
5830
|
L.id,
|
|
@@ -5832,7 +5832,7 @@ function Eh({
|
|
|
5832
5832
|
])
|
|
5833
5833
|
)
|
|
5834
5834
|
}, T = {
|
|
5835
|
-
choices:
|
|
5835
|
+
choices: Jc(v),
|
|
5836
5836
|
targetMap: Object.fromEntries(
|
|
5837
5837
|
(((O = v == null ? void 0 : v.config) == null ? void 0 : O.metricColumns) || []).map((L) => [
|
|
5838
5838
|
L.id,
|
|
@@ -5886,7 +5886,7 @@ function Eh({
|
|
|
5886
5886
|
),
|
|
5887
5887
|
children: /* @__PURE__ */ a(Tt, { modal: !0, open: o, onOpenChange: r, children: [
|
|
5888
5888
|
/* @__PURE__ */ e(Et, { asChild: !0, children: P ? /* @__PURE__ */ a(
|
|
5889
|
-
|
|
5889
|
+
Q,
|
|
5890
5890
|
{
|
|
5891
5891
|
variant: "ghost",
|
|
5892
5892
|
className: W(
|
|
@@ -6020,7 +6020,7 @@ function Oh({
|
|
|
6020
6020
|
}) {
|
|
6021
6021
|
const s = Me((l) => l.selectedFrameId), n = ed((l) => l.selectedVisual), r = F((l) => l.frame), o = !!!(r != null && r.visualId || n != null && n.id) && !!s;
|
|
6022
6022
|
return !t || o ? null : /* @__PURE__ */ e("div", { className: "mb-2 flex", children: /* @__PURE__ */ e(
|
|
6023
|
-
|
|
6023
|
+
Qi,
|
|
6024
6024
|
{
|
|
6025
6025
|
showLabel: !0,
|
|
6026
6026
|
className: "h-6 w-fit px-2 py-0.5 text-[11px]"
|
|
@@ -6281,7 +6281,7 @@ function ua({
|
|
|
6281
6281
|
renderCardOverride: t,
|
|
6282
6282
|
alwaysRenderOverride: s = !1
|
|
6283
6283
|
} = {}) {
|
|
6284
|
-
var
|
|
6284
|
+
var Je, H, ge, _e, lt;
|
|
6285
6285
|
const n = F((le) => le.frame), r = F((le) => le.card), [d, o] = G(!1), l = ce(
|
|
6286
6286
|
() => Za(n, r),
|
|
6287
6287
|
[n, r]
|
|
@@ -6297,9 +6297,9 @@ function ua({
|
|
|
6297
6297
|
initializeModeDrafts: y
|
|
6298
6298
|
} = pe(), [b, v] = G({}), [S, I] = G(
|
|
6299
6299
|
() => /* @__PURE__ */ new Set()
|
|
6300
|
-
), { theme: _ } =
|
|
6300
|
+
), { theme: _ } = Js(), C = Me((le) => le.themeStyle), { authToken: M } = Ca(), T = td(M == null ? void 0 : M.accessToken), D = {
|
|
6301
6301
|
mode: _ || "system",
|
|
6302
|
-
colors: ((H = (
|
|
6302
|
+
colors: ((H = (Je = C == null ? void 0 : C.chart) == null ? void 0 : Je.dataset) == null ? void 0 : H.backgroundColor) || []
|
|
6303
6303
|
}, {
|
|
6304
6304
|
getCard: k,
|
|
6305
6305
|
manifest: E,
|
|
@@ -6497,7 +6497,7 @@ function ua({
|
|
|
6497
6497
|
}
|
|
6498
6498
|
) }),
|
|
6499
6499
|
Si(r) && /* @__PURE__ */ e(Ti, { card: r, mode: "editor" })
|
|
6500
|
-
] }) }) : r.type === "text" ? $ || Y ? /* @__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(
|
|
6500
|
+
] }) }) : r.type === "text" ? $ || Y ? /* @__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(Ja, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
6501
6501
|
id,
|
|
6502
6502
|
{
|
|
6503
6503
|
isLoading: c,
|
|
@@ -6539,7 +6539,7 @@ function Rh({
|
|
|
6539
6539
|
className: s
|
|
6540
6540
|
}) {
|
|
6541
6541
|
return /* @__PURE__ */ a(
|
|
6542
|
-
|
|
6542
|
+
Q,
|
|
6543
6543
|
{
|
|
6544
6544
|
type: "button",
|
|
6545
6545
|
size: "sm",
|
|
@@ -6563,7 +6563,7 @@ function io({
|
|
|
6563
6563
|
var w;
|
|
6564
6564
|
const o = F((B) => B.card), l = F((B) => B.actions.setCard), c = F(
|
|
6565
6565
|
(B) => B.actions.updateCardInFrame
|
|
6566
|
-
), { theme: i } =
|
|
6566
|
+
), { theme: i } = Js(), u = Me((B) => B.theme), h = gl(
|
|
6567
6567
|
(w = o.dynamicCardPreferences) == null ? void 0 : w.rendererCode
|
|
6568
6568
|
), [f, p] = G(h), [m, y] = G(h);
|
|
6569
6569
|
Ce(() => {
|
|
@@ -6676,7 +6676,7 @@ function io({
|
|
|
6676
6676
|
},
|
|
6677
6677
|
m || "preview-empty"
|
|
6678
6678
|
) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-[280px] items-center justify-center rounded-md border border-dashed border-border/70 bg-muted/20 px-6 text-center text-sm text-muted-foreground", children: "Apply valid visual code to preview the dynamic visual here." }) }) }) }),
|
|
6679
|
-
/* @__PURE__ */ e(
|
|
6679
|
+
/* @__PURE__ */ e(Qt, { withHandle: !0 }),
|
|
6680
6680
|
/* @__PURE__ */ e(it, { defaultSize: 46, minSize: 30, children: /* @__PURE__ */ a("div", { className: "flex h-full min-h-0 flex-col", children: [
|
|
6681
6681
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between border-b px-4 py-3", children: [
|
|
6682
6682
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 text-sm font-medium", children: [
|
|
@@ -6686,7 +6686,7 @@ function io({
|
|
|
6686
6686
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6687
6687
|
/* @__PURE__ */ a(gd, { children: [
|
|
6688
6688
|
/* @__PURE__ */ e(xd, { asChild: !0, children: /* @__PURE__ */ a(
|
|
6689
|
-
|
|
6689
|
+
Q,
|
|
6690
6690
|
{
|
|
6691
6691
|
type: "button",
|
|
6692
6692
|
size: "sm",
|
|
@@ -6718,7 +6718,7 @@ function io({
|
|
|
6718
6718
|
] })
|
|
6719
6719
|
] }),
|
|
6720
6720
|
/* @__PURE__ */ a(
|
|
6721
|
-
|
|
6721
|
+
Q,
|
|
6722
6722
|
{
|
|
6723
6723
|
type: "button",
|
|
6724
6724
|
size: "sm",
|
|
@@ -6733,7 +6733,7 @@ function io({
|
|
|
6733
6733
|
}
|
|
6734
6734
|
),
|
|
6735
6735
|
/* @__PURE__ */ a(
|
|
6736
|
-
|
|
6736
|
+
Q,
|
|
6737
6737
|
{
|
|
6738
6738
|
type: "button",
|
|
6739
6739
|
size: "sm",
|
|
@@ -6797,7 +6797,7 @@ function io({
|
|
|
6797
6797
|
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: E || "Preview changes here before saving them." }),
|
|
6798
6798
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6799
6799
|
/* @__PURE__ */ e(
|
|
6800
|
-
|
|
6800
|
+
Q,
|
|
6801
6801
|
{
|
|
6802
6802
|
type: "button",
|
|
6803
6803
|
variant: "outline",
|
|
@@ -6808,7 +6808,7 @@ function io({
|
|
|
6808
6808
|
}
|
|
6809
6809
|
),
|
|
6810
6810
|
/* @__PURE__ */ e(
|
|
6811
|
-
|
|
6811
|
+
Q,
|
|
6812
6812
|
{
|
|
6813
6813
|
type: "button",
|
|
6814
6814
|
size: "sm",
|
|
@@ -7082,7 +7082,7 @@ function ql({
|
|
|
7082
7082
|
),
|
|
7083
7083
|
/* @__PURE__ */ e(Lt, {}),
|
|
7084
7084
|
/* @__PURE__ */ a(
|
|
7085
|
-
|
|
7085
|
+
Q,
|
|
7086
7086
|
{
|
|
7087
7087
|
variant: "ghost",
|
|
7088
7088
|
className: "h-8 w-full justify-start gap-2 px-2 text-sm",
|
|
@@ -7094,7 +7094,7 @@ function ql({
|
|
|
7094
7094
|
}
|
|
7095
7095
|
),
|
|
7096
7096
|
/* @__PURE__ */ a(
|
|
7097
|
-
|
|
7097
|
+
Q,
|
|
7098
7098
|
{
|
|
7099
7099
|
variant: "ghost",
|
|
7100
7100
|
className: "h-8 w-full justify-start gap-2 px-2 text-sm",
|
|
@@ -7106,7 +7106,7 @@ function ql({
|
|
|
7106
7106
|
}
|
|
7107
7107
|
),
|
|
7108
7108
|
/* @__PURE__ */ a(
|
|
7109
|
-
|
|
7109
|
+
Q,
|
|
7110
7110
|
{
|
|
7111
7111
|
variant: "ghost",
|
|
7112
7112
|
className: "h-8 w-full justify-start gap-2 px-2 text-sm",
|
|
@@ -7157,7 +7157,7 @@ function ql({
|
|
|
7157
7157
|
children: h && /* @__PURE__ */ e(Lh, {})
|
|
7158
7158
|
}
|
|
7159
7159
|
),
|
|
7160
|
-
/* @__PURE__ */ e(
|
|
7160
|
+
/* @__PURE__ */ e(Qt, {})
|
|
7161
7161
|
] }),
|
|
7162
7162
|
/* @__PURE__ */ a(
|
|
7163
7163
|
it,
|
|
@@ -7220,7 +7220,7 @@ function Lh() {
|
|
|
7220
7220
|
const s = t.replace(/\n/g, "<br>");
|
|
7221
7221
|
return /* @__PURE__ */ a("div", { className: "relative flex w-full flex-col", children: [
|
|
7222
7222
|
/* @__PURE__ */ e("div", { className: "sticky top-0 flex max-h-11 min-h-11 grow items-center font-mono text-xs font-semibold text-foreground/70", children: "Python Output" }),
|
|
7223
|
-
/* @__PURE__ */ a(
|
|
7223
|
+
/* @__PURE__ */ a(Ja, { className: "overflow-y-auto pt-1 font-mono text-xs text-foreground/90", children: [
|
|
7224
7224
|
/* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: s } }),
|
|
7225
7225
|
/* @__PURE__ */ e(Zs, { orientation: "horizontal" })
|
|
7226
7226
|
] })
|
|
@@ -7715,7 +7715,7 @@ function co() {
|
|
|
7715
7715
|
(!p || m) && /* @__PURE__ */ e(
|
|
7716
7716
|
sa,
|
|
7717
7717
|
{
|
|
7718
|
-
icon: /* @__PURE__ */ e(
|
|
7718
|
+
icon: /* @__PURE__ */ e(Ji, { className: "h-3.5 w-3.5" }),
|
|
7719
7719
|
className: "h-9 w-full",
|
|
7720
7720
|
label: "Select Plugin",
|
|
7721
7721
|
options: n,
|
|
@@ -7849,7 +7849,7 @@ function qh({
|
|
|
7849
7849
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7850
7850
|
/* @__PURE__ */ e(z, { children: "Color Range" }),
|
|
7851
7851
|
/* @__PURE__ */ e(
|
|
7852
|
-
|
|
7852
|
+
Q,
|
|
7853
7853
|
{
|
|
7854
7854
|
onClick: o,
|
|
7855
7855
|
variant: "secondary",
|
|
@@ -7893,7 +7893,7 @@ function qh({
|
|
|
7893
7893
|
/* @__PURE__ */ e("option", { children: Mn.orange[500] })
|
|
7894
7894
|
] }),
|
|
7895
7895
|
/* @__PURE__ */ e(
|
|
7896
|
-
|
|
7896
|
+
Q,
|
|
7897
7897
|
{
|
|
7898
7898
|
onClick: () => d(c),
|
|
7899
7899
|
variant: "secondary",
|
|
@@ -8443,7 +8443,7 @@ function jl({
|
|
|
8443
8443
|
children: [
|
|
8444
8444
|
/* @__PURE__ */ a("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
8445
8445
|
/* @__PURE__ */ e(z, { children: s }),
|
|
8446
|
-
/* @__PURE__ */ e(
|
|
8446
|
+
/* @__PURE__ */ e(Qn, { className: "h-4 w-4" })
|
|
8447
8447
|
] }),
|
|
8448
8448
|
/* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
|
|
8449
8449
|
]
|
|
@@ -8564,7 +8564,7 @@ function mo() {
|
|
|
8564
8564
|
);
|
|
8565
8565
|
}) });
|
|
8566
8566
|
}
|
|
8567
|
-
const
|
|
8567
|
+
const Qh = [
|
|
8568
8568
|
{
|
|
8569
8569
|
label: "Mercator",
|
|
8570
8570
|
value: "mercator"
|
|
@@ -8621,7 +8621,7 @@ const Jh = [
|
|
|
8621
8621
|
label: "Natural Earth 1",
|
|
8622
8622
|
value: "naturalEarth1"
|
|
8623
8623
|
}
|
|
8624
|
-
],
|
|
8624
|
+
], Jh = [
|
|
8625
8625
|
"blues",
|
|
8626
8626
|
"brBG",
|
|
8627
8627
|
"buGn",
|
|
@@ -8660,7 +8660,7 @@ const Jh = [
|
|
|
8660
8660
|
"ylGnBu",
|
|
8661
8661
|
"ylOrBr",
|
|
8662
8662
|
"ylOrRd"
|
|
8663
|
-
], Yh =
|
|
8663
|
+
], Yh = Jh.map((t) => ({
|
|
8664
8664
|
label: t,
|
|
8665
8665
|
value: t
|
|
8666
8666
|
}));
|
|
@@ -8756,7 +8756,7 @@ function Wh() {
|
|
|
8756
8756
|
sa,
|
|
8757
8757
|
{
|
|
8758
8758
|
className: "h-9",
|
|
8759
|
-
options:
|
|
8759
|
+
options: Qh,
|
|
8760
8760
|
value: ((b = (y = t.preferences) == null ? void 0 : y.mapVisualOptions) == null ? void 0 : b.projection) || "",
|
|
8761
8761
|
label: "Projection",
|
|
8762
8762
|
onValueChange: (g) => {
|
|
@@ -8990,8 +8990,8 @@ function ho({ color: t, onColorChange: s, onClose: n }) {
|
|
|
8990
8990
|
] })
|
|
8991
8991
|
] }),
|
|
8992
8992
|
/* @__PURE__ */ a("div", { className: "flex gap-2 justify-end", children: [
|
|
8993
|
-
/* @__PURE__ */ e(
|
|
8994
|
-
/* @__PURE__ */ e(
|
|
8993
|
+
/* @__PURE__ */ e(Q, { variant: "outline", onClick: n, children: "Cancel" }),
|
|
8994
|
+
/* @__PURE__ */ e(Q, { onClick: b, children: "OK" })
|
|
8995
8995
|
] })
|
|
8996
8996
|
] });
|
|
8997
8997
|
}
|
|
@@ -9550,7 +9550,7 @@ function lp({
|
|
|
9550
9550
|
);
|
|
9551
9551
|
return /* @__PURE__ */ a(Tt, { open: n, onOpenChange: r, children: [
|
|
9552
9552
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ a(
|
|
9553
|
-
|
|
9553
|
+
Q,
|
|
9554
9554
|
{
|
|
9555
9555
|
size: "sm",
|
|
9556
9556
|
variant: "outline",
|
|
@@ -9568,7 +9568,7 @@ function lp({
|
|
|
9568
9568
|
/* @__PURE__ */ a(Ga, { children: [
|
|
9569
9569
|
/* @__PURE__ */ e(Ua, { children: "No column found." }),
|
|
9570
9570
|
/* @__PURE__ */ e(Ha, { children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ a(
|
|
9571
|
-
|
|
9571
|
+
Qa,
|
|
9572
9572
|
{
|
|
9573
9573
|
value: l(i),
|
|
9574
9574
|
onSelect: () => {
|
|
@@ -10171,7 +10171,7 @@ function Rt({
|
|
|
10171
10171
|
),
|
|
10172
10172
|
c && o !== t && /* @__PURE__ */ a(Ne, { children: [
|
|
10173
10173
|
/* @__PURE__ */ e(
|
|
10174
|
-
|
|
10174
|
+
Q,
|
|
10175
10175
|
{
|
|
10176
10176
|
variant: "ghost",
|
|
10177
10177
|
size: "icon",
|
|
@@ -10182,7 +10182,7 @@ function Rt({
|
|
|
10182
10182
|
}
|
|
10183
10183
|
),
|
|
10184
10184
|
/* @__PURE__ */ e(
|
|
10185
|
-
|
|
10185
|
+
Q,
|
|
10186
10186
|
{
|
|
10187
10187
|
variant: "ghost",
|
|
10188
10188
|
size: "icon",
|
|
@@ -10546,7 +10546,7 @@ function fp() {
|
|
|
10546
10546
|
), { setLegendOptions: r } = pe();
|
|
10547
10547
|
if (!t || !Hd(s))
|
|
10548
10548
|
return null;
|
|
10549
|
-
const d =
|
|
10549
|
+
const d = Qd(s), o = (d == null ? void 0 : d.display) ?? !0, l = (d == null ? void 0 : d.position) ?? "top", c = (d == null ? void 0 : d.align) ?? "center", i = (f, p) => {
|
|
10550
10550
|
const m = {
|
|
10551
10551
|
...n,
|
|
10552
10552
|
[f]: p
|
|
@@ -10614,7 +10614,7 @@ function gp() {
|
|
|
10614
10614
|
var q;
|
|
10615
10615
|
return (q = V.card) == null ? void 0 : q.preferences;
|
|
10616
10616
|
}), { setCardPreferences: d, updateCardInFrame: o } = pe();
|
|
10617
|
-
if (!t || !
|
|
10617
|
+
if (!t || !Jd(s))
|
|
10618
10618
|
return null;
|
|
10619
10619
|
const l = s === "bullet" ? ((O = r == null ? void 0 : r.bulletConfig) == null ? void 0 : O.orientation) ?? (((L = r == null ? void 0 : r.chartOptions) == null ? void 0 : L.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, c = l != null ? l === "horizontal" : ((x = r == null ? void 0 : r.chartOptions) == null ? void 0 : x.indexAxis) === "y", i = s === "stackedBar" || s === "stackedLine", u = s === "pie" || s === "doughnut" || s === "polarArea" || s === "funnel", h = s === "bubble" || s === "scatter", f = (w = (A = r == null ? void 0 : r.chartOptions) == null ? void 0 : A.plugins) == null ? void 0 : w.datalabels, p = (f == null ? void 0 : f.display) !== !1 && ((f == null ? void 0 : f.anchor) || (f == null ? void 0 : f.align)), m = Yd(
|
|
10620
10620
|
s,
|
|
@@ -10882,7 +10882,7 @@ function gp() {
|
|
|
10882
10882
|
] }) })
|
|
10883
10883
|
] });
|
|
10884
10884
|
}
|
|
10885
|
-
const
|
|
10885
|
+
const Ql = {
|
|
10886
10886
|
difference: {
|
|
10887
10887
|
label: "Difference",
|
|
10888
10888
|
description: "Shows the exact difference between two values.",
|
|
@@ -10968,7 +10968,7 @@ function xp() {
|
|
|
10968
10968
|
/* @__PURE__ */ a(mt, { children: [
|
|
10969
10969
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(qt, { className: "h-3 w-3 cursor-help text-muted-foreground" }) }),
|
|
10970
10970
|
/* @__PURE__ */ e(gt, { side: "right", className: "max-w-xs", children: (() => {
|
|
10971
|
-
const T = i.calculationType || "difference", D =
|
|
10971
|
+
const T = i.calculationType || "difference", D = Ql[T];
|
|
10972
10972
|
return /* @__PURE__ */ a("div", { className: "space-y-2 text-xs", children: [
|
|
10973
10973
|
/* @__PURE__ */ e("div", { className: "text-sm font-semibold", children: D == null ? void 0 : D.label }),
|
|
10974
10974
|
/* @__PURE__ */ e("p", { children: D == null ? void 0 : D.description }),
|
|
@@ -10995,7 +10995,7 @@ function xp() {
|
|
|
10995
10995
|
}),
|
|
10996
10996
|
children: [
|
|
10997
10997
|
/* @__PURE__ */ e(te, { id: "calculation-type", className: "h-7 text-xs", children: /* @__PURE__ */ e(ae, {}) }),
|
|
10998
|
-
/* @__PURE__ */ e(ne, { children: Object.entries(
|
|
10998
|
+
/* @__PURE__ */ e(ne, { children: Object.entries(Ql).map(([T, D]) => /* @__PURE__ */ e(j, { value: T, className: "text-xs", children: D.label }, T)) })
|
|
10999
10999
|
]
|
|
11000
11000
|
}
|
|
11001
11001
|
)
|
|
@@ -11435,7 +11435,7 @@ function yp() {
|
|
|
11435
11435
|
] })
|
|
11436
11436
|
] }) : null;
|
|
11437
11437
|
}
|
|
11438
|
-
const
|
|
11438
|
+
const Jl = ["poor", "satisfactory", "good"];
|
|
11439
11439
|
function Yl(t) {
|
|
11440
11440
|
if (!t) return;
|
|
11441
11441
|
const s = { ...t };
|
|
@@ -11491,7 +11491,7 @@ function Np() {
|
|
|
11491
11491
|
...o.rangeKeys || {}
|
|
11492
11492
|
};
|
|
11493
11493
|
let q = !1;
|
|
11494
|
-
if (
|
|
11494
|
+
if (Jl.forEach((re, U) => {
|
|
11495
11495
|
!V[re] && R[U] && (V[re] = R[U].value, q = !0);
|
|
11496
11496
|
}), q && (x.rangeKeys = V, A = !0, o.showRanges === void 0 && (x.showRanges = !0)), A) {
|
|
11497
11497
|
const re = Yl({
|
|
@@ -11723,7 +11723,7 @@ function Np() {
|
|
|
11723
11723
|
/* @__PURE__ */ e("span", { children: "Use % of value" })
|
|
11724
11724
|
] })
|
|
11725
11725
|
] }),
|
|
11726
|
-
i && /* @__PURE__ */ e("div", { className: "space-y-3", children:
|
|
11726
|
+
i && /* @__PURE__ */ e("div", { className: "space-y-3", children: Jl.map((x) => {
|
|
11727
11727
|
var A, w, B, R, V;
|
|
11728
11728
|
return /* @__PURE__ */ a(
|
|
11729
11729
|
"div",
|
|
@@ -13310,8 +13310,8 @@ function Hp({ metricKey: t, idx: s }) {
|
|
|
13310
13310
|
] }) }) })
|
|
13311
13311
|
] }) });
|
|
13312
13312
|
}
|
|
13313
|
-
const
|
|
13314
|
-
function
|
|
13313
|
+
const Qp = [0, 2, 4, 6, 8, 10, 12, 16, 20];
|
|
13314
|
+
function Jp() {
|
|
13315
13315
|
const t = F((s) => {
|
|
13316
13316
|
var n;
|
|
13317
13317
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -13419,7 +13419,7 @@ function Wp({ metricKey: t, idx: s }) {
|
|
|
13419
13419
|
onValueChange: (b) => f({ borderRadius: Number(b) }),
|
|
13420
13420
|
children: [
|
|
13421
13421
|
/* @__PURE__ */ e(te, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ae, {}) }),
|
|
13422
|
-
/* @__PURE__ */ e(ne, { children:
|
|
13422
|
+
/* @__PURE__ */ e(ne, { children: Qp.map((b) => /* @__PURE__ */ e(
|
|
13423
13423
|
j,
|
|
13424
13424
|
{
|
|
13425
13425
|
value: String(b),
|
|
@@ -13967,7 +13967,7 @@ function po({ mode: t }) {
|
|
|
13967
13967
|
s === "combo" && /* @__PURE__ */ e(Fp, {}),
|
|
13968
13968
|
(s === "area" || s === "stackedArea") && /* @__PURE__ */ e(_p, {}),
|
|
13969
13969
|
s === "line" && /* @__PURE__ */ e(Gp, {}),
|
|
13970
|
-
(s === "bar" || s === "horizontalBar" || s === "stackedBar") && /* @__PURE__ */ e(
|
|
13970
|
+
(s === "bar" || s === "horizontalBar" || s === "stackedBar") && /* @__PURE__ */ e(Jp, {}),
|
|
13971
13971
|
/* @__PURE__ */ e(tf, {}),
|
|
13972
13972
|
/* @__PURE__ */ e(rf, {}),
|
|
13973
13973
|
/* @__PURE__ */ e(bp, {}),
|
|
@@ -14017,7 +14017,7 @@ function xf() {
|
|
|
14017
14017
|
return /* @__PURE__ */ e(gf, {});
|
|
14018
14018
|
}
|
|
14019
14019
|
}
|
|
14020
|
-
return /* @__PURE__ */ a(
|
|
14020
|
+
return /* @__PURE__ */ a(Ja, { className: "h-full w-full text-sm", children: [
|
|
14021
14021
|
r(),
|
|
14022
14022
|
/* @__PURE__ */ e(Zs, { orientation: "horizontal" })
|
|
14023
14023
|
] });
|
|
@@ -14044,7 +14044,7 @@ function bf() {
|
|
|
14044
14044
|
}
|
|
14045
14045
|
),
|
|
14046
14046
|
/* @__PURE__ */ e(
|
|
14047
|
-
|
|
14047
|
+
Qt,
|
|
14048
14048
|
{
|
|
14049
14049
|
withHandle: !0,
|
|
14050
14050
|
className: "data-[panel-group-direction=vertical]:ml-2 data-[panel-group-direction=vertical]:mr-6 data-[panel-group-direction=vertical]:w-auto"
|
|
@@ -14068,7 +14068,7 @@ function bf() {
|
|
|
14068
14068
|
children: /* @__PURE__ */ e(xf, {})
|
|
14069
14069
|
}
|
|
14070
14070
|
) }),
|
|
14071
|
-
!d && /* @__PURE__ */ e(
|
|
14071
|
+
!d && /* @__PURE__ */ e(Qt, {}),
|
|
14072
14072
|
/* @__PURE__ */ e(it, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e(
|
|
14073
14073
|
ql,
|
|
14074
14074
|
{
|
|
@@ -14096,7 +14096,7 @@ function bf() {
|
|
|
14096
14096
|
);
|
|
14097
14097
|
}
|
|
14098
14098
|
function vf(t) {
|
|
14099
|
-
var
|
|
14099
|
+
var Je;
|
|
14100
14100
|
mn(
|
|
14101
14101
|
(H) => H.currentAIContext
|
|
14102
14102
|
);
|
|
@@ -14124,7 +14124,7 @@ function vf(t) {
|
|
|
14124
14124
|
errorMessage: E,
|
|
14125
14125
|
refetch: g,
|
|
14126
14126
|
data: P
|
|
14127
|
-
} = Ct(_), { setTriggerAIRun: N, setCurrentAssitantScope: O, setCardConfig: L } = pe(), { selectedDatamodelName: x, connectionType: A, selectedDatamodelId: w } = iu(), B = (
|
|
14127
|
+
} = Ct(_), { setTriggerAIRun: N, setCurrentAssitantScope: O, setCardConfig: L } = pe(), { selectedDatamodelName: x, connectionType: A, selectedDatamodelId: w } = iu(), B = (Je = mi().data) == null ? void 0 : Je.assistantProfileId, R = Ee(En()), V = Ee(null), q = Ee(c), $ = Ee(!1), Y = () => {
|
|
14128
14128
|
const H = V.current;
|
|
14129
14129
|
H && (V.current = null, R.current = En(), H === "clear" && U([]));
|
|
14130
14130
|
}, {
|
|
@@ -14229,10 +14229,10 @@ function vf(t) {
|
|
|
14229
14229
|
}), N(!1));
|
|
14230
14230
|
}, [I, S, ie, N]);
|
|
14231
14231
|
async function Le({ toolCall: H }) {
|
|
14232
|
-
var ge, _e, lt, le, Oe, $e, Xe, qe, ct, xt,
|
|
14232
|
+
var ge, _e, lt, le, Oe, $e, Xe, qe, ct, xt, Jt, jt, Kt, he, Ye, rt;
|
|
14233
14233
|
if (["createChartFromSql", "createForecast"].includes(H.toolName)) {
|
|
14234
|
-
const Re = ((ge = H.input) == null ? void 0 : ge.sql) ?? ((_e = H.args) == null ? void 0 : _e.sql), Ot = ((lt = H.input) == null ? void 0 : lt.python) ?? ((le = H.args) == null ? void 0 : le.python),
|
|
14235
|
-
y(
|
|
14234
|
+
const Re = ((ge = H.input) == null ? void 0 : ge.sql) ?? ((_e = H.args) == null ? void 0 : _e.sql), Ot = ((lt = H.input) == null ? void 0 : lt.python) ?? ((le = H.args) == null ? void 0 : le.python), Qe = ((Oe = H.input) == null ? void 0 : Oe.chartType) ?? (($e = H.args) == null ? void 0 : $e.chartType);
|
|
14235
|
+
y(Qe), p(Re), f(Ot), m(!0), be({
|
|
14236
14236
|
tool: H.toolName,
|
|
14237
14237
|
toolCallId: H.toolCallId,
|
|
14238
14238
|
output: {
|
|
@@ -14264,21 +14264,21 @@ function vf(t) {
|
|
|
14264
14264
|
} else if (H.toolName === "generateQueryConfig") {
|
|
14265
14265
|
n("Generating query config...");
|
|
14266
14266
|
const Re = ((Xe = H.input) == null ? void 0 : Xe.chartType) ?? ((qe = H.args) == null ? void 0 : qe.chartType), Ot = ((ct = H.input) == null ? void 0 : ct.queryConfig) ?? ((xt = H.args) == null ? void 0 : xt.queryConfig);
|
|
14267
|
-
((
|
|
14268
|
-
const
|
|
14269
|
-
if ((Kt =
|
|
14267
|
+
((Jt = H.input) == null ? void 0 : Jt.cardConfig) ?? ((jt = H.args) == null || jt.cardConfig), y(Re), L(Ot), p(void 0), f(void 0);
|
|
14268
|
+
const Qe = await g();
|
|
14269
|
+
if ((Kt = Qe == null ? void 0 : Qe.data) != null && Kt.error) {
|
|
14270
14270
|
be({
|
|
14271
14271
|
tool: H.toolName,
|
|
14272
14272
|
toolCallId: H.toolCallId,
|
|
14273
14273
|
output: {
|
|
14274
14274
|
status: "error",
|
|
14275
14275
|
queryConfig: Ot,
|
|
14276
|
-
message: (he =
|
|
14276
|
+
message: (he = Qe == null ? void 0 : Qe.data) == null ? void 0 : he.error.message
|
|
14277
14277
|
}
|
|
14278
14278
|
});
|
|
14279
14279
|
return;
|
|
14280
14280
|
}
|
|
14281
|
-
if ((Ye =
|
|
14281
|
+
if ((Ye = Qe == null ? void 0 : Qe.data) != null && Ye.records) {
|
|
14282
14282
|
be({
|
|
14283
14283
|
tool: H.toolName,
|
|
14284
14284
|
toolCallId: H.toolCallId,
|
|
@@ -14297,7 +14297,7 @@ function vf(t) {
|
|
|
14297
14297
|
status: "success",
|
|
14298
14298
|
queryConfig: Ot,
|
|
14299
14299
|
message: "The data has been visualized",
|
|
14300
|
-
records: (rt =
|
|
14300
|
+
records: (rt = Qe == null ? void 0 : Qe.data) == null ? void 0 : rt.records
|
|
14301
14301
|
}
|
|
14302
14302
|
});
|
|
14303
14303
|
} else
|
|
@@ -14451,7 +14451,7 @@ function Zl({
|
|
|
14451
14451
|
newMessageCount: ze,
|
|
14452
14452
|
scrollToBottom: Fe,
|
|
14453
14453
|
handleScroll: je,
|
|
14454
|
-
resetNewMessageCount:
|
|
14454
|
+
resetNewMessageCount: Je
|
|
14455
14455
|
} = yu(fe, {
|
|
14456
14456
|
threshold: 40,
|
|
14457
14457
|
behavior: "smooth",
|
|
@@ -14540,7 +14540,7 @@ function Zl({
|
|
|
14540
14540
|
function xt() {
|
|
14541
14541
|
return /* @__PURE__ */ a(Ya, { children: [
|
|
14542
14542
|
/* @__PURE__ */ e(Wa, { asChild: !0, children: /* @__PURE__ */ e(
|
|
14543
|
-
|
|
14543
|
+
Q,
|
|
14544
14544
|
{
|
|
14545
14545
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
14546
14546
|
size: "sm",
|
|
@@ -14578,7 +14578,7 @@ function Zl({
|
|
|
14578
14578
|
] })
|
|
14579
14579
|
] });
|
|
14580
14580
|
}
|
|
14581
|
-
function
|
|
14581
|
+
function Jt() {
|
|
14582
14582
|
return /* @__PURE__ */ e("div", { "data-role": "header", children: /* @__PURE__ */ e("div", { className: "text-lg font-semibold", children: "Assistant" }) });
|
|
14583
14583
|
}
|
|
14584
14584
|
const jt = (oe == null ? void 0 : oe.length) === 0 && (B == null ? void 0 : B.filter((he) => he.role === "user").length) === 0, Kt = /* @__PURE__ */ a(
|
|
@@ -14596,9 +14596,9 @@ function Zl({
|
|
|
14596
14596
|
"data-role": "header-section",
|
|
14597
14597
|
className: "flex items-start justify-between gap-2",
|
|
14598
14598
|
children: [
|
|
14599
|
-
|
|
14599
|
+
Jt(),
|
|
14600
14600
|
O && /* @__PURE__ */ e(
|
|
14601
|
-
|
|
14601
|
+
Q,
|
|
14602
14602
|
{
|
|
14603
14603
|
variant: "outline",
|
|
14604
14604
|
size: "sm",
|
|
@@ -14610,7 +14610,7 @@ function Zl({
|
|
|
14610
14610
|
/* @__PURE__ */ a("div", { "data-role": "header-actions", className: "flex items-center", children: [
|
|
14611
14611
|
xt(),
|
|
14612
14612
|
c && /* @__PURE__ */ e(
|
|
14613
|
-
|
|
14613
|
+
Q,
|
|
14614
14614
|
{
|
|
14615
14615
|
variant: "ghost",
|
|
14616
14616
|
size: "sm",
|
|
@@ -14640,7 +14640,7 @@ function Zl({
|
|
|
14640
14640
|
}
|
|
14641
14641
|
),
|
|
14642
14642
|
/* @__PURE__ */ e(
|
|
14643
|
-
|
|
14643
|
+
Q,
|
|
14644
14644
|
{
|
|
14645
14645
|
variant: "ghost",
|
|
14646
14646
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
@@ -14669,7 +14669,7 @@ function Zl({
|
|
|
14669
14669
|
"data-role": "messages",
|
|
14670
14670
|
children: [
|
|
14671
14671
|
ke && /* @__PURE__ */ e("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ a(
|
|
14672
|
-
|
|
14672
|
+
Q,
|
|
14673
14673
|
{
|
|
14674
14674
|
variant: "outline",
|
|
14675
14675
|
size: "sm",
|
|
@@ -14711,10 +14711,10 @@ function Zl({
|
|
|
14711
14711
|
}
|
|
14712
14712
|
),
|
|
14713
14713
|
N && !ue && /* @__PURE__ */ e("div", { className: "absolute bottom-24 right-8 z-10", children: /* @__PURE__ */ a(
|
|
14714
|
-
|
|
14714
|
+
Q,
|
|
14715
14715
|
{
|
|
14716
14716
|
onClick: () => {
|
|
14717
|
-
Fe({ force: !0 }),
|
|
14717
|
+
Fe({ force: !0 }), Je();
|
|
14718
14718
|
},
|
|
14719
14719
|
size: "sm",
|
|
14720
14720
|
variant: "secondary",
|
|
@@ -14837,7 +14837,7 @@ function Cf({
|
|
|
14837
14837
|
),
|
|
14838
14838
|
d && n !== t && /* @__PURE__ */ a(Ne, { children: [
|
|
14839
14839
|
/* @__PURE__ */ e(
|
|
14840
|
-
|
|
14840
|
+
Q,
|
|
14841
14841
|
{
|
|
14842
14842
|
variant: "ghost",
|
|
14843
14843
|
size: "icon",
|
|
@@ -14850,7 +14850,7 @@ function Cf({
|
|
|
14850
14850
|
}
|
|
14851
14851
|
),
|
|
14852
14852
|
/* @__PURE__ */ e(
|
|
14853
|
-
|
|
14853
|
+
Q,
|
|
14854
14854
|
{
|
|
14855
14855
|
variant: "ghost",
|
|
14856
14856
|
size: "icon",
|
|
@@ -14912,7 +14912,7 @@ function wf({
|
|
|
14912
14912
|
}
|
|
14913
14913
|
),
|
|
14914
14914
|
/* @__PURE__ */ e(
|
|
14915
|
-
|
|
14915
|
+
Q,
|
|
14916
14916
|
{
|
|
14917
14917
|
variant: "ghost",
|
|
14918
14918
|
size: "icon",
|
|
@@ -14923,7 +14923,7 @@ function wf({
|
|
|
14923
14923
|
}
|
|
14924
14924
|
),
|
|
14925
14925
|
/* @__PURE__ */ e(
|
|
14926
|
-
|
|
14926
|
+
Q,
|
|
14927
14927
|
{
|
|
14928
14928
|
variant: "ghost",
|
|
14929
14929
|
size: "icon",
|
|
@@ -14961,7 +14961,7 @@ function wf({
|
|
|
14961
14961
|
}
|
|
14962
14962
|
),
|
|
14963
14963
|
/* @__PURE__ */ e(
|
|
14964
|
-
|
|
14964
|
+
Q,
|
|
14965
14965
|
{
|
|
14966
14966
|
variant: "ghost",
|
|
14967
14967
|
size: "sm",
|
|
@@ -14973,7 +14973,7 @@ function wf({
|
|
|
14973
14973
|
)
|
|
14974
14974
|
] }) }, f + m)),
|
|
14975
14975
|
/* @__PURE__ */ a(
|
|
14976
|
-
|
|
14976
|
+
Q,
|
|
14977
14977
|
{
|
|
14978
14978
|
variant: "outline",
|
|
14979
14979
|
size: "sm",
|
|
@@ -15497,7 +15497,7 @@ function fo({
|
|
|
15497
15497
|
)
|
|
15498
15498
|
] }),
|
|
15499
15499
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-2 gap-2 max-h-[400px] overflow-y-auto", children: m.map((M) => /* @__PURE__ */ a(
|
|
15500
|
-
|
|
15500
|
+
Q,
|
|
15501
15501
|
{
|
|
15502
15502
|
variant: "outline",
|
|
15503
15503
|
className: "justify-start h-auto py-2 px-3",
|
|
@@ -15532,11 +15532,11 @@ function fo({
|
|
|
15532
15532
|
}
|
|
15533
15533
|
),
|
|
15534
15534
|
/* @__PURE__ */ a("div", { className: "flex justify-between pt-4 border-t", children: [
|
|
15535
|
-
/* @__PURE__ */ e("div", { children: l ? /* @__PURE__ */ e(
|
|
15535
|
+
/* @__PURE__ */ e("div", { children: l ? /* @__PURE__ */ e(Q, { variant: "destructive", onClick: v, children: "Delete Filter" }) : /* @__PURE__ */ e(Q, { variant: "outline", onClick: I, children: "Reset" }) }),
|
|
15536
15536
|
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
15537
|
-
/* @__PURE__ */ e(
|
|
15537
|
+
/* @__PURE__ */ e(Q, { variant: "outline", onClick: () => s(!1), children: "Cancel" }),
|
|
15538
15538
|
/* @__PURE__ */ e(
|
|
15539
|
-
|
|
15539
|
+
Q,
|
|
15540
15540
|
{
|
|
15541
15541
|
onClick: b,
|
|
15542
15542
|
disabled: !f.field || f.selectedValues.length === 0,
|
|
@@ -15572,7 +15572,7 @@ function Mf({
|
|
|
15572
15572
|
};
|
|
15573
15573
|
return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
15574
15574
|
r && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
15575
|
-
/* @__PURE__ */ e(
|
|
15575
|
+
/* @__PURE__ */ e(Q, { variant: "ghost", size: "sm", onClick: r, children: "← Back" }),
|
|
15576
15576
|
/* @__PURE__ */ a(z, { className: "text-sm font-medium", children: [
|
|
15577
15577
|
"Select values for ",
|
|
15578
15578
|
t.label
|
|
@@ -15635,7 +15635,7 @@ function Ef({
|
|
|
15635
15635
|
hasPivotColumns: o = !1,
|
|
15636
15636
|
cardType: l
|
|
15637
15637
|
}) {
|
|
15638
|
-
var Dr, Ar, Mr, Er, Or, Fr, Rr, Lr, Pr, Vr, Br, zr, _r, $r, qr, jr, Kr, Gr, Ur, Hr,
|
|
15638
|
+
var Dr, Ar, Mr, Er, Or, Fr, Rr, Lr, Pr, Vr, Br, zr, _r, $r, qr, jr, Kr, Gr, Ur, Hr, Qr, Jr, Yr, Wr, Xr, Zr, el, tl, al, nl, sl, rl, ll;
|
|
15639
15639
|
const {
|
|
15640
15640
|
attributes: c,
|
|
15641
15641
|
listeners: i,
|
|
@@ -15643,8 +15643,8 @@ function Ef({
|
|
|
15643
15643
|
transform: h,
|
|
15644
15644
|
transition: f,
|
|
15645
15645
|
isDragging: p
|
|
15646
|
-
} = ts({ id: t.id }), m = F((
|
|
15647
|
-
(
|
|
15646
|
+
} = ts({ id: t.id }), m = F((J) => J.card), y = F((J) => J.frame), b = Me((J) => J.isVisualEditing), v = Me((J) => J.selectedSheetId), S = Me(
|
|
15647
|
+
(J) => J.actions.updateSheetCalculatedFields
|
|
15648
15648
|
), {
|
|
15649
15649
|
scopedFields: I,
|
|
15650
15650
|
valuePickFilterableFields: _,
|
|
@@ -15673,13 +15673,13 @@ function Ef({
|
|
|
15673
15673
|
handleKpiTrendlineGranularityChange: oe,
|
|
15674
15674
|
handleMetricTargetValueChange: ve
|
|
15675
15675
|
} = qi(m), [Te, be] = G(!1), [fe, ke] = G(() => {
|
|
15676
|
-
var
|
|
15677
|
-
return !!((
|
|
15676
|
+
var J;
|
|
15677
|
+
return !!((J = t.parameters) != null && J.windowTransform);
|
|
15678
15678
|
}), [ie, Ve] = G(!1), [me, Le] = G(!1), [ot, ue] = G(null), Be = ce(() => {
|
|
15679
|
-
const
|
|
15679
|
+
const J = (xe) => xe != null && xe.startsWith("card-source-") ? xe.replace("card-source-", "") : xe, Z = J(t.id), we = I.find((xe) => {
|
|
15680
15680
|
if (t.qualifiedFieldName && xe.qualifiedFieldName && xe.qualifiedFieldName === t.qualifiedFieldName || t.qualifiedEntityName && xe.qualifiedEntityName && xe.qualifiedEntityName === t.qualifiedEntityName && xe.name === t.name)
|
|
15681
15681
|
return !0;
|
|
15682
|
-
const Ze =
|
|
15682
|
+
const Ze = J(xe.id);
|
|
15683
15683
|
return !!(Z && Ze && Z === Ze);
|
|
15684
15684
|
});
|
|
15685
15685
|
return {
|
|
@@ -15697,36 +15697,36 @@ function Ef({
|
|
|
15697
15697
|
Be.dataType
|
|
15698
15698
|
), [Fe, je] = G(
|
|
15699
15699
|
t.dateFormat || "YYYY-MM-DD"
|
|
15700
|
-
), [
|
|
15700
|
+
), [Je, H] = G(t.customFormat || ""), [ge, _e] = G(!!t.customFormat), lt = Ee(null), [le, Oe] = G(
|
|
15701
15701
|
t.aliasTemplate || ""
|
|
15702
15702
|
), [$e, Xe] = G(
|
|
15703
15703
|
t.valueAliases || {}
|
|
15704
|
-
), [qe, ct] = G((Dr = t.parameters) == null ? void 0 : Dr.filters), xt = (
|
|
15705
|
-
|
|
15706
|
-
},
|
|
15707
|
-
H(
|
|
15708
|
-
}, jt = (
|
|
15704
|
+
), [qe, ct] = G((Dr = t.parameters) == null ? void 0 : Dr.filters), xt = (J) => {
|
|
15705
|
+
J === "custom" ? _e(!0) : (_e(!1), je(J), (s === "groupBy" || Aa) && E(n, J, "", s));
|
|
15706
|
+
}, Jt = (J) => {
|
|
15707
|
+
H(J), (s === "groupBy" || Aa) && E(n, "custom", J, s);
|
|
15708
|
+
}, jt = (J) => {
|
|
15709
15709
|
var xe;
|
|
15710
|
-
const we = (xe = Cs(
|
|
15711
|
-
we && !ge && (je(we), s === "groupBy" && E(n, we, "", s)), s === "groupBy" && g(n,
|
|
15712
|
-
}, Kt = (
|
|
15713
|
-
Oe(
|
|
15714
|
-
}, he = (
|
|
15715
|
-
Xe(
|
|
15716
|
-
}, Ye = (
|
|
15717
|
-
D(s, n,
|
|
15718
|
-
}, rt = Bu(t), Re = zu(t), Ot = _u(t),
|
|
15719
|
-
(
|
|
15710
|
+
const we = (xe = Cs(J)[0]) == null ? void 0 : xe.value;
|
|
15711
|
+
we && !ge && (je(we), s === "groupBy" && E(n, we, "", s)), s === "groupBy" && g(n, J);
|
|
15712
|
+
}, Kt = (J) => {
|
|
15713
|
+
Oe(J), s === "metrics" && P(n, J);
|
|
15714
|
+
}, he = (J) => {
|
|
15715
|
+
Xe(J), s === "metrics" && N(n, J);
|
|
15716
|
+
}, Ye = (J) => {
|
|
15717
|
+
D(s, n, J);
|
|
15718
|
+
}, rt = Bu(t), Re = zu(t), Ot = _u(t), Qe = t.role === "metric" && Ot, nn = Ot && (rt === "user_calculated" || rt === "inline_expression" && t.fieldScope !== "domain"), Yt = nn ? (Ar = y == null ? void 0 : y.calculatedFields) == null ? void 0 : Ar.find(
|
|
15719
|
+
(J) => $u(J, t, {
|
|
15720
15720
|
allowComparableFallback: !0
|
|
15721
15721
|
})
|
|
15722
|
-
) : void 0, Nn = nn && (t.fieldScope === "dashboard" || t.fieldScope === void 0 && !!Yt), Ft = rt === "domain_calculated" || t.fieldScope === "domain", Cn = Ft ? qu(t, I) : void 0, ka = Ft ? "domain" : Nn ? "dashboard" : "card", Wt = Ft ? Cn || t : Nn && Yt ? Yt : t, wn = (
|
|
15722
|
+
) : void 0, Nn = nn && (t.fieldScope === "dashboard" || t.fieldScope === void 0 && !!Yt), Ft = rt === "domain_calculated" || t.fieldScope === "domain", Cn = Ft ? qu(t, I) : void 0, ka = Ft ? "domain" : Nn ? "dashboard" : "card", Wt = Ft ? Cn || t : Nn && Yt ? Yt : t, wn = (J) => {
|
|
15723
15723
|
var Z;
|
|
15724
|
-
if (ct(
|
|
15724
|
+
if (ct(J), s === "metrics") {
|
|
15725
15725
|
const we = {
|
|
15726
15726
|
...t,
|
|
15727
15727
|
parameters: {
|
|
15728
15728
|
...t.parameters,
|
|
15729
|
-
filters:
|
|
15729
|
+
filters: J
|
|
15730
15730
|
}
|
|
15731
15731
|
}, xe = [...((Z = m.config) == null ? void 0 : Z.metricColumns) || []];
|
|
15732
15732
|
xe[n] = we, F.getState().actions.updateCardConfig(m.id, {
|
|
@@ -15741,22 +15741,22 @@ function Ef({
|
|
|
15741
15741
|
transition: f
|
|
15742
15742
|
}, Sn = et(
|
|
15743
15743
|
Be.dataType || t.dataType
|
|
15744
|
-
), Ia = Sn === "date", Da = l === "kpi", Aa = s === "detailColumns", Ma = (Mr = m.config) == null ? void 0 : Mr.metricColumns, It = (Er = m.config) == null ? void 0 : Er.groupByColumns, Vt = Me((
|
|
15744
|
+
), Ia = Sn === "date", Da = l === "kpi", Aa = s === "detailColumns", Ma = (Mr = m.config) == null ? void 0 : Mr.metricColumns, It = (Er = m.config) == null ? void 0 : Er.groupByColumns, Vt = Me((J) => {
|
|
15745
15745
|
var Z;
|
|
15746
|
-
return (Z =
|
|
15746
|
+
return (Z = J.dashboard) == null ? void 0 : Z.filters;
|
|
15747
15747
|
}), us = Me(
|
|
15748
|
-
(
|
|
15749
|
-
), Xt = t.granularity || "day", Tn = ze.includes(Xt) ? Xt : "day", rn = s === "groupBy" && !ze.includes(Xt), Ea = Cs(Tn), ms = ge ? "custom" : Ea.some((
|
|
15748
|
+
(J) => J.filterValues
|
|
15749
|
+
), Xt = t.granularity || "day", Tn = ze.includes(Xt) ? Xt : "day", rn = s === "groupBy" && !ze.includes(Xt), Ea = Cs(Tn), ms = ge ? "custom" : Ea.some((J) => J.value === Fe) ? Fe : ((Or = Ea[0]) == null ? void 0 : Or.value) ?? "YYYY-MM-DD";
|
|
15750
15750
|
Ce(() => {
|
|
15751
15751
|
var we;
|
|
15752
15752
|
if (C || !rn) {
|
|
15753
15753
|
lt.current = null;
|
|
15754
15754
|
return;
|
|
15755
15755
|
}
|
|
15756
|
-
const
|
|
15757
|
-
if (lt.current ===
|
|
15756
|
+
const J = `${t.id}:${Xt}:${Be.dataType || t.dataType || ""}:${n}`;
|
|
15757
|
+
if (lt.current === J)
|
|
15758
15758
|
return;
|
|
15759
|
-
lt.current =
|
|
15759
|
+
lt.current = J;
|
|
15760
15760
|
const Z = "day";
|
|
15761
15761
|
if (g(n, Z), !ge) {
|
|
15762
15762
|
const xe = (we = Cs(Z)[0]) == null ? void 0 : we.value;
|
|
@@ -15775,26 +15775,26 @@ function Ef({
|
|
|
15775
15775
|
Be.dataType,
|
|
15776
15776
|
s
|
|
15777
15777
|
]);
|
|
15778
|
-
const hs = !!l &&
|
|
15778
|
+
const hs = !!l && Ju.includes(l), ps = l === "kpi" || l === "table", Dt = ce(
|
|
15779
15779
|
() => It == null ? void 0 : It.find(
|
|
15780
|
-
(
|
|
15780
|
+
(J) => et(J.dataType || "") === "date"
|
|
15781
15781
|
),
|
|
15782
15782
|
[It]
|
|
15783
15783
|
), kn = ce(
|
|
15784
15784
|
() => (It || []).some(
|
|
15785
|
-
(
|
|
15785
|
+
(J) => et(J.dataType || "") === "date"
|
|
15786
15786
|
),
|
|
15787
15787
|
[It]
|
|
15788
15788
|
), Oa = ce(() => {
|
|
15789
15789
|
var xe;
|
|
15790
15790
|
if (!Dt) return !1;
|
|
15791
|
-
const
|
|
15792
|
-
if (!
|
|
15791
|
+
const J = (xe = m.config) == null ? void 0 : xe.filters;
|
|
15792
|
+
if (!J) return !1;
|
|
15793
15793
|
const Z = (Ze) => {
|
|
15794
15794
|
const at = Ze.field;
|
|
15795
15795
|
return at ? Dt.id && at.id === Dt.id || Dt.qualifiedFieldName && at.qualifiedFieldName === Dt.qualifiedFieldName ? !0 : at.name === Dt.name : !1;
|
|
15796
15796
|
}, we = (Ze) => Ze.conditions.some((bt) => et(bt.field.dataType || "") === "date" && Z(bt)) ? !0 : Ze.groups.some((bt) => we(bt));
|
|
15797
|
-
return we(
|
|
15797
|
+
return we(J);
|
|
15798
15798
|
}, [(Fr = m.config) == null ? void 0 : Fr.filters, Dt]), In = ce(
|
|
15799
15799
|
() => Nf(
|
|
15800
15800
|
Vt || [],
|
|
@@ -15810,7 +15810,7 @@ function Ef({
|
|
|
15810
15810
|
}), Ae = !!K.comparisonType && K.comparisonType !== "none", tt = Gu(
|
|
15811
15811
|
It || []
|
|
15812
15812
|
), st = ((Br = (Vr = (Pr = K.parameters) == null ? void 0 : Pr.windowTransform) == null ? void 0 : Vr.orderBy) == null ? void 0 : Br.fieldId) || "", Bt = (($r = (_r = (zr = K.parameters) == null ? void 0 : zr.windowTransform) == null ? void 0 : _r.orderBy) == null ? void 0 : $r.direction) || "asc", ca = tt.find(
|
|
15813
|
-
(
|
|
15813
|
+
(J) => J.id === st
|
|
15814
15814
|
), Zt = ye === "running_total" || ye === "moving_average" || ye === "previous_period_delta", ft = X && Zt && !!ca && et(ca.dataType || "") !== "date", Fa = Uu({
|
|
15815
15815
|
cardType: l || "table",
|
|
15816
15816
|
cardConfig: m.config || {},
|
|
@@ -15822,12 +15822,12 @@ function Ef({
|
|
|
15822
15822
|
m.config || {}
|
|
15823
15823
|
), wr = [
|
|
15824
15824
|
...(It || []).filter(
|
|
15825
|
-
(
|
|
15825
|
+
(J) => J.id && (!Zt || J.id !== st)
|
|
15826
15826
|
),
|
|
15827
|
-
...gs ? (((Kr = m.config) == null ? void 0 : Kr.pivotByColumns) || []).filter((
|
|
15828
|
-
], Sr = ((Hr = (Ur = (Gr = K.parameters) == null ? void 0 : Gr.windowTransform) == null ? void 0 : Ur.movingAverage) == null ? void 0 : Hr.windowSize) || 7, xo = ((Yr = (
|
|
15827
|
+
...gs ? (((Kr = m.config) == null ? void 0 : Kr.pivotByColumns) || []).filter((J) => J.id) : []
|
|
15828
|
+
], Sr = ((Hr = (Ur = (Gr = K.parameters) == null ? void 0 : Gr.windowTransform) == null ? void 0 : Ur.movingAverage) == null ? void 0 : Hr.windowSize) || 7, xo = ((Yr = (Jr = (Qr = K.parameters) == null ? void 0 : Qr.windowTransform) == null ? void 0 : Jr.movingAverage) == null ? void 0 : Yr.minPeriods) || 1, bo = ((Zr = (Xr = (Wr = K.parameters) == null ? void 0 : Wr.windowTransform) == null ? void 0 : Xr.previousPeriodDelta) == null ? void 0 : Zr.mode) || "absolute", Tr = ((al = (tl = (el = K.parameters) == null ? void 0 : el.windowTransform) == null ? void 0 : tl.percentOfTotal) == null ? void 0 : al.scope) || "grand_total", vo = ((rl = (sl = (nl = K.parameters) == null ? void 0 : nl.windowTransform) == null ? void 0 : sl.percentOfTotal) == null ? void 0 : rl.output) || "percent", yo = ce(
|
|
15829
15829
|
() => (Ma || []).some(
|
|
15830
|
-
(
|
|
15830
|
+
(J) => J.comparisonType === "start_vs_end"
|
|
15831
15831
|
),
|
|
15832
15832
|
[Ma]
|
|
15833
15833
|
);
|
|
@@ -15835,7 +15835,7 @@ function Ef({
|
|
|
15835
15835
|
X && ke(!0);
|
|
15836
15836
|
}, [X]);
|
|
15837
15837
|
const No = s !== "pivotBy" && s !== "sortBy", Co = Ia && s === "groupBy" && (!Da || yo), wo = !Da && Ia && (s === "groupBy" || Aa), So = l === "kpi" && Ia && s === "groupBy", To = s === "metrics", kr = hs && s === "metrics", ko = () => {
|
|
15838
|
-
const
|
|
15838
|
+
const J = t, Z = s === "metrics" && Qe;
|
|
15839
15839
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15840
15840
|
!Z && /* @__PURE__ */ e(
|
|
15841
15841
|
"div",
|
|
@@ -15848,17 +15848,17 @@ function Ef({
|
|
|
15848
15848
|
children: `${t.entityName}.${t.name}`
|
|
15849
15849
|
}
|
|
15850
15850
|
),
|
|
15851
|
-
Z &&
|
|
15851
|
+
Z && J.calculatedFormula && /* @__PURE__ */ a(
|
|
15852
15852
|
"div",
|
|
15853
15853
|
{
|
|
15854
|
-
title: kl(
|
|
15854
|
+
title: kl(J.calculatedFormula),
|
|
15855
15855
|
onPointerDown: (we) => {
|
|
15856
15856
|
we.stopPropagation();
|
|
15857
15857
|
},
|
|
15858
15858
|
className: "max-w-[270px] cursor-default overflow-hidden text-ellipsis whitespace-nowrap rounded bg-muted/50 px-1.5 py-0.5 font-mono text-xs text-primary",
|
|
15859
15859
|
children: [
|
|
15860
15860
|
"= ",
|
|
15861
|
-
kl(
|
|
15861
|
+
kl(J.calculatedFormula)
|
|
15862
15862
|
]
|
|
15863
15863
|
}
|
|
15864
15864
|
)
|
|
@@ -15880,7 +15880,7 @@ function Ef({
|
|
|
15880
15880
|
ee,
|
|
15881
15881
|
{
|
|
15882
15882
|
value: r || "asc",
|
|
15883
|
-
onValueChange: (
|
|
15883
|
+
onValueChange: (J) => d(J),
|
|
15884
15884
|
children: [
|
|
15885
15885
|
/* @__PURE__ */ e(te, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ae, {}) }),
|
|
15886
15886
|
/* @__PURE__ */ a(ne, { children: [
|
|
@@ -15899,7 +15899,7 @@ function Ef({
|
|
|
15899
15899
|
onValueChange: jt,
|
|
15900
15900
|
children: [
|
|
15901
15901
|
/* @__PURE__ */ e(te, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ae, { placeholder: "Select granularity..." }) }),
|
|
15902
|
-
/* @__PURE__ */ e(ne, { children: ze.map((
|
|
15902
|
+
/* @__PURE__ */ e(ne, { children: ze.map((J) => /* @__PURE__ */ e(j, { className: "text-xs", value: J, children: Il(J) }, J)) })
|
|
15903
15903
|
]
|
|
15904
15904
|
}
|
|
15905
15905
|
)
|
|
@@ -15914,14 +15914,14 @@ function Ef({
|
|
|
15914
15914
|
onValueChange: xt,
|
|
15915
15915
|
children: [
|
|
15916
15916
|
/* @__PURE__ */ e(te, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ae, { placeholder: "Select date format..." }) }),
|
|
15917
|
-
/* @__PURE__ */ e(ne, { children: Ea.map((
|
|
15917
|
+
/* @__PURE__ */ e(ne, { children: Ea.map((J) => /* @__PURE__ */ e(
|
|
15918
15918
|
j,
|
|
15919
15919
|
{
|
|
15920
15920
|
className: "text-xs",
|
|
15921
|
-
value:
|
|
15922
|
-
children:
|
|
15921
|
+
value: J.value,
|
|
15922
|
+
children: J.label
|
|
15923
15923
|
},
|
|
15924
|
-
|
|
15924
|
+
J.value
|
|
15925
15925
|
)) })
|
|
15926
15926
|
]
|
|
15927
15927
|
}
|
|
@@ -15931,11 +15931,11 @@ function Ef({
|
|
|
15931
15931
|
Ie,
|
|
15932
15932
|
{
|
|
15933
15933
|
placeholder: "Enter custom format (e.g., YYYY-MM-DD HH:mm)",
|
|
15934
|
-
value:
|
|
15935
|
-
onChange: (
|
|
15936
|
-
|
|
15934
|
+
value: Je,
|
|
15935
|
+
onChange: (J) => {
|
|
15936
|
+
J.stopPropagation(), Jt(J.target.value);
|
|
15937
15937
|
},
|
|
15938
|
-
onClick: (
|
|
15938
|
+
onClick: (J) => J.stopPropagation(),
|
|
15939
15939
|
className: "h-8 text-xs"
|
|
15940
15940
|
}
|
|
15941
15941
|
),
|
|
@@ -15944,8 +15944,8 @@ function Ef({
|
|
|
15944
15944
|
] })
|
|
15945
15945
|
] }) : null, Mo = () => {
|
|
15946
15946
|
var Z, we, xe, Ze;
|
|
15947
|
-
const
|
|
15948
|
-
return
|
|
15947
|
+
const J = So;
|
|
15948
|
+
return J ? /* @__PURE__ */ e(Ne, { children: J && /* @__PURE__ */ a(Ne, { children: [
|
|
15949
15949
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
15950
15950
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Show Trendline" }),
|
|
15951
15951
|
/* @__PURE__ */ e(
|
|
@@ -15998,12 +15998,12 @@ function Ef({
|
|
|
15998
15998
|
] }) }) : null;
|
|
15999
15999
|
}, Eo = () => {
|
|
16000
16000
|
if (!To) return null;
|
|
16001
|
-
const
|
|
16001
|
+
const J = Qe;
|
|
16002
16002
|
return /* @__PURE__ */ a(Ne, { children: [
|
|
16003
|
-
|
|
16003
|
+
J && T && !Ft && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
16004
16004
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Formula" }),
|
|
16005
16005
|
/* @__PURE__ */ a(
|
|
16006
|
-
|
|
16006
|
+
Q,
|
|
16007
16007
|
{
|
|
16008
16008
|
variant: "outline",
|
|
16009
16009
|
size: "sm",
|
|
@@ -16025,7 +16025,7 @@ function Ef({
|
|
|
16025
16025
|
onValueChange: (Z) => {
|
|
16026
16026
|
k(n, Z);
|
|
16027
16027
|
},
|
|
16028
|
-
disabled:
|
|
16028
|
+
disabled: J,
|
|
16029
16029
|
children: [
|
|
16030
16030
|
/* @__PURE__ */ e(te, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ae, { placeholder: "Select function..." }) }),
|
|
16031
16031
|
/* @__PURE__ */ a(ne, { children: [
|
|
@@ -16384,7 +16384,7 @@ function Ef({
|
|
|
16384
16384
|
)
|
|
16385
16385
|
] }) }),
|
|
16386
16386
|
/* @__PURE__ */ e(
|
|
16387
|
-
|
|
16387
|
+
Q,
|
|
16388
16388
|
{
|
|
16389
16389
|
variant: "ghost",
|
|
16390
16390
|
size: "sm",
|
|
@@ -16424,7 +16424,7 @@ function Ef({
|
|
|
16424
16424
|
Z.id
|
|
16425
16425
|
)) }),
|
|
16426
16426
|
/* @__PURE__ */ a(
|
|
16427
|
-
|
|
16427
|
+
Q,
|
|
16428
16428
|
{
|
|
16429
16429
|
variant: "outline",
|
|
16430
16430
|
size: "sm",
|
|
@@ -16481,8 +16481,8 @@ function Ef({
|
|
|
16481
16481
|
...i,
|
|
16482
16482
|
className: "flex shrink-0 cursor-grab items-center rounded-sm p-0.5 text-muted-foreground transition-colors hover:text-foreground active:cursor-grabbing",
|
|
16483
16483
|
"aria-label": `Drag ${Tl(t)}`,
|
|
16484
|
-
onClick: (
|
|
16485
|
-
|
|
16484
|
+
onClick: (J) => {
|
|
16485
|
+
J.stopPropagation();
|
|
16486
16486
|
},
|
|
16487
16487
|
children: /* @__PURE__ */ e(Na, { className: "h-3.5 w-3.5" })
|
|
16488
16488
|
}
|
|
@@ -16493,7 +16493,7 @@ function Ef({
|
|
|
16493
16493
|
"span",
|
|
16494
16494
|
{
|
|
16495
16495
|
className: W(
|
|
16496
|
-
|
|
16496
|
+
Qu,
|
|
16497
16497
|
Re.badgeClassName
|
|
16498
16498
|
),
|
|
16499
16499
|
children: Re.label
|
|
@@ -16515,33 +16515,33 @@ function Ef({
|
|
|
16515
16515
|
/* @__PURE__ */ e(_a, { className: "h-3 w-3" }),
|
|
16516
16516
|
/* @__PURE__ */ e("span", { children: qe.conditions.length })
|
|
16517
16517
|
] }) }),
|
|
16518
|
-
/* @__PURE__ */ e(gt, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: qe.conditions.map((
|
|
16519
|
-
|
|
16518
|
+
/* @__PURE__ */ e(gt, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: qe.conditions.map((J) => /* @__PURE__ */ a("div", { children: [
|
|
16519
|
+
J.field.label,
|
|
16520
16520
|
":",
|
|
16521
16521
|
" ",
|
|
16522
|
-
Array.isArray(
|
|
16523
|
-
] },
|
|
16522
|
+
Array.isArray(J.value) ? `${J.value.length} values` : String(J.value)
|
|
16523
|
+
] }, J.id)) }) })
|
|
16524
16524
|
] }) }),
|
|
16525
16525
|
s === "sortBy" && /* @__PURE__ */ e(
|
|
16526
|
-
|
|
16526
|
+
Q,
|
|
16527
16527
|
{
|
|
16528
16528
|
variant: "ghost",
|
|
16529
16529
|
size: "sm",
|
|
16530
16530
|
className: "h-6 w-6 shrink-0 p-0 text-foreground/55 hover:text-foreground",
|
|
16531
|
-
onClick: (
|
|
16532
|
-
|
|
16531
|
+
onClick: (J) => {
|
|
16532
|
+
J.stopPropagation(), d(r === "asc" ? "desc" : "asc");
|
|
16533
16533
|
},
|
|
16534
16534
|
children: r === "asc" ? /* @__PURE__ */ e(ri, { className: "h-3 w-3" }) : /* @__PURE__ */ e(li, { className: "h-3 w-3" })
|
|
16535
16535
|
}
|
|
16536
16536
|
),
|
|
16537
16537
|
/* @__PURE__ */ e(
|
|
16538
|
-
|
|
16538
|
+
Q,
|
|
16539
16539
|
{
|
|
16540
16540
|
variant: "ghost",
|
|
16541
16541
|
size: "sm",
|
|
16542
16542
|
className: "h-6 w-6 shrink-0 p-0 text-foreground/55 hover:text-foreground",
|
|
16543
|
-
onClick: (
|
|
16544
|
-
|
|
16543
|
+
onClick: (J) => {
|
|
16544
|
+
J.stopPropagation(), be(!Te);
|
|
16545
16545
|
},
|
|
16546
16546
|
children: /* @__PURE__ */ e(
|
|
16547
16547
|
Mt,
|
|
@@ -16552,13 +16552,13 @@ function Ef({
|
|
|
16552
16552
|
}
|
|
16553
16553
|
),
|
|
16554
16554
|
/* @__PURE__ */ e(
|
|
16555
|
-
|
|
16555
|
+
Q,
|
|
16556
16556
|
{
|
|
16557
16557
|
variant: "ghost",
|
|
16558
16558
|
size: "sm",
|
|
16559
16559
|
className: "h-6 w-6 shrink-0 p-0 text-foreground/55 hover:text-foreground",
|
|
16560
|
-
onClick: (
|
|
16561
|
-
|
|
16560
|
+
onClick: (J) => {
|
|
16561
|
+
J.stopPropagation(), sn();
|
|
16562
16562
|
},
|
|
16563
16563
|
children: /* @__PURE__ */ e(nt, { className: "h-2.5 w-2.5" })
|
|
16564
16564
|
}
|
|
@@ -16580,16 +16580,16 @@ function Ef({
|
|
|
16580
16580
|
fo,
|
|
16581
16581
|
{
|
|
16582
16582
|
open: ie,
|
|
16583
|
-
onOpenChange: (
|
|
16584
|
-
Ve(
|
|
16583
|
+
onOpenChange: (J) => {
|
|
16584
|
+
Ve(J), J || ue(null);
|
|
16585
16585
|
},
|
|
16586
16586
|
availableFields: _,
|
|
16587
16587
|
existingFilters: qe,
|
|
16588
16588
|
editingCondition: ot,
|
|
16589
|
-
onSave: (
|
|
16589
|
+
onSave: (J) => {
|
|
16590
16590
|
var Z;
|
|
16591
|
-
if (
|
|
16592
|
-
wn(
|
|
16591
|
+
if (J)
|
|
16592
|
+
wn(J);
|
|
16593
16593
|
else if (ct(void 0), s === "metrics") {
|
|
16594
16594
|
const we = {
|
|
16595
16595
|
...t,
|
|
@@ -16606,7 +16606,7 @@ function Ef({
|
|
|
16606
16606
|
}
|
|
16607
16607
|
}
|
|
16608
16608
|
),
|
|
16609
|
-
me && s === "metrics" &&
|
|
16609
|
+
me && s === "metrics" && Qe && /* @__PURE__ */ e(
|
|
16610
16610
|
ji,
|
|
16611
16611
|
{
|
|
16612
16612
|
open: me,
|
|
@@ -16616,9 +16616,9 @@ function Ef({
|
|
|
16616
16616
|
existingFieldScope: ka,
|
|
16617
16617
|
initialFieldType: "metric",
|
|
16618
16618
|
allowedFieldTypes: ["metric"],
|
|
16619
|
-
onSave: (
|
|
16619
|
+
onSave: (J) => {
|
|
16620
16620
|
var An;
|
|
16621
|
-
if (
|
|
16621
|
+
if (J.role !== "metric") return;
|
|
16622
16622
|
const { card: Z, frame: we, actions: xe } = F.getState(), Ze = ((An = Z.config) == null ? void 0 : An.metricColumns) || [], at = we.calculatedFields || [], {
|
|
16623
16623
|
nextActiveFields: bt,
|
|
16624
16624
|
nextStoredFields: on,
|
|
@@ -16627,7 +16627,7 @@ function Ef({
|
|
|
16627
16627
|
activeFields: Ze,
|
|
16628
16628
|
storedFields: Z.calculatedFields || [],
|
|
16629
16629
|
sharedFields: at,
|
|
16630
|
-
updatedField:
|
|
16630
|
+
updatedField: J,
|
|
16631
16631
|
editingField: Wt,
|
|
16632
16632
|
previousScope: ka
|
|
16633
16633
|
});
|
|
@@ -16644,9 +16644,9 @@ function Ef({
|
|
|
16644
16644
|
updateSheetCalculatedFields: S
|
|
16645
16645
|
});
|
|
16646
16646
|
},
|
|
16647
|
-
onSaveToDashboard: (
|
|
16647
|
+
onSaveToDashboard: (J) => {
|
|
16648
16648
|
var il;
|
|
16649
|
-
if (
|
|
16649
|
+
if (J.role !== "metric") return;
|
|
16650
16650
|
const { card: Z, frame: we, actions: xe } = F.getState(), Ze = t, at = ((il = Z.config) == null ? void 0 : il.metricColumns) || [], bt = we.calculatedFields || [], {
|
|
16651
16651
|
nextActiveFields: on,
|
|
16652
16652
|
nextStoredFields: Dn,
|
|
@@ -16656,7 +16656,7 @@ function Ef({
|
|
|
16656
16656
|
storedFields: Z.calculatedFields || [],
|
|
16657
16657
|
sharedFields: bt,
|
|
16658
16658
|
updatedField: {
|
|
16659
|
-
...
|
|
16659
|
+
...J,
|
|
16660
16660
|
id: Ze.id,
|
|
16661
16661
|
aliasTemplate: Ze.aliasTemplate,
|
|
16662
16662
|
valueAliases: Ze.valueAliases,
|
|
@@ -16984,7 +16984,7 @@ function Rf({
|
|
|
16984
16984
|
}
|
|
16985
16985
|
),
|
|
16986
16986
|
n.length >= 1 && w && /* @__PURE__ */ a(
|
|
16987
|
-
|
|
16987
|
+
Q,
|
|
16988
16988
|
{
|
|
16989
16989
|
variant: "outline",
|
|
16990
16990
|
size: "sm",
|
|
@@ -17031,7 +17031,7 @@ function Rf({
|
|
|
17031
17031
|
className: "rounded-xl border border-border/55 border-b-0 bg-card px-3 shadow-[0_1px_2px_rgba(15,23,42,0.04)]",
|
|
17032
17032
|
children: [
|
|
17033
17033
|
/* @__PURE__ */ e(Ge, { className: "flex w-full items-center gap-2 py-2.5 text-xs font-semibold tracking-wide text-foreground/70 outline-none ring-0 hover:no-underline focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
17034
|
-
/* @__PURE__ */ e(
|
|
17034
|
+
/* @__PURE__ */ e(Ji, { className: "h-4 w-4 text-foreground/60" }),
|
|
17035
17035
|
/* @__PURE__ */ e("span", { children: "COMPONENT SETTINGS" })
|
|
17036
17036
|
] }) }),
|
|
17037
17037
|
/* @__PURE__ */ e(Ue, { className: "mb-2 rounded-md bg-muted/20 px-3 py-0.5", children: /* @__PURE__ */ e(co, {}) })
|
|
@@ -17173,7 +17173,7 @@ function Lf({ onEditJoins: t }) {
|
|
|
17173
17173
|
] }) })
|
|
17174
17174
|
] }),
|
|
17175
17175
|
t && /* @__PURE__ */ e(
|
|
17176
|
-
|
|
17176
|
+
Q,
|
|
17177
17177
|
{
|
|
17178
17178
|
variant: "ghost",
|
|
17179
17179
|
size: "sm",
|
|
@@ -17302,7 +17302,7 @@ function Pf({
|
|
|
17302
17302
|
className: "h-7 px-2 text-xs"
|
|
17303
17303
|
}
|
|
17304
17304
|
) }) }),
|
|
17305
|
-
/* @__PURE__ */ e(
|
|
17305
|
+
/* @__PURE__ */ e(Ja, { className: "min-h-0 w-full flex-1 basis-0", children: /* @__PURE__ */ a(
|
|
17306
17306
|
"div",
|
|
17307
17307
|
{
|
|
17308
17308
|
className: W(
|
|
@@ -17610,7 +17610,7 @@ function _f({
|
|
|
17610
17610
|
}, [n]);
|
|
17611
17611
|
return /* @__PURE__ */ a(Tt, { modal: !0, open: o, onOpenChange: l, children: [
|
|
17612
17612
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ a(
|
|
17613
|
-
|
|
17613
|
+
Q,
|
|
17614
17614
|
{
|
|
17615
17615
|
variant: "outline",
|
|
17616
17616
|
role: "combobox",
|
|
@@ -17646,7 +17646,7 @@ function _f({
|
|
|
17646
17646
|
/* @__PURE__ */ e("span", { children: f[0].entityName })
|
|
17647
17647
|
] }),
|
|
17648
17648
|
f.map((p, m) => /* @__PURE__ */ a(
|
|
17649
|
-
|
|
17649
|
+
Qa,
|
|
17650
17650
|
{
|
|
17651
17651
|
value: p.id,
|
|
17652
17652
|
onSelect: () => {
|
|
@@ -17751,7 +17751,7 @@ function $f({
|
|
|
17751
17751
|
};
|
|
17752
17752
|
return /* @__PURE__ */ e("div", { className: W("w-full", d), children: /* @__PURE__ */ a(Tt, { open: o, onOpenChange: l, modal: !0, children: [
|
|
17753
17753
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ a(
|
|
17754
|
-
|
|
17754
|
+
Q,
|
|
17755
17755
|
{
|
|
17756
17756
|
variant: "outline",
|
|
17757
17757
|
role: "combobox",
|
|
@@ -17789,7 +17789,7 @@ function $f({
|
|
|
17789
17789
|
/* @__PURE__ */ a(Ga, { children: [
|
|
17790
17790
|
/* @__PURE__ */ e(Ua, { children: "No results found." }),
|
|
17791
17791
|
/* @__PURE__ */ e(Ha, { children: c.map((h, f) => /* @__PURE__ */ a(
|
|
17792
|
-
|
|
17792
|
+
Qa,
|
|
17793
17793
|
{
|
|
17794
17794
|
onSelect: () => u(h.value),
|
|
17795
17795
|
children: [
|
|
@@ -17926,7 +17926,7 @@ const Kf = [
|
|
|
17926
17926
|
"not in",
|
|
17927
17927
|
"isNull",
|
|
17928
17928
|
"isNotNull"
|
|
17929
|
-
], Hf = ["=", "!=", "isNull", "isNotNull"],
|
|
17929
|
+
], Hf = ["=", "!=", "isNull", "isNotNull"], Qf = [
|
|
17930
17930
|
"between",
|
|
17931
17931
|
// Default operator for dates
|
|
17932
17932
|
"=",
|
|
@@ -17937,7 +17937,7 @@ const Kf = [
|
|
|
17937
17937
|
">=",
|
|
17938
17938
|
"isNull",
|
|
17939
17939
|
"isNotNull"
|
|
17940
|
-
],
|
|
17940
|
+
], Jf = {
|
|
17941
17941
|
"=": "Equals",
|
|
17942
17942
|
"!=": "Not Equals",
|
|
17943
17943
|
">": "Greater Than",
|
|
@@ -17955,7 +17955,7 @@ const Kf = [
|
|
|
17955
17955
|
"not between": "Not Between"
|
|
17956
17956
|
};
|
|
17957
17957
|
function ti(t) {
|
|
17958
|
-
return
|
|
17958
|
+
return Jf[t] || At(t);
|
|
17959
17959
|
}
|
|
17960
17960
|
function Yf(t) {
|
|
17961
17961
|
switch (t) {
|
|
@@ -17966,7 +17966,7 @@ function Yf(t) {
|
|
|
17966
17966
|
case "boolean":
|
|
17967
17967
|
return Hf;
|
|
17968
17968
|
case "date":
|
|
17969
|
-
return
|
|
17969
|
+
return Qf;
|
|
17970
17970
|
default:
|
|
17971
17971
|
return Kf;
|
|
17972
17972
|
}
|
|
@@ -18145,7 +18145,7 @@ function go({
|
|
|
18145
18145
|
}
|
|
18146
18146
|
),
|
|
18147
18147
|
/* @__PURE__ */ e(
|
|
18148
|
-
|
|
18148
|
+
Q,
|
|
18149
18149
|
{
|
|
18150
18150
|
variant: "ghost",
|
|
18151
18151
|
size: "sm",
|
|
@@ -18222,7 +18222,7 @@ function Wf({
|
|
|
18222
18222
|
}
|
|
18223
18223
|
),
|
|
18224
18224
|
/* @__PURE__ */ e(
|
|
18225
|
-
|
|
18225
|
+
Q,
|
|
18226
18226
|
{
|
|
18227
18227
|
variant: t.negate ? "default" : "outline",
|
|
18228
18228
|
size: "sm",
|
|
@@ -18248,13 +18248,13 @@ function Wf({
|
|
|
18248
18248
|
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Group" })
|
|
18249
18249
|
] }),
|
|
18250
18250
|
/* @__PURE__ */ e(
|
|
18251
|
-
|
|
18251
|
+
Q,
|
|
18252
18252
|
{
|
|
18253
18253
|
variant: "ghost",
|
|
18254
18254
|
size: "sm",
|
|
18255
18255
|
className: "h-7 w-7 p-0",
|
|
18256
18256
|
onClick: () => n && o(n, t.id),
|
|
18257
|
-
children: /* @__PURE__ */ e(
|
|
18257
|
+
children: /* @__PURE__ */ e(Jn, { className: "h-3 w-3" })
|
|
18258
18258
|
}
|
|
18259
18259
|
)
|
|
18260
18260
|
] }),
|
|
@@ -18320,7 +18320,7 @@ function Wf({
|
|
|
18320
18320
|
),
|
|
18321
18321
|
/* @__PURE__ */ a("div", { className: "mt-3 flex items-center gap-2", children: [
|
|
18322
18322
|
/* @__PURE__ */ a(
|
|
18323
|
-
|
|
18323
|
+
Q,
|
|
18324
18324
|
{
|
|
18325
18325
|
size: "sm",
|
|
18326
18326
|
variant: "outline",
|
|
@@ -18333,7 +18333,7 @@ function Wf({
|
|
|
18333
18333
|
}
|
|
18334
18334
|
),
|
|
18335
18335
|
/* @__PURE__ */ a(
|
|
18336
|
-
|
|
18336
|
+
Q,
|
|
18337
18337
|
{
|
|
18338
18338
|
variant: "outline",
|
|
18339
18339
|
size: "sm",
|
|
@@ -18468,7 +18468,7 @@ function Xf({
|
|
|
18468
18468
|
),
|
|
18469
18469
|
/* @__PURE__ */ a("div", { className: "mt-3 flex items-center gap-2", children: [
|
|
18470
18470
|
/* @__PURE__ */ a(
|
|
18471
|
-
|
|
18471
|
+
Q,
|
|
18472
18472
|
{
|
|
18473
18473
|
size: "sm",
|
|
18474
18474
|
className: "h-7 text-xs",
|
|
@@ -18481,7 +18481,7 @@ function Xf({
|
|
|
18481
18481
|
}
|
|
18482
18482
|
),
|
|
18483
18483
|
T && /* @__PURE__ */ a(
|
|
18484
|
-
|
|
18484
|
+
Q,
|
|
18485
18485
|
{
|
|
18486
18486
|
variant: "outline",
|
|
18487
18487
|
size: "sm",
|
|
@@ -18517,7 +18517,7 @@ function Xf({
|
|
|
18517
18517
|
P.id
|
|
18518
18518
|
), g = Ui(t);
|
|
18519
18519
|
return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
18520
|
-
/* @__PURE__ */ e(Hn, { children: /* @__PURE__ */ e(
|
|
18520
|
+
/* @__PURE__ */ e(Hn, { children: /* @__PURE__ */ e(Qs, { className: "p-4", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
18521
18521
|
c ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center p-4", children: [
|
|
18522
18522
|
/* @__PURE__ */ e("div", { className: "h-5 w-5 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }),
|
|
18523
18523
|
/* @__PURE__ */ e("span", { className: "ml-2 text-sm text-gray-600", children: "Loading columns..." })
|
|
@@ -18547,10 +18547,10 @@ function Xf({
|
|
|
18547
18547
|
] })
|
|
18548
18548
|
] }) }) }),
|
|
18549
18549
|
/* @__PURE__ */ a("div", { className: "flex justify-end gap-2", children: [
|
|
18550
|
-
/* @__PURE__ */ e(
|
|
18551
|
-
g > 0 && /* @__PURE__ */ e(
|
|
18550
|
+
/* @__PURE__ */ e(Q, { size: "sm", variant: "outline", onClick: d, children: "Cancel" }),
|
|
18551
|
+
g > 0 && /* @__PURE__ */ e(Q, { variant: "outline", size: "sm", onClick: r, children: "Clear All" }),
|
|
18552
18552
|
/* @__PURE__ */ e(
|
|
18553
|
-
|
|
18553
|
+
Q,
|
|
18554
18554
|
{
|
|
18555
18555
|
size: "sm",
|
|
18556
18556
|
onClick: () => n(_ ? o : null),
|
|
@@ -18986,7 +18986,7 @@ function sg({
|
|
|
18986
18986
|
children: m
|
|
18987
18987
|
}
|
|
18988
18988
|
),
|
|
18989
|
-
/* @__PURE__ */ e(
|
|
18989
|
+
/* @__PURE__ */ e(Qt, { withHandle: !0 }),
|
|
18990
18990
|
/* @__PURE__ */ e(
|
|
18991
18991
|
it,
|
|
18992
18992
|
{
|
|
@@ -19022,7 +19022,7 @@ function sg({
|
|
|
19022
19022
|
children: /* @__PURE__ */ e(ua, {})
|
|
19023
19023
|
}
|
|
19024
19024
|
),
|
|
19025
|
-
/* @__PURE__ */ e(
|
|
19025
|
+
/* @__PURE__ */ e(Qt, { withHandle: !0 }),
|
|
19026
19026
|
/* @__PURE__ */ e(
|
|
19027
19027
|
it,
|
|
19028
19028
|
{
|
|
@@ -19599,7 +19599,7 @@ function dg({ column: t, isSelected: s, onSelect: n, availableFields: r, width:
|
|
|
19599
19599
|
onClick: w,
|
|
19600
19600
|
className: "text-destructive focus:text-destructive",
|
|
19601
19601
|
children: [
|
|
19602
|
-
/* @__PURE__ */ e(
|
|
19602
|
+
/* @__PURE__ */ e(Jn, { className: "mr-2 h-4 w-4" }),
|
|
19603
19603
|
"Remove column"
|
|
19604
19604
|
]
|
|
19605
19605
|
}
|
|
@@ -19771,7 +19771,7 @@ function mg({
|
|
|
19771
19771
|
),
|
|
19772
19772
|
/* @__PURE__ */ e("th", { className: "w-10 border-r border-border bg-background px-1 py-2", children: /* @__PURE__ */ a(Tt, { open: f, onOpenChange: p, children: [
|
|
19773
19773
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ e(
|
|
19774
|
-
|
|
19774
|
+
Q,
|
|
19775
19775
|
{
|
|
19776
19776
|
variant: "ghost",
|
|
19777
19777
|
size: "sm",
|
|
@@ -19787,7 +19787,7 @@ function mg({
|
|
|
19787
19787
|
/* @__PURE__ */ e(Ha, { heading: "Available Columns", children: y.map((O) => {
|
|
19788
19788
|
const L = et(O.dataType), x = L === "number" ? rs : L === "date" ? ss : ns;
|
|
19789
19789
|
return /* @__PURE__ */ a(
|
|
19790
|
-
|
|
19790
|
+
Qa,
|
|
19791
19791
|
{
|
|
19792
19792
|
value: O.label || O.name,
|
|
19793
19793
|
onSelect: () => _(O),
|
|
@@ -19950,7 +19950,7 @@ function pg({
|
|
|
19950
19950
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between border-b border-border px-3 py-2", children: [
|
|
19951
19951
|
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Columns" }),
|
|
19952
19952
|
/* @__PURE__ */ e(
|
|
19953
|
-
|
|
19953
|
+
Q,
|
|
19954
19954
|
{
|
|
19955
19955
|
variant: "ghost",
|
|
19956
19956
|
size: "sm",
|
|
@@ -19992,7 +19992,7 @@ function pg({
|
|
|
19992
19992
|
/* @__PURE__ */ e(T, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
19993
19993
|
/* @__PURE__ */ e("span", { className: "flex-1 truncate", children: M.label || M.name }),
|
|
19994
19994
|
/* @__PURE__ */ e(
|
|
19995
|
-
|
|
19995
|
+
Q,
|
|
19996
19996
|
{
|
|
19997
19997
|
variant: "ghost",
|
|
19998
19998
|
size: "sm",
|
|
@@ -20026,7 +20026,7 @@ function pg({
|
|
|
20026
20026
|
/* @__PURE__ */ e("span", { className: "flex-1 truncate", children: M.label || M.name }),
|
|
20027
20027
|
/* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: M.aggregate }),
|
|
20028
20028
|
/* @__PURE__ */ e(
|
|
20029
|
-
|
|
20029
|
+
Q,
|
|
20030
20030
|
{
|
|
20031
20031
|
variant: "ghost",
|
|
20032
20032
|
size: "sm",
|
|
@@ -20042,7 +20042,7 @@ function pg({
|
|
|
20042
20042
|
}) }) })
|
|
20043
20043
|
] })
|
|
20044
20044
|
] }),
|
|
20045
|
-
/* @__PURE__ */ e(
|
|
20045
|
+
/* @__PURE__ */ e(Ja, { className: "flex-1", children: /* @__PURE__ */ e("div", { className: "p-2", children: s ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ e("div", { className: "h-6 w-6 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent" }) }) : t.length === 0 ? /* @__PURE__ */ e("div", { className: "py-8 text-center text-sm text-muted-foreground", children: "No columns available" }) : t.map((M) => {
|
|
20046
20046
|
const T = S(M.columns);
|
|
20047
20047
|
if (T.length === 0) return null;
|
|
20048
20048
|
const D = h.has(M.entityId) || i.length > 0;
|
|
@@ -20097,7 +20097,7 @@ function pg({
|
|
|
20097
20097
|
);
|
|
20098
20098
|
}) }) })
|
|
20099
20099
|
] }) : /* @__PURE__ */ e("div", { className: "flex h-full items-start border-l border-border bg-muted/30 p-2", children: /* @__PURE__ */ e(
|
|
20100
|
-
|
|
20100
|
+
Q,
|
|
20101
20101
|
{
|
|
20102
20102
|
variant: "ghost",
|
|
20103
20103
|
size: "sm",
|
|
@@ -20176,7 +20176,7 @@ function gg({
|
|
|
20176
20176
|
c(y), y && u("function");
|
|
20177
20177
|
}, children: [
|
|
20178
20178
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ e(
|
|
20179
|
-
|
|
20179
|
+
Q,
|
|
20180
20180
|
{
|
|
20181
20181
|
variant: "ghost",
|
|
20182
20182
|
size: "sm",
|
|
@@ -20190,7 +20190,7 @@ function gg({
|
|
|
20190
20190
|
/* @__PURE__ */ a(Ga, { children: [
|
|
20191
20191
|
/* @__PURE__ */ e(Ua, { children: "No functions found." }),
|
|
20192
20192
|
/* @__PURE__ */ e(Ha, { heading: "Functions", children: fg.map((y) => /* @__PURE__ */ e(
|
|
20193
|
-
|
|
20193
|
+
Qa,
|
|
20194
20194
|
{
|
|
20195
20195
|
value: y.name,
|
|
20196
20196
|
onSelect: () => p(y),
|
|
@@ -20211,7 +20211,7 @@ function gg({
|
|
|
20211
20211
|
c(y), y && u("column");
|
|
20212
20212
|
}, children: [
|
|
20213
20213
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ a(
|
|
20214
|
-
|
|
20214
|
+
Q,
|
|
20215
20215
|
{
|
|
20216
20216
|
variant: "ghost",
|
|
20217
20217
|
size: "sm",
|
|
@@ -20230,7 +20230,7 @@ function gg({
|
|
|
20230
20230
|
/* @__PURE__ */ e(Ha, { heading: "Available Columns", children: o.map((y) => {
|
|
20231
20231
|
const b = m(y.dataType);
|
|
20232
20232
|
return /* @__PURE__ */ a(
|
|
20233
|
-
|
|
20233
|
+
Qa,
|
|
20234
20234
|
{
|
|
20235
20235
|
value: y.label || y.name,
|
|
20236
20236
|
onSelect: () => f(y),
|
|
@@ -20257,7 +20257,7 @@ function gg({
|
|
|
20257
20257
|
) }),
|
|
20258
20258
|
t && /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
20259
20259
|
/* @__PURE__ */ e(
|
|
20260
|
-
|
|
20260
|
+
Q,
|
|
20261
20261
|
{
|
|
20262
20262
|
variant: "ghost",
|
|
20263
20263
|
size: "sm",
|
|
@@ -20268,7 +20268,7 @@ function gg({
|
|
|
20268
20268
|
}
|
|
20269
20269
|
),
|
|
20270
20270
|
/* @__PURE__ */ e(
|
|
20271
|
-
|
|
20271
|
+
Q,
|
|
20272
20272
|
{
|
|
20273
20273
|
variant: "ghost",
|
|
20274
20274
|
size: "sm",
|
|
@@ -20425,7 +20425,7 @@ function bg() {
|
|
|
20425
20425
|
)
|
|
20426
20426
|
] }) }),
|
|
20427
20427
|
!d && c && /* @__PURE__ */ e("div", { className: "fixed left-6 top-[105px] z-50", children: /* @__PURE__ */ e(
|
|
20428
|
-
|
|
20428
|
+
Q,
|
|
20429
20429
|
{
|
|
20430
20430
|
size: "sm",
|
|
20431
20431
|
variant: "outline",
|
|
@@ -20494,7 +20494,7 @@ function vg({ authToken: t, onSave: s, onClose: n }) {
|
|
|
20494
20494
|
direction: "horizontal",
|
|
20495
20495
|
children: [
|
|
20496
20496
|
/* @__PURE__ */ e(it, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(bf, {}) }),
|
|
20497
|
-
/* @__PURE__ */ e(
|
|
20497
|
+
/* @__PURE__ */ e(Qt, { disabled: !d }),
|
|
20498
20498
|
/* @__PURE__ */ e(
|
|
20499
20499
|
it,
|
|
20500
20500
|
{
|
|
@@ -20542,7 +20542,7 @@ function vg({ authToken: t, onSave: s, onClose: n }) {
|
|
|
20542
20542
|
direction: "horizontal",
|
|
20543
20543
|
children: [
|
|
20544
20544
|
/* @__PURE__ */ e(it, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(bg, {}) }),
|
|
20545
|
-
/* @__PURE__ */ e(
|
|
20545
|
+
/* @__PURE__ */ e(Qt, { disabled: !d }),
|
|
20546
20546
|
/* @__PURE__ */ e(
|
|
20547
20547
|
it,
|
|
20548
20548
|
{
|