react-semaphor 0.1.294 → 0.1.295
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/{braces-DfDQiR3J.js → braces-BdoTYzuj.js} +1 -1
- package/dist/chunks/{braces-DR-GdaLC.js → braces-DWldEFn5.js} +1 -1
- package/dist/chunks/{dashboard-controls-DGEVXgP5.js → dashboard-controls-B3lrnI_r.js} +1 -1
- package/dist/chunks/{dashboard-controls-C3Z9bpYE.js → dashboard-controls-D7U6E1sB.js} +5 -5
- package/dist/chunks/{dashboard-filter-controls-button-BIYT1ucX.js → dashboard-filter-controls-button-D0AsV28-.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-DxgGUl00.js → dashboard-filter-controls-button-XwenlcXw.js} +3 -3
- package/dist/chunks/{dashboard-json-BvTeHePu.js → dashboard-json-CU55qPXj.js} +1 -1
- package/dist/chunks/{dashboard-json-DQW8TN0I.js → dashboard-json-V6m6lJ_c.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-q7fx3YAK.js → dashboard-summary-settings-dialog-0CIiWsKc.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-BsmKiGud.js → dashboard-summary-settings-dialog-DRLPzp1P.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-RVl9nbDZ.js → edit-dashboard-visual-8ha6EM_g.js} +407 -364
- package/dist/chunks/{edit-dashboard-visual-ChKj-Lzr.js → edit-dashboard-visual-sSLAkmgf.js} +3 -3
- package/dist/chunks/{index-DerPpfv0.js → index-14M0TnH6.js} +29597 -28801
- package/dist/chunks/{index-BlspGR07.js → index-Ze8VskG1.js} +252 -252
- package/dist/chunks/{resource-management-panel-DnZ1rw1A.js → resource-management-panel-BL5-5ouC.js} +2 -2
- package/dist/chunks/{resource-management-panel-epydPwyM.js → resource-management-panel-CcDAn86l.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bcg4EgoD.js → use-create-flow-overlay-state-BbQVNDCj.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-C5vdfXhM.js → use-create-flow-overlay-state-D3PxfjYv.js} +2 -2
- package/dist/chunks/{use-visual-utils-D9Kknvjl.js → use-visual-utils-CdIOq4nt.js} +1 -1
- package/dist/chunks/{use-visual-utils-Dw_yw9zU.js → use-visual-utils-kh8p2QFm.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 +37 -0
- package/dist/types/main.d.ts +37 -0
- package/dist/types/shared.d.ts +37 -0
- package/dist/types/surfboard.d.ts +37 -0
- package/dist/types/types.d.ts +37 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { c as $e, y as ct, O as ge, W as F, ec as si, ed as Ro, L as z, z as ae, A as ne, E as se, F as re, G as j, af as We, B as Q, cw as St, ee as Qn, ef as ri, eg as li, eh as ii, ei as oi, ej as Js, a9 as Lt, X as nt, ek as Ys, ck as Jn, e as pa, f as fa, g as ga, h as xa, i as Ba, b$ as Nt, bX as gt, bU as yt, bV as mt, bW as ht, el as cl, em as Lo, en as ci, w as _n, eo as za, cS as Ja, b as X, cf as wt, ep as di, eq as bs, cE as ui, er as Po, es as Vo, et as Bo, eu as un, ev as zo, ew as mi, ex as _o, J as Yn, C as Wn, ey as $o, ez as qo, u as Oe, dK as _t, eA as Pa, cF as Ya, cG as Wa, eB as Bs, cI as Xa, cJ as ut, eC as _a, eD as jo, eE as zs, eF as Ln, d as wa, aj as hi, eb as mn, eG as Ws, eH as Ko, eI as Go, eJ as pi, eK as fi, eL as gi, dJ as Xs, dH as Uo, I as Ie, P as Tt, eM as Ho, m as kt, eN as Qo, x as la, eO as Jo, eP as Yo, eQ as Wo, bO as Za, bP as Sa, bQ as Ta, bR as xn, bS as jt, bT as Va, eR as _s, eS as Ut, eT as dt, eU as Ht, dq as ba, eV as xi, eW as $n, eX as qn, eY as jn, eZ as Zs, e_ as bi, e$ as Xo, f0 as Zo, f1 as ec, l as vi, f2 as tc, f3 as ac, f4 as nc, f5 as sc, f6 as yi, f7 as rc, f8 as vs, f9 as lc, fa as dl, fb as ic, fc as ul, fd as er, fe as oc, ff as bn, fg as cc, R as vn, fh as Xn, fi as en, cT as tr, fj as Ni, j as ia, fk as dc, cq as Bt, cs as zt, d2 as ar, de as nr, Q as Ci, fl as sr, fm as uc, fn as wi, fo as Si, fp as Vt, e2 as ys, fq as mc, fr as hc, fs as pc, ft as Ti, az as ki, fu as Ii, fv as fc, fw as gc, fx as xc, fy as hn, fz as bc, fA as vc, fB as ml, fC as yc, $ as Zn, a6 as rr, fD as Nc, fE as lr, du as Cc, fF as hl, aa as xt, fG as wc, dQ as ir, dR as or, dS as ma, dT as Pn, fH as Sc, e3 as Tc, fI as Di, fJ as kc, fK as Ic, d7 as es, fL as Dc, fM as Ac, fN as pl, fO as Ec, k as Et, df as va, dv as ts, cN as Rt, fP as ea, fQ as ya, fR as Na, fS as oa, fT as $a, fU as Oc, fV as Mc, b4 as Fc, fW as Rc, fX as Lc, fY as Pc, fZ as Vc, dd as ha, f_ as Bc, f$ as Ai, g0 as zc, g1 as _c, g2 as $c, g3 as Ei, g4 as fl, c9 as qc, cr as Kt, cg as Gt, dm as jc, g5 as Kc, g6 as Gc, g7 as Uc, g8 as gl, g9 as Hc, ga as Qc, gb as Jc, gc as Yc, ai as Wc, ds as Xc, gd as Zc, ge as Oi, gf as ed, gg as td, gh as ad, gi as nd, gj as sd, gk as rd, gl as $s, gm as ld, gn as id, go as od, gp as qs, gq as cd, gr as dd, gs as ud, gt as md, gu as xl, gv as hd, gw as bl, gx as vl, dg as js, cV as pd, gy as fd, cW as gd, cX as xd, cY as bd, cZ as vd, c_ as yd, c$ as Nd, d0 as Cd, gz as tn, gA as wd, S as Ue, gB as Sd, gC as Td, gD as Mi, cH as cr, dh as kd, cK as Id, gE as Dd, gF as Ad, gG as pn, gH as Kn, gI as Ed, gJ as qa, gK as je, gL as Ke, gM as Ge, gN as Od, gO as Md, gP as Fi, gQ as Ri, gR as aa, gS as On, gT as yl, gU as Fd, dr as Li, gV as Rd, gW as Ld, gX as Pd, gY as yn, gZ as Vd, g_ as Bd, g$ as zd, n as ja, o as Ka, p as Ga, q as Ua, r as Ha, s as Qa, h0 as _d, h1 as $d, h2 as Nl, h3 as qd, t as ka, h4 as jd, h5 as Ns, h6 as Cl, h7 as Kd, h8 as At, h9 as Gd, ha as Ud, hb as Hd, hc as Qd, hd as Jd, he as Cs, hf as Pi, hg as Yd, hh as Wd, hi as Xd, hj as Gn, hk as Zd, hl as eu, hm as dr, hn as ur, ho as Vi, hp as tu, d5 as Bi, hq as zi, hr as _i, hs as au, e6 as nu, ht as Ze, hu as su, bi as ru, hv as Mn, hw as lu, hx as wl, hy as iu, hz as ou, be as Sl, hA as Tl, hB as cu, hC as du, hD as uu, hE as mu, hF as hu, hG as pu, hH as fu, hI as gu, hJ as xu, hK as bu, hL as vu, hM as yu, hN as Nu, hO as Cu, hP as $i, hQ as wu, hR as Su, hS as Tu, hT as ku, hU as Iu, hV as Du, hW as Au, hX as Eu, hY as Ou, hZ as Mu, h_ as Fu, h$ as qi, i0 as Ru, i1 as mr, i2 as as, i3 as ji, i4 as Lu, i5 as Pu, i6 as Vu, i7 as Bu, i8 as zu, i9 as _u, ia as ns, ib as ws, ic as $u, id as qu, ie as ju, ig as Ku, ih as Gu, ii as kl, ij as Ca, ik as Uu, il as Ki, im as Gi, io as Ks, ip as Ui, iq as Il, d9 as Dl, ir as Hu, is as Qu, it as Ju, iu as Vn, iv as Yu, iw as hr, ix as Wu, iy as Xu, iz as Un, iA as Zu, iB as em, iC as tm, iD as fn, iE as na, iF as Gs, iG as Us, iH as gn, iI as Hi, a_ as am, iJ as nm, iK as Ss, iL as Ts, iM as sm, iN as ks, iO as rm, iP as Al, iQ as El, iR as lm, iS as im, iT as om, e7 as cm, e8 as dm, e9 as um, iU as ss, cP as rs, iV as ls, iW as Ol, iX as Qi, dZ as Is, iY as mm, iZ as hm, i_ as pm, a0 as fm, b_ as gm, c0 as xm } from "./index-
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
+
import { c as $e, y as ct, O as ge, W as F, ec as si, ed as Ro, L as z, z as ae, A as ne, E as se, F as re, G as j, af as We, B as Q, cw as St, ee as Qn, ef as ri, eg as li, eh as ii, ei as oi, ej as Js, a9 as Lt, X as nt, ek as Ys, ck as Jn, e as pa, f as fa, g as ga, h as xa, i as Ba, b$ as Nt, bX as gt, bU as yt, bV as mt, bW as ht, el as cl, em as Lo, en as ci, w as _n, eo as za, cS as Ja, b as X, cf as wt, ep as di, eq as bs, cE as ui, er as Po, es as Vo, et as Bo, eu as un, ev as zo, ew as mi, ex as _o, J as Yn, C as Wn, ey as $o, ez as qo, u as Oe, dK as _t, eA as Pa, cF as Ya, cG as Wa, eB as Bs, cI as Xa, cJ as ut, eC as _a, eD as jo, eE as zs, eF as Ln, d as wa, aj as hi, eb as mn, eG as Ws, eH as Ko, eI as Go, eJ as pi, eK as fi, eL as gi, dJ as Xs, dH as Uo, I as Ie, P as Tt, eM as Ho, m as kt, eN as Qo, x as la, eO as Jo, eP as Yo, eQ as Wo, bO as Za, bP as Sa, bQ as Ta, bR as xn, bS as jt, bT as Va, eR as _s, eS as Ut, eT as dt, eU as Ht, dq as ba, eV as xi, eW as $n, eX as qn, eY as jn, eZ as Zs, e_ as bi, e$ as Xo, f0 as Zo, f1 as ec, l as vi, f2 as tc, f3 as ac, f4 as nc, f5 as sc, f6 as yi, f7 as rc, f8 as vs, f9 as lc, fa as dl, fb as ic, fc as ul, fd as er, fe as oc, ff as bn, fg as cc, R as vn, fh as Xn, fi as en, cT as tr, fj as Ni, j as ia, fk as dc, cq as Bt, cs as zt, d2 as ar, de as nr, Q as Ci, fl as sr, fm as uc, fn as wi, fo as Si, fp as Vt, e2 as ys, fq as mc, fr as hc, fs as pc, ft as Ti, az as ki, fu as Ii, fv as fc, fw as gc, fx as xc, fy as hn, fz as bc, fA as vc, fB as ml, fC as yc, $ as Zn, a6 as rr, fD as Nc, fE as lr, du as Cc, fF as hl, aa as xt, fG as wc, dQ as ir, dR as or, dS as ma, dT as Pn, fH as Sc, e3 as Tc, fI as Di, fJ as kc, fK as Ic, d7 as es, fL as Dc, fM as Ac, fN as pl, fO as Ec, k as Et, df as va, dv as ts, cN as Rt, fP as ea, fQ as ya, fR as Na, fS as oa, fT as $a, fU as Oc, fV as Mc, b4 as Fc, fW as Rc, fX as Lc, fY as Pc, fZ as Vc, dd as ha, f_ as Bc, f$ as Ai, g0 as zc, g1 as _c, g2 as $c, g3 as Ei, g4 as fl, c9 as qc, cr as Kt, cg as Gt, dm as jc, g5 as Kc, g6 as Gc, g7 as Uc, g8 as gl, g9 as Hc, ga as Qc, gb as Jc, gc as Yc, ai as Wc, ds as Xc, gd as Zc, ge as Oi, gf as ed, gg as td, gh as ad, gi as nd, gj as sd, gk as rd, gl as $s, gm as ld, gn as id, go as od, gp as qs, gq as cd, gr as dd, gs as ud, gt as md, gu as xl, gv as hd, gw as bl, gx as vl, dg as js, cV as pd, gy as fd, cW as gd, cX as xd, cY as bd, cZ as vd, c_ as yd, c$ as Nd, d0 as Cd, gz as tn, gA as wd, S as Ue, gB as Sd, gC as Td, gD as Mi, cH as cr, dh as kd, cK as Id, gE as Dd, gF as Ad, gG as pn, gH as Kn, gI as Ed, gJ as qa, gK as je, gL as Ke, gM as Ge, gN as Od, gO as Md, gP as Fi, gQ as Ri, gR as aa, gS as On, gT as yl, gU as Fd, dr as Li, gV as Rd, gW as Ld, gX as Pd, gY as yn, gZ as Vd, g_ as Bd, g$ as zd, n as ja, o as Ka, p as Ga, q as Ua, r as Ha, s as Qa, h0 as _d, h1 as $d, h2 as Nl, h3 as qd, t as ka, h4 as jd, h5 as Ns, h6 as Cl, h7 as Kd, h8 as At, h9 as Gd, ha as Ud, hb as Hd, hc as Qd, hd as Jd, he as Cs, hf as Pi, hg as Yd, hh as Wd, hi as Xd, hj as Gn, hk as Zd, hl as eu, hm as dr, hn as ur, ho as Vi, hp as tu, d5 as Bi, hq as zi, hr as _i, hs as au, e6 as nu, ht as Ze, hu as su, bi as ru, hv as Mn, hw as lu, hx as wl, hy as iu, hz as ou, be as Sl, hA as Tl, hB as cu, hC as du, hD as uu, hE as mu, hF as hu, hG as pu, hH as fu, hI as gu, hJ as xu, hK as bu, hL as vu, hM as yu, hN as Nu, hO as Cu, hP as $i, hQ as wu, hR as Su, hS as Tu, hT as ku, hU as Iu, hV as Du, hW as Au, hX as Eu, hY as Ou, hZ as Mu, h_ as Fu, h$ as qi, i0 as Ru, i1 as mr, i2 as as, i3 as ji, i4 as Lu, i5 as Pu, i6 as Vu, i7 as Bu, i8 as zu, i9 as _u, ia as ns, ib as ws, ic as $u, id as qu, ie as ju, ig as Ku, ih as Gu, ii as kl, ij as Ca, ik as Uu, il as Ki, im as Gi, io as Ks, ip as Ui, iq as Il, d9 as Dl, ir as Hu, is as Qu, it as Ju, iu as Vn, iv as Yu, iw as hr, ix as Wu, iy as Xu, iz as Un, iA as Zu, iB as em, iC as tm, iD as fn, iE as na, iF as Gs, iG as Us, iH as gn, iI as Hi, a_ as am, iJ as nm, iK as Ss, iL as Ts, iM as sm, iN as ks, iO as rm, iP as Al, iQ as El, iR as lm, iS as im, iT as om, e7 as cm, e8 as dm, e9 as um, iU as ss, cP as rs, iV as ls, iW as Ol, iX as Qi, dZ as Is, iY as mm, iZ as hm, i_ as pm, a0 as fm, b_ as gm, c0 as xm } from "./index-14M0TnH6.js";
|
|
3
3
|
import * as Bn from "react";
|
|
4
4
|
import ta, { useState as G, useRef as ke, useCallback as Te, useEffect as ye, useMemo as oe, useContext as pr, Suspense as bm } from "react";
|
|
5
|
-
import { r as Ji, f as Nn } from "./use-visual-utils-
|
|
6
|
-
import { f as bt, C as Ml, g as fr, V as Yi, u as vm, e as ym } from "./use-create-flow-overlay-state-
|
|
5
|
+
import { r as Ji, f as Nn } from "./use-visual-utils-CdIOq4nt.js";
|
|
6
|
+
import { f as bt, C as Ml, g as fr, V as Yi, u as vm, e as ym } from "./use-create-flow-overlay-state-D3PxfjYv.js";
|
|
7
7
|
import { createPortal as Nm } from "react-dom";
|
|
8
|
-
import { B as Cm } from "./braces-
|
|
8
|
+
import { B as Cm } from "./braces-BdoTYzuj.js";
|
|
9
9
|
/**
|
|
10
10
|
* @license lucide-react v0.453.0 - ISC
|
|
11
11
|
*
|
|
@@ -1403,7 +1403,7 @@ function Um({
|
|
|
1403
1403
|
), o = n.find(
|
|
1404
1404
|
(l) => l.name === s
|
|
1405
1405
|
);
|
|
1406
|
-
return /* @__PURE__ */ a(
|
|
1406
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
1407
1407
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 rounded-md border bg-muted px-2 py-1", children: [
|
|
1408
1408
|
/* @__PURE__ */ e(We, { variant: "secondary", className: "text-xs", children: o == null ? void 0 : o.type }),
|
|
1409
1409
|
/* @__PURE__ */ e("span", { className: "text-xs font-medium", children: o == null ? void 0 : o.name }),
|
|
@@ -1558,7 +1558,7 @@ ${D.joinType} JOIN ${I.name}
|
|
|
1558
1558
|
)
|
|
1559
1559
|
}
|
|
1560
1560
|
);
|
|
1561
|
-
return /* @__PURE__ */ a(
|
|
1561
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
1562
1562
|
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ a(mt, { children: [
|
|
1563
1563
|
/* @__PURE__ */ e(ht, { asChild: !0, children: n === "badge" ? /* @__PURE__ */ a(
|
|
1564
1564
|
We,
|
|
@@ -2563,10 +2563,10 @@ function hh({
|
|
|
2563
2563
|
const K = Me.current;
|
|
2564
2564
|
!K || K.sessionId !== V || (Me.current = null, fe(K.message, K.runToken));
|
|
2565
2565
|
}, [V, fe]);
|
|
2566
|
-
const
|
|
2566
|
+
const Ce = V, qe = Te(
|
|
2567
2567
|
async ({ toolCall: K }) => {
|
|
2568
2568
|
var rt, Pt, ca, Zt, ft, Ra;
|
|
2569
|
-
if (
|
|
2569
|
+
if (Ce !== De.current)
|
|
2570
2570
|
return;
|
|
2571
2571
|
const le = String(K.toolName || "").trim();
|
|
2572
2572
|
if (!le)
|
|
@@ -2630,12 +2630,12 @@ function hh({
|
|
|
2630
2630
|
Z,
|
|
2631
2631
|
A.phase,
|
|
2632
2632
|
Je,
|
|
2633
|
-
|
|
2633
|
+
Ce,
|
|
2634
2634
|
U
|
|
2635
2635
|
]
|
|
2636
2636
|
), Be = Te(
|
|
2637
2637
|
({ message: K, messages: le }) => {
|
|
2638
|
-
if (
|
|
2638
|
+
if (Ce !== De.current)
|
|
2639
2639
|
return;
|
|
2640
2640
|
const ee = zl(le);
|
|
2641
2641
|
if (!ee || ee !== me.current)
|
|
@@ -2650,15 +2650,15 @@ function hh({
|
|
|
2650
2650
|
}
|
|
2651
2651
|
J.current && Ve.current.phase === "self-healing" && _e.current(ve);
|
|
2652
2652
|
},
|
|
2653
|
-
[Je,
|
|
2653
|
+
[Je, Ce]
|
|
2654
2654
|
), st = Te(
|
|
2655
2655
|
(K) => {
|
|
2656
|
-
if (
|
|
2656
|
+
if (Ce !== De.current)
|
|
2657
2657
|
return;
|
|
2658
2658
|
const le = ce.current;
|
|
2659
2659
|
Je(le) && J.current && Ve.current.phase === "self-healing" && _e.current(le);
|
|
2660
2660
|
},
|
|
2661
|
-
[Je,
|
|
2661
|
+
[Je, Ce]
|
|
2662
2662
|
), {
|
|
2663
2663
|
setMessages: ot,
|
|
2664
2664
|
sendMessage: Qt,
|
|
@@ -3449,7 +3449,7 @@ function ph() {
|
|
|
3449
3449
|
]
|
|
3450
3450
|
}
|
|
3451
3451
|
),
|
|
3452
|
-
s && /* @__PURE__ */ a(
|
|
3452
|
+
s && /* @__PURE__ */ a(Ne, { children: [
|
|
3453
3453
|
/* @__PURE__ */ e(
|
|
3454
3454
|
Ht,
|
|
3455
3455
|
{
|
|
@@ -4196,7 +4196,7 @@ function lo({
|
|
|
4196
4196
|
}
|
|
4197
4197
|
};
|
|
4198
4198
|
}, [h, p, n, d, g, A]), Me = (de, Z) => {
|
|
4199
|
-
var
|
|
4199
|
+
var Ce, qe;
|
|
4200
4200
|
const fe = {
|
|
4201
4201
|
...n,
|
|
4202
4202
|
paginationConfig: {
|
|
@@ -4205,12 +4205,12 @@ function lo({
|
|
|
4205
4205
|
pageSize: Z
|
|
4206
4206
|
}
|
|
4207
4207
|
};
|
|
4208
|
-
q(fe), $(fe), n.sql && ((qe = (
|
|
4208
|
+
q(fe), $(fe), n.sql && ((qe = (Ce = n.preferences) == null ? void 0 : Ce.tablePrefs) != null && qe.enableDevModePagination) && m(!0);
|
|
4209
4209
|
}, _e = (de) => {
|
|
4210
|
-
var
|
|
4210
|
+
var Ce, qe, Be, st, ot;
|
|
4211
4211
|
const Z = lr(
|
|
4212
4212
|
de,
|
|
4213
|
-
(
|
|
4213
|
+
(Ce = n.config) == null ? void 0 : Ce.metricColumns,
|
|
4214
4214
|
(qe = n.config) == null ? void 0 : qe.groupByColumns,
|
|
4215
4215
|
(Be = n.config) == null ? void 0 : Be.detailColumns
|
|
4216
4216
|
), fe = {
|
|
@@ -4274,7 +4274,7 @@ function lo({
|
|
|
4274
4274
|
"detailTable",
|
|
4275
4275
|
"custom"
|
|
4276
4276
|
].includes(E) && lt)
|
|
4277
|
-
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: M || R ? /* @__PURE__ */ e(
|
|
4277
|
+
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: M || R ? /* @__PURE__ */ e(Ne, {}) : /* @__PURE__ */ e(
|
|
4278
4278
|
xc,
|
|
4279
4279
|
{
|
|
4280
4280
|
cfg: lt
|
|
@@ -4304,15 +4304,15 @@ function lo({
|
|
|
4304
4304
|
const fe = ml(
|
|
4305
4305
|
Z,
|
|
4306
4306
|
n.config
|
|
4307
|
-
),
|
|
4308
|
-
q(
|
|
4307
|
+
), Ce = { ...n, config: fe };
|
|
4308
|
+
q(Ce), $(Ce);
|
|
4309
4309
|
},
|
|
4310
4310
|
onAggregationLabelChange: (Z) => {
|
|
4311
4311
|
const fe = vc(
|
|
4312
4312
|
Z,
|
|
4313
4313
|
n.config
|
|
4314
|
-
),
|
|
4315
|
-
q(
|
|
4314
|
+
), Ce = { ...n, config: fe };
|
|
4315
|
+
q(Ce), $(Ce);
|
|
4316
4316
|
}
|
|
4317
4317
|
}
|
|
4318
4318
|
) });
|
|
@@ -4330,8 +4330,8 @@ function lo({
|
|
|
4330
4330
|
const fe = ml(
|
|
4331
4331
|
Z,
|
|
4332
4332
|
n.config
|
|
4333
|
-
),
|
|
4334
|
-
q(
|
|
4333
|
+
), Ce = { ...n, config: fe };
|
|
4334
|
+
q(Ce), $(Ce);
|
|
4335
4335
|
},
|
|
4336
4336
|
isLoading: M || R
|
|
4337
4337
|
}
|
|
@@ -4848,7 +4848,7 @@ function Th({ onChartSelect: t, onClose: s }) {
|
|
|
4848
4848
|
},
|
|
4849
4849
|
b.id
|
|
4850
4850
|
)) }) }),
|
|
4851
|
-
O.length > 0 && /* @__PURE__ */ a(
|
|
4851
|
+
O.length > 0 && /* @__PURE__ */ a(Ne, { children: [
|
|
4852
4852
|
w.length > 0 ? /* @__PURE__ */ e(za, { className: "my-3" }) : null,
|
|
4853
4853
|
/* @__PURE__ */ a("div", { children: [
|
|
4854
4854
|
/* @__PURE__ */ e("span", { className: "mb-2 block text-xs font-medium text-muted-foreground", children: "Custom Charts" }),
|
|
@@ -4866,7 +4866,7 @@ function Th({ onChartSelect: t, onClose: s }) {
|
|
|
4866
4866
|
)) })
|
|
4867
4867
|
] })
|
|
4868
4868
|
] }),
|
|
4869
|
-
i && /* @__PURE__ */ a(
|
|
4869
|
+
i && /* @__PURE__ */ a(Ne, { children: [
|
|
4870
4870
|
/* @__PURE__ */ e(za, { className: "my-3" }),
|
|
4871
4871
|
/* @__PURE__ */ e("div", { className: "py-4 text-center text-sm text-muted-foreground", children: "Loading custom charts..." })
|
|
4872
4872
|
] }),
|
|
@@ -5090,7 +5090,7 @@ function Ih() {
|
|
|
5090
5090
|
}
|
|
5091
5091
|
);
|
|
5092
5092
|
}
|
|
5093
|
-
return /* @__PURE__ */ e(
|
|
5093
|
+
return /* @__PURE__ */ e(Ne, { children: s === "funnel" ? l() : s === "bullet" ? d() : o() });
|
|
5094
5094
|
}
|
|
5095
5095
|
function vr({
|
|
5096
5096
|
className: t,
|
|
@@ -5970,7 +5970,7 @@ function io({
|
|
|
5970
5970
|
"map"
|
|
5971
5971
|
].includes(o.type);
|
|
5972
5972
|
return f || h || n || r || c ? /* @__PURE__ */ a("div", { "data-info": "visual-settings", className: "flex items-center gap-2", children: [
|
|
5973
|
-
f && /* @__PURE__ */ e(
|
|
5973
|
+
f && /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(Ih, {}) }),
|
|
5974
5974
|
h && /* @__PURE__ */ a(
|
|
5975
5975
|
xt,
|
|
5976
5976
|
{
|
|
@@ -6189,7 +6189,7 @@ function Vh({
|
|
|
6189
6189
|
] }) })
|
|
6190
6190
|
) : (
|
|
6191
6191
|
// Regular tabs: Eye icon + Editable title
|
|
6192
|
-
/* @__PURE__ */ a(
|
|
6192
|
+
/* @__PURE__ */ a(Ne, { children: [
|
|
6193
6193
|
M(r, P),
|
|
6194
6194
|
/* @__PURE__ */ e(
|
|
6195
6195
|
id,
|
|
@@ -6309,17 +6309,17 @@ function ua({
|
|
|
6309
6309
|
queryConfig: void 0
|
|
6310
6310
|
} : P !== r.type ? { ...r, type: P } : r, [r, P, g]), { data: q, isLoading: $, isFetching: W, isError: ie } = Nt(V), H = Te(
|
|
6311
6311
|
(Z, fe) => {
|
|
6312
|
-
const
|
|
6312
|
+
const Ce = ed(fe);
|
|
6313
6313
|
v((qe) => ({
|
|
6314
6314
|
...qe,
|
|
6315
|
-
[Z]:
|
|
6315
|
+
[Z]: Ce
|
|
6316
6316
|
}));
|
|
6317
6317
|
},
|
|
6318
6318
|
[]
|
|
6319
6319
|
), ce = Te(
|
|
6320
6320
|
(Z, fe) => {
|
|
6321
|
-
k((
|
|
6322
|
-
const qe = new Set(
|
|
6321
|
+
k((Ce) => {
|
|
6322
|
+
const qe = new Set(Ce);
|
|
6323
6323
|
return fe ? qe.add(Z) : qe.delete(Z), qe;
|
|
6324
6324
|
});
|
|
6325
6325
|
},
|
|
@@ -6369,13 +6369,13 @@ function ua({
|
|
|
6369
6369
|
]
|
|
6370
6370
|
);
|
|
6371
6371
|
function lt(Z) {
|
|
6372
|
-
const fe = n.cards.find((
|
|
6372
|
+
const fe = n.cards.find((Ce) => Ce.id === Z);
|
|
6373
6373
|
fe && (Nn(), p(), pt(Z), u(Z), m(), x(fe));
|
|
6374
6374
|
}
|
|
6375
6375
|
function pt(Z) {
|
|
6376
|
-
const fe = F.getState().card,
|
|
6377
|
-
...
|
|
6378
|
-
cards:
|
|
6376
|
+
const fe = F.getState().card, Ce = F.getState().frame, qe = {
|
|
6377
|
+
...Ce,
|
|
6378
|
+
cards: Ce.cards.map((st) => st.id === fe.id ? fe : st),
|
|
6379
6379
|
activeCardId: Z
|
|
6380
6380
|
};
|
|
6381
6381
|
i(qe);
|
|
@@ -6388,17 +6388,17 @@ function ua({
|
|
|
6388
6388
|
if (!N)
|
|
6389
6389
|
return /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: "Select a component to preview the multi-input visual." });
|
|
6390
6390
|
const fe = T.map(
|
|
6391
|
-
(
|
|
6392
|
-
|
|
6391
|
+
(Ce, qe) => Va(
|
|
6392
|
+
Ce,
|
|
6393
6393
|
qe,
|
|
6394
6394
|
M == null ? void 0 : M.slots
|
|
6395
6395
|
)
|
|
6396
6396
|
);
|
|
6397
6397
|
return /* @__PURE__ */ a("div", { className: "relative flex h-full flex-col pl-2 pr-4", children: [
|
|
6398
|
-
A.map((
|
|
6399
|
-
if (!
|
|
6400
|
-
const Be = jt(
|
|
6401
|
-
|
|
6398
|
+
A.map((Ce, qe) => {
|
|
6399
|
+
if (!Ce) return null;
|
|
6400
|
+
const Be = jt(Ce, qe), st = Va(
|
|
6401
|
+
Ce,
|
|
6402
6402
|
Be,
|
|
6403
6403
|
M == null ? void 0 : M.slots
|
|
6404
6404
|
);
|
|
@@ -6407,10 +6407,10 @@ function ua({
|
|
|
6407
6407
|
{
|
|
6408
6408
|
onLoadingStatus: ce,
|
|
6409
6409
|
onDataChange: H,
|
|
6410
|
-
card:
|
|
6410
|
+
card: Ce,
|
|
6411
6411
|
effectiveCardType: st
|
|
6412
6412
|
},
|
|
6413
|
-
`${
|
|
6413
|
+
`${Ce.id}-${Be}`
|
|
6414
6414
|
);
|
|
6415
6415
|
}),
|
|
6416
6416
|
me && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Vt, { size: "md", color: "muted", "aria-label": "Loading preview" }) }),
|
|
@@ -6804,7 +6804,7 @@ function co({
|
|
|
6804
6804
|
)
|
|
6805
6805
|
), c(u), r(!0);
|
|
6806
6806
|
};
|
|
6807
|
-
return /* @__PURE__ */ a(
|
|
6807
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
6808
6808
|
/* @__PURE__ */ e(Rt, {}),
|
|
6809
6809
|
/* @__PURE__ */ a(
|
|
6810
6810
|
ut,
|
|
@@ -7010,9 +7010,12 @@ function Kl({
|
|
|
7010
7010
|
showDisplayOptions: !1
|
|
7011
7011
|
}
|
|
7012
7012
|
),
|
|
7013
|
-
(l || f) && /* @__PURE__ */ a(
|
|
7014
|
-
/* @__PURE__ */ e(
|
|
7015
|
-
o && /* @__PURE__ */
|
|
7013
|
+
(l || f) && /* @__PURE__ */ a(Ne, { children: [
|
|
7014
|
+
/* @__PURE__ */ e(qh, {}),
|
|
7015
|
+
o && /* @__PURE__ */ a(Ne, { children: [
|
|
7016
|
+
/* @__PURE__ */ e(_h, {}),
|
|
7017
|
+
/* @__PURE__ */ e($h, {})
|
|
7018
|
+
] })
|
|
7016
7019
|
] }),
|
|
7017
7020
|
/* @__PURE__ */ a(Ya, { modal: !1, children: [
|
|
7018
7021
|
/* @__PURE__ */ e(Wa, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -7120,7 +7123,7 @@ function Kl({
|
|
|
7120
7123
|
className: "py-2 pl-2 pr-6",
|
|
7121
7124
|
direction: "horizontal",
|
|
7122
7125
|
children: [
|
|
7123
|
-
h && /* @__PURE__ */ a(
|
|
7126
|
+
h && /* @__PURE__ */ a(Ne, { children: [
|
|
7124
7127
|
/* @__PURE__ */ e(
|
|
7125
7128
|
dt,
|
|
7126
7129
|
{
|
|
@@ -7187,7 +7190,7 @@ function Kl({
|
|
|
7187
7190
|
)
|
|
7188
7191
|
]
|
|
7189
7192
|
}
|
|
7190
|
-
) : /* @__PURE__ */ e(
|
|
7193
|
+
) : /* @__PURE__ */ e(Ne, { children: "No Active Card" });
|
|
7191
7194
|
}
|
|
7192
7195
|
function zh() {
|
|
7193
7196
|
const t = F((n) => n.pythonStdOut);
|
|
@@ -7202,6 +7205,46 @@ function zh() {
|
|
|
7202
7205
|
] });
|
|
7203
7206
|
}
|
|
7204
7207
|
function _h() {
|
|
7208
|
+
var n, r;
|
|
7209
|
+
const t = F((c) => c.card), s = F(
|
|
7210
|
+
(c) => c.actions.setCardPreferences
|
|
7211
|
+
);
|
|
7212
|
+
return t.type !== "table" && t.type !== "detailTable" ? null : /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", children: [
|
|
7213
|
+
/* @__PURE__ */ e(z, { htmlFor: "table-density", className: "text-[13px]", children: "Density" }),
|
|
7214
|
+
/* @__PURE__ */ a(
|
|
7215
|
+
ae,
|
|
7216
|
+
{
|
|
7217
|
+
value: ((r = (n = t.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : r.density) ?? "compact",
|
|
7218
|
+
onValueChange: (c) => {
|
|
7219
|
+
var o;
|
|
7220
|
+
s({
|
|
7221
|
+
...t.preferences,
|
|
7222
|
+
tablePrefs: {
|
|
7223
|
+
...(o = t.preferences) == null ? void 0 : o.tablePrefs,
|
|
7224
|
+
density: c
|
|
7225
|
+
}
|
|
7226
|
+
});
|
|
7227
|
+
},
|
|
7228
|
+
children: [
|
|
7229
|
+
/* @__PURE__ */ e(
|
|
7230
|
+
ne,
|
|
7231
|
+
{
|
|
7232
|
+
id: "table-density",
|
|
7233
|
+
className: "h-7 w-[116px] rounded-[5px] px-2 text-[12px]",
|
|
7234
|
+
children: /* @__PURE__ */ e(se, {})
|
|
7235
|
+
}
|
|
7236
|
+
),
|
|
7237
|
+
/* @__PURE__ */ a(re, { children: [
|
|
7238
|
+
/* @__PURE__ */ e(j, { value: "compact", children: "Compact" }),
|
|
7239
|
+
/* @__PURE__ */ e(j, { value: "comfortable", children: "Comfortable" }),
|
|
7240
|
+
/* @__PURE__ */ e(j, { value: "spacious", children: "Spacious" })
|
|
7241
|
+
] })
|
|
7242
|
+
]
|
|
7243
|
+
}
|
|
7244
|
+
)
|
|
7245
|
+
] });
|
|
7246
|
+
}
|
|
7247
|
+
function $h() {
|
|
7205
7248
|
var d, i, u, f, h, p, m, x;
|
|
7206
7249
|
const t = F((y) => y.card), s = F((y) => y.actions.setCard), n = F((y) => y.actions.setRunSql), r = F(
|
|
7207
7250
|
(y) => y.actions.setCardPreferences
|
|
@@ -7265,7 +7308,7 @@ function _h() {
|
|
|
7265
7308
|
)
|
|
7266
7309
|
] });
|
|
7267
7310
|
}
|
|
7268
|
-
function
|
|
7311
|
+
function qh() {
|
|
7269
7312
|
const t = F((n) => n.isShowingVisual), s = F(
|
|
7270
7313
|
(n) => n.actions.setIsShowingVisual
|
|
7271
7314
|
);
|
|
@@ -7356,7 +7399,7 @@ function sa({
|
|
|
7356
7399
|
}
|
|
7357
7400
|
);
|
|
7358
7401
|
}
|
|
7359
|
-
function
|
|
7402
|
+
function jh(t, s) {
|
|
7360
7403
|
return $s(t, s) || null;
|
|
7361
7404
|
}
|
|
7362
7405
|
function cn(t) {
|
|
@@ -7370,7 +7413,7 @@ function cn(t) {
|
|
|
7370
7413
|
const n = t.match(/^(\d+)\+$/);
|
|
7371
7414
|
return n ? `Tabs ${Number(n[1]) + 1}+` : `Tab ${t}`;
|
|
7372
7415
|
}
|
|
7373
|
-
function
|
|
7416
|
+
function Kh(t) {
|
|
7374
7417
|
return t ? Array.isArray(t) ? t : [t] : [];
|
|
7375
7418
|
}
|
|
7376
7419
|
function Ms(t) {
|
|
@@ -7381,7 +7424,7 @@ function Ms(t) {
|
|
|
7381
7424
|
const s = !!((c = t.sql) != null && c.trim()), n = bn(t.config);
|
|
7382
7425
|
return s || n;
|
|
7383
7426
|
}
|
|
7384
|
-
function
|
|
7427
|
+
function Gh({
|
|
7385
7428
|
slots: t,
|
|
7386
7429
|
cards: s,
|
|
7387
7430
|
minInputs: n
|
|
@@ -7438,22 +7481,22 @@ function Kh({
|
|
|
7438
7481
|
}
|
|
7439
7482
|
}), s.forEach((o, l) => {
|
|
7440
7483
|
if (!o) return;
|
|
7441
|
-
const d =
|
|
7484
|
+
const d = jh(t, l);
|
|
7442
7485
|
if (!d || !d.expectedType) return;
|
|
7443
|
-
const i =
|
|
7486
|
+
const i = Kh(d.expectedType);
|
|
7444
7487
|
i.length !== 0 && (i.includes(o.type) || r.push({
|
|
7445
7488
|
type: "wrong-type",
|
|
7446
7489
|
message: `${cn(l)} ("${d.label}") expects ${i.join(", ")}, but is configured as ${o.type}.`
|
|
7447
7490
|
}));
|
|
7448
7491
|
})), r;
|
|
7449
7492
|
}
|
|
7450
|
-
const
|
|
7493
|
+
const Uh = {
|
|
7451
7494
|
table: ({ children: t }) => /* @__PURE__ */ e("table", { className: "my-3 w-full border-collapse overflow-hidden rounded-md border border-border text-sm", children: t }),
|
|
7452
7495
|
thead: ({ children: t }) => /* @__PURE__ */ e("thead", { className: "bg-muted", children: t }),
|
|
7453
7496
|
th: ({ children: t }) => /* @__PURE__ */ e("th", { className: "border border-border px-3 py-2 text-left font-medium", children: t }),
|
|
7454
7497
|
td: ({ children: t }) => /* @__PURE__ */ e("td", { className: "border border-border px-3 py-2", children: t }),
|
|
7455
7498
|
code: ({ children: t, className: s }) => (s == null ? void 0 : s.includes("language-")) ? /* @__PURE__ */ e("pre", { className: "my-3 overflow-x-auto rounded-md bg-muted p-3 text-xs", children: /* @__PURE__ */ e("code", { children: t }) }) : /* @__PURE__ */ e("code", { className: "rounded bg-muted px-1 py-0.5 text-xs", children: t }),
|
|
7456
|
-
pre: ({ children: t }) => /* @__PURE__ */ e(
|
|
7499
|
+
pre: ({ children: t }) => /* @__PURE__ */ e(Ne, { children: t })
|
|
7457
7500
|
};
|
|
7458
7501
|
function uo() {
|
|
7459
7502
|
var N, M, R;
|
|
@@ -7494,7 +7537,7 @@ function uo() {
|
|
|
7494
7537
|
}),
|
|
7495
7538
|
[C, f == null ? void 0 : f.slots]
|
|
7496
7539
|
), B = oe(
|
|
7497
|
-
() =>
|
|
7540
|
+
() => Gh({
|
|
7498
7541
|
slots: f == null ? void 0 : f.slots,
|
|
7499
7542
|
cards: k,
|
|
7500
7543
|
minInputs: x
|
|
@@ -7622,7 +7665,7 @@ function uo() {
|
|
|
7622
7665
|
] });
|
|
7623
7666
|
}
|
|
7624
7667
|
function L() {
|
|
7625
|
-
return /* @__PURE__ */ a(
|
|
7668
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
7626
7669
|
p && /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
7627
7670
|
/* @__PURE__ */ e(z, { children: "Slot Guide" }),
|
|
7628
7671
|
/* @__PURE__ */ e("div", { className: "space-y-3 rounded-md border border-border bg-muted/40 px-3 py-2 text-xs", children: f != null && f.slots && f.slots.length > 0 ? /* @__PURE__ */ e("div", { className: "space-y-3", children: f.slots.map((g, A) => /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
@@ -7706,7 +7749,7 @@ function uo() {
|
|
|
7706
7749
|
),
|
|
7707
7750
|
p && !m && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "Switch to the config tab to change the plugin or component." })
|
|
7708
7751
|
] }) }),
|
|
7709
|
-
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && (!p || m) && /* @__PURE__ */ e(
|
|
7752
|
+
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && (!p || m) && /* @__PURE__ */ e(Ne, { children: i && /* @__PURE__ */ e(
|
|
7710
7753
|
sa,
|
|
7711
7754
|
{
|
|
7712
7755
|
icon: /* @__PURE__ */ e(Tm, { className: "h-3.5 w-3.5" }),
|
|
@@ -7763,7 +7806,7 @@ function uo() {
|
|
|
7763
7806
|
Od,
|
|
7764
7807
|
{
|
|
7765
7808
|
remarkPlugins: [Md],
|
|
7766
|
-
components:
|
|
7809
|
+
components: Uh,
|
|
7767
7810
|
children: f.docs.dataSchema
|
|
7768
7811
|
}
|
|
7769
7812
|
) })
|
|
@@ -7797,7 +7840,7 @@ function uo() {
|
|
|
7797
7840
|
}
|
|
7798
7841
|
);
|
|
7799
7842
|
}
|
|
7800
|
-
function
|
|
7843
|
+
function Hh({
|
|
7801
7844
|
colorRanges: t,
|
|
7802
7845
|
setColorRanges: s
|
|
7803
7846
|
}) {
|
|
@@ -7879,7 +7922,7 @@ function Uh({
|
|
|
7879
7922
|
] }, d))
|
|
7880
7923
|
] });
|
|
7881
7924
|
}
|
|
7882
|
-
function
|
|
7925
|
+
function Qh() {
|
|
7883
7926
|
var f, h, p, m, x;
|
|
7884
7927
|
const t = F((y) => y.card.preferences), s = F(
|
|
7885
7928
|
(y) => y.actions.setCardPreferences
|
|
@@ -8036,7 +8079,7 @@ function Hh() {
|
|
|
8036
8079
|
] }) }),
|
|
8037
8080
|
/* @__PURE__ */ e(za, { className: "my-3" }),
|
|
8038
8081
|
/* @__PURE__ */ e(
|
|
8039
|
-
|
|
8082
|
+
Hh,
|
|
8040
8083
|
{
|
|
8041
8084
|
colorRanges: d,
|
|
8042
8085
|
setColorRanges: i
|
|
@@ -8045,7 +8088,7 @@ function Hh() {
|
|
|
8045
8088
|
] })
|
|
8046
8089
|
] });
|
|
8047
8090
|
}
|
|
8048
|
-
const
|
|
8091
|
+
const Jh = {
|
|
8049
8092
|
combo: {
|
|
8050
8093
|
label: "Combo Chart",
|
|
8051
8094
|
query: "SELECT x-axis, metric-1, metric-2, ... FROM table",
|
|
@@ -8311,9 +8354,9 @@ const Qh = {
|
|
|
8311
8354
|
}
|
|
8312
8355
|
};
|
|
8313
8356
|
function mo(t) {
|
|
8314
|
-
return
|
|
8357
|
+
return Jh[t];
|
|
8315
8358
|
}
|
|
8316
|
-
function
|
|
8359
|
+
function Yh({
|
|
8317
8360
|
chartType: t,
|
|
8318
8361
|
showDocsLink: s = !0
|
|
8319
8362
|
}) {
|
|
@@ -8365,7 +8408,7 @@ function Jh({
|
|
|
8365
8408
|
)
|
|
8366
8409
|
] }) : null;
|
|
8367
8410
|
}
|
|
8368
|
-
function
|
|
8411
|
+
function Wh({
|
|
8369
8412
|
chartType: t
|
|
8370
8413
|
}) {
|
|
8371
8414
|
return mo(t) ? /* @__PURE__ */ a($n, { openDelay: 200, children: [
|
|
@@ -8384,7 +8427,7 @@ function Yh({
|
|
|
8384
8427
|
side: "left",
|
|
8385
8428
|
align: "start",
|
|
8386
8429
|
sideOffset: 8,
|
|
8387
|
-
children: /* @__PURE__ */ e(
|
|
8430
|
+
children: /* @__PURE__ */ e(Yh, { chartType: t })
|
|
8388
8431
|
}
|
|
8389
8432
|
)
|
|
8390
8433
|
] }) : null;
|
|
@@ -8395,13 +8438,13 @@ function os({
|
|
|
8395
8438
|
}) {
|
|
8396
8439
|
return /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
8397
8440
|
/* @__PURE__ */ e("h3", { className: "text-sm font-medium", children: s }),
|
|
8398
|
-
/* @__PURE__ */ e(
|
|
8441
|
+
/* @__PURE__ */ e(Wh, { chartType: t })
|
|
8399
8442
|
] });
|
|
8400
8443
|
}
|
|
8401
|
-
function
|
|
8444
|
+
function Xh() {
|
|
8402
8445
|
return /* @__PURE__ */ a("div", { className: "space-y-6 px-6 py-4", children: [
|
|
8403
8446
|
/* @__PURE__ */ e(os, { chartType: "kpi" }),
|
|
8404
|
-
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(
|
|
8447
|
+
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(Qh, {}) })
|
|
8405
8448
|
] });
|
|
8406
8449
|
}
|
|
8407
8450
|
function Gl({
|
|
@@ -8539,7 +8582,7 @@ function ho() {
|
|
|
8539
8582
|
);
|
|
8540
8583
|
}) });
|
|
8541
8584
|
}
|
|
8542
|
-
const
|
|
8585
|
+
const Zh = [
|
|
8543
8586
|
{
|
|
8544
8587
|
label: "Mercator",
|
|
8545
8588
|
value: "mercator"
|
|
@@ -8596,7 +8639,7 @@ const Xh = [
|
|
|
8596
8639
|
label: "Natural Earth 1",
|
|
8597
8640
|
value: "naturalEarth1"
|
|
8598
8641
|
}
|
|
8599
|
-
],
|
|
8642
|
+
], ep = [
|
|
8600
8643
|
"blues",
|
|
8601
8644
|
"brBG",
|
|
8602
8645
|
"buGn",
|
|
@@ -8635,11 +8678,11 @@ const Xh = [
|
|
|
8635
8678
|
"ylGnBu",
|
|
8636
8679
|
"ylOrBr",
|
|
8637
8680
|
"ylOrRd"
|
|
8638
|
-
],
|
|
8681
|
+
], tp = ep.map((t) => ({
|
|
8639
8682
|
label: t,
|
|
8640
8683
|
value: t
|
|
8641
8684
|
}));
|
|
8642
|
-
function
|
|
8685
|
+
function ap() {
|
|
8643
8686
|
var i, u, f, h, p, m, x, y, v, C, k, B, w, O, S, D, I, E;
|
|
8644
8687
|
const t = F((b) => b.card), s = (u = (i = t == null ? void 0 : t.preferences) == null ? void 0 : i.mapVisualOptions) == null ? void 0 : u.topoJsonUrl, [n, r] = G(
|
|
8645
8688
|
((h = (f = t == null ? void 0 : t.preferences) == null ? void 0 : f.mapVisualOptions) == null ? void 0 : h.customTopoJsonUrl) || ""
|
|
@@ -8702,7 +8745,7 @@ function tp() {
|
|
|
8702
8745
|
placeholder: "Custom URL"
|
|
8703
8746
|
}
|
|
8704
8747
|
),
|
|
8705
|
-
o && /* @__PURE__ */ a(
|
|
8748
|
+
o && /* @__PURE__ */ a(Ne, { children: [
|
|
8706
8749
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
8707
8750
|
/* @__PURE__ */ e(z, { children: "Map Object" }),
|
|
8708
8751
|
/* @__PURE__ */ e(
|
|
@@ -8731,7 +8774,7 @@ function tp() {
|
|
|
8731
8774
|
sa,
|
|
8732
8775
|
{
|
|
8733
8776
|
className: "h-9",
|
|
8734
|
-
options:
|
|
8777
|
+
options: Zh,
|
|
8735
8778
|
value: ((y = (x = t.preferences) == null ? void 0 : x.mapVisualOptions) == null ? void 0 : y.projection) || "",
|
|
8736
8779
|
label: "Projection",
|
|
8737
8780
|
onValueChange: (b) => {
|
|
@@ -8753,7 +8796,7 @@ function tp() {
|
|
|
8753
8796
|
sa,
|
|
8754
8797
|
{
|
|
8755
8798
|
className: "h-9",
|
|
8756
|
-
options:
|
|
8799
|
+
options: tp,
|
|
8757
8800
|
value: ((C = (v = t.preferences) == null ? void 0 : v.mapVisualOptions) == null ? void 0 : C.colorScale) || "",
|
|
8758
8801
|
label: "Select Color Scale",
|
|
8759
8802
|
onValueChange: (b) => {
|
|
@@ -8858,7 +8901,7 @@ function po({ color: t, onColorChange: s, onClose: n }) {
|
|
|
8858
8901
|
const C = v.currentTarget.getBoundingClientRect(), k = Math.max(0, Math.min(1, (v.clientX - C.left) / C.width)), B = Math.max(0, Math.min(1, (v.clientY - C.top) / C.height)), w = k * 100, O = (1 - B) * 100;
|
|
8859
8902
|
l(w), i(O), m(r, w, O);
|
|
8860
8903
|
}, m = (v, C, k) => {
|
|
8861
|
-
const B =
|
|
8904
|
+
const B = sp(v, C, k), w = np(B.r, B.g, B.b);
|
|
8862
8905
|
f(w);
|
|
8863
8906
|
}, x = (v) => {
|
|
8864
8907
|
if (f(v), /^#[0-9A-Fa-f]{6}$/.test(v)) {
|
|
@@ -8978,7 +9021,7 @@ function Ul(t) {
|
|
|
8978
9021
|
b: parseInt(s[3], 16)
|
|
8979
9022
|
} : null;
|
|
8980
9023
|
}
|
|
8981
|
-
function
|
|
9024
|
+
function np(t, s, n) {
|
|
8982
9025
|
return "#" + ((1 << 24) + (t << 16) + (s << 8) + n).toString(16).slice(1);
|
|
8983
9026
|
}
|
|
8984
9027
|
function Hl(t, s, n) {
|
|
@@ -9006,7 +9049,7 @@ function Hl(t, s, n) {
|
|
|
9006
9049
|
l: Math.round(d * 100)
|
|
9007
9050
|
};
|
|
9008
9051
|
}
|
|
9009
|
-
function
|
|
9052
|
+
function sp(t, s, n) {
|
|
9010
9053
|
t /= 360, s /= 100, n /= 100;
|
|
9011
9054
|
let r, c, o;
|
|
9012
9055
|
if (s === 0)
|
|
@@ -9025,7 +9068,7 @@ const Ql = [
|
|
|
9025
9068
|
{ value: "green", color: "#16a34a", label: "Green" },
|
|
9026
9069
|
{ value: "red", color: "#dc2626", label: "Red" },
|
|
9027
9070
|
{ value: "neutral", color: "#6b7280", label: "Neutral" }
|
|
9028
|
-
],
|
|
9071
|
+
], rp = [
|
|
9029
9072
|
"#16a34a",
|
|
9030
9073
|
// green-600
|
|
9031
9074
|
"#dc2626",
|
|
@@ -9054,7 +9097,7 @@ function ra({
|
|
|
9054
9097
|
const i = Ql.find((u) => u.value === t);
|
|
9055
9098
|
return i ? i.color : t.startsWith("#") ? t : Ql[2].color;
|
|
9056
9099
|
};
|
|
9057
|
-
return /* @__PURE__ */ a(
|
|
9100
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
9058
9101
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
9059
9102
|
/* @__PURE__ */ a(Tt, { open: r, onOpenChange: c, children: [
|
|
9060
9103
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -9066,7 +9109,7 @@ function ra({
|
|
|
9066
9109
|
}
|
|
9067
9110
|
) }),
|
|
9068
9111
|
/* @__PURE__ */ e(kt, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
9069
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children:
|
|
9112
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children: rp.map((i) => /* @__PURE__ */ e(
|
|
9070
9113
|
"button",
|
|
9071
9114
|
{
|
|
9072
9115
|
className: X(
|
|
@@ -9143,14 +9186,14 @@ function Qs(t, s) {
|
|
|
9143
9186
|
maximumFractionDigits: s
|
|
9144
9187
|
};
|
|
9145
9188
|
}
|
|
9146
|
-
const
|
|
9189
|
+
const lp = [
|
|
9147
9190
|
"auto",
|
|
9148
9191
|
"number",
|
|
9149
9192
|
"currency",
|
|
9150
9193
|
"percent",
|
|
9151
9194
|
"scientific",
|
|
9152
9195
|
"date"
|
|
9153
|
-
],
|
|
9196
|
+
], ip = [
|
|
9154
9197
|
// 🌐 Global Reserve & Major Currencies
|
|
9155
9198
|
{ value: "USD", label: "USD - US Dollar" },
|
|
9156
9199
|
{ value: "EUR", label: "EUR - Euro" },
|
|
@@ -9203,7 +9246,7 @@ const rp = [
|
|
|
9203
9246
|
{ value: "VND", label: "VND - Vietnamese Dong" },
|
|
9204
9247
|
{ value: "TWD", label: "TWD - New Taiwan Dollar" },
|
|
9205
9248
|
{ value: "ILS", label: "ILS - Israeli New Shekel" }
|
|
9206
|
-
],
|
|
9249
|
+
], op = [
|
|
9207
9250
|
{ value: "en-US", label: "English (US)" },
|
|
9208
9251
|
{ value: "en-GB", label: "English (UK)" },
|
|
9209
9252
|
{ value: "en-IN", label: "English (India)" },
|
|
@@ -9220,7 +9263,7 @@ const rp = [
|
|
|
9220
9263
|
{ value: "hi-IN", label: "Hindi" },
|
|
9221
9264
|
{ value: "nl-NL", label: "Dutch" },
|
|
9222
9265
|
{ value: "sv-SE", label: "Swedish" }
|
|
9223
|
-
],
|
|
9266
|
+
], cp = (t) => t.charAt(0).toUpperCase() + t.slice(1);
|
|
9224
9267
|
function an({
|
|
9225
9268
|
formatOptions: t = {},
|
|
9226
9269
|
onFormatOptionsChange: s,
|
|
@@ -9253,7 +9296,7 @@ function an({
|
|
|
9253
9296
|
h(
|
|
9254
9297
|
o.multiplyBy !== void 0 ? String(o.multiplyBy) : ""
|
|
9255
9298
|
);
|
|
9256
|
-
}, [o.multiplyBy]), /* @__PURE__ */ a(
|
|
9299
|
+
}, [o.multiplyBy]), /* @__PURE__ */ a(Ne, { children: [
|
|
9257
9300
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
9258
9301
|
n && /* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: r }),
|
|
9259
9302
|
/* @__PURE__ */ a(
|
|
@@ -9272,7 +9315,7 @@ function an({
|
|
|
9272
9315
|
children: /* @__PURE__ */ e(se, {})
|
|
9273
9316
|
}
|
|
9274
9317
|
),
|
|
9275
|
-
/* @__PURE__ */ e(re, { children:
|
|
9318
|
+
/* @__PURE__ */ e(re, { children: lp.map((m) => /* @__PURE__ */ e(j, { value: m, className: "text-xs", children: m === "auto" ? "Auto (Default)" : cp(m) }, m)) })
|
|
9276
9319
|
]
|
|
9277
9320
|
}
|
|
9278
9321
|
)
|
|
@@ -9334,7 +9377,7 @@ function an({
|
|
|
9334
9377
|
children: /* @__PURE__ */ e(se, {})
|
|
9335
9378
|
}
|
|
9336
9379
|
),
|
|
9337
|
-
/* @__PURE__ */ e(re, { children:
|
|
9380
|
+
/* @__PURE__ */ e(re, { children: ip.map((m) => /* @__PURE__ */ e(
|
|
9338
9381
|
j,
|
|
9339
9382
|
{
|
|
9340
9383
|
value: m.value,
|
|
@@ -9377,7 +9420,7 @@ function an({
|
|
|
9377
9420
|
children: /* @__PURE__ */ e(se, {})
|
|
9378
9421
|
}
|
|
9379
9422
|
),
|
|
9380
|
-
/* @__PURE__ */ e(re, { children:
|
|
9423
|
+
/* @__PURE__ */ e(re, { children: op.map((m) => /* @__PURE__ */ e(
|
|
9381
9424
|
j,
|
|
9382
9425
|
{
|
|
9383
9426
|
value: m.value,
|
|
@@ -9493,7 +9536,7 @@ function Nr({
|
|
|
9493
9536
|
}
|
|
9494
9537
|
);
|
|
9495
9538
|
}
|
|
9496
|
-
function
|
|
9539
|
+
function dp() {
|
|
9497
9540
|
const t = Oe(
|
|
9498
9541
|
(d) => d.dashboard.filters
|
|
9499
9542
|
), s = F((d) => d.frame), { setFrame: n } = ge(), { dashboardFilterableFields: r } = yn(), { assignFilter: c } = Vd();
|
|
@@ -9505,7 +9548,7 @@ function cp() {
|
|
|
9505
9548
|
return /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
9506
9549
|
/* @__PURE__ */ e(z, { children: "Card Filter" }),
|
|
9507
9550
|
/* @__PURE__ */ e(
|
|
9508
|
-
|
|
9551
|
+
up,
|
|
9509
9552
|
{
|
|
9510
9553
|
onSelect: o,
|
|
9511
9554
|
columns: r
|
|
@@ -9514,7 +9557,7 @@ function cp() {
|
|
|
9514
9557
|
l && /* @__PURE__ */ e(Bd, { filter: l })
|
|
9515
9558
|
] });
|
|
9516
9559
|
}
|
|
9517
|
-
function
|
|
9560
|
+
function up({
|
|
9518
9561
|
columns: t,
|
|
9519
9562
|
onSelect: s
|
|
9520
9563
|
}) {
|
|
@@ -9569,18 +9612,18 @@ function dp({
|
|
|
9569
9612
|
] }) })
|
|
9570
9613
|
] });
|
|
9571
9614
|
}
|
|
9572
|
-
const
|
|
9615
|
+
const mp = [
|
|
9573
9616
|
{ value: "difference", label: "Difference" },
|
|
9574
9617
|
{ value: "change", label: "Change (%)" },
|
|
9575
9618
|
{ value: "change_difference", label: "Change + Difference" },
|
|
9576
9619
|
{ value: "ratio", label: "Ratio" }
|
|
9577
|
-
],
|
|
9620
|
+
], hp = [
|
|
9578
9621
|
{ value: "arrow_badge", label: "Arrow + Badge" },
|
|
9579
9622
|
{ value: "arrow", label: "Arrow Only" },
|
|
9580
9623
|
{ value: "badge", label: "Badge Only" },
|
|
9581
9624
|
{ value: "none", label: "None" }
|
|
9582
9625
|
];
|
|
9583
|
-
function
|
|
9626
|
+
function pp({
|
|
9584
9627
|
cardType: t = "table"
|
|
9585
9628
|
}) {
|
|
9586
9629
|
var f, h, p, m, x;
|
|
@@ -9631,7 +9674,7 @@ function hp({
|
|
|
9631
9674
|
}),
|
|
9632
9675
|
children: [
|
|
9633
9676
|
/* @__PURE__ */ e(ne, { className: "h-7 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
9634
|
-
/* @__PURE__ */ e(re, { children:
|
|
9677
|
+
/* @__PURE__ */ e(re, { children: mp.map((y) => /* @__PURE__ */ e(
|
|
9635
9678
|
j,
|
|
9636
9679
|
{
|
|
9637
9680
|
value: y.value,
|
|
@@ -9666,7 +9709,7 @@ function hp({
|
|
|
9666
9709
|
}),
|
|
9667
9710
|
children: [
|
|
9668
9711
|
/* @__PURE__ */ e(ne, { className: "h-7 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
9669
|
-
/* @__PURE__ */ e(re, { children:
|
|
9712
|
+
/* @__PURE__ */ e(re, { children: hp.map((y) => /* @__PURE__ */ e(
|
|
9670
9713
|
j,
|
|
9671
9714
|
{
|
|
9672
9715
|
value: y.value,
|
|
@@ -9768,7 +9811,7 @@ function hp({
|
|
|
9768
9811
|
/* @__PURE__ */ e(Ke, { children: "Click Filters" }),
|
|
9769
9812
|
/* @__PURE__ */ a(Ge, { className: "space-y-4 px-2", children: [
|
|
9770
9813
|
/* @__PURE__ */ e(ho, {}),
|
|
9771
|
-
/* @__PURE__ */ e(
|
|
9814
|
+
/* @__PURE__ */ e(dp, {})
|
|
9772
9815
|
] })
|
|
9773
9816
|
] })
|
|
9774
9817
|
] }),
|
|
@@ -9785,7 +9828,7 @@ function hp({
|
|
|
9785
9828
|
] })
|
|
9786
9829
|
] });
|
|
9787
9830
|
}
|
|
9788
|
-
function
|
|
9831
|
+
function fp() {
|
|
9789
9832
|
var r;
|
|
9790
9833
|
const t = F((c) => c.card.preferences), { setCardPreferences: s } = F((c) => c.actions);
|
|
9791
9834
|
function n(c) {
|
|
@@ -9817,16 +9860,16 @@ function pp() {
|
|
|
9817
9860
|
}
|
|
9818
9861
|
);
|
|
9819
9862
|
}
|
|
9820
|
-
function
|
|
9863
|
+
function gp() {
|
|
9821
9864
|
return /* @__PURE__ */ a("div", { className: "space-y-4 px-6 py-4", children: [
|
|
9822
9865
|
/* @__PURE__ */ e(os, { chartType: "text" }),
|
|
9823
9866
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
9824
9867
|
/* @__PURE__ */ e(z, { children: "Text Type" }),
|
|
9825
|
-
/* @__PURE__ */ e(
|
|
9868
|
+
/* @__PURE__ */ e(fp, {})
|
|
9826
9869
|
] })
|
|
9827
9870
|
] });
|
|
9828
9871
|
}
|
|
9829
|
-
const
|
|
9872
|
+
const xp = [
|
|
9830
9873
|
"#000000",
|
|
9831
9874
|
// black
|
|
9832
9875
|
"#ffffff",
|
|
@@ -9858,7 +9901,7 @@ const gp = [
|
|
|
9858
9901
|
"#fbbf24"
|
|
9859
9902
|
// yellow-400
|
|
9860
9903
|
];
|
|
9861
|
-
function
|
|
9904
|
+
function bp() {
|
|
9862
9905
|
var O, S, D, I, E, b, L, N, M, R;
|
|
9863
9906
|
const t = F((g) => g.card), s = F((g) => {
|
|
9864
9907
|
var A;
|
|
@@ -10034,7 +10077,7 @@ function xp() {
|
|
|
10034
10077
|
] }),
|
|
10035
10078
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
10036
10079
|
/* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground", children: "Popular Colors" }),
|
|
10037
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children:
|
|
10080
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: xp.map((P, V) => /* @__PURE__ */ e(
|
|
10038
10081
|
"button",
|
|
10039
10082
|
{
|
|
10040
10083
|
className: X(
|
|
@@ -10144,7 +10187,7 @@ function Ft({
|
|
|
10144
10187
|
"aria-label": n || "Edit field"
|
|
10145
10188
|
}
|
|
10146
10189
|
),
|
|
10147
|
-
d && o !== t && /* @__PURE__ */ a(
|
|
10190
|
+
d && o !== t && /* @__PURE__ */ a(Ne, { children: [
|
|
10148
10191
|
/* @__PURE__ */ e(
|
|
10149
10192
|
Q,
|
|
10150
10193
|
{
|
|
@@ -10433,7 +10476,7 @@ function Rs(t, s, n) {
|
|
|
10433
10476
|
}
|
|
10434
10477
|
return "";
|
|
10435
10478
|
}
|
|
10436
|
-
function
|
|
10479
|
+
function vp() {
|
|
10437
10480
|
const t = F((i) => i.card), s = F((i) => {
|
|
10438
10481
|
var u;
|
|
10439
10482
|
return (u = i.card) == null ? void 0 : u.preferences;
|
|
@@ -10512,7 +10555,7 @@ function bp() {
|
|
|
10512
10555
|
] }) })
|
|
10513
10556
|
] });
|
|
10514
10557
|
}
|
|
10515
|
-
function
|
|
10558
|
+
function yp() {
|
|
10516
10559
|
const t = F((h) => h.card), s = bt(), n = F(
|
|
10517
10560
|
(h) => {
|
|
10518
10561
|
var p, m, x, y;
|
|
@@ -10545,7 +10588,7 @@ function vp() {
|
|
|
10545
10588
|
}
|
|
10546
10589
|
)
|
|
10547
10590
|
] }),
|
|
10548
|
-
((n == null ? void 0 : n.display) ?? o) && /* @__PURE__ */ a(
|
|
10591
|
+
((n == null ? void 0 : n.display) ?? o) && /* @__PURE__ */ a(Ne, { children: [
|
|
10549
10592
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
10550
10593
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium", children: "Position" }),
|
|
10551
10594
|
/* @__PURE__ */ a(
|
|
@@ -10578,7 +10621,7 @@ function vp() {
|
|
|
10578
10621
|
] }) })
|
|
10579
10622
|
] });
|
|
10580
10623
|
}
|
|
10581
|
-
function
|
|
10624
|
+
function Np() {
|
|
10582
10625
|
var M, R, g, A, T, _, P;
|
|
10583
10626
|
const t = F((V) => V.card), s = bt(), n = F(
|
|
10584
10627
|
(V) => {
|
|
@@ -10661,7 +10704,7 @@ function yp() {
|
|
|
10661
10704
|
}
|
|
10662
10705
|
)
|
|
10663
10706
|
] }),
|
|
10664
|
-
v && /* @__PURE__ */ a(
|
|
10707
|
+
v && /* @__PURE__ */ a(Ne, { children: [
|
|
10665
10708
|
w && !i && !u && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
10666
10709
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium", children: "Position" }),
|
|
10667
10710
|
/* @__PURE__ */ a(
|
|
@@ -10732,7 +10775,7 @@ function yp() {
|
|
|
10732
10775
|
}
|
|
10733
10776
|
)
|
|
10734
10777
|
] }),
|
|
10735
|
-
L === "override" && /* @__PURE__ */ a(
|
|
10778
|
+
L === "override" && /* @__PURE__ */ a(Ne, { children: [
|
|
10736
10779
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
10737
10780
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
10738
10781
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium", children: "Raw Value" }),
|
|
@@ -10884,7 +10927,7 @@ Difference: Primary - Secondary`,
|
|
|
10884
10927
|
example: "You've achieved 80% of your sales quota."
|
|
10885
10928
|
}
|
|
10886
10929
|
};
|
|
10887
|
-
function
|
|
10930
|
+
function Cp() {
|
|
10888
10931
|
var p, m, x, y, v, C, k, B, w, O;
|
|
10889
10932
|
const t = F((S) => S.card), { setCardPreferences: s } = ge(), n = bt(), r = ((p = t.config) == null ? void 0 : p.metricColumns) || [], c = ((m = t.config) == null ? void 0 : m.groupByColumns) || [], o = r.length === 2 && c.length === 0, l = r.some(
|
|
10890
10933
|
(S) => S.comparisonType && S.comparisonType !== "none"
|
|
@@ -10929,7 +10972,7 @@ function Np() {
|
|
|
10929
10972
|
}
|
|
10930
10973
|
)
|
|
10931
10974
|
] }),
|
|
10932
|
-
f && /* @__PURE__ */ a(
|
|
10975
|
+
f && /* @__PURE__ */ a(Ne, { children: [
|
|
10933
10976
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
10934
10977
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
10935
10978
|
/* @__PURE__ */ e(
|
|
@@ -11225,7 +11268,7 @@ function Np() {
|
|
|
11225
11268
|
] })
|
|
11226
11269
|
] });
|
|
11227
11270
|
}
|
|
11228
|
-
function
|
|
11271
|
+
function wp() {
|
|
11229
11272
|
var o;
|
|
11230
11273
|
const t = F((l) => {
|
|
11231
11274
|
var d;
|
|
@@ -11291,8 +11334,8 @@ function Cp() {
|
|
|
11291
11334
|
) })
|
|
11292
11335
|
] });
|
|
11293
11336
|
}
|
|
11294
|
-
const
|
|
11295
|
-
function
|
|
11337
|
+
const Sp = Object.keys(Pi);
|
|
11338
|
+
function Tp() {
|
|
11296
11339
|
const t = F((p) => p.card), s = F((p) => {
|
|
11297
11340
|
var m;
|
|
11298
11341
|
return (m = p.card) == null ? void 0 : m.preferences;
|
|
@@ -11332,7 +11375,7 @@ function Sp() {
|
|
|
11332
11375
|
onValueChange: (p) => u(p ?? "blue"),
|
|
11333
11376
|
className: "space-y-3",
|
|
11334
11377
|
children: [
|
|
11335
|
-
|
|
11378
|
+
Sp.map((p) => {
|
|
11336
11379
|
const m = Pi[p];
|
|
11337
11380
|
return /* @__PURE__ */ a(
|
|
11338
11381
|
"div",
|
|
@@ -11416,7 +11459,7 @@ function Xl(t) {
|
|
|
11416
11459
|
const s = { ...t };
|
|
11417
11460
|
return s.targetMetricKey || delete s.targetMetricKey, s.comparativeMetricKey || delete s.comparativeMetricKey, !s.targetValue && s.targetValue !== 0 && delete s.targetValue, (!s.rangeKeys || Object.keys(s.rangeKeys).length === 0) && delete s.rangeKeys, (!s.ranges || Object.keys(s.ranges).length === 0) && delete s.ranges, (!s.rangeLabels || Object.keys(s.rangeLabels).length === 0) && delete s.rangeLabels, s;
|
|
11418
11461
|
}
|
|
11419
|
-
function
|
|
11462
|
+
function kp() {
|
|
11420
11463
|
var M, R;
|
|
11421
11464
|
const t = F((g) => g.card.preferences), s = F((g) => g.card), n = F((g) => g.isDevMode), { setCardPreferences: r, setChartOrientation: c } = ge(), o = oe(
|
|
11422
11465
|
() => (t == null ? void 0 : t.bulletConfig) || {},
|
|
@@ -11792,7 +11835,7 @@ function Zl(t) {
|
|
|
11792
11835
|
if (s.xMetricKey || delete s.xMetricKey, s.yMetricKey || delete s.yMetricKey, s.radiusMetricKey || delete s.radiusMetricKey, s.labelKey || delete s.labelKey, s.groupKey || delete s.groupKey, s.enableGrouping === void 0 && delete s.enableGrouping, s.radiusScale || delete s.radiusScale, s.fixedRadius === void 0 && delete s.fixedRadius, s.minRadius === void 0 && delete s.minRadius, s.maxRadius === void 0 && delete s.maxRadius, Object.keys(s).length !== 0)
|
|
11793
11836
|
return s;
|
|
11794
11837
|
}
|
|
11795
|
-
function
|
|
11838
|
+
function Ip() {
|
|
11796
11839
|
var O, S, D, I, E, b, L, N, M, R, g, A;
|
|
11797
11840
|
const t = F((T) => T.card.preferences), s = F((T) => T.card), n = bt(), r = F((T) => T.isDevMode), { setCardPreferences: c, updateCardInFrame: o } = ge(), l = n === "bubble", d = n === "scatter", i = oe(
|
|
11798
11841
|
() => (t == null ? void 0 : t.bubbleScatterConfig) || {},
|
|
@@ -12176,7 +12219,7 @@ function kp() {
|
|
|
12176
12219
|
] })
|
|
12177
12220
|
] });
|
|
12178
12221
|
}
|
|
12179
|
-
const
|
|
12222
|
+
const Dp = [
|
|
12180
12223
|
{
|
|
12181
12224
|
value: "percentOfTotal",
|
|
12182
12225
|
label: "% of Total",
|
|
@@ -12188,7 +12231,7 @@ const Ip = [
|
|
|
12188
12231
|
description: "First stage = 100%, others relative to first stage"
|
|
12189
12232
|
}
|
|
12190
12233
|
];
|
|
12191
|
-
function
|
|
12234
|
+
function Ap() {
|
|
12192
12235
|
const t = F((p) => p.card), s = F((p) => {
|
|
12193
12236
|
var m;
|
|
12194
12237
|
return (m = p.card) == null ? void 0 : m.preferences;
|
|
@@ -12222,7 +12265,7 @@ function Dp() {
|
|
|
12222
12265
|
value: o,
|
|
12223
12266
|
onValueChange: (p) => u(p),
|
|
12224
12267
|
className: "space-y-2",
|
|
12225
|
-
children:
|
|
12268
|
+
children: Dp.map((p) => /* @__PURE__ */ a(
|
|
12226
12269
|
"div",
|
|
12227
12270
|
{
|
|
12228
12271
|
className: "flex items-start gap-2 rounded-md border border-border px-3 py-2",
|
|
@@ -12317,7 +12360,7 @@ function cs() {
|
|
|
12317
12360
|
defaultMetricKeys: r
|
|
12318
12361
|
};
|
|
12319
12362
|
}
|
|
12320
|
-
const
|
|
12363
|
+
const Ep = [
|
|
12321
12364
|
{ value: "USD", label: "USD - US Dollar" },
|
|
12322
12365
|
{ value: "EUR", label: "EUR - Euro" },
|
|
12323
12366
|
{ value: "GBP", label: "GBP - British Pound" },
|
|
@@ -12326,7 +12369,7 @@ const Ap = [
|
|
|
12326
12369
|
{ value: "INR", label: "INR - Indian Rupee" },
|
|
12327
12370
|
{ value: "CAD", label: "CAD - Canadian Dollar" },
|
|
12328
12371
|
{ value: "AUD", label: "AUD - Australian Dollar" }
|
|
12329
|
-
],
|
|
12372
|
+
], Op = [
|
|
12330
12373
|
{ value: "en-US", label: "English (US)" },
|
|
12331
12374
|
{ value: "en-GB", label: "English (UK)" },
|
|
12332
12375
|
{ value: "de-DE", label: "German" },
|
|
@@ -12335,7 +12378,7 @@ const Ap = [
|
|
|
12335
12378
|
{ value: "it-IT", label: "Italian" },
|
|
12336
12379
|
{ value: "pt-BR", label: "Portuguese (Brazil)" },
|
|
12337
12380
|
{ value: "zh-CN", label: "Chinese (Simplified)" }
|
|
12338
|
-
],
|
|
12381
|
+
], Mp = ["center", "start", "end"], Fp = ["center", "start", "end", "top", "bottom"];
|
|
12339
12382
|
function ds({
|
|
12340
12383
|
config: t,
|
|
12341
12384
|
onChange: s,
|
|
@@ -12395,7 +12438,7 @@ function ds({
|
|
|
12395
12438
|
onValueChange: (w) => i("anchor", w),
|
|
12396
12439
|
children: [
|
|
12397
12440
|
/* @__PURE__ */ e(ne, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12398
|
-
/* @__PURE__ */ e(re, { children:
|
|
12441
|
+
/* @__PURE__ */ e(re, { children: Mp.map((w) => /* @__PURE__ */ e(j, { value: w, className: "text-xs", children: At(w) }, w)) })
|
|
12399
12442
|
]
|
|
12400
12443
|
}
|
|
12401
12444
|
)
|
|
@@ -12409,7 +12452,7 @@ function ds({
|
|
|
12409
12452
|
onValueChange: (w) => i("align", w),
|
|
12410
12453
|
children: [
|
|
12411
12454
|
/* @__PURE__ */ e(ne, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12412
|
-
/* @__PURE__ */ e(re, { children:
|
|
12455
|
+
/* @__PURE__ */ e(re, { children: Fp.map((w) => /* @__PURE__ */ e(j, { value: w, className: "text-xs", children: At(w) }, w)) })
|
|
12413
12456
|
]
|
|
12414
12457
|
}
|
|
12415
12458
|
)
|
|
@@ -12454,7 +12497,7 @@ function ds({
|
|
|
12454
12497
|
onValueChange: (w) => f("currency", w),
|
|
12455
12498
|
children: [
|
|
12456
12499
|
/* @__PURE__ */ e(ne, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12457
|
-
/* @__PURE__ */ e(re, { children:
|
|
12500
|
+
/* @__PURE__ */ e(re, { children: Ep.map((w) => /* @__PURE__ */ e(
|
|
12458
12501
|
j,
|
|
12459
12502
|
{
|
|
12460
12503
|
value: w.value,
|
|
@@ -12487,7 +12530,7 @@ function ds({
|
|
|
12487
12530
|
onValueChange: (w) => f("locale", w),
|
|
12488
12531
|
children: [
|
|
12489
12532
|
/* @__PURE__ */ e(ne, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12490
|
-
/* @__PURE__ */ e(re, { children:
|
|
12533
|
+
/* @__PURE__ */ e(re, { children: Op.map((w) => /* @__PURE__ */ e(
|
|
12491
12534
|
j,
|
|
12492
12535
|
{
|
|
12493
12536
|
value: w.value,
|
|
@@ -12573,10 +12616,10 @@ function ds({
|
|
|
12573
12616
|
] })
|
|
12574
12617
|
] });
|
|
12575
12618
|
}
|
|
12576
|
-
const
|
|
12619
|
+
const Rp = [
|
|
12577
12620
|
{ type: "bar", icon: ur, label: "Bar" },
|
|
12578
12621
|
{ type: "line", icon: dr, label: "Line" }
|
|
12579
|
-
],
|
|
12622
|
+
], Lp = [0, 1, 2, 3, 4, 5, 6, 8, 10], Pp = [
|
|
12580
12623
|
{ value: "circle", label: "Circle ●" },
|
|
12581
12624
|
{ value: "rect", label: "Square ■" },
|
|
12582
12625
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -12587,13 +12630,13 @@ const Fp = [
|
|
|
12587
12630
|
{ value: "star", label: "Star ★" },
|
|
12588
12631
|
{ value: "dash", label: "Dash —" },
|
|
12589
12632
|
{ value: "line", label: "Line │" }
|
|
12590
|
-
],
|
|
12633
|
+
], Vp = [
|
|
12591
12634
|
{ value: "solid", label: "Solid ───" },
|
|
12592
12635
|
{ value: "dashed", label: "Dashed - - -" },
|
|
12593
12636
|
{ value: "dotted", label: "Dotted ···" },
|
|
12594
12637
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
12595
12638
|
];
|
|
12596
|
-
function
|
|
12639
|
+
function Bp() {
|
|
12597
12640
|
return F((s) => {
|
|
12598
12641
|
var n;
|
|
12599
12642
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -12602,14 +12645,14 @@ function Vp() {
|
|
|
12602
12645
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
12603
12646
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
12604
12647
|
] }) }),
|
|
12605
|
-
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
12648
|
+
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(zp, {}) })
|
|
12606
12649
|
] });
|
|
12607
12650
|
}
|
|
12608
|
-
function
|
|
12651
|
+
function zp() {
|
|
12609
12652
|
const { transformedMetricKeys: t } = cs();
|
|
12610
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
12653
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(_p, { metricKey: s, idx: n }, s)) });
|
|
12611
12654
|
}
|
|
12612
|
-
function
|
|
12655
|
+
function _p({ metricKey: t, idx: s }) {
|
|
12613
12656
|
var C;
|
|
12614
12657
|
const [n, r] = G(!1), c = F((k) => {
|
|
12615
12658
|
var B;
|
|
@@ -12706,7 +12749,7 @@ function zp({ metricKey: t, idx: s }) {
|
|
|
12706
12749
|
/* @__PURE__ */ a("div", { className: "flex items-end gap-4", children: [
|
|
12707
12750
|
/* @__PURE__ */ a("div", { className: "flex-1 space-y-1.5", children: [
|
|
12708
12751
|
/* @__PURE__ */ e(z, { className: "text-xs text-muted-foreground", children: "Chart Type" }),
|
|
12709
|
-
/* @__PURE__ */ e("div", { className: "flex gap-2", children:
|
|
12752
|
+
/* @__PURE__ */ e("div", { className: "flex gap-2", children: Rp.map(({ type: k, icon: B, label: w }) => /* @__PURE__ */ a(
|
|
12710
12753
|
"button",
|
|
12711
12754
|
{
|
|
12712
12755
|
onClick: () => m(k),
|
|
@@ -12752,7 +12795,7 @@ function zp({ metricKey: t, idx: s }) {
|
|
|
12752
12795
|
onValueChange: (k) => p({ lineStyle: k }),
|
|
12753
12796
|
children: [
|
|
12754
12797
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12755
|
-
/* @__PURE__ */ e(re, { children:
|
|
12798
|
+
/* @__PURE__ */ e(re, { children: Vp.map(({ value: k, label: B }) => /* @__PURE__ */ e(
|
|
12756
12799
|
j,
|
|
12757
12800
|
{
|
|
12758
12801
|
value: k,
|
|
@@ -12774,7 +12817,7 @@ function zp({ metricKey: t, idx: s }) {
|
|
|
12774
12817
|
onValueChange: (k) => p({ pointRadius: Number(k) }),
|
|
12775
12818
|
children: [
|
|
12776
12819
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12777
|
-
/* @__PURE__ */ e(re, { children:
|
|
12820
|
+
/* @__PURE__ */ e(re, { children: Lp.map((k) => /* @__PURE__ */ e(
|
|
12778
12821
|
j,
|
|
12779
12822
|
{
|
|
12780
12823
|
value: String(k),
|
|
@@ -12796,7 +12839,7 @@ function zp({ metricKey: t, idx: s }) {
|
|
|
12796
12839
|
onValueChange: (k) => p({ pointStyle: k }),
|
|
12797
12840
|
children: [
|
|
12798
12841
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12799
|
-
/* @__PURE__ */ e(re, { children:
|
|
12842
|
+
/* @__PURE__ */ e(re, { children: Pp.map(({ value: k, label: B }) => /* @__PURE__ */ e(
|
|
12800
12843
|
j,
|
|
12801
12844
|
{
|
|
12802
12845
|
value: k,
|
|
@@ -12844,7 +12887,7 @@ const Ls = [
|
|
|
12844
12887
|
{ value: "-1", label: "Previous Series", description: "Fill to the series below" },
|
|
12845
12888
|
{ value: "+1", label: "Next Series", description: "Fill to the series above" },
|
|
12846
12889
|
{ value: "false", label: "No Fill (Line)", description: "Show as line without fill" }
|
|
12847
|
-
],
|
|
12890
|
+
], $p = [0, 1, 2, 3, 4, 5, 6, 8, 10], qp = [
|
|
12848
12891
|
{ value: "circle", label: "Circle ●" },
|
|
12849
12892
|
{ value: "rect", label: "Square ■" },
|
|
12850
12893
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -12855,16 +12898,16 @@ const Ls = [
|
|
|
12855
12898
|
{ value: "star", label: "Star ★" },
|
|
12856
12899
|
{ value: "dash", label: "Dash —" },
|
|
12857
12900
|
{ value: "line", label: "Line │" }
|
|
12858
|
-
],
|
|
12901
|
+
], jp = [
|
|
12859
12902
|
{ value: "solid", label: "Solid ───" },
|
|
12860
12903
|
{ value: "dashed", label: "Dashed - - -" },
|
|
12861
12904
|
{ value: "dotted", label: "Dotted ···" },
|
|
12862
12905
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
12863
12906
|
];
|
|
12864
|
-
function
|
|
12907
|
+
function Kp(t) {
|
|
12865
12908
|
return t == null ? "origin" : t === !1 ? "false" : t;
|
|
12866
12909
|
}
|
|
12867
|
-
function
|
|
12910
|
+
function Gp() {
|
|
12868
12911
|
const t = F((s) => {
|
|
12869
12912
|
var n;
|
|
12870
12913
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -12874,14 +12917,14 @@ function Kp() {
|
|
|
12874
12917
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
12875
12918
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
12876
12919
|
] }) }),
|
|
12877
|
-
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
12920
|
+
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(Up, {}) })
|
|
12878
12921
|
] });
|
|
12879
12922
|
}
|
|
12880
|
-
function
|
|
12923
|
+
function Up() {
|
|
12881
12924
|
const { transformedMetricKeys: t } = cs();
|
|
12882
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
12925
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(Hp, { metricKey: s, idx: n }, s)) });
|
|
12883
12926
|
}
|
|
12884
|
-
function
|
|
12927
|
+
function Hp({ metricKey: t, idx: s }) {
|
|
12885
12928
|
var y;
|
|
12886
12929
|
const [n, r] = G(!1), c = F((v) => {
|
|
12887
12930
|
var C;
|
|
@@ -12891,7 +12934,7 @@ function Up({ metricKey: t, idx: s }) {
|
|
|
12891
12934
|
var C, k;
|
|
12892
12935
|
return (k = (C = v.card) == null ? void 0 : C.preferences) == null ? void 0 : k.datasetOptions;
|
|
12893
12936
|
}
|
|
12894
|
-
), l = o == null ? void 0 : o.find((v) => v.idx === s), { setCardPreferences: d } = F((v) => v.actions), i =
|
|
12937
|
+
), l = o == null ? void 0 : o.find((v) => v.idx === s), { setCardPreferences: d } = F((v) => v.actions), i = Kp(l == null ? void 0 : l.fill), u = ((y = l == null ? void 0 : l.dataLabels) == null ? void 0 : y.enabled) ?? !1, f = Ls.find((v) => v.value === i) || Ls[0];
|
|
12895
12938
|
function h(v) {
|
|
12896
12939
|
const C = {
|
|
12897
12940
|
idx: s,
|
|
@@ -12993,7 +13036,7 @@ function Up({ metricKey: t, idx: s }) {
|
|
|
12993
13036
|
onValueChange: (v) => h({ lineStyle: v }),
|
|
12994
13037
|
children: [
|
|
12995
13038
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
12996
|
-
/* @__PURE__ */ e(re, { children:
|
|
13039
|
+
/* @__PURE__ */ e(re, { children: jp.map(({ value: v, label: C }) => /* @__PURE__ */ e(
|
|
12997
13040
|
j,
|
|
12998
13041
|
{
|
|
12999
13042
|
value: v,
|
|
@@ -13015,7 +13058,7 @@ function Up({ metricKey: t, idx: s }) {
|
|
|
13015
13058
|
onValueChange: (v) => h({ pointRadius: Number(v) }),
|
|
13016
13059
|
children: [
|
|
13017
13060
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13018
|
-
/* @__PURE__ */ e(re, { children:
|
|
13061
|
+
/* @__PURE__ */ e(re, { children: $p.map((v) => /* @__PURE__ */ e(
|
|
13019
13062
|
j,
|
|
13020
13063
|
{
|
|
13021
13064
|
value: String(v),
|
|
@@ -13037,7 +13080,7 @@ function Up({ metricKey: t, idx: s }) {
|
|
|
13037
13080
|
onValueChange: (v) => h({ pointStyle: v }),
|
|
13038
13081
|
children: [
|
|
13039
13082
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13040
|
-
/* @__PURE__ */ e(re, { children:
|
|
13083
|
+
/* @__PURE__ */ e(re, { children: qp.map(({ value: v, label: C }) => /* @__PURE__ */ e(
|
|
13041
13084
|
j,
|
|
13042
13085
|
{
|
|
13043
13086
|
value: v,
|
|
@@ -13078,7 +13121,7 @@ function Up({ metricKey: t, idx: s }) {
|
|
|
13078
13121
|
] }) }) })
|
|
13079
13122
|
] }) });
|
|
13080
13123
|
}
|
|
13081
|
-
const
|
|
13124
|
+
const Qp = [0, 1, 2, 3, 4, 5, 6, 8, 10], Jp = [
|
|
13082
13125
|
{ value: "circle", label: "Circle ●" },
|
|
13083
13126
|
{ value: "rect", label: "Square ■" },
|
|
13084
13127
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -13095,7 +13138,7 @@ const Hp = [0, 1, 2, 3, 4, 5, 6, 8, 10], Qp = [
|
|
|
13095
13138
|
{ value: "dotted", label: "Dotted ···" },
|
|
13096
13139
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
13097
13140
|
];
|
|
13098
|
-
function
|
|
13141
|
+
function Yp() {
|
|
13099
13142
|
return F((s) => {
|
|
13100
13143
|
var n;
|
|
13101
13144
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -13104,14 +13147,14 @@ function Jp() {
|
|
|
13104
13147
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13105
13148
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
13106
13149
|
] }) }),
|
|
13107
|
-
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
13150
|
+
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(Wp, {}) })
|
|
13108
13151
|
] });
|
|
13109
13152
|
}
|
|
13110
|
-
function
|
|
13153
|
+
function Wp() {
|
|
13111
13154
|
const { transformedMetricKeys: t } = cs();
|
|
13112
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
13155
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(Xp, { metricKey: s, idx: n }, s)) });
|
|
13113
13156
|
}
|
|
13114
|
-
function
|
|
13157
|
+
function Xp({ metricKey: t, idx: s }) {
|
|
13115
13158
|
var v;
|
|
13116
13159
|
const [n, r] = G(!1), c = F((C) => {
|
|
13117
13160
|
var k;
|
|
@@ -13222,7 +13265,7 @@ function Wp({ metricKey: t, idx: s }) {
|
|
|
13222
13265
|
onValueChange: (C) => m({ pointRadius: Number(C) }),
|
|
13223
13266
|
children: [
|
|
13224
13267
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13225
|
-
/* @__PURE__ */ e(re, { children:
|
|
13268
|
+
/* @__PURE__ */ e(re, { children: Qp.map((C) => /* @__PURE__ */ e(
|
|
13226
13269
|
j,
|
|
13227
13270
|
{
|
|
13228
13271
|
value: String(C),
|
|
@@ -13244,7 +13287,7 @@ function Wp({ metricKey: t, idx: s }) {
|
|
|
13244
13287
|
onValueChange: (C) => m({ pointStyle: C }),
|
|
13245
13288
|
children: [
|
|
13246
13289
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13247
|
-
/* @__PURE__ */ e(re, { children:
|
|
13290
|
+
/* @__PURE__ */ e(re, { children: Jp.map(({ value: C, label: k }) => /* @__PURE__ */ e(
|
|
13248
13291
|
j,
|
|
13249
13292
|
{
|
|
13250
13293
|
value: C,
|
|
@@ -13285,8 +13328,8 @@ function Wp({ metricKey: t, idx: s }) {
|
|
|
13285
13328
|
] }) }) })
|
|
13286
13329
|
] }) });
|
|
13287
13330
|
}
|
|
13288
|
-
const
|
|
13289
|
-
function
|
|
13331
|
+
const Zp = [0, 2, 4, 6, 8, 10, 12, 16, 20];
|
|
13332
|
+
function ef() {
|
|
13290
13333
|
const t = F((s) => {
|
|
13291
13334
|
var n;
|
|
13292
13335
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -13296,14 +13339,14 @@ function Zp() {
|
|
|
13296
13339
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13297
13340
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
13298
13341
|
] }) }),
|
|
13299
|
-
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
13342
|
+
/* @__PURE__ */ e(Ge, { className: "pt-2", children: /* @__PURE__ */ e(tf, {}) })
|
|
13300
13343
|
] });
|
|
13301
13344
|
}
|
|
13302
|
-
function
|
|
13345
|
+
function tf() {
|
|
13303
13346
|
const { transformedMetricKeys: t } = cs();
|
|
13304
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
13347
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(af, { metricKey: s, idx: n }, s)) });
|
|
13305
13348
|
}
|
|
13306
|
-
function
|
|
13349
|
+
function af({ metricKey: t, idx: s }) {
|
|
13307
13350
|
var x;
|
|
13308
13351
|
const [n, r] = G(!1), c = F((y) => {
|
|
13309
13352
|
var v;
|
|
@@ -13394,7 +13437,7 @@ function tf({ metricKey: t, idx: s }) {
|
|
|
13394
13437
|
onValueChange: (y) => h({ borderRadius: Number(y) }),
|
|
13395
13438
|
children: [
|
|
13396
13439
|
/* @__PURE__ */ e(ne, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13397
|
-
/* @__PURE__ */ e(re, { children:
|
|
13440
|
+
/* @__PURE__ */ e(re, { children: Zp.map((y) => /* @__PURE__ */ e(
|
|
13398
13441
|
j,
|
|
13399
13442
|
{
|
|
13400
13443
|
value: String(y),
|
|
@@ -13434,7 +13477,7 @@ function tf({ metricKey: t, idx: s }) {
|
|
|
13434
13477
|
] }) }) })
|
|
13435
13478
|
] }) });
|
|
13436
13479
|
}
|
|
13437
|
-
const
|
|
13480
|
+
const nf = [0, 1, 2, 3, 4, 5, 6, 8, 10], sf = [
|
|
13438
13481
|
{ value: "circle", label: "Circle ●" },
|
|
13439
13482
|
{ value: "rect", label: "Square ■" },
|
|
13440
13483
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -13445,13 +13488,13 @@ const af = [0, 1, 2, 3, 4, 5, 6, 8, 10], nf = [
|
|
|
13445
13488
|
{ value: "star", label: "Star ★" },
|
|
13446
13489
|
{ value: "dash", label: "Dash —" },
|
|
13447
13490
|
{ value: "line", label: "Line │" }
|
|
13448
|
-
],
|
|
13491
|
+
], rf = [
|
|
13449
13492
|
{ value: "solid", label: "Solid ───" },
|
|
13450
13493
|
{ value: "dashed", label: "Dashed - - -" },
|
|
13451
13494
|
{ value: "dotted", label: "Dotted ···" },
|
|
13452
13495
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
13453
13496
|
];
|
|
13454
|
-
function
|
|
13497
|
+
function lf() {
|
|
13455
13498
|
const t = F((d) => d.card), s = F((d) => {
|
|
13456
13499
|
var i;
|
|
13457
13500
|
return (i = d.card) == null ? void 0 : i.preferences;
|
|
@@ -13484,7 +13527,7 @@ function rf() {
|
|
|
13484
13527
|
onValueChange: (d) => l("lineStyle", d),
|
|
13485
13528
|
children: [
|
|
13486
13529
|
/* @__PURE__ */ e(ne, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13487
|
-
/* @__PURE__ */ e(re, { children:
|
|
13530
|
+
/* @__PURE__ */ e(re, { children: rf.map(({ value: d, label: i }) => /* @__PURE__ */ e(j, { value: d, className: "text-xs", children: i }, d)) })
|
|
13488
13531
|
]
|
|
13489
13532
|
}
|
|
13490
13533
|
)
|
|
@@ -13498,7 +13541,7 @@ function rf() {
|
|
|
13498
13541
|
onValueChange: (d) => l("pointRadius", Number(d)),
|
|
13499
13542
|
children: [
|
|
13500
13543
|
/* @__PURE__ */ e(ne, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13501
|
-
/* @__PURE__ */ e(re, { children:
|
|
13544
|
+
/* @__PURE__ */ e(re, { children: nf.map((d) => /* @__PURE__ */ e(
|
|
13502
13545
|
j,
|
|
13503
13546
|
{
|
|
13504
13547
|
value: String(d),
|
|
@@ -13520,7 +13563,7 @@ function rf() {
|
|
|
13520
13563
|
onValueChange: (d) => l("pointStyle", d),
|
|
13521
13564
|
children: [
|
|
13522
13565
|
/* @__PURE__ */ e(ne, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13523
|
-
/* @__PURE__ */ e(re, { children:
|
|
13566
|
+
/* @__PURE__ */ e(re, { children: sf.map(({ value: d, label: i }) => /* @__PURE__ */ e(j, { value: d, className: "text-xs", children: i }, d)) })
|
|
13524
13567
|
]
|
|
13525
13568
|
}
|
|
13526
13569
|
)
|
|
@@ -13528,14 +13571,14 @@ function rf() {
|
|
|
13528
13571
|
] }) })
|
|
13529
13572
|
] });
|
|
13530
13573
|
}
|
|
13531
|
-
const
|
|
13574
|
+
const of = [0, 2, 4, 6, 8, 10, 12, 16, 20], cf = [
|
|
13532
13575
|
{ value: "0.5", label: "50%" },
|
|
13533
13576
|
{ value: "0.6", label: "60%" },
|
|
13534
13577
|
{ value: "0.7", label: "70%" },
|
|
13535
13578
|
{ value: "0.8", label: "80%" },
|
|
13536
13579
|
{ value: "0.9", label: "90%" },
|
|
13537
13580
|
{ value: "1", label: "100%" }
|
|
13538
|
-
],
|
|
13581
|
+
], df = [
|
|
13539
13582
|
{ value: "0.5", label: "50%" },
|
|
13540
13583
|
{ value: "0.6", label: "60%" },
|
|
13541
13584
|
{ value: "0.7", label: "70%" },
|
|
@@ -13543,7 +13586,7 @@ const lf = [0, 2, 4, 6, 8, 10, 12, 16, 20], of = [
|
|
|
13543
13586
|
{ value: "0.9", label: "90%" },
|
|
13544
13587
|
{ value: "1", label: "100%" }
|
|
13545
13588
|
];
|
|
13546
|
-
function
|
|
13589
|
+
function uf() {
|
|
13547
13590
|
const t = F((d) => d.card), s = F((d) => {
|
|
13548
13591
|
var i;
|
|
13549
13592
|
return (i = d.card) == null ? void 0 : i.preferences;
|
|
@@ -13576,7 +13619,7 @@ function df() {
|
|
|
13576
13619
|
onValueChange: (d) => l("borderRadius", Number(d)),
|
|
13577
13620
|
children: [
|
|
13578
13621
|
/* @__PURE__ */ e(ne, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13579
|
-
/* @__PURE__ */ e(re, { children:
|
|
13622
|
+
/* @__PURE__ */ e(re, { children: of.map((d) => /* @__PURE__ */ e(
|
|
13580
13623
|
j,
|
|
13581
13624
|
{
|
|
13582
13625
|
value: String(d),
|
|
@@ -13598,7 +13641,7 @@ function df() {
|
|
|
13598
13641
|
onValueChange: (d) => l("barPercentage", Number(d)),
|
|
13599
13642
|
children: [
|
|
13600
13643
|
/* @__PURE__ */ e(ne, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13601
|
-
/* @__PURE__ */ e(re, { children:
|
|
13644
|
+
/* @__PURE__ */ e(re, { children: cf.map(({ value: d, label: i }) => /* @__PURE__ */ e(j, { value: d, className: "text-xs", children: i }, d)) })
|
|
13602
13645
|
]
|
|
13603
13646
|
}
|
|
13604
13647
|
)
|
|
@@ -13612,7 +13655,7 @@ function df() {
|
|
|
13612
13655
|
onValueChange: (d) => l("categoryPercentage", Number(d)),
|
|
13613
13656
|
children: [
|
|
13614
13657
|
/* @__PURE__ */ e(ne, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
13615
|
-
/* @__PURE__ */ e(re, { children:
|
|
13658
|
+
/* @__PURE__ */ e(re, { children: df.map(({ value: d, label: i }) => /* @__PURE__ */ e(j, { value: d, className: "text-xs", children: i }, d)) })
|
|
13616
13659
|
]
|
|
13617
13660
|
}
|
|
13618
13661
|
)
|
|
@@ -13620,7 +13663,7 @@ function df() {
|
|
|
13620
13663
|
] }) })
|
|
13621
13664
|
] });
|
|
13622
13665
|
}
|
|
13623
|
-
function
|
|
13666
|
+
function mf() {
|
|
13624
13667
|
const t = F(
|
|
13625
13668
|
(n) => {
|
|
13626
13669
|
var r, c;
|
|
@@ -13653,7 +13696,7 @@ function uf() {
|
|
|
13653
13696
|
] }) })
|
|
13654
13697
|
] });
|
|
13655
13698
|
}
|
|
13656
|
-
const
|
|
13699
|
+
const hf = ["kpi"], ei = {
|
|
13657
13700
|
none: "None",
|
|
13658
13701
|
previous_period: "Previous Period",
|
|
13659
13702
|
same_period_last_year: "Same Period Last Year",
|
|
@@ -13663,25 +13706,25 @@ const mf = ["kpi"], ei = {
|
|
|
13663
13706
|
function da(t) {
|
|
13664
13707
|
return typeof t == "string" ? t.trim().toLowerCase() : ((t == null ? void 0 : t.id) || (t == null ? void 0 : t.qualifiedFieldName) || (t == null ? void 0 : t.name) || (t == null ? void 0 : t.label) || "").trim().toLowerCase();
|
|
13665
13708
|
}
|
|
13666
|
-
function
|
|
13709
|
+
function pf(t) {
|
|
13667
13710
|
if (!(t != null && t.name) || !(t != null && t.dataType) || t.role === "metric")
|
|
13668
13711
|
return !1;
|
|
13669
13712
|
const s = Ze(t.dataType);
|
|
13670
13713
|
return ["date", "string", "boolean"].includes(s);
|
|
13671
13714
|
}
|
|
13672
|
-
function
|
|
13715
|
+
function ff(t) {
|
|
13673
13716
|
return {
|
|
13674
13717
|
...t,
|
|
13675
13718
|
role: "groupby"
|
|
13676
13719
|
};
|
|
13677
13720
|
}
|
|
13678
|
-
function
|
|
13721
|
+
function gf() {
|
|
13679
13722
|
var k, B;
|
|
13680
13723
|
const t = F((w) => w.card), s = F(
|
|
13681
13724
|
(w) => w.actions.updateCardConfig
|
|
13682
|
-
), n = bt(), { scopedFields: r } = _i(), c = ((k = t.config) == null ? void 0 : k.metricColumns) || [], o = ((B = t.config) == null ? void 0 : B.summary) || {}, l = o.breakdownDimensions || [], d =
|
|
13725
|
+
), n = bt(), { scopedFields: r } = _i(), c = ((k = t.config) == null ? void 0 : k.metricColumns) || [], o = ((B = t.config) == null ? void 0 : B.summary) || {}, l = o.breakdownDimensions || [], d = hf.includes(n), i = c.length > 0, u = o.enabled === !0, f = d && i, { comparisonType: h } = au(t.config, n), p = ei[h] || ei.none, m = Array.from(
|
|
13683
13726
|
new Map(
|
|
13684
|
-
r.filter(
|
|
13727
|
+
r.filter(pf).map((w) => [da(w), ff(w)])
|
|
13685
13728
|
).values()
|
|
13686
13729
|
), x = new Set(
|
|
13687
13730
|
m.map((w) => da(w))
|
|
@@ -13824,10 +13867,10 @@ function ff() {
|
|
|
13824
13867
|
] })
|
|
13825
13868
|
] });
|
|
13826
13869
|
}
|
|
13827
|
-
const
|
|
13828
|
-
function
|
|
13870
|
+
const xf = [];
|
|
13871
|
+
function bf() {
|
|
13829
13872
|
var c;
|
|
13830
|
-
const t = F((o) => o.card), s = ((c = t == null ? void 0 : t.config) == null ? void 0 : c.metricColumns) ??
|
|
13873
|
+
const t = F((o) => o.card), s = ((c = t == null ? void 0 : t.config) == null ? void 0 : c.metricColumns) ?? xf, { updateMetricColumn: n, updateCardInFrame: r } = ge();
|
|
13831
13874
|
return !t || t.type === "kpi" || s.length === 0 ? null : /* @__PURE__ */ a(je, { value: "metric-formats", className: "border-b-0", children: [
|
|
13832
13875
|
/* @__PURE__ */ e(Ke, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13833
13876
|
/* @__PURE__ */ e(Cm, { className: "h-4 w-4" }),
|
|
@@ -13856,7 +13899,7 @@ function xf() {
|
|
|
13856
13899
|
] }, o.id)) })
|
|
13857
13900
|
] });
|
|
13858
13901
|
}
|
|
13859
|
-
const
|
|
13902
|
+
const vf = /* @__PURE__ */ new Set([
|
|
13860
13903
|
"area",
|
|
13861
13904
|
"bar",
|
|
13862
13905
|
"bubble",
|
|
@@ -13875,12 +13918,12 @@ const bf = /* @__PURE__ */ new Set([
|
|
|
13875
13918
|
"stackedLine",
|
|
13876
13919
|
"tornado"
|
|
13877
13920
|
]);
|
|
13878
|
-
function
|
|
13921
|
+
function yf() {
|
|
13879
13922
|
const t = F((i) => i.card), s = F((i) => {
|
|
13880
13923
|
var u;
|
|
13881
13924
|
return (u = i.card) == null ? void 0 : u.preferences;
|
|
13882
13925
|
}), n = bt(), { setCardPreferences: r, updateCardInFrame: c } = ge();
|
|
13883
|
-
if (!t || !
|
|
13926
|
+
if (!t || !vf.has(n || ""))
|
|
13884
13927
|
return null;
|
|
13885
13928
|
const o = s == null ? void 0 : s.tooltipConfig, l = (o == null ? void 0 : o.formatMode) || (o == null ? void 0 : o.mode) || "inherit", d = (i) => {
|
|
13886
13929
|
const u = {
|
|
@@ -13938,37 +13981,37 @@ function fo({ mode: t }) {
|
|
|
13938
13981
|
var r;
|
|
13939
13982
|
return (r = n.card) == null ? void 0 : r.type;
|
|
13940
13983
|
});
|
|
13941
|
-
return /* @__PURE__ */ a(
|
|
13942
|
-
s === "combo" && /* @__PURE__ */ e(
|
|
13943
|
-
(s === "area" || s === "stackedArea") && /* @__PURE__ */ e(
|
|
13944
|
-
s === "line" && /* @__PURE__ */ e(
|
|
13945
|
-
(s === "bar" || s === "horizontalBar" || s === "stackedBar") && /* @__PURE__ */ e(
|
|
13946
|
-
/* @__PURE__ */ e(
|
|
13947
|
-
/* @__PURE__ */ e(
|
|
13948
|
-
/* @__PURE__ */ e(
|
|
13949
|
-
t === "config" && /* @__PURE__ */ e(
|
|
13950
|
-
t === "config" && /* @__PURE__ */ e(
|
|
13951
|
-
/* @__PURE__ */ e(
|
|
13952
|
-
s === "bullet" && /* @__PURE__ */ e(
|
|
13953
|
-
s === "funnel" && /* @__PURE__ */ e(
|
|
13954
|
-
(s === "bubble" || s === "scatter") && /* @__PURE__ */ e(
|
|
13955
|
-
(s === "stackedBar" || s === "stackedLine") && /* @__PURE__ */ e(
|
|
13956
|
-
/* @__PURE__ */ e(
|
|
13957
|
-
/* @__PURE__ */ e(xp, {}),
|
|
13984
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
13985
|
+
s === "combo" && /* @__PURE__ */ e(Bp, {}),
|
|
13986
|
+
(s === "area" || s === "stackedArea") && /* @__PURE__ */ e(Gp, {}),
|
|
13987
|
+
s === "line" && /* @__PURE__ */ e(Yp, {}),
|
|
13988
|
+
(s === "bar" || s === "horizontalBar" || s === "stackedBar") && /* @__PURE__ */ e(ef, {}),
|
|
13989
|
+
/* @__PURE__ */ e(lf, {}),
|
|
13990
|
+
/* @__PURE__ */ e(uf, {}),
|
|
13991
|
+
/* @__PURE__ */ e(wp, {}),
|
|
13992
|
+
t === "config" && /* @__PURE__ */ e(Cp, {}),
|
|
13993
|
+
t === "config" && /* @__PURE__ */ e(gf, {}),
|
|
13994
|
+
/* @__PURE__ */ e(Tp, {}),
|
|
13995
|
+
s === "bullet" && /* @__PURE__ */ e(kp, {}),
|
|
13996
|
+
s === "funnel" && /* @__PURE__ */ e(Ap, {}),
|
|
13997
|
+
(s === "bubble" || s === "scatter") && /* @__PURE__ */ e(Ip, {}),
|
|
13998
|
+
(s === "stackedBar" || s === "stackedLine") && /* @__PURE__ */ e(mf, {}),
|
|
13999
|
+
/* @__PURE__ */ e(bf, {}),
|
|
13958
14000
|
/* @__PURE__ */ e(bp, {}),
|
|
13959
14001
|
/* @__PURE__ */ e(vp, {}),
|
|
13960
14002
|
/* @__PURE__ */ e(yp, {}),
|
|
13961
|
-
/* @__PURE__ */ e(
|
|
14003
|
+
/* @__PURE__ */ e(Np, {}),
|
|
14004
|
+
/* @__PURE__ */ e(yf, {})
|
|
13962
14005
|
] });
|
|
13963
14006
|
}
|
|
13964
|
-
function
|
|
14007
|
+
function Nf() {
|
|
13965
14008
|
const t = F((n) => n.card), s = t == null ? void 0 : t.type;
|
|
13966
14009
|
return s ? /* @__PURE__ */ a("div", { className: "space-y-4 px-6 py-4", children: [
|
|
13967
14010
|
/* @__PURE__ */ e(os, { chartType: s }),
|
|
13968
14011
|
/* @__PURE__ */ e(qa, { type: "single", collapsible: !0, className: "w-full px-2", children: /* @__PURE__ */ e(fo, { mode: "dev" }) })
|
|
13969
14012
|
] }) : null;
|
|
13970
14013
|
}
|
|
13971
|
-
function
|
|
14014
|
+
function Cf() {
|
|
13972
14015
|
const t = F((c) => c.card), s = t.type;
|
|
13973
14016
|
if (tn(t) === "dynamic")
|
|
13974
14017
|
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ a(Fi, { children: [
|
|
@@ -13979,17 +14022,17 @@ function Nf() {
|
|
|
13979
14022
|
function r() {
|
|
13980
14023
|
switch (s) {
|
|
13981
14024
|
case "kpi":
|
|
13982
|
-
return /* @__PURE__ */ e(
|
|
14025
|
+
return /* @__PURE__ */ e(Xh, {});
|
|
13983
14026
|
case "table":
|
|
13984
|
-
return /* @__PURE__ */ e(
|
|
14027
|
+
return /* @__PURE__ */ e(pp, {});
|
|
13985
14028
|
case "map":
|
|
13986
|
-
return /* @__PURE__ */ e(
|
|
14029
|
+
return /* @__PURE__ */ e(ap, {});
|
|
13987
14030
|
case "custom":
|
|
13988
14031
|
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(uo, {}) });
|
|
13989
14032
|
case "text":
|
|
13990
|
-
return /* @__PURE__ */ e(
|
|
14033
|
+
return /* @__PURE__ */ e(gp, {});
|
|
13991
14034
|
default:
|
|
13992
|
-
return /* @__PURE__ */ e(
|
|
14035
|
+
return /* @__PURE__ */ e(Nf, {});
|
|
13993
14036
|
}
|
|
13994
14037
|
}
|
|
13995
14038
|
return /* @__PURE__ */ a(Ja, { className: "h-full w-full text-sm", children: [
|
|
@@ -13997,7 +14040,7 @@ function Nf() {
|
|
|
13997
14040
|
/* @__PURE__ */ e(er, { orientation: "horizontal" })
|
|
13998
14041
|
] });
|
|
13999
14042
|
}
|
|
14000
|
-
function
|
|
14043
|
+
function wf() {
|
|
14001
14044
|
const t = ke(null), s = ke(null), n = F((h) => h.isShowingVisual), r = F((h) => h.isDevMode), c = F((h) => h.showAIDialog), [o, l] = G(!1), d = n && !c, i = d && (!r || o), u = r && d, f = () => l((h) => !h);
|
|
14002
14045
|
return ye(() => {
|
|
14003
14046
|
var h, p, m, x;
|
|
@@ -14033,14 +14076,14 @@ function Cf() {
|
|
|
14033
14076
|
minSize: 0,
|
|
14034
14077
|
defaultSize: 60,
|
|
14035
14078
|
children: i ? /* @__PURE__ */ a(Ut, { direction: "horizontal", children: [
|
|
14036
|
-
/* @__PURE__ */ e(
|
|
14079
|
+
/* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(
|
|
14037
14080
|
dt,
|
|
14038
14081
|
{
|
|
14039
14082
|
ref: t,
|
|
14040
14083
|
className: "flex",
|
|
14041
14084
|
defaultSize: 25,
|
|
14042
14085
|
maxSize: 30,
|
|
14043
|
-
children: /* @__PURE__ */ e(
|
|
14086
|
+
children: /* @__PURE__ */ e(Cf, {})
|
|
14044
14087
|
}
|
|
14045
14088
|
) }),
|
|
14046
14089
|
!c && /* @__PURE__ */ e(Ht, {}),
|
|
@@ -14070,7 +14113,7 @@ function Cf() {
|
|
|
14070
14113
|
}
|
|
14071
14114
|
);
|
|
14072
14115
|
}
|
|
14073
|
-
function
|
|
14116
|
+
function Sf(t) {
|
|
14074
14117
|
var Je;
|
|
14075
14118
|
mn(
|
|
14076
14119
|
(U) => U.currentAIContext
|
|
@@ -14204,9 +14247,9 @@ function wf(t) {
|
|
|
14204
14247
|
}), N(!1));
|
|
14205
14248
|
}, [k, C, Pe, N]);
|
|
14206
14249
|
async function J({ toolCall: U }) {
|
|
14207
|
-
var xe, Re, de, Z, fe,
|
|
14250
|
+
var xe, Re, de, Z, fe, Ce, qe, Be, st, ot, Qt, $t, qt, pe, Ye, it;
|
|
14208
14251
|
if (["createChartFromSql", "createForecast"].includes(U.toolName)) {
|
|
14209
|
-
const ze = ((xe = U.input) == null ? void 0 : xe.sql) ?? ((Re = U.args) == null ? void 0 : Re.sql), Ot = ((de = U.input) == null ? void 0 : de.python) ?? ((Z = U.args) == null ? void 0 : Z.python), He = ((fe = U.input) == null ? void 0 : fe.chartType) ?? ((
|
|
14252
|
+
const ze = ((xe = U.input) == null ? void 0 : xe.sql) ?? ((Re = U.args) == null ? void 0 : Re.sql), Ot = ((de = U.input) == null ? void 0 : de.python) ?? ((Z = U.args) == null ? void 0 : Z.python), He = ((fe = U.input) == null ? void 0 : fe.chartType) ?? ((Ce = U.args) == null ? void 0 : Ce.chartType);
|
|
14210
14253
|
x(He), p(ze), h(Ot), m(!0), ue({
|
|
14211
14254
|
tool: U.toolName,
|
|
14212
14255
|
toolCallId: U.toolCallId,
|
|
@@ -14357,7 +14400,7 @@ function wf(t) {
|
|
|
14357
14400
|
clearError: Se
|
|
14358
14401
|
};
|
|
14359
14402
|
}
|
|
14360
|
-
const
|
|
14403
|
+
const Tf = [
|
|
14361
14404
|
{
|
|
14362
14405
|
title: "Help me write a query for",
|
|
14363
14406
|
subtitle: "orders by month"
|
|
@@ -14389,7 +14432,7 @@ function ti({
|
|
|
14389
14432
|
llmUsage: ie,
|
|
14390
14433
|
errorMessage: H,
|
|
14391
14434
|
clearError: ce
|
|
14392
|
-
} =
|
|
14435
|
+
} = Sf(), [me, De] = G(""), Le = (pe) => {
|
|
14393
14436
|
De(pe.target.value);
|
|
14394
14437
|
}, ue = (pe) => {
|
|
14395
14438
|
pe.preventDefault();
|
|
@@ -14488,7 +14531,7 @@ function ti({
|
|
|
14488
14531
|
}, [_]), fe = Te(() => {
|
|
14489
14532
|
Re(!y);
|
|
14490
14533
|
}, [y, Re]);
|
|
14491
|
-
function
|
|
14534
|
+
function Ce(pe, Ye) {
|
|
14492
14535
|
Ye === "sql" ? (b(pe), L(!0)) : Ye === "python" && (g(pe), L(!0));
|
|
14493
14536
|
}
|
|
14494
14537
|
function qe() {
|
|
@@ -14666,7 +14709,7 @@ function ti({
|
|
|
14666
14709
|
{
|
|
14667
14710
|
messages: he,
|
|
14668
14711
|
showTools: d,
|
|
14669
|
-
handleRun:
|
|
14712
|
+
handleRun: Ce,
|
|
14670
14713
|
showSystemMessage: u,
|
|
14671
14714
|
onQuickReply: de,
|
|
14672
14715
|
disableQuickReplies: q
|
|
@@ -14707,7 +14750,7 @@ function ti({
|
|
|
14707
14750
|
Tu,
|
|
14708
14751
|
{
|
|
14709
14752
|
onClick: Be,
|
|
14710
|
-
placeholders:
|
|
14753
|
+
placeholders: Tf
|
|
14711
14754
|
}
|
|
14712
14755
|
),
|
|
14713
14756
|
/* @__PURE__ */ e("div", { children: $t && T && /* @__PURE__ */ e(
|
|
@@ -14772,7 +14815,7 @@ function ti({
|
|
|
14772
14815
|
n
|
|
14773
14816
|
) : qt;
|
|
14774
14817
|
}
|
|
14775
|
-
function
|
|
14818
|
+
function kf(t, s, n) {
|
|
14776
14819
|
if (!s) return !1;
|
|
14777
14820
|
const r = s.qualifiedFieldName, c = s.qualifiedEntityName, o = c && s.name ? `${c}.${s.name}` : r;
|
|
14778
14821
|
return t.some((l) => {
|
|
@@ -14781,7 +14824,7 @@ function Tf(t, s, n) {
|
|
|
14781
14824
|
return r ? m ? m === o || m.endsWith(`.${r}`) : f === s.name : m ? m === o : f === s.name;
|
|
14782
14825
|
});
|
|
14783
14826
|
}
|
|
14784
|
-
function
|
|
14827
|
+
function If({
|
|
14785
14828
|
aliasTemplate: t,
|
|
14786
14829
|
onAliasTemplateChange: s
|
|
14787
14830
|
}) {
|
|
@@ -14810,7 +14853,7 @@ function kf({
|
|
|
14810
14853
|
"aria-label": "Edit alias template"
|
|
14811
14854
|
}
|
|
14812
14855
|
),
|
|
14813
|
-
c && n !== t && /* @__PURE__ */ a(
|
|
14856
|
+
c && n !== t && /* @__PURE__ */ a(Ne, { children: [
|
|
14814
14857
|
/* @__PURE__ */ e(
|
|
14815
14858
|
Q,
|
|
14816
14859
|
{
|
|
@@ -14841,7 +14884,7 @@ function kf({
|
|
|
14841
14884
|
] })
|
|
14842
14885
|
] });
|
|
14843
14886
|
}
|
|
14844
|
-
function
|
|
14887
|
+
function Df({
|
|
14845
14888
|
valueAliases: t,
|
|
14846
14889
|
onValueAliasesChange: s
|
|
14847
14890
|
}) {
|
|
@@ -14857,7 +14900,7 @@ function If({
|
|
|
14857
14900
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
14858
14901
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Pivot Value Aliases" }),
|
|
14859
14902
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
14860
|
-
Object.entries(t).map(([h, p], m) => /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: n === h ? /* @__PURE__ */ a(
|
|
14903
|
+
Object.entries(t).map(([h, p], m) => /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: n === h ? /* @__PURE__ */ a(Ne, { children: [
|
|
14861
14904
|
/* @__PURE__ */ e(
|
|
14862
14905
|
Ie,
|
|
14863
14906
|
{
|
|
@@ -14908,7 +14951,7 @@ function If({
|
|
|
14908
14951
|
children: /* @__PURE__ */ e(nt, { className: "h-4 w-4 text-muted-foreground" })
|
|
14909
14952
|
}
|
|
14910
14953
|
)
|
|
14911
|
-
] }) : /* @__PURE__ */ a(
|
|
14954
|
+
] }) : /* @__PURE__ */ a(Ne, { children: [
|
|
14912
14955
|
/* @__PURE__ */ e(
|
|
14913
14956
|
Ie,
|
|
14914
14957
|
{
|
|
@@ -14963,7 +15006,7 @@ function If({
|
|
|
14963
15006
|
] })
|
|
14964
15007
|
] });
|
|
14965
15008
|
}
|
|
14966
|
-
function
|
|
15009
|
+
function Af({ idx: t }) {
|
|
14967
15010
|
var d;
|
|
14968
15011
|
const s = F((i) => {
|
|
14969
15012
|
var u;
|
|
@@ -15085,10 +15128,10 @@ function Cr({
|
|
|
15085
15128
|
/* @__PURE__ */ e(gt, { children: t })
|
|
15086
15129
|
] }) });
|
|
15087
15130
|
}
|
|
15088
|
-
function
|
|
15131
|
+
function Ef(t, s = 30) {
|
|
15089
15132
|
return t.length > s ? t.slice(0, s) + "..." : t;
|
|
15090
15133
|
}
|
|
15091
|
-
function
|
|
15134
|
+
function Of({
|
|
15092
15135
|
col: t,
|
|
15093
15136
|
idx: s,
|
|
15094
15137
|
className: n,
|
|
@@ -15137,7 +15180,7 @@ function Ef({
|
|
|
15137
15180
|
n
|
|
15138
15181
|
),
|
|
15139
15182
|
children: [
|
|
15140
|
-
c || /* @__PURE__ */ e(Cr, { className: "max-w-[100px]", title: t, children:
|
|
15183
|
+
c || /* @__PURE__ */ e(Cr, { className: "max-w-[100px]", title: t, children: Ef(t) }),
|
|
15141
15184
|
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
15142
15185
|
/* @__PURE__ */ e(
|
|
15143
15186
|
ur,
|
|
@@ -15169,13 +15212,13 @@ function Ef({
|
|
|
15169
15212
|
)
|
|
15170
15213
|
}
|
|
15171
15214
|
),
|
|
15172
|
-
/* @__PURE__ */ e(
|
|
15215
|
+
/* @__PURE__ */ e(Af, { idx: s })
|
|
15173
15216
|
] })
|
|
15174
15217
|
]
|
|
15175
15218
|
}
|
|
15176
15219
|
);
|
|
15177
15220
|
}
|
|
15178
|
-
function
|
|
15221
|
+
function Mf() {
|
|
15179
15222
|
const t = F((d) => d.card.type), s = F((d) => d.isDevMode), n = F((d) => d.card.preferences), { setCardPreferences: r } = F((d) => d.actions);
|
|
15180
15223
|
function c(d) {
|
|
15181
15224
|
var f;
|
|
@@ -15242,9 +15285,9 @@ function Of() {
|
|
|
15242
15285
|
}
|
|
15243
15286
|
) });
|
|
15244
15287
|
}
|
|
15245
|
-
return /* @__PURE__ */ e(
|
|
15288
|
+
return /* @__PURE__ */ e(Ne, { children: s ? o() : l() });
|
|
15246
15289
|
}
|
|
15247
|
-
function
|
|
15290
|
+
function Ff({
|
|
15248
15291
|
column: t
|
|
15249
15292
|
}) {
|
|
15250
15293
|
const s = F((i) => i.card.type), n = F(
|
|
@@ -15256,12 +15299,12 @@ function Mf({
|
|
|
15256
15299
|
(i) => i === t.label || i === t.name
|
|
15257
15300
|
), o = c ? r.indexOf(c) : -1;
|
|
15258
15301
|
function l() {
|
|
15259
|
-
return /* @__PURE__ */ e("div", { className: "pr-1", children: c && /* @__PURE__ */ e(
|
|
15302
|
+
return /* @__PURE__ */ e("div", { className: "pr-1", children: c && /* @__PURE__ */ e(Of, { idx: o, col: c, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
|
|
15260
15303
|
}
|
|
15261
15304
|
function d() {
|
|
15262
15305
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15263
15306
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
|
|
15264
|
-
/* @__PURE__ */ e(
|
|
15307
|
+
/* @__PURE__ */ e(Mf, {})
|
|
15265
15308
|
] });
|
|
15266
15309
|
}
|
|
15267
15310
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
@@ -15269,7 +15312,7 @@ function Mf({
|
|
|
15269
15312
|
["pie", "doughnut"].includes(s) && d()
|
|
15270
15313
|
] });
|
|
15271
15314
|
}
|
|
15272
|
-
function
|
|
15315
|
+
function Rf({
|
|
15273
15316
|
field: t,
|
|
15274
15317
|
searchQuery: s = "",
|
|
15275
15318
|
limit: n = 500
|
|
@@ -15498,7 +15541,7 @@ function go({
|
|
|
15498
15541
|
] }),
|
|
15499
15542
|
m.length === 0 && !u && n.length > 0 && /* @__PURE__ */ e("div", { className: "text-center py-4 text-sm text-muted-foreground", children: "All available fields are already filtered" })
|
|
15500
15543
|
] }) : /* @__PURE__ */ e(
|
|
15501
|
-
|
|
15544
|
+
Lf,
|
|
15502
15545
|
{
|
|
15503
15546
|
field: h.field,
|
|
15504
15547
|
selectedValues: h.selectedValues,
|
|
@@ -15523,7 +15566,7 @@ function go({
|
|
|
15523
15566
|
] })
|
|
15524
15567
|
] }) });
|
|
15525
15568
|
}
|
|
15526
|
-
function
|
|
15569
|
+
function Lf({
|
|
15527
15570
|
field: t,
|
|
15528
15571
|
selectedValues: s,
|
|
15529
15572
|
onValuesChange: n,
|
|
@@ -15533,7 +15576,7 @@ function Rf({
|
|
|
15533
15576
|
values: l,
|
|
15534
15577
|
isLoading: d,
|
|
15535
15578
|
isFetching: i
|
|
15536
|
-
} =
|
|
15579
|
+
} = Rf({
|
|
15537
15580
|
field: t,
|
|
15538
15581
|
searchQuery: c,
|
|
15539
15582
|
limit: 500
|
|
@@ -15601,7 +15644,7 @@ function Rf({
|
|
|
15601
15644
|
] })
|
|
15602
15645
|
] });
|
|
15603
15646
|
}
|
|
15604
|
-
function
|
|
15647
|
+
function Pf({
|
|
15605
15648
|
field: t,
|
|
15606
15649
|
zone: s,
|
|
15607
15650
|
index: n,
|
|
@@ -15674,7 +15717,7 @@ function Lf({
|
|
|
15674
15717
|
t.dateFormat || "YYYY-MM-DD"
|
|
15675
15718
|
), [Je, U] = G(t.customFormat || ""), [xe, Re] = G(!!t.customFormat), de = ke(null), [Z, fe] = G(
|
|
15676
15719
|
t.aliasTemplate || ""
|
|
15677
|
-
), [
|
|
15720
|
+
), [Ce, qe] = G(
|
|
15678
15721
|
t.valueAliases || {}
|
|
15679
15722
|
), [Be, st] = G((Ar = t.parameters) == null ? void 0 : Ar.filters), ot = (Y) => {
|
|
15680
15723
|
Y === "custom" ? Re(!0) : (Re(!1), Qe(Y), (s === "groupBy" || Ea) && E(n, Y, "", s));
|
|
@@ -15771,7 +15814,7 @@ function Lf({
|
|
|
15771
15814
|
}, we = (Xe) => Xe.conditions.some((vt) => Ze(vt.field.dataType || "") === "date" && te(vt)) ? !0 : Xe.groups.some((vt) => we(vt));
|
|
15772
15815
|
return we(Y);
|
|
15773
15816
|
}, [(Rr = m.config) == null ? void 0 : Rr.filters, Dt]), Dn = oe(
|
|
15774
|
-
() =>
|
|
15817
|
+
() => kf(
|
|
15775
15818
|
Wt || [],
|
|
15776
15819
|
Dt,
|
|
15777
15820
|
ms
|
|
@@ -15878,7 +15921,7 @@ function Lf({
|
|
|
15878
15921
|
]
|
|
15879
15922
|
}
|
|
15880
15923
|
)
|
|
15881
|
-
] }) : null, Eo = () => So ? /* @__PURE__ */ a(
|
|
15924
|
+
] }) : null, Eo = () => So ? /* @__PURE__ */ a(Ne, { children: [
|
|
15882
15925
|
Dr(),
|
|
15883
15926
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15884
15927
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Date Format" }),
|
|
@@ -15920,7 +15963,7 @@ function Lf({
|
|
|
15920
15963
|
] }) : null, Oo = () => {
|
|
15921
15964
|
var te, we, be, Xe;
|
|
15922
15965
|
const Y = To;
|
|
15923
|
-
return Y ? /* @__PURE__ */ e(
|
|
15966
|
+
return Y ? /* @__PURE__ */ e(Ne, { children: Y && /* @__PURE__ */ a(Ne, { children: [
|
|
15924
15967
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
15925
15968
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Show Trendline" }),
|
|
15926
15969
|
/* @__PURE__ */ e(
|
|
@@ -15932,7 +15975,7 @@ function Lf({
|
|
|
15932
15975
|
}
|
|
15933
15976
|
)
|
|
15934
15977
|
] }) }),
|
|
15935
|
-
((we = m.config) == null ? void 0 : we.showTrendline) && /* @__PURE__ */ a(
|
|
15978
|
+
((we = m.config) == null ? void 0 : we.showTrendline) && /* @__PURE__ */ a(Ne, { children: [
|
|
15936
15979
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15937
15980
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Trendline Window" }),
|
|
15938
15981
|
/* @__PURE__ */ e(
|
|
@@ -15974,7 +16017,7 @@ function Lf({
|
|
|
15974
16017
|
}, Mo = () => {
|
|
15975
16018
|
if (!ko) return null;
|
|
15976
16019
|
const Y = He;
|
|
15977
|
-
return /* @__PURE__ */ a(
|
|
16020
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
15978
16021
|
Y && S && !Mt && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15979
16022
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Formula" }),
|
|
15980
16023
|
/* @__PURE__ */ a(
|
|
@@ -16006,7 +16049,7 @@ function Lf({
|
|
|
16006
16049
|
/* @__PURE__ */ a(re, { children: [
|
|
16007
16050
|
/* @__PURE__ */ e(j, { className: "text-xs", value: "COUNT", children: "Count" }),
|
|
16008
16051
|
/* @__PURE__ */ e(j, { className: "text-xs", value: "DISTINCT", children: "Count Distinct" }),
|
|
16009
|
-
Ze(t.dataType) === "number" && /* @__PURE__ */ a(
|
|
16052
|
+
Ze(t.dataType) === "number" && /* @__PURE__ */ a(Ne, { children: [
|
|
16010
16053
|
/* @__PURE__ */ e(j, { className: "text-xs", value: "SUM", children: "Sum" }),
|
|
16011
16054
|
/* @__PURE__ */ e(j, { className: "text-xs", value: "AVG", children: "Average" }),
|
|
16012
16055
|
/* @__PURE__ */ e(j, { className: "text-xs", value: "MIN", children: "Min" }),
|
|
@@ -16091,8 +16134,8 @@ function Lf({
|
|
|
16091
16134
|
!Ae.supported && !ee && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: Ae.reason }),
|
|
16092
16135
|
Ee && !ee && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Disable comparison to enable metric transforms." })
|
|
16093
16136
|
] }),
|
|
16094
|
-
ee && /* @__PURE__ */ a(
|
|
16095
|
-
Zt && /* @__PURE__ */ a(
|
|
16137
|
+
ee && /* @__PURE__ */ a(Ne, { children: [
|
|
16138
|
+
Zt && /* @__PURE__ */ a(Ne, { children: [
|
|
16096
16139
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
16097
16140
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Order By" }),
|
|
16098
16141
|
/* @__PURE__ */ a(
|
|
@@ -16190,7 +16233,7 @@ function Lf({
|
|
|
16190
16233
|
}
|
|
16191
16234
|
)
|
|
16192
16235
|
] }),
|
|
16193
|
-
ve === "percent_of_total" && /* @__PURE__ */ a(
|
|
16236
|
+
ve === "percent_of_total" && /* @__PURE__ */ a(Ne, { children: [
|
|
16194
16237
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
16195
16238
|
/* @__PURE__ */ e(z, { className: "text-xs font-medium text-muted-foreground", children: "Scope" }),
|
|
16196
16239
|
/* @__PURE__ */ a(
|
|
@@ -16287,7 +16330,7 @@ function Lf({
|
|
|
16287
16330
|
) }),
|
|
16288
16331
|
te && we && /* @__PURE__ */ e(gt, { side: "right", children: we })
|
|
16289
16332
|
] }) });
|
|
16290
|
-
return /* @__PURE__ */ a(
|
|
16333
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
16291
16334
|
be("previous_period", "Previous Period"),
|
|
16292
16335
|
be(
|
|
16293
16336
|
"same_period_last_year",
|
|
@@ -16414,26 +16457,26 @@ function Lf({
|
|
|
16414
16457
|
}
|
|
16415
16458
|
)
|
|
16416
16459
|
] }),
|
|
16417
|
-
/* @__PURE__ */ e(
|
|
16418
|
-
o && /* @__PURE__ */ a(
|
|
16460
|
+
/* @__PURE__ */ e(Ff, { column: t }),
|
|
16461
|
+
o && /* @__PURE__ */ a(Ne, { children: [
|
|
16419
16462
|
/* @__PURE__ */ e(
|
|
16420
|
-
|
|
16463
|
+
If,
|
|
16421
16464
|
{
|
|
16422
16465
|
aliasTemplate: Z,
|
|
16423
16466
|
onAliasTemplateChange: qt
|
|
16424
16467
|
}
|
|
16425
16468
|
),
|
|
16426
16469
|
/* @__PURE__ */ e(
|
|
16427
|
-
|
|
16470
|
+
Df,
|
|
16428
16471
|
{
|
|
16429
|
-
valueAliases:
|
|
16472
|
+
valueAliases: Ce,
|
|
16430
16473
|
onValueAliasesChange: pe
|
|
16431
16474
|
}
|
|
16432
16475
|
)
|
|
16433
16476
|
] })
|
|
16434
16477
|
] });
|
|
16435
16478
|
}, Fo = (Be == null ? void 0 : Be.conditions) && Be.conditions.length > 0;
|
|
16436
|
-
return /* @__PURE__ */ a(
|
|
16479
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
16437
16480
|
/* @__PURE__ */ a(
|
|
16438
16481
|
"div",
|
|
16439
16482
|
{
|
|
@@ -16659,7 +16702,7 @@ function Lf({
|
|
|
16659
16702
|
)
|
|
16660
16703
|
] });
|
|
16661
16704
|
}
|
|
16662
|
-
function
|
|
16705
|
+
function Vf({ concept: t }) {
|
|
16663
16706
|
return /* @__PURE__ */ e(yt, { children: /* @__PURE__ */ a(mt, { delayDuration: 300, children: [
|
|
16664
16707
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(Qu, { className: "size-4 text-muted-foreground hover:text-foreground" }) }),
|
|
16665
16708
|
/* @__PURE__ */ e(gt, { side: "right", align: "start", className: "p-3", children: (() => {
|
|
@@ -16752,7 +16795,7 @@ function Pf({ concept: t }) {
|
|
|
16752
16795
|
})() })
|
|
16753
16796
|
] }) });
|
|
16754
16797
|
}
|
|
16755
|
-
const
|
|
16798
|
+
const Bf = {
|
|
16756
16799
|
groupBy: is,
|
|
16757
16800
|
pivotBy: gr,
|
|
16758
16801
|
metrics: Bm,
|
|
@@ -16782,7 +16825,7 @@ function dn({
|
|
|
16782
16825
|
};
|
|
16783
16826
|
if (t === "sortBy" && c === !1)
|
|
16784
16827
|
return null;
|
|
16785
|
-
const y = t !== "sortBy" && h !== "kpi", v =
|
|
16828
|
+
const y = t !== "sortBy" && h !== "kpi", v = Bf[t] || St;
|
|
16786
16829
|
return /* @__PURE__ */ a("div", { className: "mb-3 w-full", children: [
|
|
16787
16830
|
/* @__PURE__ */ e("div", { className: "mb-1.5 flex items-center gap-2", children: /* @__PURE__ */ e(
|
|
16788
16831
|
z,
|
|
@@ -16815,7 +16858,7 @@ function dn({
|
|
|
16815
16858
|
children: s.length === 0 ? /* @__PURE__ */ a("div", { className: "flex min-h-[56px] items-center justify-center gap-2 text-sm text-muted-foreground/85", children: [
|
|
16816
16859
|
/* @__PURE__ */ e(v, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground/80" }),
|
|
16817
16860
|
/* @__PURE__ */ e("span", { children: r }),
|
|
16818
|
-
y && /* @__PURE__ */ e(
|
|
16861
|
+
y && /* @__PURE__ */ e(Vf, { concept: t })
|
|
16819
16862
|
] }) : /* @__PURE__ */ e(
|
|
16820
16863
|
oa,
|
|
16821
16864
|
{
|
|
@@ -16829,7 +16872,7 @@ function dn({
|
|
|
16829
16872
|
{
|
|
16830
16873
|
className: "flex w-full items-center gap-2",
|
|
16831
16874
|
children: /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e(
|
|
16832
|
-
|
|
16875
|
+
Pf,
|
|
16833
16876
|
{
|
|
16834
16877
|
field: C,
|
|
16835
16878
|
zone: t,
|
|
@@ -16850,7 +16893,7 @@ function dn({
|
|
|
16850
16893
|
)
|
|
16851
16894
|
] });
|
|
16852
16895
|
}
|
|
16853
|
-
function
|
|
16896
|
+
function zf({
|
|
16854
16897
|
groupByFields: t,
|
|
16855
16898
|
pivotByFields: s,
|
|
16856
16899
|
metricsFields: n,
|
|
@@ -16898,7 +16941,7 @@ function Bf({
|
|
|
16898
16941
|
label: "Metrics",
|
|
16899
16942
|
placeholder: "Drop metrics here"
|
|
16900
16943
|
};
|
|
16901
|
-
return /* @__PURE__ */ a(
|
|
16944
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
16902
16945
|
/* @__PURE__ */ a(
|
|
16903
16946
|
qa,
|
|
16904
16947
|
{
|
|
@@ -17060,7 +17103,7 @@ function Bf({
|
|
|
17060
17103
|
)
|
|
17061
17104
|
] });
|
|
17062
17105
|
}
|
|
17063
|
-
function
|
|
17106
|
+
function _f({ onEditJoins: t }) {
|
|
17064
17107
|
const s = F((d) => d.card), { autoJoinMetadata: n } = Nt(s);
|
|
17065
17108
|
if (!(n != null && n.autoResolved))
|
|
17066
17109
|
return null;
|
|
@@ -17177,7 +17220,7 @@ const ai = {
|
|
|
17177
17220
|
}
|
|
17178
17221
|
}
|
|
17179
17222
|
};
|
|
17180
|
-
function
|
|
17223
|
+
function $f({
|
|
17181
17224
|
selectedChart: t,
|
|
17182
17225
|
onChartChange: s,
|
|
17183
17226
|
groupByFields: n,
|
|
@@ -17285,9 +17328,9 @@ function _f({
|
|
|
17285
17328
|
C ? "pt-1" : "pt-4"
|
|
17286
17329
|
),
|
|
17287
17330
|
children: [
|
|
17288
|
-
/* @__PURE__ */ e(
|
|
17331
|
+
/* @__PURE__ */ e(_f, { onEditJoins: D }),
|
|
17289
17332
|
/* @__PURE__ */ e(
|
|
17290
|
-
|
|
17333
|
+
zf,
|
|
17291
17334
|
{
|
|
17292
17335
|
groupByFields: n,
|
|
17293
17336
|
pivotByFields: r,
|
|
@@ -17317,7 +17360,7 @@ function _f({
|
|
|
17317
17360
|
}
|
|
17318
17361
|
);
|
|
17319
17362
|
}
|
|
17320
|
-
function
|
|
17363
|
+
function qf({
|
|
17321
17364
|
initialFilters: t,
|
|
17322
17365
|
availableFields: s
|
|
17323
17366
|
} = {}) {
|
|
@@ -17543,7 +17586,7 @@ function $f({
|
|
|
17543
17586
|
hasAnyFilters: B
|
|
17544
17587
|
};
|
|
17545
17588
|
}
|
|
17546
|
-
function
|
|
17589
|
+
function jf({
|
|
17547
17590
|
children: t,
|
|
17548
17591
|
className: s,
|
|
17549
17592
|
delayDuration: n
|
|
@@ -17562,14 +17605,14 @@ function qf({
|
|
|
17562
17605
|
/* @__PURE__ */ e(gt, { children: t })
|
|
17563
17606
|
] }) });
|
|
17564
17607
|
}
|
|
17565
|
-
const
|
|
17608
|
+
const Kf = (t) => {
|
|
17566
17609
|
if (t.qualifiedEntityName) {
|
|
17567
17610
|
const s = t.qualifiedEntityName.split(".");
|
|
17568
17611
|
return s.length > 1 ? s[0] : "default";
|
|
17569
17612
|
}
|
|
17570
17613
|
return "default";
|
|
17571
17614
|
};
|
|
17572
|
-
function
|
|
17615
|
+
function Gf({
|
|
17573
17616
|
value: t,
|
|
17574
17617
|
onValueChange: s,
|
|
17575
17618
|
availableFields: n,
|
|
@@ -17579,7 +17622,7 @@ function Kf({
|
|
|
17579
17622
|
const [o, l] = ta.useState(!1), d = ta.useMemo(() => {
|
|
17580
17623
|
const i = {};
|
|
17581
17624
|
return n.forEach((u) => {
|
|
17582
|
-
const f =
|
|
17625
|
+
const f = Kf(u);
|
|
17583
17626
|
i[f] || (i[f] = {}), i[f][u.entityId] || (i[f][u.entityId] = []), i[f][u.entityId].push(u);
|
|
17584
17627
|
}), i;
|
|
17585
17628
|
}, [n]);
|
|
@@ -17596,7 +17639,7 @@ function Kf({
|
|
|
17596
17639
|
c
|
|
17597
17640
|
),
|
|
17598
17641
|
children: [
|
|
17599
|
-
t ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(
|
|
17642
|
+
t ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(jf, { children: [
|
|
17600
17643
|
t.entityName,
|
|
17601
17644
|
".",
|
|
17602
17645
|
t.name
|
|
@@ -17710,7 +17753,7 @@ function wr(t) {
|
|
|
17710
17753
|
})
|
|
17711
17754
|
), isPending: p, error: m };
|
|
17712
17755
|
}
|
|
17713
|
-
function
|
|
17756
|
+
function Uf({
|
|
17714
17757
|
field: t,
|
|
17715
17758
|
selected: s,
|
|
17716
17759
|
onChange: n,
|
|
@@ -17789,7 +17832,7 @@ function Gf({
|
|
|
17789
17832
|
] }) })
|
|
17790
17833
|
] }) });
|
|
17791
17834
|
}
|
|
17792
|
-
function
|
|
17835
|
+
function Hf({
|
|
17793
17836
|
field: t,
|
|
17794
17837
|
value: s,
|
|
17795
17838
|
onChange: n,
|
|
@@ -17813,7 +17856,7 @@ function Uf({
|
|
|
17813
17856
|
)) })
|
|
17814
17857
|
] });
|
|
17815
17858
|
}
|
|
17816
|
-
function
|
|
17859
|
+
function Qf({
|
|
17817
17860
|
value: t,
|
|
17818
17861
|
operator: s,
|
|
17819
17862
|
onChange: n,
|
|
@@ -17866,7 +17909,7 @@ function Hf({
|
|
|
17866
17909
|
}
|
|
17867
17910
|
);
|
|
17868
17911
|
}
|
|
17869
|
-
const
|
|
17912
|
+
const Jf = [
|
|
17870
17913
|
"=",
|
|
17871
17914
|
"!=",
|
|
17872
17915
|
">",
|
|
@@ -17880,7 +17923,7 @@ const Qf = [
|
|
|
17880
17923
|
"not in",
|
|
17881
17924
|
"isNull",
|
|
17882
17925
|
"isNotNull"
|
|
17883
|
-
],
|
|
17926
|
+
], Yf = [
|
|
17884
17927
|
"=",
|
|
17885
17928
|
"!=",
|
|
17886
17929
|
"contains",
|
|
@@ -17890,7 +17933,7 @@ const Qf = [
|
|
|
17890
17933
|
"not in",
|
|
17891
17934
|
"isNull",
|
|
17892
17935
|
"isNotNull"
|
|
17893
|
-
],
|
|
17936
|
+
], Wf = [
|
|
17894
17937
|
"=",
|
|
17895
17938
|
"!=",
|
|
17896
17939
|
">",
|
|
@@ -17901,7 +17944,7 @@ const Qf = [
|
|
|
17901
17944
|
"not in",
|
|
17902
17945
|
"isNull",
|
|
17903
17946
|
"isNotNull"
|
|
17904
|
-
],
|
|
17947
|
+
], Xf = ["=", "!=", "isNull", "isNotNull"], Zf = [
|
|
17905
17948
|
"between",
|
|
17906
17949
|
// Default operator for dates
|
|
17907
17950
|
"=",
|
|
@@ -17912,7 +17955,7 @@ const Qf = [
|
|
|
17912
17955
|
">=",
|
|
17913
17956
|
"isNull",
|
|
17914
17957
|
"isNotNull"
|
|
17915
|
-
],
|
|
17958
|
+
], eg = {
|
|
17916
17959
|
"=": "Equals",
|
|
17917
17960
|
"!=": "Not Equals",
|
|
17918
17961
|
">": "Greater Than",
|
|
@@ -17930,20 +17973,20 @@ const Qf = [
|
|
|
17930
17973
|
"not between": "Not Between"
|
|
17931
17974
|
};
|
|
17932
17975
|
function ni(t) {
|
|
17933
|
-
return
|
|
17976
|
+
return eg[t] || At(t);
|
|
17934
17977
|
}
|
|
17935
|
-
function
|
|
17978
|
+
function tg(t) {
|
|
17936
17979
|
switch (t) {
|
|
17937
17980
|
case "string":
|
|
17938
|
-
return Jf;
|
|
17939
|
-
case "number":
|
|
17940
17981
|
return Yf;
|
|
17941
|
-
case "
|
|
17982
|
+
case "number":
|
|
17942
17983
|
return Wf;
|
|
17943
|
-
case "
|
|
17984
|
+
case "boolean":
|
|
17944
17985
|
return Xf;
|
|
17986
|
+
case "date":
|
|
17987
|
+
return Zf;
|
|
17945
17988
|
default:
|
|
17946
|
-
return
|
|
17989
|
+
return Jf;
|
|
17947
17990
|
}
|
|
17948
17991
|
}
|
|
17949
17992
|
function xo({
|
|
@@ -18002,7 +18045,7 @@ function xo({
|
|
|
18002
18045
|
),
|
|
18003
18046
|
s === 0 && /* @__PURE__ */ e("div", { className: "w-24" }),
|
|
18004
18047
|
/* @__PURE__ */ e(
|
|
18005
|
-
|
|
18048
|
+
Gf,
|
|
18006
18049
|
{
|
|
18007
18050
|
value: t.field,
|
|
18008
18051
|
onValueChange: (k) => {
|
|
@@ -18040,7 +18083,7 @@ function xo({
|
|
|
18040
18083
|
},
|
|
18041
18084
|
children: [
|
|
18042
18085
|
/* @__PURE__ */ e(ne, { className: "w-32", children: /* @__PURE__ */ e(se, { children: t.operator ? ni(t.operator) : "" }) }),
|
|
18043
|
-
/* @__PURE__ */ e(re, { children:
|
|
18086
|
+
/* @__PURE__ */ e(re, { children: tg(Ze(t.field.dataType)).map(
|
|
18044
18087
|
(k) => /* @__PURE__ */ e(j, { className: "hover:bg-muted", value: k, children: ni(k) }, k)
|
|
18045
18088
|
) })
|
|
18046
18089
|
]
|
|
@@ -18050,7 +18093,7 @@ function xo({
|
|
|
18050
18093
|
/* @__PURE__ */ e(la, { className: "mr-2 size-3.5 animate-spin" }),
|
|
18051
18094
|
" Loading values..."
|
|
18052
18095
|
] }) : v ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ e(
|
|
18053
|
-
|
|
18096
|
+
Uf,
|
|
18054
18097
|
{
|
|
18055
18098
|
field: t.field,
|
|
18056
18099
|
selected: Array.isArray(t.value) && t.value.every((k) => typeof k == "string") ? t.value : [],
|
|
@@ -18073,7 +18116,7 @@ function xo({
|
|
|
18073
18116
|
placeholder: t.operator.charAt(0).toUpperCase() + t.operator.slice(1) + "..."
|
|
18074
18117
|
}
|
|
18075
18118
|
) : /* @__PURE__ */ e(
|
|
18076
|
-
|
|
18119
|
+
Hf,
|
|
18077
18120
|
{
|
|
18078
18121
|
field: t.field,
|
|
18079
18122
|
value: typeof t.value == "string" ? t.value : "",
|
|
@@ -18102,7 +18145,7 @@ function xo({
|
|
|
18102
18145
|
// - Handles different operators (=, !=, >, <, between, in, etc.)
|
|
18103
18146
|
// - Supports timezone-aware date selection
|
|
18104
18147
|
/* @__PURE__ */ e(
|
|
18105
|
-
|
|
18148
|
+
Qf,
|
|
18106
18149
|
{
|
|
18107
18150
|
value: t.value,
|
|
18108
18151
|
operator: t.operator,
|
|
@@ -18133,7 +18176,7 @@ function xo({
|
|
|
18133
18176
|
}
|
|
18134
18177
|
);
|
|
18135
18178
|
}
|
|
18136
|
-
function
|
|
18179
|
+
function ag({
|
|
18137
18180
|
group: t,
|
|
18138
18181
|
depth: s,
|
|
18139
18182
|
parentGroupId: n,
|
|
@@ -18326,7 +18369,7 @@ function tg({
|
|
|
18326
18369
|
}
|
|
18327
18370
|
);
|
|
18328
18371
|
}
|
|
18329
|
-
function
|
|
18372
|
+
function ng({
|
|
18330
18373
|
filters: t,
|
|
18331
18374
|
availableFields: s,
|
|
18332
18375
|
onSave: n,
|
|
@@ -18350,7 +18393,7 @@ function ag({
|
|
|
18350
18393
|
generateSQLPreview: k,
|
|
18351
18394
|
hasAnyFilters: B,
|
|
18352
18395
|
setCurrentFilters: w
|
|
18353
|
-
} =
|
|
18396
|
+
} = qf({
|
|
18354
18397
|
initialFilters: t,
|
|
18355
18398
|
availableFields: s
|
|
18356
18399
|
}), O = fn(
|
|
@@ -18470,7 +18513,7 @@ function ag({
|
|
|
18470
18513
|
)
|
|
18471
18514
|
] })
|
|
18472
18515
|
] }) }, L.id) : /* @__PURE__ */ e(
|
|
18473
|
-
|
|
18516
|
+
ag,
|
|
18474
18517
|
{
|
|
18475
18518
|
group: L,
|
|
18476
18519
|
depth: N,
|
|
@@ -18535,7 +18578,7 @@ function ag({
|
|
|
18535
18578
|
] })
|
|
18536
18579
|
] });
|
|
18537
18580
|
}
|
|
18538
|
-
function
|
|
18581
|
+
function sg({
|
|
18539
18582
|
cardId: t,
|
|
18540
18583
|
filters: s,
|
|
18541
18584
|
onFiltersChange: n,
|
|
@@ -18559,7 +18602,7 @@ function ng({
|
|
|
18559
18602
|
/* @__PURE__ */ e(Ba, { children: "Add filters to the card to limit the data that is displayed." })
|
|
18560
18603
|
] }),
|
|
18561
18604
|
/* @__PURE__ */ e(
|
|
18562
|
-
|
|
18605
|
+
ng,
|
|
18563
18606
|
{
|
|
18564
18607
|
filters: s,
|
|
18565
18608
|
availableFields: c,
|
|
@@ -18577,7 +18620,7 @@ function ng({
|
|
|
18577
18620
|
)
|
|
18578
18621
|
] });
|
|
18579
18622
|
}
|
|
18580
|
-
function
|
|
18623
|
+
function rg({
|
|
18581
18624
|
activeCardId: t,
|
|
18582
18625
|
sourceFields: s,
|
|
18583
18626
|
getFieldsForContainer: n,
|
|
@@ -18835,7 +18878,7 @@ function sg({
|
|
|
18835
18878
|
handleDragEnd: v
|
|
18836
18879
|
};
|
|
18837
18880
|
}
|
|
18838
|
-
function
|
|
18881
|
+
function lg({
|
|
18839
18882
|
activeView: t,
|
|
18840
18883
|
onViewChange: s,
|
|
18841
18884
|
splitViewEnabled: n
|
|
@@ -18877,7 +18920,7 @@ function rg({
|
|
|
18877
18920
|
}
|
|
18878
18921
|
) });
|
|
18879
18922
|
}
|
|
18880
|
-
const
|
|
18923
|
+
const ig = [
|
|
18881
18924
|
{ value: "10", label: "Top 10" },
|
|
18882
18925
|
{ value: "20", label: "Top 20" },
|
|
18883
18926
|
{ value: "50", label: "Top 50" },
|
|
@@ -18887,7 +18930,7 @@ const lg = [
|
|
|
18887
18930
|
{ value: "1000", label: "Top 1000" }
|
|
18888
18931
|
// { value: 'custom', label: 'Custom' },
|
|
18889
18932
|
];
|
|
18890
|
-
function
|
|
18933
|
+
function og() {
|
|
18891
18934
|
var i, u;
|
|
18892
18935
|
const t = F((f) => f.card), { updateRowLimit: s } = ge(), [n, r] = G(!1), [c, o] = G(""), l = (f) => {
|
|
18893
18936
|
if (f === "custom") {
|
|
@@ -18916,12 +18959,12 @@ function ig() {
|
|
|
18916
18959
|
onValueChange: l,
|
|
18917
18960
|
children: [
|
|
18918
18961
|
/* @__PURE__ */ e(ne, { className: "h-8 w-24 border-none px-1 [&>svg]:hidden", children: /* @__PURE__ */ e(se, { placeholder: "Select limit" }) }),
|
|
18919
|
-
/* @__PURE__ */ e(re, { children:
|
|
18962
|
+
/* @__PURE__ */ e(re, { children: ig.map((f) => /* @__PURE__ */ e(j, { value: f.value, children: f.label }, f.value)) })
|
|
18920
18963
|
]
|
|
18921
18964
|
}
|
|
18922
18965
|
) });
|
|
18923
18966
|
}
|
|
18924
|
-
function
|
|
18967
|
+
function cg({
|
|
18925
18968
|
card: t,
|
|
18926
18969
|
queryData: s,
|
|
18927
18970
|
isLoading: n,
|
|
@@ -19024,11 +19067,11 @@ function og({
|
|
|
19024
19067
|
)
|
|
19025
19068
|
] });
|
|
19026
19069
|
}
|
|
19027
|
-
const
|
|
19028
|
-
function
|
|
19029
|
-
return ao(
|
|
19070
|
+
const dg = "semaphor-split-view-enabled";
|
|
19071
|
+
function ug() {
|
|
19072
|
+
return ao(dg, !0);
|
|
19030
19073
|
}
|
|
19031
|
-
function
|
|
19074
|
+
function mg({
|
|
19032
19075
|
// selectedChart,
|
|
19033
19076
|
activeView: t,
|
|
19034
19077
|
onViewChange: s,
|
|
@@ -19048,7 +19091,7 @@ function ug({
|
|
|
19048
19091
|
(J) => J.actions.removeCardInlineFilterValue
|
|
19049
19092
|
), i = Oe((J) => J.filterValues), u = Oe((J) => J.selectedSheetId), { updateCardConfig: f, setCard: h, updateCardInFrame: p, setShowAIDialog: m } = ge(), x = F((J) => J.showAIDialog), y = F((J) => J.isDevMode), v = Oe((J) => J.isVisualEditing), [C, k] = G(!1), [B, w] = G(!1), [O, S] = G(!1), [D, I] = G(
|
|
19050
19093
|
null
|
|
19051
|
-
), { config: E } = pr(nr).tokenProps, b = (E == null ? void 0 : E.showInfoTab) !== !1, L = (E == null ? void 0 : E.showQueryDebugTools) !== !1, [N, M] =
|
|
19094
|
+
), { config: E } = pr(nr).tokenProps, b = (E == null ? void 0 : E.showInfoTab) !== !1, L = (E == null ? void 0 : E.showQueryDebugTools) !== !1, [N, M] = ug();
|
|
19052
19095
|
F(
|
|
19053
19096
|
(J) => {
|
|
19054
19097
|
var Me;
|
|
@@ -19113,7 +19156,7 @@ function ug({
|
|
|
19113
19156
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-2", children: [
|
|
19114
19157
|
t === "chart" && x && !g && /* @__PURE__ */ e("div", { className: "w-[200px]", children: /* @__PURE__ */ e(br, { variant: y ? "secondary" : "ghost" }) }),
|
|
19115
19158
|
/* @__PURE__ */ e(
|
|
19116
|
-
|
|
19159
|
+
lg,
|
|
19117
19160
|
{
|
|
19118
19161
|
activeView: t,
|
|
19119
19162
|
onViewChange: s,
|
|
@@ -19143,7 +19186,7 @@ function ug({
|
|
|
19143
19186
|
variant: "compact"
|
|
19144
19187
|
}
|
|
19145
19188
|
),
|
|
19146
|
-
/* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(
|
|
19189
|
+
/* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(og, {}) }),
|
|
19147
19190
|
x && /* @__PURE__ */ e(fr, {})
|
|
19148
19191
|
] }),
|
|
19149
19192
|
/* @__PURE__ */ a("div", { className: X("flex grow items-center justify-end gap-2"), children: [
|
|
@@ -19229,7 +19272,7 @@ function ug({
|
|
|
19229
19272
|
].includes(r.type)
|
|
19230
19273
|
}),
|
|
19231
19274
|
children: /* @__PURE__ */ e(
|
|
19232
|
-
|
|
19275
|
+
cg,
|
|
19233
19276
|
{
|
|
19234
19277
|
card: r,
|
|
19235
19278
|
queryData: A,
|
|
@@ -19326,7 +19369,7 @@ function ug({
|
|
|
19326
19369
|
}
|
|
19327
19370
|
);
|
|
19328
19371
|
}
|
|
19329
|
-
function
|
|
19372
|
+
function hg({ activeField: t }) {
|
|
19330
19373
|
const [s, n] = G(!0);
|
|
19331
19374
|
return ye(() => {
|
|
19332
19375
|
t && n(!0);
|
|
@@ -19342,7 +19385,7 @@ function mg({ activeField: t }) {
|
|
|
19342
19385
|
}
|
|
19343
19386
|
) : null;
|
|
19344
19387
|
}
|
|
19345
|
-
const
|
|
19388
|
+
const pg = () => {
|
|
19346
19389
|
const t = console.error;
|
|
19347
19390
|
console.error = (...r) => {
|
|
19348
19391
|
r.length > 0 && typeof r[0] == "string" && r[0].includes(
|
|
@@ -19369,7 +19412,7 @@ const hg = () => {
|
|
|
19369
19412
|
);
|
|
19370
19413
|
};
|
|
19371
19414
|
};
|
|
19372
|
-
function
|
|
19415
|
+
function fg({ column: t, isSelected: s, onSelect: n, availableFields: r, width: c, onWidthChange: o }) {
|
|
19373
19416
|
var P, V, q;
|
|
19374
19417
|
const l = F(($) => $.card), { updateCardConfig: d, removeGroupByColumn: i, removeMetricColumn: u, updateFilters: f } = ge(), [h, p] = G(!1), [m, x] = G(!1), y = ke(null), v = Te(($) => {
|
|
19375
19418
|
$.preventDefault(), $.stopPropagation(), x(!0), y.current = {
|
|
@@ -19398,7 +19441,7 @@ function pg({ column: t, isSelected: s, onSelect: n, availableFields: r, width:
|
|
|
19398
19441
|
} = as({ id: t.id }), b = {
|
|
19399
19442
|
transform: ns.Transform.toString(D),
|
|
19400
19443
|
transition: I
|
|
19401
|
-
}, L = Ze(t.dataType), N =
|
|
19444
|
+
}, L = Ze(t.dataType), N = gg(L), M = () => {
|
|
19402
19445
|
var ie;
|
|
19403
19446
|
const $ = ((ie = l == null ? void 0 : l.config) == null ? void 0 : ie.sortByColumns) || [], W = $.findIndex((H) => H.name === t.name);
|
|
19404
19447
|
if (W !== -1) {
|
|
@@ -19601,7 +19644,7 @@ function pg({ column: t, isSelected: s, onSelect: n, availableFields: r, width:
|
|
|
19601
19644
|
}
|
|
19602
19645
|
);
|
|
19603
19646
|
}
|
|
19604
|
-
function
|
|
19647
|
+
function gg(t) {
|
|
19605
19648
|
switch (t) {
|
|
19606
19649
|
case "number":
|
|
19607
19650
|
return ls;
|
|
@@ -19612,7 +19655,7 @@ function fg(t) {
|
|
|
19612
19655
|
return ss;
|
|
19613
19656
|
}
|
|
19614
19657
|
}
|
|
19615
|
-
function
|
|
19658
|
+
function xg({
|
|
19616
19659
|
selectedColumn: t,
|
|
19617
19660
|
onColumnSelect: s,
|
|
19618
19661
|
isLoading: n = !1,
|
|
@@ -19723,7 +19766,7 @@ function gg({
|
|
|
19723
19766
|
items: m.map((M) => M.id),
|
|
19724
19767
|
strategy: Ol,
|
|
19725
19768
|
children: m.map((M) => /* @__PURE__ */ e(
|
|
19726
|
-
|
|
19769
|
+
fg,
|
|
19727
19770
|
{
|
|
19728
19771
|
column: M,
|
|
19729
19772
|
isSelected: (t == null ? void 0 : t.id) === M.id,
|
|
@@ -19810,7 +19853,7 @@ function gg({
|
|
|
19810
19853
|
"border-r border-border px-3 py-2 text-sm",
|
|
19811
19854
|
(t == null ? void 0 : t.id) === g.id && "bg-primary/5"
|
|
19812
19855
|
),
|
|
19813
|
-
children: /* @__PURE__ */ e("span", { className: "block truncate", children:
|
|
19856
|
+
children: /* @__PURE__ */ e("span", { className: "block truncate", children: bg(A, g) })
|
|
19814
19857
|
},
|
|
19815
19858
|
`${R}-${g.id}`
|
|
19816
19859
|
);
|
|
@@ -19840,7 +19883,7 @@ function gg({
|
|
|
19840
19883
|
] })
|
|
19841
19884
|
] });
|
|
19842
19885
|
}
|
|
19843
|
-
function
|
|
19886
|
+
function bg(t, s) {
|
|
19844
19887
|
if (t == null)
|
|
19845
19888
|
return "—";
|
|
19846
19889
|
if (typeof t == "number")
|
|
@@ -19859,7 +19902,7 @@ function xg(t, s) {
|
|
|
19859
19902
|
}
|
|
19860
19903
|
return String(t);
|
|
19861
19904
|
}
|
|
19862
|
-
function
|
|
19905
|
+
function vg({
|
|
19863
19906
|
entityGroups: t,
|
|
19864
19907
|
isLoading: s = !1
|
|
19865
19908
|
}) {
|
|
@@ -20075,7 +20118,7 @@ function bg({
|
|
|
20075
20118
|
}
|
|
20076
20119
|
) });
|
|
20077
20120
|
}
|
|
20078
|
-
const
|
|
20121
|
+
const yg = [
|
|
20079
20122
|
{ name: "SUM", description: "Sum of values", syntax: "SUM([column])" },
|
|
20080
20123
|
{ name: "AVG", description: "Average of values", syntax: "AVG([column])" },
|
|
20081
20124
|
{ name: "COUNT", description: "Count of rows", syntax: "COUNT([column])" },
|
|
@@ -20092,7 +20135,7 @@ const vg = [
|
|
|
20092
20135
|
{ name: "DATEPART", description: "Extract date part", syntax: "DATEPART(year, [date])" },
|
|
20093
20136
|
{ name: "DATEDIFF", description: "Difference between dates", syntax: "DATEDIFF(day, [date1], [date2])" }
|
|
20094
20137
|
];
|
|
20095
|
-
function
|
|
20138
|
+
function Ng({
|
|
20096
20139
|
value: t,
|
|
20097
20140
|
onChange: s,
|
|
20098
20141
|
onSubmit: n,
|
|
@@ -20156,7 +20199,7 @@ function yg({
|
|
|
20156
20199
|
/* @__PURE__ */ e(Ka, { placeholder: "Search functions..." }),
|
|
20157
20200
|
/* @__PURE__ */ a(Ga, { children: [
|
|
20158
20201
|
/* @__PURE__ */ e(Ua, { children: "No functions found." }),
|
|
20159
|
-
/* @__PURE__ */ e(Ha, { heading: "Functions", children:
|
|
20202
|
+
/* @__PURE__ */ e(Ha, { heading: "Functions", children: yg.map((x) => /* @__PURE__ */ e(
|
|
20160
20203
|
Qa,
|
|
20161
20204
|
{
|
|
20162
20205
|
value: x.name,
|
|
@@ -20248,7 +20291,7 @@ function yg({
|
|
|
20248
20291
|
] })
|
|
20249
20292
|
] });
|
|
20250
20293
|
}
|
|
20251
|
-
function
|
|
20294
|
+
function Cg({ className: t }) {
|
|
20252
20295
|
var m, x, y, v;
|
|
20253
20296
|
const s = F((C) => C.card), [n, r] = G(null), [c, o] = G(""), {
|
|
20254
20297
|
columns: l = [],
|
|
@@ -20265,7 +20308,7 @@ function Ng({ className: t }) {
|
|
|
20265
20308
|
};
|
|
20266
20309
|
return /* @__PURE__ */ a("div", { className: X("flex h-full w-full flex-col", t), children: [
|
|
20267
20310
|
/* @__PURE__ */ e(
|
|
20268
|
-
|
|
20311
|
+
Ng,
|
|
20269
20312
|
{
|
|
20270
20313
|
value: c,
|
|
20271
20314
|
onChange: o,
|
|
@@ -20277,7 +20320,7 @@ function Ng({ className: t }) {
|
|
|
20277
20320
|
),
|
|
20278
20321
|
/* @__PURE__ */ a("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
20279
20322
|
/* @__PURE__ */ e("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ e(
|
|
20280
|
-
|
|
20323
|
+
xg,
|
|
20281
20324
|
{
|
|
20282
20325
|
selectedColumn: n,
|
|
20283
20326
|
onColumnSelect: f,
|
|
@@ -20287,7 +20330,7 @@ function Ng({ className: t }) {
|
|
|
20287
20330
|
}
|
|
20288
20331
|
) }),
|
|
20289
20332
|
/* @__PURE__ */ e(
|
|
20290
|
-
|
|
20333
|
+
vg,
|
|
20291
20334
|
{
|
|
20292
20335
|
entityGroups: d,
|
|
20293
20336
|
isLoading: i
|
|
@@ -20296,12 +20339,12 @@ function Ng({ className: t }) {
|
|
|
20296
20339
|
] })
|
|
20297
20340
|
] });
|
|
20298
20341
|
}
|
|
20299
|
-
function
|
|
20342
|
+
function wg() {
|
|
20300
20343
|
var T, _;
|
|
20301
20344
|
const [t, s] = G(
|
|
20302
20345
|
"chart"
|
|
20303
20346
|
), [n, r] = G(!1), [c, o] = G(!0), l = F((P) => P.showAIDialog), d = Oe((P) => P.isVisualEditing), { setCardType: i } = ge(), u = F((P) => P.card.type);
|
|
20304
|
-
ye(() =>
|
|
20347
|
+
ye(() => pg(), []);
|
|
20305
20348
|
const f = (P) => {
|
|
20306
20349
|
i(P);
|
|
20307
20350
|
}, h = F((P) => P.frame), p = F((P) => P.card);
|
|
@@ -20321,7 +20364,7 @@ function Cg() {
|
|
|
20321
20364
|
), S = p, {
|
|
20322
20365
|
getFieldsForContainer: D,
|
|
20323
20366
|
setFieldsForContainer: I
|
|
20324
|
-
} = ji(S), { activeField: E, handleDragStart: b, handleDragEnd: L } =
|
|
20367
|
+
} = ji(S), { activeField: E, handleDragStart: b, handleDragEnd: L } = rg({
|
|
20325
20368
|
activeCardId: h.activeCardId,
|
|
20326
20369
|
sourceFields: B,
|
|
20327
20370
|
getFieldsForContainer: D,
|
|
@@ -20359,9 +20402,9 @@ function Cg() {
|
|
|
20359
20402
|
onToggleVisibility: () => o(!c)
|
|
20360
20403
|
}
|
|
20361
20404
|
),
|
|
20362
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 transition-all duration-300 ease-in-out", children: u === "tableBuilder" ? /* @__PURE__ */ e(
|
|
20405
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 transition-all duration-300 ease-in-out", children: u === "tableBuilder" ? /* @__PURE__ */ e(Cg, { className: "flex-1" }) : /* @__PURE__ */ a(Ne, { children: [
|
|
20363
20406
|
!l && /* @__PURE__ */ e(
|
|
20364
|
-
|
|
20407
|
+
$f,
|
|
20365
20408
|
{
|
|
20366
20409
|
selectedChart: u,
|
|
20367
20410
|
onChartChange: f,
|
|
@@ -20374,7 +20417,7 @@ function Cg() {
|
|
|
20374
20417
|
}
|
|
20375
20418
|
),
|
|
20376
20419
|
/* @__PURE__ */ e(
|
|
20377
|
-
|
|
20420
|
+
mg,
|
|
20378
20421
|
{
|
|
20379
20422
|
selectedChart: u,
|
|
20380
20423
|
activeView: t,
|
|
@@ -20404,7 +20447,7 @@ function Cg() {
|
|
|
20404
20447
|
) })
|
|
20405
20448
|
] }),
|
|
20406
20449
|
S && /* @__PURE__ */ e(
|
|
20407
|
-
|
|
20450
|
+
sg,
|
|
20408
20451
|
{
|
|
20409
20452
|
cardId: S.id,
|
|
20410
20453
|
filters: ((_ = S.config) == null ? void 0 : _.filters) || null,
|
|
@@ -20415,12 +20458,12 @@ function Cg() {
|
|
|
20415
20458
|
onOpenChange: r
|
|
20416
20459
|
}
|
|
20417
20460
|
),
|
|
20418
|
-
/* @__PURE__ */ e(Qi, { dropAnimation: null, children: /* @__PURE__ */ e(
|
|
20461
|
+
/* @__PURE__ */ e(Qi, { dropAnimation: null, children: /* @__PURE__ */ e(hg, { activeField: E || null }) })
|
|
20419
20462
|
]
|
|
20420
20463
|
}
|
|
20421
20464
|
);
|
|
20422
20465
|
}
|
|
20423
|
-
function
|
|
20466
|
+
function Sg({ authToken: t, onSave: s, onClose: n }) {
|
|
20424
20467
|
const r = ke(null), c = F((S) => S.showAIDialog), o = F((S) => S.isDevMode), l = Is((S) => S.setFullscreen), d = Is((S) => S.setPanelOpen), i = Is((S) => S.setContainer), u = mm("editor"), f = hm(), h = pm("editor"), p = f === "editor", m = Te(
|
|
20425
20468
|
(S) => {
|
|
20426
20469
|
i("editor", S);
|
|
@@ -20446,7 +20489,7 @@ function wg({ authToken: t, onSave: s, onClose: n }) {
|
|
|
20446
20489
|
S < 1 ? (y(!1), d("editor", !1), f === "editor" && l(null), k(null), (D = r.current) == null || D.resize(0)) : (c || (y(!0), k("editor")), u.isOpen || d("editor", !0));
|
|
20447
20490
|
}
|
|
20448
20491
|
function w() {
|
|
20449
|
-
return /* @__PURE__ */ a(
|
|
20492
|
+
return /* @__PURE__ */ a(Ne, { children: [
|
|
20450
20493
|
/* @__PURE__ */ e(no, { isVisible: !0, onToggleVisibility: () => {
|
|
20451
20494
|
} }),
|
|
20452
20495
|
/* @__PURE__ */ a("div", { className: "relative flex grow", children: [
|
|
@@ -20460,7 +20503,7 @@ function wg({ authToken: t, onSave: s, onClose: n }) {
|
|
|
20460
20503
|
),
|
|
20461
20504
|
direction: "horizontal",
|
|
20462
20505
|
children: [
|
|
20463
|
-
/* @__PURE__ */ e(dt, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(
|
|
20506
|
+
/* @__PURE__ */ e(dt, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(wf, {}) }),
|
|
20464
20507
|
/* @__PURE__ */ e(Ht, { disabled: !c }),
|
|
20465
20508
|
/* @__PURE__ */ e(
|
|
20466
20509
|
dt,
|
|
@@ -20508,7 +20551,7 @@ function wg({ authToken: t, onSave: s, onClose: n }) {
|
|
|
20508
20551
|
),
|
|
20509
20552
|
direction: "horizontal",
|
|
20510
20553
|
children: [
|
|
20511
|
-
/* @__PURE__ */ e(dt, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(
|
|
20554
|
+
/* @__PURE__ */ e(dt, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(wg, {}) }),
|
|
20512
20555
|
/* @__PURE__ */ e(Ht, { disabled: !c }),
|
|
20513
20556
|
/* @__PURE__ */ e(
|
|
20514
20557
|
dt,
|
|
@@ -20552,7 +20595,7 @@ function wg({ authToken: t, onSave: s, onClose: n }) {
|
|
|
20552
20595
|
}
|
|
20553
20596
|
) : O() });
|
|
20554
20597
|
}
|
|
20555
|
-
function
|
|
20598
|
+
function Mg() {
|
|
20556
20599
|
Oe((u) => u.selectedCardId);
|
|
20557
20600
|
const t = Oe((u) => u.selectedSheetId), s = Oe((u) => u.dashboard), { setIsVisualEditing: n, setSelectedSheetId: r } = Oe(
|
|
20558
20601
|
(u) => u.actions
|
|
@@ -20595,10 +20638,10 @@ function Og() {
|
|
|
20595
20638
|
className: X("flex-1 grow basis-0 overflow-auto", {
|
|
20596
20639
|
"max-h-0 overflow-hidden": !c
|
|
20597
20640
|
}),
|
|
20598
|
-
children: /* @__PURE__ */ e(
|
|
20641
|
+
children: /* @__PURE__ */ e(Sg, { onSave: d, onClose: i })
|
|
20599
20642
|
}
|
|
20600
20643
|
);
|
|
20601
20644
|
}
|
|
20602
20645
|
export {
|
|
20603
|
-
|
|
20646
|
+
Mg as default
|
|
20604
20647
|
};
|