react-semaphor 0.1.549 → 0.1.550
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brand-studio/index.js +1 -1
- package/dist/chunks/{assistant-chat-CUSvuESS.js → assistant-chat-ClAvjeNe.js} +104 -104
- package/dist/chunks/{dashboard-Cm7WkARH.js → dashboard-DDQgKoss.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-X0HzNpS8.js → dashboard-briefing-launcher-CCYs8E4j.js} +1440 -1328
- package/dist/chunks/{dashboard-controls-BuX6TMNK.js → dashboard-controls-DfSkQBsk.js} +976 -929
- package/dist/chunks/{dashboard-json-Cc4u2xvy.js → dashboard-json-BPhyn9pl.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-DX2CzibK.js → edit-dashboard-visual-G7EmLuR0.js} +355 -355
- package/dist/chunks/{filter-reach-copy-Bc-Gei83.js → filter-reach-copy-8vnDYToV.js} +94 -92
- package/dist/chunks/{report-preferences-dialog-B9oYQ6OJ.js → report-preferences-dialog-D_fEDaS4.js} +849 -768
- package/dist/chunks/{semaphor-ready-indicator-wWkPH4ue.js → semaphor-ready-indicator-Bz5BxITW.js} +25706 -25429
- package/dist/chunks/{shelf-drop-preview-context-B86d8IZO.js → shelf-drop-preview-context-B8kNwpWQ.js} +2 -2
- package/dist/chunks/{switch-CEBOR4n7.js → switch-wJP6O7ZT.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-DPNjYyi3.js → use-create-flow-overlay-state-RzJa7G8S.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +2 -2
- package/dist/index.js +184 -169
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/assistant/assistant-entry-points.d.ts +4 -1
- package/dist/types/components/dashboard/favorites/dashboard-favorite-toggle.d.ts +11 -0
- package/dist/types/components/dashboard/favorites/favorite-star-button.d.ts +16 -0
- package/dist/types/components/index.d.ts +8 -0
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +16 -0
- package/dist/types/components/surfboard/toolbar/toolbar-context.d.ts +86 -0
- package/dist/types/components/surfboard/toolbar/toolbar-overflow.d.ts +14 -0
- package/dist/types/lib/dashboard-viewer/viewer-store-state.d.ts +7 -0
- package/dist/types/lib/hooks/use-dashboard-favorite.d.ts +24 -0
- package/dist/types/lib/hooks/use-dashboard-query.d.ts +2 -0
- package/dist/types/lib/hooks/use-default-dashboard-toggle.d.ts +12 -0
- package/dist/types/shared/dashboard-viewer/viewer-contract.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as pe } from "react/jsx-runtime";
|
|
2
2
|
import * as fn from "react";
|
|
3
|
-
import gn, { useState as U, useEffect as we, useMemo as ee, useRef as Pe, useCallback as st, useId as
|
|
4
|
-
import { F as Uc, P as Gc, a as Hc, b as co, u as ot, S as bl, c as vl, r as uo, E as Jc, T as Qc, A as Wc, d as Xc, e as xn, f as Zc, g as ed, h as td } from "./shelf-drop-preview-context-
|
|
3
|
+
import gn, { useState as U, useEffect as we, useMemo as ee, useRef as Pe, useCallback as st, useId as ja, useContext as Ar, Suspense as zc } from "react";
|
|
4
|
+
import { F as Uc, P as Gc, a as Hc, b as co, u as ot, S as bl, c as vl, r as uo, E as Jc, T as Qc, A as Wc, d as Xc, e as xn, f as Zc, g as ed, h as td } from "./shelf-drop-preview-context-B8kNwpWQ.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
6
|
import { ab as mo, S as ad, B as yl, aO as nd, t as bn, aU as Qn, u as ho } from "./validators-C-aOQlTB.js";
|
|
7
7
|
import "./matrix-operation-contract-D6vYkZK4.js";
|
|
@@ -9,16 +9,16 @@ import "./analytics-base-schemas-BKs3flFS.js";
|
|
|
9
9
|
import "zod";
|
|
10
10
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Ka } from "../value-format-preferences/index.js";
|
|
11
11
|
import { c as G } from "./_commonjsHelpers-DimLPMtv.js";
|
|
12
|
-
import {
|
|
13
|
-
import { B as te, k as Cn, f as Pn, l as _, r as ne, s as re, t as se, u as le, v as K, p as ut, m as gt, n as mt, o as ht, q as De, j as Wr,
|
|
12
|
+
import { dP as po, dQ as za, df as Ua, dE as Rr, dR as en, dS as rd, a7 as Ne, dT as sd, bL as Bt, bM as $t, bN as la, bO as qt, bP as Ut, bJ as Ga, aO as Ct, aP as St, dU as Ge, bK as dt, dV as fo, dW as un, a_ as pt, dh as Pr, dX as Ea, aR as tn, a6 as R, b2 as xt, dY as go, b5 as Yt, u as xe, c9 as Lr, dZ as ld, d_ as xo, d$ as od, e0 as id, e1 as cd, ca as bo, e2 as dd, e3 as Mn, dJ as vo, e4 as ud, dl as yo, ct as Yr, cv as md, cw as hd, cx as pd, cy as fd, cz as gd, cA as xd, cB as bd, cC as vd, b3 as _r, b1 as ia, e5 as No, e6 as yd, bk as qa, e7 as Co, bj as Fn, b9 as wo, e8 as Vr, bT as En, b_ as Nd, cT as Cd, d2 as br, aV as ca, aW as da, aX as ua, a$ as wd, cW as Br, e9 as $r, a4 as So, ea as qr, eb as Sd, ec as kd, ed as ko, dw as To, ee as Td, ef as Dd, eg as _t, eh as Md, ei as Fd, bm as Ed, ej as Id, ek as Od, el as Do, L as Mo, M as Ad, d8 as Rd, em as Pd, dB as Ld, en as jr, eo as Yd, ep as _d, eq as Nl, er as Vd, E as In, e as Kr, es as Fo, et as Bd, eu as Cl, ev as $d, ew as Eo, ex as qd, ey as jd, ez as Kd, eA as zd, eB as Ud, eC as Gd, eD as Hd, eE as vn, eF as Jd, eG as Qd, eH as Io, eI as Oo, eJ as Wd, eK as Xd, cP as Zd, eL as eu, eM as Ao, eN as tu, dy as au, cQ as On, eO as An, ci as zr, cj as Ur, ck as Gr, eP as nu, eQ as ru, eR as Ta, eS as Ha, eT as Ja, eU as Qa, b0 as su, bl as lu, eV as ou, eW as iu, eX as cu, eY as wl, eZ as du, e_ as Ro, e$ as Po, b4 as Lo, b6 as uu, bb as mu, bc as hu, b7 as pu, b8 as fu, f0 as gu, f1 as xu, f2 as bu, f3 as vu, f4 as Sl, be as yu, bf as Nu, f5 as Yo, f6 as ya, f7 as Na, f8 as Ca, dd as Da, cD as _o, c7 as Pt, co as kl, cp as Tl, cq as vr, f9 as Vo, fa as Cu, fb as wu, fc as Su, fd as ku, fe as Rn, ff as $e, fg as qe, fh as je, dF as Tu, dG as Du, fi as Bo, fj as $o, fk as Mu, fl as Fu, fm as qo, fn as Dl, fo as jo, fp as Eu, fq as yr, fr as Iu, fs as Ou, ft as Au, fu as Ru, fv as Pu, fw as Lu, fx as Yu, fy as _u, fz as Vu, fA as Bu, fB as $u, fC as ta, fD as Pa, fE as qu, fF as Ml, fG as ju, fH as Ku, fI as Wn, fJ as Fl, fK as zu, fL as Uu, fM as Gu, fN as Hu, bG as Hr, bH as Wa, fO as Xn, fP as Ko, fQ as Ju, fR as Qu, fS as Wu, fT as Xu, fU as zo, fV as Uo, fW as Zu, fX as em, fY as Go, fZ as tm, f_ as am, f$ as Ho, dz as nm, dA as rm, cR as sm, g0 as lm, dC as om, g1 as im, g2 as Jo, de as Jr, g3 as Qo, g4 as Wo, g5 as cm, g6 as dm, g7 as um, g8 as mm, g9 as hm, ga as pm, gb as fm, gc as gm, gd as xm, ge as bm, gf as Qr, gg as Xo, gh as Zo, gi as mn, gj as ei, gk as ti, gl as El, gm as vm, gn as ym, go as Nm, dL as Cm, gp as wm, gq as Il, gr as ai, gs as Sm, bI as km, gt as Tm, gu as Dm, gv as wa, gw as ni, gx as Mm, gy as Fm, gz as Em, gA as Im, gB as Om, gC as Am, gD as yn, gE as ra, gF as Nr, gG as Cr, gH as Nn, gI as ri, gJ as si, gK as li, bg as Rm, gL as Ol, dn as Pm, gM as Lm, dp as Ym, dr as _m, ds as Vm, i as Bm, gN as $m, gO as qm, gP as jm, gQ as Km, gR as zm, gS as Um, gT as Gm, dK as Hm, F as Jm, gU as Qm, bx as Wm } from "./semaphor-ready-indicator-Bz5BxITW.js";
|
|
13
|
+
import { B as te, k as Cn, f as Pn, l as _, r as ne, s as re, t as se, u as le, v as K, p as ut, m as gt, n as mt, o as ht, q as De, j as Wr, a1 as Xm, P as bt, a as Tt, b as vt, a0 as Zm, L as Ia, C as oa, T as Gt, d as Ht, e as tt, g as It, c as ma, I as Ma, a2 as eh, a3 as th, S as wn, a4 as wr, a5 as oi, w as Ee, a6 as ah, R as Al, i as ii, a7 as nh } from "./switch-wJP6O7ZT.js";
|
|
14
14
|
import { U as ci } from "./upload-BFX7apKV.js";
|
|
15
15
|
import { c as Ke, C as Ot, X as Be } from "./x-4f5U2XwU.js";
|
|
16
16
|
import { E as Xa, C as kt, S as Xr, M as rh, a as sh } from "./selection-reducer-CJzkTZio.js";
|
|
17
|
-
import { em as lh, c9 as oh, en as ih, eo as Zr, ep as Fa, eq as di, er as ch, es as Rl, et as dh, eu as uh, ev as Pl, bo as ui, dm as Oa, az as mh, e2 as es, dt as mi, n as hh, Y as ph, ew as fh, ex as Ll, v as sa, dQ as gh, cV as xh, ey as bh, ez as hi, p as vh, bC as yh, eA as pi, e3 as Nh, b_ as Ch, bY as Zn, eB as wh, eC as Sh, eD as kh, eE as Th, cT as Dh, eF as Mh, eG as Fh, eH as ts, c as Kt, eI as on, du as Eh, aT as fi, aW as Ih, aF as Oh, aV as Sr, aX as hn, bF as gi, aE as Ah, bD as Rh, eJ as Ph, eK as Lh, eL as Yh, eM as wt, eN as _h, e5 as Lt, da as Vh, eO as Bh, d9 as $h, eP as
|
|
17
|
+
import { em as lh, c9 as oh, en as ih, eo as Zr, ep as Fa, eq as di, er as ch, es as Rl, et as dh, eu as uh, ev as Pl, bo as ui, dm as Oa, az as mh, e2 as es, dt as mi, n as hh, Y as ph, ew as fh, ex as Ll, v as sa, dQ as gh, cV as xh, ey as bh, ez as hi, p as vh, bC as yh, eA as pi, e3 as Nh, b_ as Ch, bY as Zn, eB as wh, eC as Sh, eD as kh, eE as Th, cT as Dh, eF as Mh, eG as Fh, eH as ts, c as Kt, eI as on, du as Eh, aT as fi, aW as Ih, aF as Oh, aV as Sr, aX as hn, bF as gi, aE as Ah, bD as Rh, eJ as Ph, eK as Lh, eL as Yh, eM as wt, eN as _h, e5 as Lt, da as Vh, eO as Bh, d9 as $h, eP as qh, eQ as jh, eR as Kh, de as zh, dk as Za, dv as Uh, eS as xi, di as Gh, e0 as Yl, dj as Hh, aY as Jh, eT as Qh, dZ as er, eU as Wh, eV as Xh, eW as Zh, eX as bi, eY as as, e1 as ep } from "./global-date-filter-utils-CnumW4j2.js";
|
|
18
18
|
import { D as tp } from "./token-types-BMqRmT-C.js";
|
|
19
|
-
import { b as ap, F as np, V as vi, I as lt, u as rp, C as sp } from "./use-create-flow-overlay-state-
|
|
19
|
+
import { b as ap, F as np, V as vi, I as lt, u as rp, C as sp } from "./use-create-flow-overlay-state-RzJa7G8S.js";
|
|
20
20
|
import { i as yi } from "./index-CtoK1Lgu.js";
|
|
21
|
-
import { N as ns, g as lp, A as Sa, B as op, C as ip, E as cp } from "./filter-reach-copy-
|
|
21
|
+
import { N as ns, g as lp, A as Sa, B as op, C as ip, E as cp } from "./filter-reach-copy-8vnDYToV.js";
|
|
22
22
|
import { F as dp, E as Ln, D as rs } from "./pivot-result-lifecycle-pwq3b7LC.js";
|
|
23
23
|
import "./table-settings-WysCBj62.js";
|
|
24
24
|
import { f as ha, r as pa, g as an, a as Vt, c as ka, i as up, d as mp, e as hp, b as Ni, n as pp, h as kr, j as fp, k as gp, l as xp } from "./custom-visual-inputs-CwAcigQS.js";
|
|
@@ -31,8 +31,8 @@ import { r as Vp } from "./export-file-format-C-tJsxsf.js";
|
|
|
31
31
|
import { u as Bp } from "./appearance-context-DEYtWinQ.js";
|
|
32
32
|
import { D as Vl } from "./metric-comparison-zpGw4lD6.js";
|
|
33
33
|
import { f as $p, m as Ti } from "./matrix-formatter-DWEeC0_c.js";
|
|
34
|
-
import { P as
|
|
35
|
-
import { i as
|
|
34
|
+
import { P as qp } from "./palette-D10o_yYX.js";
|
|
35
|
+
import { i as jp, j as Kp } from "./document-dashboard-inputs-DPQ_wUGD.js";
|
|
36
36
|
/**
|
|
37
37
|
* @license lucide-react v0.453.0 - ISC
|
|
38
38
|
*
|
|
@@ -434,13 +434,13 @@ function df({
|
|
|
434
434
|
}, m = (p) => r.some((x) => Ge(x, p));
|
|
435
435
|
return d.length === 0 ? /* @__PURE__ */ e(Bt, { open: t, onOpenChange: a, children: /* @__PURE__ */ n($t, { className: "max-w-md", children: [
|
|
436
436
|
/* @__PURE__ */ n(la, { children: [
|
|
437
|
-
/* @__PURE__ */ e(
|
|
437
|
+
/* @__PURE__ */ e(qt, { children: "No Data Available" }),
|
|
438
438
|
/* @__PURE__ */ e(Ut, { children: "No entities are currently available in the AI context. Please add some data sources to the dashboard first." })
|
|
439
439
|
] }),
|
|
440
440
|
/* @__PURE__ */ e(Ga, { children: /* @__PURE__ */ e(te, { onClick: () => a(!1), children: "Close" }) })
|
|
441
441
|
] }) }) : /* @__PURE__ */ e(Bt, { open: t, onOpenChange: a, children: /* @__PURE__ */ n($t, { className: "flex max-w-2xl flex-col", children: [
|
|
442
442
|
/* @__PURE__ */ n(la, { children: [
|
|
443
|
-
/* @__PURE__ */ e(
|
|
443
|
+
/* @__PURE__ */ e(qt, { children: "Select Data to Analyze" }),
|
|
444
444
|
/* @__PURE__ */ e(Ut, { children: "Choose entities from the dashboard's context" })
|
|
445
445
|
] }),
|
|
446
446
|
/* @__PURE__ */ n("div", { className: "flex-1 space-y-4", children: [
|
|
@@ -604,14 +604,14 @@ function uf({
|
|
|
604
604
|
);
|
|
605
605
|
if ((B = N.source) != null && B.name && ((D = N.target) != null && D.name) && N.joinKeyGroups[0].keys.length === 0) {
|
|
606
606
|
const Y = a.find(
|
|
607
|
-
(
|
|
608
|
-
var
|
|
609
|
-
return
|
|
607
|
+
(q) => {
|
|
608
|
+
var j;
|
|
609
|
+
return q.name === ((j = N.source) == null ? void 0 : j.name);
|
|
610
610
|
}
|
|
611
611
|
), O = a.find(
|
|
612
|
-
(
|
|
613
|
-
var
|
|
614
|
-
return
|
|
612
|
+
(q) => {
|
|
613
|
+
var j;
|
|
614
|
+
return q.name === ((j = N.target) == null ? void 0 : j.name);
|
|
615
615
|
}
|
|
616
616
|
), P = {
|
|
617
617
|
id: `key-${Date.now()}`,
|
|
@@ -640,7 +640,7 @@ function uf({
|
|
|
640
640
|
$[0] = {
|
|
641
641
|
...$[0],
|
|
642
642
|
keys: [P]
|
|
643
|
-
}, N.joinKeyGroups = $, E[E.findIndex((
|
|
643
|
+
}, N.joinKeyGroups = $, E[E.findIndex((q) => q.id === A)] = N;
|
|
644
644
|
}
|
|
645
645
|
s({
|
|
646
646
|
...r,
|
|
@@ -891,15 +891,15 @@ function gf({
|
|
|
891
891
|
))
|
|
892
892
|
O.target.name && !D.includes(O.target.name) && D.push(O.target.name);
|
|
893
893
|
const Y = (O) => {
|
|
894
|
-
const P = O.joinKeyGroups.flatMap((
|
|
895
|
-
(
|
|
894
|
+
const P = O.joinKeyGroups.flatMap((j) => j.keys), $ = P.find(
|
|
895
|
+
(j) => {
|
|
896
896
|
var H, X;
|
|
897
|
-
return ((H =
|
|
897
|
+
return ((H = j.source) == null ? void 0 : H.name) && ((X = j.target) == null ? void 0 : X.name);
|
|
898
898
|
}
|
|
899
899
|
);
|
|
900
900
|
if (!$) return null;
|
|
901
|
-
const
|
|
902
|
-
return `${$.source.name} ${$.operator || "="} ${$.target.name}${
|
|
901
|
+
const q = P.length > 1 ? ` +${P.length - 1}` : "";
|
|
902
|
+
return `${$.source.name} ${$.operator || "="} ${$.target.name}${q}`;
|
|
903
903
|
};
|
|
904
904
|
return /* @__PURE__ */ n("div", { className: "min-w-0 space-y-5", children: [
|
|
905
905
|
/* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
|
|
@@ -992,11 +992,11 @@ function gf({
|
|
|
992
992
|
(z) => z.name === O.source.name
|
|
993
993
|
), $ = a.find(
|
|
994
994
|
(z) => z.name === O.target.name
|
|
995
|
-
),
|
|
995
|
+
), q = h.has(O.id), j = C.has(O.id) || O.joinKeyGroups.length > 1 || O.joinKeyGroups.some((z) => z.operator !== "AND"), H = Y(O), X = O.relationshipTraversalDirection === "reverse" ? O.relationshipCardinality === "many_to_one" ? "one_to_many" : O.relationshipCardinality === "one_to_many" ? "many_to_one" : O.relationshipCardinality : O.relationshipCardinality;
|
|
996
996
|
return /* @__PURE__ */ n(
|
|
997
997
|
"div",
|
|
998
998
|
{
|
|
999
|
-
className: `rounded-[6px] border ${
|
|
999
|
+
className: `rounded-[6px] border ${q ? "border-border" : "border-border/60"}`,
|
|
1000
1000
|
children: [
|
|
1001
1001
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2 px-3 py-2.5", children: [
|
|
1002
1002
|
/* @__PURE__ */ n(
|
|
@@ -1006,7 +1006,7 @@ function gf({
|
|
|
1006
1006
|
onClick: () => g(O.id),
|
|
1007
1007
|
className: "flex min-w-0 flex-1 items-center gap-2 text-left",
|
|
1008
1008
|
children: [
|
|
1009
|
-
|
|
1009
|
+
q ? /* @__PURE__ */ e(Ot, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ e(kt, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
1010
1010
|
/* @__PURE__ */ n("span", { className: "flex min-w-0 items-center gap-1.5 text-[12.5px] font-medium text-foreground", children: [
|
|
1011
1011
|
/* @__PURE__ */ e("span", { className: "truncate", children: O.source.name || "source" }),
|
|
1012
1012
|
/* @__PURE__ */ e(un, { className: "h-3 w-3 shrink-0 text-muted-foreground" }),
|
|
@@ -1050,7 +1050,7 @@ function gf({
|
|
|
1050
1050
|
onClick: () => g(O.id),
|
|
1051
1051
|
children: [
|
|
1052
1052
|
/* @__PURE__ */ e(Pr, { className: "h-3 w-3" }),
|
|
1053
|
-
|
|
1053
|
+
q ? "Editing" : "Edit"
|
|
1054
1054
|
]
|
|
1055
1055
|
}
|
|
1056
1056
|
),
|
|
@@ -1067,7 +1067,7 @@ function gf({
|
|
|
1067
1067
|
)
|
|
1068
1068
|
] })
|
|
1069
1069
|
] }),
|
|
1070
|
-
|
|
1070
|
+
q && /* @__PURE__ */ n("div", { className: "space-y-4 border-t border-border/60 px-3 pb-4 pt-3", children: [
|
|
1071
1071
|
/* @__PURE__ */ n("div", { className: "grid grid-cols-1 gap-3 md:grid-cols-3", children: [
|
|
1072
1072
|
/* @__PURE__ */ n("div", { className: "min-w-0 space-y-1.5", children: [
|
|
1073
1073
|
/* @__PURE__ */ e(_, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "From" }),
|
|
@@ -1196,7 +1196,7 @@ function gf({
|
|
|
1196
1196
|
". Repeated matches may increase counts and sums. Declaring the expected matches helps validate this join."
|
|
1197
1197
|
] })
|
|
1198
1198
|
] }),
|
|
1199
|
-
O.source.name && O.target.name && P && $ && /* @__PURE__ */ e("div", { className: "space-y-2", children:
|
|
1199
|
+
O.source.name && O.target.name && P && $ && /* @__PURE__ */ e("div", { className: "space-y-2", children: j ? /* @__PURE__ */ e(
|
|
1200
1200
|
vf,
|
|
1201
1201
|
{
|
|
1202
1202
|
join: O,
|
|
@@ -1572,7 +1572,7 @@ function Ei({
|
|
|
1572
1572
|
return /* @__PURE__ */ n(Bt, { open: a, onOpenChange: r, children: [
|
|
1573
1573
|
/* @__PURE__ */ n($t, { className: "max-h-[88vh] w-[calc(100vw-2rem)] max-w-4xl overflow-y-auto overflow-x-hidden", children: [
|
|
1574
1574
|
/* @__PURE__ */ n(la, { children: [
|
|
1575
|
-
/* @__PURE__ */ e(
|
|
1575
|
+
/* @__PURE__ */ e(qt, { className: "text-[15px] font-semibold tracking-tight", children: "How datasets connect" }),
|
|
1576
1576
|
/* @__PURE__ */ e(Ut, { className: "text-[12px] text-muted-foreground", children: "Datasets joined together so a card can use fields from all of them." })
|
|
1577
1577
|
] }),
|
|
1578
1578
|
/* @__PURE__ */ e(
|
|
@@ -2890,14 +2890,14 @@ function _f({
|
|
|
2890
2890
|
[V]
|
|
2891
2891
|
), D = (oe) => {
|
|
2892
2892
|
m(oe), oe === "semantic" || oe.startsWith("domain:") ? r.mode !== "semanticDomain" && y("semanticDomain") : (oe === "direct" || oe.startsWith("conn:")) && r.mode === "semanticDomain" && y("database");
|
|
2893
|
-
}, Y = f.startsWith("domain:"), O = f.startsWith("conn:"), P = Y ? f.slice(7) : void 0, $ = O ? f.slice(5) : void 0,
|
|
2893
|
+
}, Y = f.startsWith("domain:"), O = f.startsWith("conn:"), P = Y ? f.slice(7) : void 0, $ = O ? f.slice(5) : void 0, q = !L || f === "all" || f === "semantic" || Y, j = M && !T && (f === "all" || f === "direct" || O), H = ((s == null ? void 0 : s.length) ?? 0) > 0, X = l.length === 0 && !H, ie = l.length === 0 && H ? "Clear" : "Add", z = I ? "Select dataset" : "Add data";
|
|
2894
2894
|
return /* @__PURE__ */ e(Bt, { open: t, onOpenChange: a, children: /* @__PURE__ */ n(
|
|
2895
2895
|
$t,
|
|
2896
2896
|
{
|
|
2897
2897
|
showCloseButton: !1,
|
|
2898
2898
|
className: "flex h-[560px] w-[620px] max-w-[620px] flex-col gap-0 overflow-hidden rounded-[6px] border border-border bg-popover p-0",
|
|
2899
2899
|
children: [
|
|
2900
|
-
/* @__PURE__ */ e(Xm, { children: /* @__PURE__ */ e(
|
|
2900
|
+
/* @__PURE__ */ e(Xm, { children: /* @__PURE__ */ e(qt, { children: z }) }),
|
|
2901
2901
|
/* @__PURE__ */ n("div", { className: "flex items-start justify-between border-b border-border px-4 py-2.5", children: [
|
|
2902
2902
|
/* @__PURE__ */ n("div", { children: [
|
|
2903
2903
|
/* @__PURE__ */ e("p", { className: "text-[14px] font-semibold text-foreground", children: z }),
|
|
@@ -2990,7 +2990,7 @@ function _f({
|
|
|
2990
2990
|
] }) })
|
|
2991
2991
|
] }),
|
|
2992
2992
|
/* @__PURE__ */ n("div", { className: "flex-1 overflow-y-auto py-1", children: [
|
|
2993
|
-
|
|
2993
|
+
q && /* @__PURE__ */ e(
|
|
2994
2994
|
Tf,
|
|
2995
2995
|
{
|
|
2996
2996
|
domainAccess: c,
|
|
@@ -3000,7 +3000,7 @@ function _f({
|
|
|
3000
3000
|
onSelectionChange: (oe) => E(oe, "semanticDomain")
|
|
3001
3001
|
}
|
|
3002
3002
|
),
|
|
3003
|
-
|
|
3003
|
+
j && /* @__PURE__ */ e(
|
|
3004
3004
|
Ff,
|
|
3005
3005
|
{
|
|
3006
3006
|
search: h,
|
|
@@ -3115,7 +3115,7 @@ function Vf() {
|
|
|
3115
3115
|
((Y = (D = f == null ? void 0 : f.resolvedJoinPlan) == null ? void 0 : D.joins) == null ? void 0 : Y.length) ?? ((O = f == null ? void 0 : f.relationshipsUsed) == null || O.length);
|
|
3116
3116
|
const E = I > 0 ? `${I} join${I === 1 ? "" : "s"}` : v < 2 ? null : C ? "auto" : null, k = (P) => {
|
|
3117
3117
|
const $ = g.filter(
|
|
3118
|
-
(
|
|
3118
|
+
(q) => !Ge(q, P)
|
|
3119
3119
|
);
|
|
3120
3120
|
l && Rl(A, $).length > 0 && h(l.id, Fa(l, void 0)), u({
|
|
3121
3121
|
...b,
|
|
@@ -3180,7 +3180,7 @@ function Vf() {
|
|
|
3180
3180
|
/* @__PURE__ */ e("span", { className: "font-mono text-[10px] tabular-nums text-muted-foreground/70", children: v })
|
|
3181
3181
|
] }),
|
|
3182
3182
|
v === 0 ? /* @__PURE__ */ e("div", { className: "px-3 pb-2 text-[12px] text-muted-foreground", children: "No datasets selected." }) : /* @__PURE__ */ e("ul", { className: "mb-1", children: g.map((P, $) => {
|
|
3183
|
-
const
|
|
3183
|
+
const q = S[$], H = (q ? dh(q.state) : !1) ? uh(q == null ? void 0 : q.state).tag : null;
|
|
3184
3184
|
return /* @__PURE__ */ n(
|
|
3185
3185
|
"li",
|
|
3186
3186
|
{
|
|
@@ -3195,11 +3195,11 @@ function Vf() {
|
|
|
3195
3195
|
),
|
|
3196
3196
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: [
|
|
3197
3197
|
/* @__PURE__ */ e("p", { className: "truncate text-[13px] text-foreground", children: cs(P) }),
|
|
3198
|
-
/* @__PURE__ */ e("p", { className: "truncate text-[11px] text-muted-foreground", children:
|
|
3199
|
-
H &&
|
|
3198
|
+
/* @__PURE__ */ e("p", { className: "truncate text-[11px] text-muted-foreground", children: qf(P, p) }),
|
|
3199
|
+
H && q && /* @__PURE__ */ e(
|
|
3200
3200
|
"p",
|
|
3201
3201
|
{
|
|
3202
|
-
title: [
|
|
3202
|
+
title: [q.reason, q.action].filter(Boolean).join(" "),
|
|
3203
3203
|
className: "text-[10px] font-medium leading-[1.4] text-destructive",
|
|
3204
3204
|
children: H
|
|
3205
3205
|
}
|
|
@@ -3336,7 +3336,7 @@ function $f(t, a) {
|
|
|
3336
3336
|
const r = cs(t), s = _n(t, a);
|
|
3337
3337
|
return s ? `${r} from ${s}` : r;
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function qf(t, a) {
|
|
3340
3340
|
const r = _n(t, a);
|
|
3341
3341
|
if (r) return r;
|
|
3342
3342
|
const s = [];
|
|
@@ -3397,7 +3397,7 @@ const Dr = ({
|
|
|
3397
3397
|
...r,
|
|
3398
3398
|
children: t && /* @__PURE__ */ e("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ e(Mn, { className: "h-2.5 w-2.5" }) })
|
|
3399
3399
|
}
|
|
3400
|
-
),
|
|
3400
|
+
), jf = 3, Mr = "Self-heal", rr = {
|
|
3401
3401
|
grounding: "Analyzing context",
|
|
3402
3402
|
drafting: "Drafting SQL",
|
|
3403
3403
|
validating: "Validating SQL",
|
|
@@ -3428,7 +3428,7 @@ const Va = {
|
|
|
3428
3428
|
errorMessage: ""
|
|
3429
3429
|
};
|
|
3430
3430
|
function Uf(t, a) {
|
|
3431
|
-
return t === Mr && a > 0 ? `${Mr} ${a}/${
|
|
3431
|
+
return t === Mr && a > 0 ? `${Mr} ${a}/${jf}` : t;
|
|
3432
3432
|
}
|
|
3433
3433
|
async function Gf(t, a) {
|
|
3434
3434
|
try {
|
|
@@ -3626,11 +3626,11 @@ function Jf({
|
|
|
3626
3626
|
);
|
|
3627
3627
|
}
|
|
3628
3628
|
const Y = T.status === "done" ? T.sql : "", O = T.prompt, P = T.mode, $ = T.baselineSql;
|
|
3629
|
-
function
|
|
3629
|
+
function q(ce) {
|
|
3630
3630
|
const ke = Y.trim();
|
|
3631
3631
|
ke && (o(ke, ce), ce || M(!1));
|
|
3632
3632
|
}
|
|
3633
|
-
const
|
|
3633
|
+
const j = Y.length > 0, H = ((Ze = T.validation) == null ? void 0 : Ze.status) === "invalid", X = j && O.length > 0 && O === f.trim(), ie = B.length > 0, z = f.trim().length > 0, W = !!c && !z && !j && !k, ae = X && P === "draft", ue = X && P === "refine" && $ === B, oe = p === "refine" && !ie ? "draft" : p, fe = (oe === "refine" ? ue : ae) ? "Open composer preview" : "Generate composer SQL", be = f.trim().length > 0 || O.trim().length > 0 || j || T.status !== "idle" || T.timelineSteps.length > 0;
|
|
3634
3634
|
function Ae(ce = "draft") {
|
|
3635
3635
|
if (k)
|
|
3636
3636
|
return;
|
|
@@ -3654,7 +3654,7 @@ function Jf({
|
|
|
3654
3654
|
}
|
|
3655
3655
|
const _e = T.timelineSteps.findIndex(
|
|
3656
3656
|
(ce) => ce === T.activeStep
|
|
3657
|
-
), Qe = T.activeStep === rr.repairing ? "Fixing validation issue" : T.activeStep || rr.drafting, Ve = !
|
|
3657
|
+
), Qe = T.activeStep === rr.repairing ? "Fixing validation issue" : T.activeStep || rr.drafting, Ve = !j || !T.validation ? null : T.validation.status === "valid" ? {
|
|
3658
3658
|
label: "Validation passed",
|
|
3659
3659
|
className: "border-emerald-500/30 bg-emerald-500/10 text-emerald-700",
|
|
3660
3660
|
detail: "SQL validation passed."
|
|
@@ -3870,7 +3870,7 @@ function Jf({
|
|
|
3870
3870
|
}
|
|
3871
3871
|
) })
|
|
3872
3872
|
] }),
|
|
3873
|
-
|
|
3873
|
+
j ? /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
3874
3874
|
P === "refine" && /* @__PURE__ */ e("p", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Refined SQL" }),
|
|
3875
3875
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-auto rounded-[5px] border border-border/60", children: /* @__PURE__ */ e(
|
|
3876
3876
|
oa,
|
|
@@ -3894,8 +3894,8 @@ function Jf({
|
|
|
3894
3894
|
{
|
|
3895
3895
|
variant: "secondary",
|
|
3896
3896
|
size: "xs",
|
|
3897
|
-
disabled: k || !
|
|
3898
|
-
onClick: () =>
|
|
3897
|
+
disabled: k || !j,
|
|
3898
|
+
onClick: () => q(!1),
|
|
3899
3899
|
children: "Replace SQL"
|
|
3900
3900
|
}
|
|
3901
3901
|
),
|
|
@@ -3903,8 +3903,8 @@ function Jf({
|
|
|
3903
3903
|
te,
|
|
3904
3904
|
{
|
|
3905
3905
|
size: "xs",
|
|
3906
|
-
disabled: k || !
|
|
3907
|
-
onClick: () =>
|
|
3906
|
+
disabled: k || !j || H,
|
|
3907
|
+
onClick: () => q(!0),
|
|
3908
3908
|
children: "Replace & Run"
|
|
3909
3909
|
}
|
|
3910
3910
|
)
|
|
@@ -3940,7 +3940,7 @@ function Qf({
|
|
|
3940
3940
|
children: [
|
|
3941
3941
|
/* @__PURE__ */ n(la, { className: "h-11 flex-row items-center justify-between space-y-0 border-b border-border/60 px-4 py-0 text-left", children: [
|
|
3942
3942
|
/* @__PURE__ */ n("div", { className: "flex min-w-0 items-center gap-4 self-stretch", children: [
|
|
3943
|
-
/* @__PURE__ */ e(
|
|
3943
|
+
/* @__PURE__ */ e(qt, { className: "shrink-0 text-sm", children: "Query editor" }),
|
|
3944
3944
|
/* @__PURE__ */ n(
|
|
3945
3945
|
Ht,
|
|
3946
3946
|
{
|
|
@@ -4378,7 +4378,7 @@ function sg() {
|
|
|
4378
4378
|
}
|
|
4379
4379
|
return M;
|
|
4380
4380
|
}
|
|
4381
|
-
const
|
|
4381
|
+
const ql = "[&_.code-editor-pre]:!pb-14 [&_.code-editor-textarea]:!pb-14";
|
|
4382
4382
|
function lg() {
|
|
4383
4383
|
var at, yt, Me, We;
|
|
4384
4384
|
const t = _r(), { tokenProps: a } = Yt(), r = ((yt = (at = a.config) == null ? void 0 : at.projectFeatures) == null ? void 0 : yt.features.aiWritingHelpers) !== !1, [s, o] = U("sql"), [d, c] = U(!1), [l, i] = U(!1), h = sg(), [u, f] = U(!1), [m, p] = U(null), x = R((Q) => Q.frame), b = R((Q) => Q.card), {
|
|
@@ -4441,8 +4441,8 @@ function lg() {
|
|
|
4441
4441
|
) ?? b.type, [N, k, w, b, E == null ? void 0 : E.slots]), D = ee(() => B !== b.type ? { ...b, type: B } : b, [b, B]), Y = ee(() => F === 0 ? null : lp(b == null ? void 0 : b.sql), [b == null ? void 0 : b.sql, F]), O = Pe(!0), {
|
|
4442
4442
|
setCardCustomCfg: P,
|
|
4443
4443
|
setQueryResultColumns: $,
|
|
4444
|
-
setCardSql:
|
|
4445
|
-
setTempQueryData:
|
|
4444
|
+
setCardSql: q,
|
|
4445
|
+
setTempQueryData: j,
|
|
4446
4446
|
// setQueryError,
|
|
4447
4447
|
setCardPreferences: H,
|
|
4448
4448
|
setCardType: X,
|
|
@@ -4502,7 +4502,7 @@ function lg() {
|
|
|
4502
4502
|
ft.current();
|
|
4503
4503
|
}, [y]);
|
|
4504
4504
|
function Ze(Q, Se) {
|
|
4505
|
-
|
|
4505
|
+
q(Q), Se && ue(!0);
|
|
4506
4506
|
}
|
|
4507
4507
|
function ce() {
|
|
4508
4508
|
uo({
|
|
@@ -4536,7 +4536,7 @@ function lg() {
|
|
|
4536
4536
|
/* @__PURE__ */ n("div", { className: "flex shrink-0 flex-col gap-1.5 px-4 pb-1 pt-3", children: [
|
|
4537
4537
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
4538
4538
|
/* @__PURE__ */ e("div", { className: G("min-w-0", u && "flex-1"), children: /* @__PURE__ */ e(
|
|
4539
|
-
|
|
4539
|
+
qa,
|
|
4540
4540
|
{
|
|
4541
4541
|
value: b.title,
|
|
4542
4542
|
onSave: (Q) => z({ ...b, title: Q }),
|
|
@@ -4550,7 +4550,7 @@ function lg() {
|
|
|
4550
4550
|
/* @__PURE__ */ e(Co, { card: b })
|
|
4551
4551
|
] }),
|
|
4552
4552
|
/* @__PURE__ */ e(
|
|
4553
|
-
|
|
4553
|
+
qa,
|
|
4554
4554
|
{
|
|
4555
4555
|
value: (b.description || "").trim(),
|
|
4556
4556
|
onSave: (Q) => z({ ...b, description: Q.trim() }),
|
|
@@ -4600,7 +4600,7 @@ function lg() {
|
|
|
4600
4600
|
bl,
|
|
4601
4601
|
{
|
|
4602
4602
|
ref: g,
|
|
4603
|
-
className:
|
|
4603
|
+
className: ql
|
|
4604
4604
|
},
|
|
4605
4605
|
`inline-sql-${b.id}`
|
|
4606
4606
|
) : null
|
|
@@ -4623,7 +4623,7 @@ function lg() {
|
|
|
4623
4623
|
vl,
|
|
4624
4624
|
{
|
|
4625
4625
|
ref: v,
|
|
4626
|
-
className:
|
|
4626
|
+
className: ql
|
|
4627
4627
|
},
|
|
4628
4628
|
`inline-python-${b.id}`
|
|
4629
4629
|
) : null
|
|
@@ -4774,7 +4774,7 @@ function ds() {
|
|
|
4774
4774
|
[t, a, r]
|
|
4775
4775
|
);
|
|
4776
4776
|
}
|
|
4777
|
-
const
|
|
4777
|
+
const jl = [
|
|
4778
4778
|
{ value: "table", label: "Table" },
|
|
4779
4779
|
{ value: "aggregateTable", label: "Hierarchical" },
|
|
4780
4780
|
{ value: "pivotTable", label: "Pivot" },
|
|
@@ -4784,9 +4784,9 @@ const ql = [
|
|
|
4784
4784
|
"pivotTable"
|
|
4785
4785
|
];
|
|
4786
4786
|
function cg({ className: t }) {
|
|
4787
|
-
const a = R((p) => p.card), r = R((p) => p.frame), s = R((p) => p.editorContext), o = ot(), { setCard: d, updateCardInFrame: c } = Ne(), l = (s == null ? void 0 : s.type) === "documentSection" && !!s.lockedKind, i = ((s == null ? void 0 : s.type) === "documentSection" ?
|
|
4787
|
+
const a = R((p) => p.card), r = R((p) => p.frame), s = R((p) => p.editorContext), o = ot(), { setCard: d, updateCardInFrame: c } = Ne(), l = (s == null ? void 0 : s.type) === "documentSection" && !!s.lockedKind, i = ((s == null ? void 0 : s.type) === "documentSection" ? jl.filter(
|
|
4788
4788
|
(p) => ["table", "pivotTable"].includes(p.value)
|
|
4789
|
-
) :
|
|
4789
|
+
) : jl).filter(
|
|
4790
4790
|
(p) => !ig.includes(p.value) || p.value === o
|
|
4791
4791
|
), h = [
|
|
4792
4792
|
"table",
|
|
@@ -5038,7 +5038,7 @@ function pg(t) {
|
|
|
5038
5038
|
const r = (s = t.currentTarget.ownerDocument.defaultView) == null ? void 0 : s.getSelection();
|
|
5039
5039
|
return !!(r && !r.isCollapsed);
|
|
5040
5040
|
}
|
|
5041
|
-
function
|
|
5041
|
+
function qi({
|
|
5042
5042
|
text: t,
|
|
5043
5043
|
children: a,
|
|
5044
5044
|
className: r,
|
|
@@ -5114,7 +5114,7 @@ function ji({
|
|
|
5114
5114
|
) });
|
|
5115
5115
|
}
|
|
5116
5116
|
const fg = "This visual couldn't load its data.";
|
|
5117
|
-
function
|
|
5117
|
+
function ji({
|
|
5118
5118
|
title: t = fg,
|
|
5119
5119
|
hint: a,
|
|
5120
5120
|
detail: r,
|
|
@@ -5123,7 +5123,7 @@ function qi({
|
|
|
5123
5123
|
actions: d,
|
|
5124
5124
|
className: c
|
|
5125
5125
|
}) {
|
|
5126
|
-
const l =
|
|
5126
|
+
const l = ja(), [i, h] = U(s);
|
|
5127
5127
|
return /* @__PURE__ */ n(
|
|
5128
5128
|
"div",
|
|
5129
5129
|
{
|
|
@@ -5155,7 +5155,7 @@ function qi({
|
|
|
5155
5155
|
children: [
|
|
5156
5156
|
/* @__PURE__ */ e("summary", { className: "w-fit cursor-pointer list-none underline underline-offset-2 hover:text-foreground [&::-webkit-details-marker]:hidden", children: "Details" }),
|
|
5157
5157
|
i ? /* @__PURE__ */ e(
|
|
5158
|
-
|
|
5158
|
+
qi,
|
|
5159
5159
|
{
|
|
5160
5160
|
text: r,
|
|
5161
5161
|
"aria-label": "Copy error message",
|
|
@@ -5204,7 +5204,7 @@ function Ki({
|
|
|
5204
5204
|
{
|
|
5205
5205
|
className: G("min-h-[80px] overflow-auto px-1 py-1", h),
|
|
5206
5206
|
children: /* @__PURE__ */ e(
|
|
5207
|
-
|
|
5207
|
+
qi,
|
|
5208
5208
|
{
|
|
5209
5209
|
as: "div",
|
|
5210
5210
|
text: t,
|
|
@@ -5276,7 +5276,7 @@ function zi({
|
|
|
5276
5276
|
) : null;
|
|
5277
5277
|
return /* @__PURE__ */ n(Yi, { className: G("w-full", f), children: [
|
|
5278
5278
|
/* @__PURE__ */ e(
|
|
5279
|
-
|
|
5279
|
+
ji,
|
|
5280
5280
|
{
|
|
5281
5281
|
title: r,
|
|
5282
5282
|
hint: s,
|
|
@@ -5477,7 +5477,7 @@ function ms({
|
|
|
5477
5477
|
className: "max-h-[calc(100vh-2rem)] w-[calc(100%-2rem)] max-w-[520px] gap-0 overflow-y-auto overscroll-contain rounded-card border-border/60 p-0 sm:rounded-card [&>button]:right-3 [&>button]:top-3",
|
|
5478
5478
|
children: [
|
|
5479
5479
|
/* @__PURE__ */ n(la, { className: "flex h-10 flex-row items-center space-y-0 border-b border-border px-3 pr-10 text-left", children: [
|
|
5480
|
-
/* @__PURE__ */ e(
|
|
5480
|
+
/* @__PURE__ */ e(qt, { className: "truncate text-[13px] font-medium", children: b }),
|
|
5481
5481
|
f && /* @__PURE__ */ e(Ut, { className: "sr-only", children: g })
|
|
5482
5482
|
] }),
|
|
5483
5483
|
!f && /* @__PURE__ */ n(pe, { children: [
|
|
@@ -5747,8 +5747,8 @@ function Hi({
|
|
|
5747
5747
|
feedbackDialogOpen: O,
|
|
5748
5748
|
setFeedbackDialogOpen: P,
|
|
5749
5749
|
handleSendFeedback: $,
|
|
5750
|
-
feedbackPayload:
|
|
5751
|
-
} = Gi(V, w || s.sql || s.python),
|
|
5750
|
+
feedbackPayload: q
|
|
5751
|
+
} = Gi(V, w || s.sql || s.python), j = ee(() => (C == null ? void 0 : C.records) || [], [C == null ? void 0 : C.records]), { setCard: H, updateCardInFrame: X } = Ne(), { data: ie } = qr(F), z = F.id, W = F.config, ae = F.interactionConfig, ue = F.controls, oe = F.controlBindings, ge = F.customCfg, fe = F.preferences, be = F.queryConfig, Ae = Cg({
|
|
5752
5752
|
sql: F.sql,
|
|
5753
5753
|
python: F.python
|
|
5754
5754
|
}), me = Ae.sql, Le = Ae.python, Ye = C == null ? void 0 : C.records, ye = ee(
|
|
@@ -5888,10 +5888,10 @@ function Hi({
|
|
|
5888
5888
|
) });
|
|
5889
5889
|
if (I === "table" || I === "detailTable")
|
|
5890
5890
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
5891
|
-
|
|
5891
|
+
jr,
|
|
5892
5892
|
{
|
|
5893
5893
|
card: F,
|
|
5894
|
-
data:
|
|
5894
|
+
data: j,
|
|
5895
5895
|
resultColumns: C == null ? void 0 : C.columns,
|
|
5896
5896
|
columnKeyMap: C == null ? void 0 : C.columnKeyMap,
|
|
5897
5897
|
totalsByColumnId: C == null ? void 0 : C.tableTotalsByColumnId,
|
|
@@ -5974,7 +5974,7 @@ function Hi({
|
|
|
5974
5974
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1 space-y-1", children: [
|
|
5975
5975
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
5976
5976
|
/* @__PURE__ */ e(Fd, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
|
|
5977
|
-
|
|
5977
|
+
qa,
|
|
5978
5978
|
{
|
|
5979
5979
|
value: s.title,
|
|
5980
5980
|
onSave: (Q) => H({ ...s, title: Q }),
|
|
@@ -5989,7 +5989,7 @@ function Hi({
|
|
|
5989
5989
|
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(cg, {}) })
|
|
5990
5990
|
] }),
|
|
5991
5991
|
/* @__PURE__ */ e("div", { className: "min-w-0", children: /* @__PURE__ */ e(
|
|
5992
|
-
|
|
5992
|
+
qa,
|
|
5993
5993
|
{
|
|
5994
5994
|
value: (s.description || "").trim(),
|
|
5995
5995
|
onSave: (Q) => H({ ...s, description: Q.trim() }),
|
|
@@ -6002,7 +6002,7 @@ function Hi({
|
|
|
6002
6002
|
] }),
|
|
6003
6003
|
u && /* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
|
|
6004
6004
|
/* @__PURE__ */ e(_, { className: "my-1", children: /* @__PURE__ */ e(
|
|
6005
|
-
|
|
6005
|
+
qa,
|
|
6006
6006
|
{
|
|
6007
6007
|
value: u.title || u.column,
|
|
6008
6008
|
onSave: (Q) => b(
|
|
@@ -6063,7 +6063,7 @@ function Hi({
|
|
|
6063
6063
|
{
|
|
6064
6064
|
open: O,
|
|
6065
6065
|
onOpenChange: P,
|
|
6066
|
-
feedbackData:
|
|
6066
|
+
feedbackData: q,
|
|
6067
6067
|
showDebugInfo: !0
|
|
6068
6068
|
}
|
|
6069
6069
|
)
|
|
@@ -6109,7 +6109,7 @@ const sr = ({
|
|
|
6109
6109
|
embedded: !0
|
|
6110
6110
|
}
|
|
6111
6111
|
), wg = () => /* @__PURE__ */ n(la, { children: [
|
|
6112
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(
|
|
6112
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(qt, { children: "Customize Card" }) }),
|
|
6113
6113
|
/* @__PURE__ */ n(Ut, { children: [
|
|
6114
6114
|
"See the configuration options and documentation",
|
|
6115
6115
|
/* @__PURE__ */ e(
|
|
@@ -6199,7 +6199,7 @@ function Tg({
|
|
|
6199
6199
|
className: a,
|
|
6200
6200
|
label: r = "Customize Visual"
|
|
6201
6201
|
} = {}) {
|
|
6202
|
-
const [s, o] = U(!1), [d, c] = U(""), [l, i] = U(""), [h, u] = U(""), [f, m] = U(""), p = R((N) => N.card), x = ot(), b = R((N) => N.card.customCfg), g = b ? JSON.stringify(b, null, 2) : "", v = ee(() => x !== p.type ? { ...p, type: x } : p, [p, x]), { data: M } = xt(v), { data: T } =
|
|
6202
|
+
const [s, o] = U(!1), [d, c] = U(""), [l, i] = U(""), [h, u] = U(""), [f, m] = U(""), p = R((N) => N.card), x = ot(), b = R((N) => N.card.customCfg), g = b ? JSON.stringify(b, null, 2) : "", v = ee(() => x !== p.type ? { ...p, type: x } : p, [p, x]), { data: M } = xt(v), { data: T } = qr(p), S = ko(p, M == null ? void 0 : M.records), { setCardCustomCfg: L, setCustomVisualCode: A } = Ne(), I = () => {
|
|
6203
6203
|
var C, E, k;
|
|
6204
6204
|
if (!((C = M == null ? void 0 : M.records) != null && C.length)) return;
|
|
6205
6205
|
const N = To({
|
|
@@ -6311,7 +6311,7 @@ function Ji({
|
|
|
6311
6311
|
}) {
|
|
6312
6312
|
if (!r && t)
|
|
6313
6313
|
return Eo(t, s);
|
|
6314
|
-
const o =
|
|
6314
|
+
const o = qd(a);
|
|
6315
6315
|
if (o)
|
|
6316
6316
|
return gn.cloneElement(o, { className: s });
|
|
6317
6317
|
const d = Mg(a), c = Dg(a);
|
|
@@ -6423,7 +6423,7 @@ function Ig({
|
|
|
6423
6423
|
onClose: r
|
|
6424
6424
|
}) {
|
|
6425
6425
|
var B;
|
|
6426
|
-
const [s, o] = U(""), [d, c] = U(0), l = Pe(null), { data: i = [], isLoading: h } =
|
|
6426
|
+
const [s, o] = U(""), [d, c] = U(0), l = Pe(null), { data: i = [], isLoading: h } = jd(), u = ds(), { setCardPreferences: f } = R((D) => D.actions), m = R((D) => D.card), p = R((D) => D.isDevMode), x = t ?? m.type, b = x === "custom" ? (B = m.customCardPreferences) == null ? void 0 : B.componentName : void 0, {
|
|
6427
6427
|
setCardCustomCfg: g,
|
|
6428
6428
|
setQueryConfig: v,
|
|
6429
6429
|
replaceFrameCards: M,
|
|
@@ -7337,26 +7337,26 @@ function $g({
|
|
|
7337
7337
|
] }) : null,
|
|
7338
7338
|
r.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "This card is not using any controls yet." }) : r.map((y, N) => {
|
|
7339
7339
|
const C = v[y.target] || [], E = m.find(
|
|
7340
|
-
(
|
|
7341
|
-
), k = E ? vh(E) : null, V = (k == null ? void 0 : k.source.kind) === "manual" ? k.source.options : [], w = L(y.target), B = f(y.target), D = y.matrixTargetId !== void 0 && !B.some((
|
|
7340
|
+
(j) => j.id === y.controlId
|
|
7341
|
+
), k = E ? vh(E) : null, V = (k == null ? void 0 : k.source.kind) === "manual" ? k.source.options : [], w = L(y.target), B = f(y.target), D = y.matrixTargetId !== void 0 && !B.some((j) => j.id === y.matrixTargetId), Y = Array.from(
|
|
7342
7342
|
/* @__PURE__ */ new Set([
|
|
7343
|
-
...V.map((
|
|
7343
|
+
...V.map((j) => j.value),
|
|
7344
7344
|
...Object.keys(y.mapping)
|
|
7345
7345
|
])
|
|
7346
|
-
).map((
|
|
7347
|
-
const H = V.find((X) => X.value ===
|
|
7346
|
+
).map((j) => {
|
|
7347
|
+
const H = V.find((X) => X.value === j);
|
|
7348
7348
|
return {
|
|
7349
|
-
value:
|
|
7350
|
-
label: (H == null ? void 0 : H.label) ||
|
|
7349
|
+
value: j,
|
|
7350
|
+
label: (H == null ? void 0 : H.label) || j
|
|
7351
7351
|
};
|
|
7352
|
-
}), O = `${y.controlId}-${y.target}-${N}`, P = p[O] ?? N === 0, $ = Object.keys(y.mapping).length,
|
|
7352
|
+
}), O = `${y.controlId}-${y.target}-${N}`, P = p[O] ?? N === 0, $ = Object.keys(y.mapping).length, q = E != null && E.type ? Yg[E.type] || E.type : null;
|
|
7353
7353
|
return /* @__PURE__ */ n(
|
|
7354
7354
|
ca,
|
|
7355
7355
|
{
|
|
7356
7356
|
open: P,
|
|
7357
|
-
onOpenChange: (
|
|
7357
|
+
onOpenChange: (j) => x((H) => ({
|
|
7358
7358
|
...H,
|
|
7359
|
-
[O]:
|
|
7359
|
+
[O]: j
|
|
7360
7360
|
})),
|
|
7361
7361
|
className: "rounded-md border",
|
|
7362
7362
|
children: [
|
|
@@ -7371,12 +7371,12 @@ function $g({
|
|
|
7371
7371
|
/* @__PURE__ */ n("div", { className: "min-w-0", children: [
|
|
7372
7372
|
/* @__PURE__ */ n("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
7373
7373
|
/* @__PURE__ */ e("div", { className: "truncate text-sm font-medium", children: (E == null ? void 0 : E.label) || "Control" }),
|
|
7374
|
-
|
|
7374
|
+
q ? /* @__PURE__ */ e(
|
|
7375
7375
|
Ct,
|
|
7376
7376
|
{
|
|
7377
7377
|
variant: "secondary",
|
|
7378
7378
|
className: "shrink-0 text-[11px] font-normal text-muted-foreground",
|
|
7379
|
-
children:
|
|
7379
|
+
children: q
|
|
7380
7380
|
}
|
|
7381
7381
|
) : null
|
|
7382
7382
|
] }),
|
|
@@ -7404,16 +7404,16 @@ function $g({
|
|
|
7404
7404
|
ne,
|
|
7405
7405
|
{
|
|
7406
7406
|
value: y.matrixTargetId ?? "__none__",
|
|
7407
|
-
onValueChange: (
|
|
7407
|
+
onValueChange: (j) => A(N, (H) => {
|
|
7408
7408
|
const { matrixTargetId: X, ...ie } = H;
|
|
7409
|
-
return
|
|
7409
|
+
return j === "__none__" ? ie : { ...ie, matrixTargetId: j };
|
|
7410
7410
|
}),
|
|
7411
7411
|
children: [
|
|
7412
7412
|
/* @__PURE__ */ e(re, { id: `matrix-target-${O}`, "aria-label": "Matrix target", children: /* @__PURE__ */ e(se, { placeholder: "Choose target" }) }),
|
|
7413
7413
|
/* @__PURE__ */ n(le, { children: [
|
|
7414
7414
|
/* @__PURE__ */ e(K, { value: "__none__", children: B.length === 1 ? `Automatic: ${B[0].label}` : "Choose target" }),
|
|
7415
7415
|
D ? /* @__PURE__ */ e(K, { value: y.matrixTargetId, disabled: !0, children: "Missing target" }) : null,
|
|
7416
|
-
B.map((
|
|
7416
|
+
B.map((j) => /* @__PURE__ */ e(K, { value: j.id, children: j.label }, j.id))
|
|
7417
7417
|
] })
|
|
7418
7418
|
]
|
|
7419
7419
|
}
|
|
@@ -7422,8 +7422,8 @@ function $g({
|
|
|
7422
7422
|
] }) : null,
|
|
7423
7423
|
Y.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "Add choices to this control first so you can decide what each choice changes in the card." }) : w.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "No matching targets are available for this binding yet." }) : /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
7424
7424
|
/* @__PURE__ */ e(_, { className: "text-xs", children: "Map each choice" }),
|
|
7425
|
-
/* @__PURE__ */ e("div", { className: "space-y-2", children: Y.map((
|
|
7426
|
-
const H = y.mapping[
|
|
7425
|
+
/* @__PURE__ */ e("div", { className: "space-y-2", children: Y.map((j) => {
|
|
7426
|
+
const H = y.mapping[j.value], X = y.target === "config_metric_selector" || y.target === "config_field_selector" ? typeof H == "string" ? H : H == null ? void 0 : H.id : typeof H == "string" ? H : void 0, ie = !l && typeof X == "string" && !w.some((ae) => ae.value === X), z = _g(
|
|
7427
7427
|
H,
|
|
7428
7428
|
X
|
|
7429
7429
|
), W = X && ie ? [
|
|
@@ -7441,7 +7441,7 @@ function $g({
|
|
|
7441
7441
|
children: [
|
|
7442
7442
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
7443
7443
|
/* @__PURE__ */ e(_, { className: "text-[11px] text-muted-foreground", children: "Viewer picks" }),
|
|
7444
|
-
/* @__PURE__ */ e("div", { className: "rounded-md bg-muted/50 px-3 py-2 text-sm", children:
|
|
7444
|
+
/* @__PURE__ */ e("div", { className: "rounded-md bg-muted/50 px-3 py-2 text-sm", children: j.label })
|
|
7445
7445
|
] }),
|
|
7446
7446
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
7447
7447
|
/* @__PURE__ */ e(_, { className: "text-[11px] text-muted-foreground", children: "Switch to" }),
|
|
@@ -7453,12 +7453,12 @@ function $g({
|
|
|
7453
7453
|
if (ue.target === "config_metric_selector") {
|
|
7454
7454
|
const ge = { ...ue.mapping };
|
|
7455
7455
|
if (ae === "__none__")
|
|
7456
|
-
delete ge[
|
|
7456
|
+
delete ge[j.value];
|
|
7457
7457
|
else {
|
|
7458
7458
|
const fe = W.find(
|
|
7459
7459
|
(be) => be.value === ae
|
|
7460
7460
|
);
|
|
7461
|
-
fe != null && fe.target ? ge[
|
|
7461
|
+
fe != null && fe.target ? ge[j.value] = fe.target : delete ge[j.value];
|
|
7462
7462
|
}
|
|
7463
7463
|
return {
|
|
7464
7464
|
...ue,
|
|
@@ -7468,12 +7468,12 @@ function $g({
|
|
|
7468
7468
|
if (ue.target === "config_field_selector") {
|
|
7469
7469
|
const ge = { ...ue.mapping };
|
|
7470
7470
|
if (ae === "__none__")
|
|
7471
|
-
delete ge[
|
|
7471
|
+
delete ge[j.value];
|
|
7472
7472
|
else {
|
|
7473
7473
|
const fe = W.find(
|
|
7474
7474
|
(be) => be.value === ae
|
|
7475
7475
|
);
|
|
7476
|
-
fe != null && fe.target ? ge[
|
|
7476
|
+
fe != null && fe.target ? ge[j.value] = fe.target : delete ge[j.value];
|
|
7477
7477
|
}
|
|
7478
7478
|
return {
|
|
7479
7479
|
...ue,
|
|
@@ -7481,7 +7481,7 @@ function $g({
|
|
|
7481
7481
|
};
|
|
7482
7482
|
}
|
|
7483
7483
|
const oe = { ...ue.mapping };
|
|
7484
|
-
return ae === "__none__" ? delete oe[
|
|
7484
|
+
return ae === "__none__" ? delete oe[j.value] : oe[j.value] = ae, {
|
|
7485
7485
|
...ue,
|
|
7486
7486
|
mapping: oe
|
|
7487
7487
|
};
|
|
@@ -7505,7 +7505,7 @@ function $g({
|
|
|
7505
7505
|
] })
|
|
7506
7506
|
]
|
|
7507
7507
|
},
|
|
7508
|
-
`${y.controlId}-${y.target}-${
|
|
7508
|
+
`${y.controlId}-${y.target}-${j.value}`
|
|
7509
7509
|
);
|
|
7510
7510
|
}) }),
|
|
7511
7511
|
C.length > 0 && /* @__PURE__ */ n("p", { className: "text-[11px] text-muted-foreground", children: [
|
|
@@ -7525,7 +7525,7 @@ function $g({
|
|
|
7525
7525
|
] }) : null
|
|
7526
7526
|
] });
|
|
7527
7527
|
}
|
|
7528
|
-
function
|
|
7528
|
+
function qg(t, a, r) {
|
|
7529
7529
|
const { eligibleTargets: s } = Ci(
|
|
7530
7530
|
t,
|
|
7531
7531
|
a,
|
|
@@ -7547,7 +7547,7 @@ function jg(t, a, r) {
|
|
|
7547
7547
|
};
|
|
7548
7548
|
});
|
|
7549
7549
|
}
|
|
7550
|
-
function
|
|
7550
|
+
function jg(t) {
|
|
7551
7551
|
return t ? t.kind === "metric" ? t.metricId : t.kind === "column" ? t.columnKey : t.measureId : "invalid target";
|
|
7552
7552
|
}
|
|
7553
7553
|
function Kg({
|
|
@@ -7559,7 +7559,7 @@ function Kg({
|
|
|
7559
7559
|
onChange: d
|
|
7560
7560
|
}) {
|
|
7561
7561
|
const c = [...r, ...a.controls || []], l = c.filter(Tp), i = ee(
|
|
7562
|
-
() =>
|
|
7562
|
+
() => qg(a, s, t),
|
|
7563
7563
|
[a, s, t]
|
|
7564
7564
|
), h = ee(
|
|
7565
7565
|
() => Ci(a, s, t),
|
|
@@ -7598,7 +7598,7 @@ function Kg({
|
|
|
7598
7598
|
S.controlId,
|
|
7599
7599
|
" →",
|
|
7600
7600
|
" ",
|
|
7601
|
-
|
|
7601
|
+
jg(S.presentationTarget),
|
|
7602
7602
|
S.presentationTarget ? ` · ${T(S.presentationTarget) ?? "unavailable"}` : null
|
|
7603
7603
|
] }),
|
|
7604
7604
|
/* @__PURE__ */ e(
|
|
@@ -7661,23 +7661,23 @@ function gs({
|
|
|
7661
7661
|
preventPassiveDismissDuringCreate: o,
|
|
7662
7662
|
resolvedOpen: d,
|
|
7663
7663
|
setIsCreateFlowActive: c
|
|
7664
|
-
} = rp({}), l = R((
|
|
7665
|
-
(
|
|
7666
|
-
), u = xe((
|
|
7667
|
-
(
|
|
7664
|
+
} = rp({}), l = R((q) => q.card), i = R((q) => q.frame), h = R(
|
|
7665
|
+
(q) => q.queryResultColumns
|
|
7666
|
+
), u = xe((q) => q.dashboard), m = xe(
|
|
7667
|
+
(q) => q.dashboard.controls
|
|
7668
7668
|
) || zg, { setCard: p, updateCardInFrame: x } = Ne(), [b, g] = U(null);
|
|
7669
7669
|
we(() => {
|
|
7670
7670
|
d && !b && (l != null && l.id) && g(l.id);
|
|
7671
7671
|
}, [l == null ? void 0 : l.id, d, b]), we(() => {
|
|
7672
7672
|
!d && b !== null && g(null);
|
|
7673
7673
|
}, [d, b]);
|
|
7674
|
-
const v = ee(() => b ? (i == null ? void 0 : i.cards.find((
|
|
7674
|
+
const v = ee(() => b ? (i == null ? void 0 : i.cards.find((q) => q.id === b)) || ((l == null ? void 0 : l.id) === b ? l : void 0) : l, [l, i == null ? void 0 : i.cards, b]), M = (v == null ? void 0 : v.type) === "matrixTable" ? (O = v.config) == null ? void 0 : O.matrix : void 0, T = ee(
|
|
7675
7675
|
() => d && M ? Ep(M.spec, v == null ? void 0 : v.controlBindings) : [],
|
|
7676
7676
|
[d, M, v == null ? void 0 : v.controlBindings]
|
|
7677
|
-
), S = iu(T), L = ee(() => S.catalog.map((
|
|
7678
|
-
...
|
|
7679
|
-
dataType: mo(
|
|
7680
|
-
})), [S.catalog]), A = (v == null ? void 0 : v.controls) || [], I = v ? Nh(u, { excludeCardId: v.id }) : m.map((
|
|
7677
|
+
), S = iu(T), L = ee(() => S.catalog.map((q) => ({
|
|
7678
|
+
...q.field,
|
|
7679
|
+
dataType: mo(q.resolvedField.dataType)
|
|
7680
|
+
})), [S.catalog]), A = (v == null ? void 0 : v.controls) || [], I = v ? Nh(u, { excludeCardId: v.id }) : m.map((q) => q.id), F = ((v == null ? void 0 : v.controlBindings) || []).filter(
|
|
7681
7681
|
Ch
|
|
7682
7682
|
), y = ((v == null ? void 0 : v.controlBindings) || []).filter(
|
|
7683
7683
|
Zn
|
|
@@ -7687,52 +7687,52 @@ function gs({
|
|
|
7687
7687
|
}), C = {
|
|
7688
7688
|
choices: wh(v),
|
|
7689
7689
|
targetMap: Object.fromEntries(
|
|
7690
|
-
(((P = v == null ? void 0 : v.config) == null ? void 0 : P.groupByColumns) || []).map((
|
|
7691
|
-
|
|
7692
|
-
|
|
7690
|
+
(((P = v == null ? void 0 : v.config) == null ? void 0 : P.groupByColumns) || []).map((q) => [
|
|
7691
|
+
q.id,
|
|
7692
|
+
q
|
|
7693
7693
|
])
|
|
7694
7694
|
)
|
|
7695
7695
|
}, E = {
|
|
7696
7696
|
choices: Sh(v),
|
|
7697
7697
|
targetMap: Object.fromEntries(
|
|
7698
|
-
((($ = v == null ? void 0 : v.config) == null ? void 0 : $.metricColumns) || []).map((
|
|
7699
|
-
|
|
7700
|
-
|
|
7698
|
+
((($ = v == null ? void 0 : v.config) == null ? void 0 : $.metricColumns) || []).map((q) => [
|
|
7699
|
+
q.id,
|
|
7700
|
+
q
|
|
7701
7701
|
])
|
|
7702
7702
|
)
|
|
7703
|
-
}, k = C.choices.map((
|
|
7704
|
-
option:
|
|
7705
|
-
target: C.targetMap[
|
|
7706
|
-
})), V = E.choices.map((
|
|
7707
|
-
option:
|
|
7708
|
-
target: E.targetMap[
|
|
7709
|
-
})), w = (
|
|
7703
|
+
}, k = C.choices.map((q) => ({
|
|
7704
|
+
option: q,
|
|
7705
|
+
target: C.targetMap[q.value]
|
|
7706
|
+
})), V = E.choices.map((q) => ({
|
|
7707
|
+
option: q,
|
|
7708
|
+
target: E.targetMap[q.value]
|
|
7709
|
+
})), w = (q, j) => {
|
|
7710
7710
|
if (!v)
|
|
7711
7711
|
return;
|
|
7712
|
-
const H = (
|
|
7712
|
+
const H = (j == null ? void 0 : j.type) === "rename" ? wl(v, {
|
|
7713
7713
|
type: "rename",
|
|
7714
|
-
oldId:
|
|
7715
|
-
newId:
|
|
7716
|
-
}) : (
|
|
7714
|
+
oldId: j.oldId,
|
|
7715
|
+
newId: j.newId
|
|
7716
|
+
}) : (j == null ? void 0 : j.type) === "remove" ? wl(v, {
|
|
7717
7717
|
type: "remove",
|
|
7718
|
-
controlId:
|
|
7718
|
+
controlId: j.controlId
|
|
7719
7719
|
}) : v, X = {
|
|
7720
7720
|
...H,
|
|
7721
|
-
controls:
|
|
7721
|
+
controls: q,
|
|
7722
7722
|
controlBindings: kh(
|
|
7723
7723
|
H.controlBindings,
|
|
7724
|
-
|
|
7724
|
+
q
|
|
7725
7725
|
)
|
|
7726
7726
|
};
|
|
7727
7727
|
x(X), (l == null ? void 0 : l.id) === X.id && p(X);
|
|
7728
|
-
}, B = (
|
|
7728
|
+
}, B = (q) => {
|
|
7729
7729
|
if (!v)
|
|
7730
7730
|
return;
|
|
7731
|
-
const
|
|
7731
|
+
const j = {
|
|
7732
7732
|
...v,
|
|
7733
7733
|
controlBindings: [
|
|
7734
7734
|
...Th(
|
|
7735
|
-
|
|
7735
|
+
q,
|
|
7736
7736
|
(v.controlBindings || []).filter(
|
|
7737
7737
|
(H) => !Zn(H)
|
|
7738
7738
|
)
|
|
@@ -7740,19 +7740,19 @@ function gs({
|
|
|
7740
7740
|
...y
|
|
7741
7741
|
]
|
|
7742
7742
|
};
|
|
7743
|
-
x(
|
|
7744
|
-
}, D = (
|
|
7743
|
+
x(j), (l == null ? void 0 : l.id) === j.id && p(j);
|
|
7744
|
+
}, D = (q) => {
|
|
7745
7745
|
if (!v) return;
|
|
7746
|
-
const
|
|
7746
|
+
const j = {
|
|
7747
7747
|
...v,
|
|
7748
7748
|
controlBindings: [
|
|
7749
7749
|
...(v.controlBindings || []).filter(
|
|
7750
7750
|
(H) => !Zn(H)
|
|
7751
7751
|
),
|
|
7752
|
-
...
|
|
7752
|
+
...q
|
|
7753
7753
|
]
|
|
7754
7754
|
};
|
|
7755
|
-
x(
|
|
7755
|
+
x(j), (l == null ? void 0 : l.id) === j.id && p(j);
|
|
7756
7756
|
}, Y = a === "menu";
|
|
7757
7757
|
return /* @__PURE__ */ e(
|
|
7758
7758
|
"div",
|
|
@@ -7815,7 +7815,7 @@ function gs({
|
|
|
7815
7815
|
availableFieldChoices: k,
|
|
7816
7816
|
availableMetricChoices: V,
|
|
7817
7817
|
onCreateFlowActiveChange: c,
|
|
7818
|
-
onChange: (
|
|
7818
|
+
onChange: (q, j, H) => w(q, H),
|
|
7819
7819
|
emptyMessage: "No card-scoped controls yet."
|
|
7820
7820
|
}
|
|
7821
7821
|
),
|
|
@@ -7974,8 +7974,8 @@ function Gg({
|
|
|
7974
7974
|
((B = r == null ? void 0 : r.customCardPreferences) == null ? void 0 : B.url) || ""
|
|
7975
7975
|
), x = (D = p == null ? void 0 : p.visuals) == null ? void 0 : D.find(
|
|
7976
7976
|
($) => {
|
|
7977
|
-
var
|
|
7978
|
-
return $.name === ((
|
|
7977
|
+
var q;
|
|
7978
|
+
return $.name === ((q = r == null ? void 0 : r.customCardPreferences) == null ? void 0 : q.componentName);
|
|
7979
7979
|
}
|
|
7980
7980
|
), g = pa(r, x) === "multiple", v = (x == null ? void 0 : x.minInputs) ?? ((Y = r == null ? void 0 : r.customCardPreferences) == null ? void 0 : Y.minInputs) ?? 1, M = (x == null ? void 0 : x.maxInputs) ?? ((O = r == null ? void 0 : r.customCardPreferences) == null ? void 0 : O.maxInputs), T = ee(
|
|
7981
7981
|
() => an({
|
|
@@ -7984,19 +7984,19 @@ function Gg({
|
|
|
7984
7984
|
isMultiInputVisual: g
|
|
7985
7985
|
}),
|
|
7986
7986
|
[s, r, g]
|
|
7987
|
-
), S = g ? T.filter(Boolean).length : s.cards.length, L = c ? !1 : M ? S < M : !0, A = S > Math.max(v || 1, 1), I = !!((P = r == null ? void 0 : r.customCardPreferences) != null && P.dataInputCardIds), F = ($,
|
|
7988
|
-
$.dataTransfer.setData("tabIndex",
|
|
7987
|
+
), S = g ? T.filter(Boolean).length : s.cards.length, L = c ? !1 : M ? S < M : !0, A = S > Math.max(v || 1, 1), I = !!((P = r == null ? void 0 : r.customCardPreferences) != null && P.dataInputCardIds), F = ($, q) => {
|
|
7988
|
+
$.dataTransfer.setData("tabIndex", q.toString());
|
|
7989
7989
|
}, y = ($) => {
|
|
7990
7990
|
$.preventDefault();
|
|
7991
|
-
}, N = ($,
|
|
7992
|
-
const
|
|
7993
|
-
if (
|
|
7994
|
-
const H = Array.from(s.cards), [X] = H.splice(parseInt(
|
|
7995
|
-
H.splice(
|
|
7991
|
+
}, N = ($, q) => {
|
|
7992
|
+
const j = $.dataTransfer.getData("tabIndex");
|
|
7993
|
+
if (j === q.toString()) return;
|
|
7994
|
+
const H = Array.from(s.cards), [X] = H.splice(parseInt(j), 1);
|
|
7995
|
+
H.splice(q, 0, X), l({ ...s, cards: H });
|
|
7996
7996
|
};
|
|
7997
7997
|
function C($) {
|
|
7998
|
-
const
|
|
7999
|
-
if (!(I &&
|
|
7998
|
+
const q = (r == null ? void 0 : r.id) === $;
|
|
7999
|
+
if (!(I && q ? s.cards.length > 1 : A)) return;
|
|
8000
8000
|
const H = Mh(s, $);
|
|
8001
8001
|
let X = H.cards;
|
|
8002
8002
|
g && !I && (X = fp(X));
|
|
@@ -8007,14 +8007,14 @@ function Gg({
|
|
|
8007
8007
|
}, W = $ === o.id;
|
|
8008
8008
|
W && f(), l(z), i(ie.id), h(ie), W && m(ie);
|
|
8009
8009
|
}
|
|
8010
|
-
function E($,
|
|
8010
|
+
function E($, q) {
|
|
8011
8011
|
if (!L) return;
|
|
8012
|
-
const
|
|
8012
|
+
const j = {
|
|
8013
8013
|
...s,
|
|
8014
|
-
cards: [...s.cards,
|
|
8014
|
+
cards: [...s.cards, q],
|
|
8015
8015
|
activeCardId: $.id
|
|
8016
8016
|
};
|
|
8017
|
-
l(
|
|
8017
|
+
l(j), i(q.id);
|
|
8018
8018
|
}
|
|
8019
8019
|
function k() {
|
|
8020
8020
|
if (c) return;
|
|
@@ -8032,7 +8032,7 @@ function Gg({
|
|
|
8032
8032
|
slotIndex: g ? Math.max(
|
|
8033
8033
|
-1,
|
|
8034
8034
|
...T.map(
|
|
8035
|
-
(
|
|
8035
|
+
(q, j) => Vt(q, j)
|
|
8036
8036
|
)
|
|
8037
8037
|
) + 1 : o.customCardPreferences.slotIndex
|
|
8038
8038
|
} : void 0
|
|
@@ -8043,7 +8043,7 @@ function Gg({
|
|
|
8043
8043
|
function V($) {
|
|
8044
8044
|
var z;
|
|
8045
8045
|
if (c || !L) return;
|
|
8046
|
-
let
|
|
8046
|
+
let q = g ? "table" : ns, j = "Title", H = "";
|
|
8047
8047
|
const X = g ? Math.max(
|
|
8048
8048
|
-1,
|
|
8049
8049
|
...T.map(
|
|
@@ -8055,14 +8055,14 @@ function Gg({
|
|
|
8055
8055
|
x.slots,
|
|
8056
8056
|
X
|
|
8057
8057
|
);
|
|
8058
|
-
W && (
|
|
8058
|
+
W && (q = gp(W), j = W.label || `Tab ${X + 1}`, H = W.description || "");
|
|
8059
8059
|
}
|
|
8060
8060
|
const ie = {
|
|
8061
8061
|
dataSource: $.dataSource,
|
|
8062
8062
|
connectionId: $.connectionId,
|
|
8063
8063
|
id: sa(),
|
|
8064
|
-
title:
|
|
8065
|
-
tabTitle:
|
|
8064
|
+
title: j,
|
|
8065
|
+
tabTitle: j,
|
|
8066
8066
|
description: H,
|
|
8067
8067
|
preferences: {
|
|
8068
8068
|
onClickFilter: [
|
|
@@ -8071,13 +8071,13 @@ function Gg({
|
|
|
8071
8071
|
expression: ""
|
|
8072
8072
|
}
|
|
8073
8073
|
],
|
|
8074
|
-
...
|
|
8074
|
+
...q === "text" ? {
|
|
8075
8075
|
textVisualOptions: {
|
|
8076
8076
|
richContent: Fh()
|
|
8077
8077
|
}
|
|
8078
8078
|
} : {}
|
|
8079
8079
|
},
|
|
8080
|
-
type:
|
|
8080
|
+
type: q,
|
|
8081
8081
|
sql: "",
|
|
8082
8082
|
data: [],
|
|
8083
8083
|
mode: "explorer",
|
|
@@ -8090,18 +8090,18 @@ function Gg({
|
|
|
8090
8090
|
};
|
|
8091
8091
|
E($, ie);
|
|
8092
8092
|
}
|
|
8093
|
-
function w($,
|
|
8094
|
-
return $.cards.length === 1 && (
|
|
8093
|
+
function w($, q) {
|
|
8094
|
+
return $.cards.length === 1 && (q.displayTab === !0 || q.displayTab === void 0) || $.activeCardId !== q.id && (q.displayTab === !0 || q.displayTab === void 0) ? null : /* @__PURE__ */ e(
|
|
8095
8095
|
"div",
|
|
8096
8096
|
{
|
|
8097
8097
|
onClick: () => {
|
|
8098
|
-
const
|
|
8099
|
-
h({ ...
|
|
8100
|
-
...
|
|
8101
|
-
displayTab:
|
|
8098
|
+
const j = q.displayTab === void 0 ? !1 : !q.displayTab;
|
|
8099
|
+
h({ ...q, displayTab: j }), u({
|
|
8100
|
+
...q,
|
|
8101
|
+
displayTab: j
|
|
8102
8102
|
});
|
|
8103
8103
|
},
|
|
8104
|
-
children:
|
|
8104
|
+
children: q.displayTab === !0 || q.displayTab === void 0 ? /* @__PURE__ */ e(Xa, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(Sl, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
8105
8105
|
}
|
|
8106
8106
|
);
|
|
8107
8107
|
}
|
|
@@ -8111,18 +8111,18 @@ function Gg({
|
|
|
8111
8111
|
variant: "underline",
|
|
8112
8112
|
className: "group flex h-9 shrink-0 items-center justify-start gap-1 overflow-x-auto rounded-none border-b-0 border-t border-border bg-background px-4",
|
|
8113
8113
|
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
|
|
8114
|
-
s.cards.map(($,
|
|
8114
|
+
s.cards.map(($, q) => {
|
|
8115
8115
|
var z, W;
|
|
8116
|
-
const
|
|
8116
|
+
const j = g ? Vt($, q) : -1, H = g && ((z = x == null ? void 0 : x.slots) != null && z.length) && j >= 0 ? kr(x.slots, j) : null, X = H ? (Array.isArray(H.expectedType) ? H.expectedType[0] : H.expectedType) || "table" : $.type, ie = g && ((W = x == null ? void 0 : x.slots) == null ? void 0 : W.length) && x.slots.every(
|
|
8117
8117
|
(ae) => typeof ae.position == "number" || typeof ae.position == "string" && !ae.position.includes("+")
|
|
8118
8118
|
);
|
|
8119
8119
|
return /* @__PURE__ */ n(
|
|
8120
8120
|
tt,
|
|
8121
8121
|
{
|
|
8122
8122
|
draggable: !g && !c,
|
|
8123
|
-
onDragStart: g || c ? void 0 : (ae) => F(ae,
|
|
8123
|
+
onDragStart: g || c ? void 0 : (ae) => F(ae, q),
|
|
8124
8124
|
onDragOver: g || c ? void 0 : y,
|
|
8125
|
-
onDrop: g || c ? void 0 : (ae) => N(ae,
|
|
8125
|
+
onDrop: g || c ? void 0 : (ae) => N(ae, q),
|
|
8126
8126
|
className: G(
|
|
8127
8127
|
"inline-flex h-6 shrink-0 items-center gap-1.5 rounded-[5px] border px-2 text-[12px] font-normal text-muted-foreground transition-colors",
|
|
8128
8128
|
"mb-0 border-transparent pb-0",
|
|
@@ -8136,7 +8136,7 @@ function Gg({
|
|
|
8136
8136
|
/* @__PURE__ */ e(gt, { delayDuration: 0, children: /* @__PURE__ */ n(mt, { children: [
|
|
8137
8137
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
8138
8138
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Eo(X, "size-3.5") }),
|
|
8139
|
-
/* @__PURE__ */ e("span", { children: H.label || `Tab ${
|
|
8139
|
+
/* @__PURE__ */ e("span", { children: H.label || `Tab ${j + 1}` })
|
|
8140
8140
|
] }) }),
|
|
8141
8141
|
/* @__PURE__ */ e(
|
|
8142
8142
|
ut,
|
|
@@ -8269,7 +8269,7 @@ function Er({
|
|
|
8269
8269
|
o,
|
|
8270
8270
|
P,
|
|
8271
8271
|
w == null ? void 0 : w.slots
|
|
8272
|
-
) ?? o.type, [l, B, P, o, w == null ? void 0 : w.slots]),
|
|
8272
|
+
) ?? o.type, [l, B, P, o, w == null ? void 0 : w.slots]), q = ee(() => D ? {
|
|
8273
8273
|
...o,
|
|
8274
8274
|
connectionId: void 0,
|
|
8275
8275
|
dataSource: void 0,
|
|
@@ -8278,7 +8278,7 @@ function Er({
|
|
|
8278
8278
|
config: void 0,
|
|
8279
8279
|
queryConfig: void 0
|
|
8280
8280
|
} : $ !== o.type ? { ...o, type: $ } : o, [o, $, D]), {
|
|
8281
|
-
data:
|
|
8281
|
+
data: j,
|
|
8282
8282
|
dataUpdatedAt: H,
|
|
8283
8283
|
isLoading: X,
|
|
8284
8284
|
isFetching: ie,
|
|
@@ -8286,7 +8286,7 @@ function Er({
|
|
|
8286
8286
|
errorMessage: W,
|
|
8287
8287
|
errorSql: ae,
|
|
8288
8288
|
queryKey: ue
|
|
8289
|
-
} = xt(
|
|
8289
|
+
} = xt(q), oe = JSON.stringify(ue), { handleOpenInEditor: ge } = Ui(
|
|
8290
8290
|
ae || o.sql || o.python
|
|
8291
8291
|
), fe = o.type === "text" && ((Wt = (Qt = o.preferences) == null ? void 0 : Qt.textVisualOptions) == null ? void 0 : Wt.isDynamicText) === !0 && !!W, be = st(
|
|
8292
8292
|
(he, Fe) => {
|
|
@@ -8384,11 +8384,11 @@ function Er({
|
|
|
8384
8384
|
function Me(he) {
|
|
8385
8385
|
const Fe = R.getState().card, Nt = R.getState().frame, nt = {
|
|
8386
8386
|
...Nt,
|
|
8387
|
-
cards: Nt.cards.map((
|
|
8387
|
+
cards: Nt.cards.map((jt) => jt.id === Fe.id ? Fe : jt),
|
|
8388
8388
|
activeCardId: he
|
|
8389
8389
|
};
|
|
8390
8390
|
h(nt);
|
|
8391
|
-
const Xt = nt.cards.find((
|
|
8391
|
+
const Xt = nt.cards.find((jt) => jt.id === he);
|
|
8392
8392
|
Xt.sql && m(!0), f(Xt);
|
|
8393
8393
|
}
|
|
8394
8394
|
function We() {
|
|
@@ -8455,7 +8455,7 @@ function Er({
|
|
|
8455
8455
|
var he;
|
|
8456
8456
|
return D ? We() : t && (a || !X && !ie && !z && !W) ? t({
|
|
8457
8457
|
card: o,
|
|
8458
|
-
data:
|
|
8458
|
+
data: j,
|
|
8459
8459
|
isLoading: X,
|
|
8460
8460
|
isFetching: ie,
|
|
8461
8461
|
isError: z
|
|
@@ -8471,13 +8471,13 @@ function Er({
|
|
|
8471
8471
|
gu,
|
|
8472
8472
|
{
|
|
8473
8473
|
card: o,
|
|
8474
|
-
data:
|
|
8474
|
+
data: j == null ? void 0 : j.records,
|
|
8475
8475
|
isPending: X || ie,
|
|
8476
8476
|
isError: z,
|
|
8477
|
-
comparisonMetadata: (he =
|
|
8477
|
+
comparisonMetadata: (he = j == null ? void 0 : j.metadata) == null ? void 0 : he.comparisonMetadata
|
|
8478
8478
|
}
|
|
8479
8479
|
) }),
|
|
8480
|
-
Do(o) && /* @__PURE__ */ e(Mo, { card: o, mode: "editor", records:
|
|
8480
|
+
Do(o) && /* @__PURE__ */ e(Mo, { card: o, mode: "editor", records: j == null ? void 0 : j.records })
|
|
8481
8481
|
] }) }) : o.type === "text" ? X || ie ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : fe ? /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col overflow-auto px-4 py-0", children: /* @__PURE__ */ e(
|
|
8482
8482
|
us,
|
|
8483
8483
|
{
|
|
@@ -8486,7 +8486,7 @@ function Er({
|
|
|
8486
8486
|
onOpenInEditor: ge,
|
|
8487
8487
|
showFeedbackButton: !1
|
|
8488
8488
|
}
|
|
8489
|
-
) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(xu, { isLoading: i, card: o, data:
|
|
8489
|
+
) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(xu, { isLoading: i, card: o, data: j == null ? void 0 : j.records }) }) : /* @__PURE__ */ e(
|
|
8490
8490
|
In,
|
|
8491
8491
|
{
|
|
8492
8492
|
fallbackRender: (Fe) => /* @__PURE__ */ e(
|
|
@@ -8631,14 +8631,14 @@ function cr({
|
|
|
8631
8631
|
D.current = V;
|
|
8632
8632
|
const Y = ee(() => (y == null ? void 0 : y.records) || [], [y == null ? void 0 : y.records]), { cardFilterValues: O } = og(
|
|
8633
8633
|
(d == null ? void 0 : d.id) ?? ""
|
|
8634
|
-
), [P, $] = U(!1),
|
|
8634
|
+
), [P, $] = U(!1), q = Yo(d), [j, H] = U();
|
|
8635
8635
|
we(() => {
|
|
8636
8636
|
C || $(!1);
|
|
8637
8637
|
}, [C]);
|
|
8638
8638
|
const X = () => {
|
|
8639
8639
|
var ye;
|
|
8640
|
-
if (
|
|
8641
|
-
(ye =
|
|
8640
|
+
if (q) {
|
|
8641
|
+
(ye = q.refresh) == null || ye.call(q);
|
|
8642
8642
|
return;
|
|
8643
8643
|
}
|
|
8644
8644
|
if ($(!0), c) {
|
|
@@ -8866,7 +8866,7 @@ function cr({
|
|
|
8866
8866
|
Tr,
|
|
8867
8867
|
{
|
|
8868
8868
|
className: G("h-3.5 w-3.5", {
|
|
8869
|
-
"animate-spin": (
|
|
8869
|
+
"animate-spin": (q == null ? void 0 : q.isFetching) ?? P
|
|
8870
8870
|
})
|
|
8871
8871
|
}
|
|
8872
8872
|
)
|
|
@@ -8904,12 +8904,12 @@ function cr({
|
|
|
8904
8904
|
/* @__PURE__ */ e(kl, {})
|
|
8905
8905
|
] }),
|
|
8906
8906
|
/* @__PURE__ */ e(Tl, { children: "Export" }),
|
|
8907
|
-
|
|
8907
|
+
q ? /* @__PURE__ */ n(
|
|
8908
8908
|
Pt,
|
|
8909
8909
|
{
|
|
8910
|
-
disabled: N || C || !
|
|
8911
|
-
title:
|
|
8912
|
-
onSelect: () => H(
|
|
8910
|
+
disabled: N || C || !q.hasDelivery,
|
|
8911
|
+
title: q.hasDelivery ? void 0 : "Available once the preview has loaded.",
|
|
8912
|
+
onSelect: () => H(q.readDelivery()),
|
|
8913
8913
|
className: "gap-2 text-[13px]",
|
|
8914
8914
|
children: [
|
|
8915
8915
|
/* @__PURE__ */ e(vr, { className: "h-3.5 w-3.5" }),
|
|
@@ -8996,14 +8996,14 @@ function cr({
|
|
|
8996
8996
|
}
|
|
8997
8997
|
)
|
|
8998
8998
|
] }),
|
|
8999
|
-
|
|
8999
|
+
j && /* @__PURE__ */ e(
|
|
9000
9000
|
Vo,
|
|
9001
9001
|
{
|
|
9002
9002
|
isOpen: !0,
|
|
9003
9003
|
onClose: () => H(void 0),
|
|
9004
9004
|
card: d,
|
|
9005
9005
|
frame: o,
|
|
9006
|
-
matrix:
|
|
9006
|
+
matrix: j
|
|
9007
9007
|
}
|
|
9008
9008
|
)
|
|
9009
9009
|
]
|
|
@@ -9272,7 +9272,7 @@ function Zi() {
|
|
|
9272
9272
|
return w ? (Array.isArray(w) ? w : [w]).join(", ") : null;
|
|
9273
9273
|
}
|
|
9274
9274
|
function I(w, B, D = [], Y = "", O, P, $) {
|
|
9275
|
-
const
|
|
9275
|
+
const q = F({
|
|
9276
9276
|
key: B,
|
|
9277
9277
|
defaultValue: Y,
|
|
9278
9278
|
settingsValue: P,
|
|
@@ -9283,12 +9283,12 @@ function Zi() {
|
|
|
9283
9283
|
{
|
|
9284
9284
|
className: `h-8 w-full ${Kt}`,
|
|
9285
9285
|
value: String(
|
|
9286
|
-
|
|
9286
|
+
q ?? ""
|
|
9287
9287
|
),
|
|
9288
|
-
onCommit: (
|
|
9288
|
+
onCommit: (j) => {
|
|
9289
9289
|
y({
|
|
9290
9290
|
key: B,
|
|
9291
|
-
value:
|
|
9291
|
+
value: j,
|
|
9292
9292
|
settingsField: O,
|
|
9293
9293
|
settingsValue: P,
|
|
9294
9294
|
sourceCard: $
|
|
@@ -9303,12 +9303,12 @@ function Zi() {
|
|
|
9303
9303
|
label: "",
|
|
9304
9304
|
options: D,
|
|
9305
9305
|
value: String(
|
|
9306
|
-
|
|
9306
|
+
q !== void 0 ? q : Y ?? ""
|
|
9307
9307
|
),
|
|
9308
|
-
onValueChange: (
|
|
9308
|
+
onValueChange: (j) => {
|
|
9309
9309
|
y({
|
|
9310
9310
|
key: B,
|
|
9311
|
-
value:
|
|
9311
|
+
value: j,
|
|
9312
9312
|
settingsField: O,
|
|
9313
9313
|
settingsValue: P,
|
|
9314
9314
|
sourceCard: $
|
|
@@ -9333,8 +9333,8 @@ function Zi() {
|
|
|
9333
9333
|
settingsValue: Y,
|
|
9334
9334
|
sourceCard: O
|
|
9335
9335
|
}) {
|
|
9336
|
-
const P = { ...Y || {} }, $ = w === "title" && (O == null ? void 0 : O.title) !== void 0,
|
|
9337
|
-
$ && B === String((O == null ? void 0 : O.title) ?? "") ||
|
|
9336
|
+
const P = { ...Y || {} }, $ = w === "title" && (O == null ? void 0 : O.title) !== void 0, q = w === "description" && (O == null ? void 0 : O.description) !== void 0;
|
|
9337
|
+
$ && B === String((O == null ? void 0 : O.title) ?? "") || q && B === String((O == null ? void 0 : O.description) ?? "") ? delete P[w] : P[w] = B, d({
|
|
9338
9338
|
...t || {},
|
|
9339
9339
|
[D]: P
|
|
9340
9340
|
});
|
|
@@ -9349,21 +9349,21 @@ function Zi() {
|
|
|
9349
9349
|
const P = Object.entries(w || {});
|
|
9350
9350
|
return /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
9351
9351
|
O && /* @__PURE__ */ e(_, { children: O }),
|
|
9352
|
-
P.map(([$,
|
|
9353
|
-
var
|
|
9352
|
+
P.map(([$, q]) => {
|
|
9353
|
+
var j;
|
|
9354
9354
|
return /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
9355
9355
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
9356
|
-
/* @__PURE__ */ e(_, { children:
|
|
9357
|
-
((
|
|
9356
|
+
/* @__PURE__ */ e(_, { children: q.title }),
|
|
9357
|
+
((j = q.docs) == null ? void 0 : j.description) && /* @__PURE__ */ e(gt, { delayDuration: 0, children: /* @__PURE__ */ n(mt, { children: [
|
|
9358
9358
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(Ma, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
|
|
9359
|
-
/* @__PURE__ */ e(ut, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children:
|
|
9359
|
+
/* @__PURE__ */ e(ut, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children: q.docs.description }) })
|
|
9360
9360
|
] }) })
|
|
9361
9361
|
] }),
|
|
9362
9362
|
I(
|
|
9363
|
-
|
|
9363
|
+
q.ui,
|
|
9364
9364
|
$,
|
|
9365
|
-
|
|
9366
|
-
|
|
9365
|
+
q.options,
|
|
9366
|
+
q.defaultValue,
|
|
9367
9367
|
B,
|
|
9368
9368
|
D,
|
|
9369
9369
|
Y
|
|
@@ -9435,8 +9435,8 @@ function Zi() {
|
|
|
9435
9435
|
className: "",
|
|
9436
9436
|
children: [
|
|
9437
9437
|
/* @__PURE__ */ n($e, { value: "plugin-settings", children: [
|
|
9438
|
-
/* @__PURE__ */ e(
|
|
9439
|
-
/* @__PURE__ */ e(
|
|
9438
|
+
/* @__PURE__ */ e(qe, { children: "Plugin" }),
|
|
9439
|
+
/* @__PURE__ */ e(je, { children: /* @__PURE__ */ n("div", { className: "space-y-4 text-sm", children: [
|
|
9440
9440
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
9441
9441
|
(!m || p) && /* @__PURE__ */ e(
|
|
9442
9442
|
zt,
|
|
@@ -9489,7 +9489,7 @@ function Zi() {
|
|
|
9489
9489
|
] }) })
|
|
9490
9490
|
] }),
|
|
9491
9491
|
((l == null ? void 0 : l.componentName) || (t == null ? void 0 : t.componentName)) && /* @__PURE__ */ n($e, { className: "border-none", value: "component-settings", children: [
|
|
9492
|
-
/* @__PURE__ */ e(
|
|
9492
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
9493
9493
|
/* @__PURE__ */ e("span", { children: (u == null ? void 0 : u.name) || "Settings" }),
|
|
9494
9494
|
(u == null ? void 0 : u.docs) && /* @__PURE__ */ n(ya, { openDelay: 0, closeDelay: 100, children: [
|
|
9495
9495
|
/* @__PURE__ */ e(
|
|
@@ -9542,7 +9542,7 @@ function Zi() {
|
|
|
9542
9542
|
)
|
|
9543
9543
|
] })
|
|
9544
9544
|
] }) }),
|
|
9545
|
-
/* @__PURE__ */ e(
|
|
9545
|
+
/* @__PURE__ */ e(je, { children: C() })
|
|
9546
9546
|
] })
|
|
9547
9547
|
]
|
|
9548
9548
|
}
|
|
@@ -11003,7 +11003,7 @@ function xx() {
|
|
|
11003
11003
|
var i, h, u, f, m, p, x, b, g, v, M, T, S, L, A, I, F, y;
|
|
11004
11004
|
const t = R((N) => N.card), a = (h = (i = t == null ? void 0 : t.preferences) == null ? void 0 : i.mapVisualOptions) == null ? void 0 : h.topoJsonUrl, [r, s] = U(
|
|
11005
11005
|
((f = (u = t == null ? void 0 : t.preferences) == null ? void 0 : u.mapVisualOptions) == null ? void 0 : f.customTopoJsonUrl) || ""
|
|
11006
|
-
), { setCardPreferences: o } = Ne(), { data: d } =
|
|
11006
|
+
), { setCardPreferences: o } = Ne(), { data: d } = qr(t), c = Object.keys((d == null ? void 0 : d.objects) || {}).map((N) => ({
|
|
11007
11007
|
label: N,
|
|
11008
11008
|
value: N
|
|
11009
11009
|
})) || [];
|
|
@@ -11210,7 +11210,7 @@ function Xe({
|
|
|
11210
11210
|
onChange: s,
|
|
11211
11211
|
disabled: o
|
|
11212
11212
|
}) {
|
|
11213
|
-
const d =
|
|
11213
|
+
const d = ja();
|
|
11214
11214
|
return /* @__PURE__ */ n("div", { className: "min-w-0 space-y-1", children: [
|
|
11215
11215
|
/* @__PURE__ */ e(_, { htmlFor: d, className: "text-xs", children: t }),
|
|
11216
11216
|
/* @__PURE__ */ n(ne, { value: a, onValueChange: s, disabled: o, children: [
|
|
@@ -11245,7 +11245,7 @@ function na({
|
|
|
11245
11245
|
placeholder: c,
|
|
11246
11246
|
hint: l
|
|
11247
11247
|
}) {
|
|
11248
|
-
const i =
|
|
11248
|
+
const i = ja(), h = ja();
|
|
11249
11249
|
return /* @__PURE__ */ n("div", { className: "min-w-0 space-y-1", children: [
|
|
11250
11250
|
/* @__PURE__ */ e(_, { htmlFor: i, className: "text-xs", children: t }),
|
|
11251
11251
|
/* @__PURE__ */ e(
|
|
@@ -11270,7 +11270,7 @@ function Dn({
|
|
|
11270
11270
|
checked: a,
|
|
11271
11271
|
onChange: r
|
|
11272
11272
|
}) {
|
|
11273
|
-
const s =
|
|
11273
|
+
const s = ja();
|
|
11274
11274
|
return /* @__PURE__ */ n("div", { className: "flex min-w-0 items-center justify-between gap-2 py-1", children: [
|
|
11275
11275
|
/* @__PURE__ */ e(_, { className: "text-xs", htmlFor: s, children: t }),
|
|
11276
11276
|
/* @__PURE__ */ e(Ee, { id: s, size: "xs", checked: a, onCheckedChange: r })
|
|
@@ -11613,7 +11613,7 @@ function Nx({
|
|
|
11613
11613
|
x
|
|
11614
11614
|
] }),
|
|
11615
11615
|
/* @__PURE__ */ e(
|
|
11616
|
-
|
|
11616
|
+
jo,
|
|
11617
11617
|
{
|
|
11618
11618
|
columnId: b.id,
|
|
11619
11619
|
availableColumns: t.spec.measures.map((T) => ({
|
|
@@ -11836,7 +11836,7 @@ function Cx({
|
|
|
11836
11836
|
value: g.grain ?? "none",
|
|
11837
11837
|
options: [
|
|
11838
11838
|
{ value: "none", label: "No grouping" },
|
|
11839
|
-
...
|
|
11839
|
+
...qo(
|
|
11840
11840
|
T
|
|
11841
11841
|
).map((F) => ({ value: F, label: F }))
|
|
11842
11842
|
],
|
|
@@ -12313,11 +12313,11 @@ function kx() {
|
|
|
12313
12313
|
comparisonPresentation: { ...l, ...g }
|
|
12314
12314
|
}), h = r === "kpi" && ((x = t.preferences) == null ? void 0 : x.metricPairComparisonEnabled) === !0, u = d || h;
|
|
12315
12315
|
return /* @__PURE__ */ n($e, { value: "comparison", className: "border-none", children: [
|
|
12316
|
-
/* @__PURE__ */ e(
|
|
12316
|
+
/* @__PURE__ */ e(qe, { className: "flex items-center gap-2 py-2 text-[12px] hover:no-underline [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
12317
12317
|
/* @__PURE__ */ e(Wp, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
12318
12318
|
/* @__PURE__ */ e("span", { children: "Comparison" })
|
|
12319
12319
|
] }) }),
|
|
12320
|
-
/* @__PURE__ */ n(
|
|
12320
|
+
/* @__PURE__ */ n(je, { className: "space-y-4 pb-4 pt-2", children: [
|
|
12321
12321
|
/* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-3", children: [
|
|
12322
12322
|
/* @__PURE__ */ n("div", { children: [
|
|
12323
12323
|
/* @__PURE__ */ e(_, { htmlFor: "inherit-global-date-comparison", className: "text-xs", children: "Inherit Global Date comparison" }),
|
|
@@ -12495,14 +12495,14 @@ function sc({
|
|
|
12495
12495
|
)
|
|
12496
12496
|
}
|
|
12497
12497
|
});
|
|
12498
|
-
},
|
|
12498
|
+
}, q = (ae) => {
|
|
12499
12499
|
const { allowViewerColumnCustomization: ue, ...oe } = i ?? {};
|
|
12500
12500
|
h({
|
|
12501
12501
|
...l,
|
|
12502
12502
|
// Absent means on (PLAN B4); only `false` is stored.
|
|
12503
12503
|
tablePrefs: ae ? oe : { ...oe, allowViewerColumnCustomization: !1 }
|
|
12504
12504
|
});
|
|
12505
|
-
},
|
|
12505
|
+
}, j = () => {
|
|
12506
12506
|
h({
|
|
12507
12507
|
...l,
|
|
12508
12508
|
tablePrefs: {
|
|
@@ -12606,7 +12606,7 @@ function sc({
|
|
|
12606
12606
|
id: "allow-viewer-column-customization",
|
|
12607
12607
|
size: "xs",
|
|
12608
12608
|
checked: (i == null ? void 0 : i.allowViewerColumnCustomization) !== !1,
|
|
12609
|
-
onCheckedChange:
|
|
12609
|
+
onCheckedChange: q
|
|
12610
12610
|
}
|
|
12611
12611
|
)
|
|
12612
12612
|
] }) : null,
|
|
@@ -12616,12 +12616,12 @@ function sc({
|
|
|
12616
12616
|
columns: g,
|
|
12617
12617
|
columnVisibility: i == null ? void 0 : i.columnVisibility,
|
|
12618
12618
|
onColumnVisibilityChange: $,
|
|
12619
|
-
onShowAllColumns:
|
|
12619
|
+
onShowAllColumns: j
|
|
12620
12620
|
}
|
|
12621
12621
|
) : null
|
|
12622
12622
|
] }),
|
|
12623
12623
|
/* @__PURE__ */ e(It, { value: "conditional-formatting", className: "mt-0", children: m === "matrixTable" ? /* @__PURE__ */ e(Or, { section: "conditional-formatting" }) : v ? A ? /* @__PURE__ */ e(
|
|
12624
|
-
|
|
12624
|
+
jo,
|
|
12625
12625
|
{
|
|
12626
12626
|
columnId: A,
|
|
12627
12627
|
availableColumns: b,
|
|
@@ -12876,7 +12876,7 @@ function Ox() {
|
|
|
12876
12876
|
}), r = ot(), { setCardPreferences: s, updateCardInFrame: o } = Ne(), d = ee(() => r !== t.type ? { ...t, type: r } : t, [t, r]), { data: c } = xt(d), [l, i] = U({}), [h, u] = U(
|
|
12877
12877
|
null
|
|
12878
12878
|
), [f, m] = U(null), p = ee(() => {
|
|
12879
|
-
var Y, O, P, $,
|
|
12879
|
+
var Y, O, P, $, q, j, H;
|
|
12880
12880
|
if (!(c != null && c.records) || c.records.length === 0) return [];
|
|
12881
12881
|
const w = r === "stackedBar" || r === "stackedLine", B = r === "bar" || r === "line" || r === "horizontalBar" || r === "bullet" || r === "combo" || r === "area" || r === "stackedArea", D = ((Y = t == null ? void 0 : t.config) == null ? void 0 : Y.pivotByColumns) && t.config.pivotByColumns.length > 0;
|
|
12882
12882
|
if ((w || B) && D) {
|
|
@@ -12902,11 +12902,11 @@ function Ox() {
|
|
|
12902
12902
|
);
|
|
12903
12903
|
}
|
|
12904
12904
|
}
|
|
12905
|
-
if ((B || w) && !D && ((
|
|
12905
|
+
if ((B || w) && !D && ((q = ($ = t == null ? void 0 : t.config) == null ? void 0 : $.metricColumns) != null && q.length))
|
|
12906
12906
|
return t.config.metricColumns.map(
|
|
12907
12907
|
(X) => X.alias || X.label || X.name
|
|
12908
12908
|
);
|
|
12909
|
-
if ((H = (
|
|
12909
|
+
if ((H = (j = t == null ? void 0 : t.config) == null ? void 0 : j.groupByColumns) != null && H.length) {
|
|
12910
12910
|
const X = t.config.groupByColumns[0], ie = X.label || X.name, z = /* @__PURE__ */ new Set();
|
|
12911
12911
|
return c.records.forEach((W) => {
|
|
12912
12912
|
const ae = W[ie];
|
|
@@ -12920,7 +12920,7 @@ function Ox() {
|
|
|
12920
12920
|
(A = t == null ? void 0 : t.config) == null ? void 0 : A.pivotByColumns,
|
|
12921
12921
|
(I = t == null ? void 0 : t.config) == null ? void 0 : I.metricColumns,
|
|
12922
12922
|
r
|
|
12923
|
-
]), x = ee(() =>
|
|
12923
|
+
]), x = ee(() => qu(), []);
|
|
12924
12924
|
we(() => {
|
|
12925
12925
|
const w = {};
|
|
12926
12926
|
p.forEach((B, D) => {
|
|
@@ -12950,8 +12950,8 @@ function Ox() {
|
|
|
12950
12950
|
};
|
|
12951
12951
|
o(O);
|
|
12952
12952
|
}, g = (w, B) => {
|
|
12953
|
-
var
|
|
12954
|
-
const D = x[B % x.length], { [w]: Y, ...O } = ((
|
|
12953
|
+
var q;
|
|
12954
|
+
const D = x[B % x.length], { [w]: Y, ...O } = ((q = a == null ? void 0 : a.colorConfig) == null ? void 0 : q.segments) || {}, P = {
|
|
12955
12955
|
...a || {},
|
|
12956
12956
|
colorConfig: {
|
|
12957
12957
|
segments: O
|
|
@@ -12962,8 +12962,8 @@ function Ox() {
|
|
|
12962
12962
|
...t,
|
|
12963
12963
|
preferences: P
|
|
12964
12964
|
};
|
|
12965
|
-
o($), i((
|
|
12966
|
-
...
|
|
12965
|
+
o($), i((j) => ({
|
|
12966
|
+
...j,
|
|
12967
12967
|
[w]: D
|
|
12968
12968
|
}));
|
|
12969
12969
|
};
|
|
@@ -12988,11 +12988,11 @@ function Ox() {
|
|
|
12988
12988
|
}), i(D);
|
|
12989
12989
|
}, S = Object.keys(((V = a == null ? void 0 : a.colorConfig) == null ? void 0 : V.segments) || {}).length > 0;
|
|
12990
12990
|
return /* @__PURE__ */ n($e, { value: "colors", className: "border-b-0", children: [
|
|
12991
|
-
/* @__PURE__ */ e(
|
|
12992
|
-
/* @__PURE__ */ e(
|
|
12991
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
12992
|
+
/* @__PURE__ */ e(qp, { className: "h-4 w-4 text-muted-foreground" }),
|
|
12993
12993
|
/* @__PURE__ */ e("span", { children: "Colors" })
|
|
12994
12994
|
] }) }),
|
|
12995
|
-
/* @__PURE__ */ e(
|
|
12995
|
+
/* @__PURE__ */ e(je, { className: "", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
12996
12996
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: S && /* @__PURE__ */ n(
|
|
12997
12997
|
"button",
|
|
12998
12998
|
{
|
|
@@ -13005,7 +13005,7 @@ function Ox() {
|
|
|
13005
13005
|
}
|
|
13006
13006
|
) }) }),
|
|
13007
13007
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: p.map((w, B) => {
|
|
13008
|
-
const D =
|
|
13008
|
+
const D = ju(l[w], B), Y = !D;
|
|
13009
13009
|
return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13010
13010
|
/* @__PURE__ */ n(
|
|
13011
13011
|
bt,
|
|
@@ -13223,7 +13223,7 @@ function mr({ axis: t, label: a, type: r, config: s, onChange: o, defaultTitle:
|
|
|
13223
13223
|
}, m = t === "x" ? ["auto", "top", "bottom"] : ["auto", "left", "right"], p = ["auto", "0", "45", "90", "-45", "-90"];
|
|
13224
13224
|
return /* @__PURE__ */ n($e, { value: `${t}-axis`, className: "border-b-0", children: [
|
|
13225
13225
|
/* @__PURE__ */ n("div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
13226
|
-
/* @__PURE__ */ e(
|
|
13226
|
+
/* @__PURE__ */ e(qe, { className: "flex grow items-center justify-between gap-3 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ e("div", { className: "flex grow items-center justify-between gap-2", children: /* @__PURE__ */ e("span", { children: a }) }) }),
|
|
13227
13227
|
/* @__PURE__ */ e(
|
|
13228
13228
|
Ee,
|
|
13229
13229
|
{
|
|
@@ -13234,7 +13234,7 @@ function mr({ axis: t, label: a, type: r, config: s, onChange: o, defaultTitle:
|
|
|
13234
13234
|
}
|
|
13235
13235
|
)
|
|
13236
13236
|
] }),
|
|
13237
|
-
/* @__PURE__ */ n(
|
|
13237
|
+
/* @__PURE__ */ n(je, { className: "space-y-4 pt-2", children: [
|
|
13238
13238
|
/* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
13239
13239
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13240
13240
|
/* @__PURE__ */ e(
|
|
@@ -13471,11 +13471,11 @@ function Ax() {
|
|
|
13471
13471
|
s(m);
|
|
13472
13472
|
}, l = d.hasY2Axis && o === "combo";
|
|
13473
13473
|
return /* @__PURE__ */ n($e, { value: "axes", className: "border-b-0", children: [
|
|
13474
|
-
/* @__PURE__ */ e(
|
|
13474
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13475
13475
|
/* @__PURE__ */ e(wn, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13476
13476
|
/* @__PURE__ */ e("span", { children: "Axes" })
|
|
13477
13477
|
] }) }),
|
|
13478
|
-
/* @__PURE__ */ e(
|
|
13478
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ n(Rn, { type: "single", collapsible: !0, className: "w-full", children: [
|
|
13479
13479
|
d.hasXAxis && /* @__PURE__ */ e(
|
|
13480
13480
|
mr,
|
|
13481
13481
|
{
|
|
@@ -13539,11 +13539,11 @@ function Rx() {
|
|
|
13539
13539
|
s(p);
|
|
13540
13540
|
}, h = ["top", "bottom", "left", "right"], u = ["start", "center", "end"];
|
|
13541
13541
|
return /* @__PURE__ */ n($e, { value: "legend", className: "border-b-0", children: [
|
|
13542
|
-
/* @__PURE__ */ e(
|
|
13542
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13543
13543
|
/* @__PURE__ */ e(Xp, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13544
13544
|
/* @__PURE__ */ e("span", { children: "Legend" })
|
|
13545
13545
|
] }) }),
|
|
13546
|
-
/* @__PURE__ */ e(
|
|
13546
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
13547
13547
|
/* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
|
|
13548
13548
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium", children: "Display" }),
|
|
13549
13549
|
/* @__PURE__ */ e(
|
|
@@ -13592,8 +13592,8 @@ function Px() {
|
|
|
13592
13592
|
var k, V, w, B, D, Y, O;
|
|
13593
13593
|
const t = R((P) => P.card), a = ot(), r = R(
|
|
13594
13594
|
(P) => {
|
|
13595
|
-
var $,
|
|
13596
|
-
return (
|
|
13595
|
+
var $, q;
|
|
13596
|
+
return (q = ($ = P.card) == null ? void 0 : $.preferences) == null ? void 0 : q.dataLabelsConfig;
|
|
13597
13597
|
}
|
|
13598
13598
|
), s = R((P) => {
|
|
13599
13599
|
var $;
|
|
@@ -13622,11 +13622,11 @@ function Px() {
|
|
|
13622
13622
|
};
|
|
13623
13623
|
d(ie);
|
|
13624
13624
|
}, M = (P, $) => {
|
|
13625
|
-
const
|
|
13625
|
+
const q = r ?? {}, H = {
|
|
13626
13626
|
...p ?? {},
|
|
13627
|
-
...
|
|
13627
|
+
...q,
|
|
13628
13628
|
font: {
|
|
13629
|
-
...
|
|
13629
|
+
...q.font || {},
|
|
13630
13630
|
[P]: $
|
|
13631
13631
|
}
|
|
13632
13632
|
}, X = {
|
|
@@ -13651,15 +13651,15 @@ function Px() {
|
|
|
13651
13651
|
I = ["center"];
|
|
13652
13652
|
else {
|
|
13653
13653
|
const P = l ? ["center", "left", "right"] : ["center", "top", "bottom"];
|
|
13654
|
-
I = ["auto", ...a === "bullet" ? P : P.filter((
|
|
13654
|
+
I = ["auto", ...a === "bullet" ? P : P.filter((q) => q !== A), "custom"];
|
|
13655
13655
|
}
|
|
13656
13656
|
const F = () => wt(A), y = ["center", "start", "end"], N = ["center", "start", "end", "top", "bottom"], C = (x == null ? void 0 : x.formatMode) || (x != null && x.format && !["auto"].includes(x.format) ? "override" : "inherit"), E = (x == null ? void 0 : x.format) === "none";
|
|
13657
13657
|
return /* @__PURE__ */ n($e, { value: "data-labels", className: "border-b-0", children: [
|
|
13658
|
-
/* @__PURE__ */ e(
|
|
13658
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13659
13659
|
/* @__PURE__ */ e(lf, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13660
13660
|
/* @__PURE__ */ e("span", { children: "Data Labels" })
|
|
13661
13661
|
] }) }),
|
|
13662
|
-
/* @__PURE__ */ e(
|
|
13662
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
13663
13663
|
/* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
|
|
13664
13664
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium", children: "Display" }),
|
|
13665
13665
|
/* @__PURE__ */ e(
|
|
@@ -13754,7 +13754,7 @@ function Px() {
|
|
|
13754
13754
|
size: "sm",
|
|
13755
13755
|
checked: E,
|
|
13756
13756
|
onCheckedChange: (P) => {
|
|
13757
|
-
const $ = r ?? {},
|
|
13757
|
+
const $ = r ?? {}, j = {
|
|
13758
13758
|
...p ?? {},
|
|
13759
13759
|
...$,
|
|
13760
13760
|
formatMode: "override",
|
|
@@ -13762,7 +13762,7 @@ function Px() {
|
|
|
13762
13762
|
formatOptions: P ? void 0 : $.formatOptions
|
|
13763
13763
|
}, H = {
|
|
13764
13764
|
...t.preferences || {},
|
|
13765
|
-
dataLabelsConfig:
|
|
13765
|
+
dataLabelsConfig: j
|
|
13766
13766
|
};
|
|
13767
13767
|
o(H), d({
|
|
13768
13768
|
...t,
|
|
@@ -13777,7 +13777,7 @@ function Px() {
|
|
|
13777
13777
|
{
|
|
13778
13778
|
formatOptions: (x == null ? void 0 : x.formatOptions) || {},
|
|
13779
13779
|
onFormatOptionsChange: (P) => {
|
|
13780
|
-
const
|
|
13780
|
+
const j = {
|
|
13781
13781
|
...p ?? {},
|
|
13782
13782
|
...r ?? {},
|
|
13783
13783
|
formatMode: "override",
|
|
@@ -13785,7 +13785,7 @@ function Px() {
|
|
|
13785
13785
|
formatOptions: P
|
|
13786
13786
|
}, H = {
|
|
13787
13787
|
...t.preferences || {},
|
|
13788
|
-
dataLabelsConfig:
|
|
13788
|
+
dataLabelsConfig: j
|
|
13789
13789
|
};
|
|
13790
13790
|
o(H), d({
|
|
13791
13791
|
...t,
|
|
@@ -13889,11 +13889,11 @@ function Lx() {
|
|
|
13889
13889
|
r(l);
|
|
13890
13890
|
};
|
|
13891
13891
|
return /* @__PURE__ */ n($e, { value: "treemap-color-mode", className: "border-none", children: [
|
|
13892
|
-
/* @__PURE__ */ e(
|
|
13892
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-3 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13893
13893
|
/* @__PURE__ */ e(Oo, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13894
13894
|
/* @__PURE__ */ e("span", { children: "Treemap Colors" })
|
|
13895
13895
|
] }) }),
|
|
13896
|
-
/* @__PURE__ */ e(
|
|
13896
|
+
/* @__PURE__ */ e(je, { className: "space-y-4 border-t border-border bg-background/50 px-3 py-4 text-sm", children: /* @__PURE__ */ n(
|
|
13897
13897
|
Hr,
|
|
13898
13898
|
{
|
|
13899
13899
|
value: s,
|
|
@@ -13962,11 +13962,11 @@ function _x() {
|
|
|
13962
13962
|
i({ legendPosition: m });
|
|
13963
13963
|
};
|
|
13964
13964
|
return s ? /* @__PURE__ */ n($e, { value: "heatmap-color-config", className: "border-none", children: [
|
|
13965
|
-
/* @__PURE__ */ e(
|
|
13965
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-3 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13966
13966
|
/* @__PURE__ */ e(vn, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13967
13967
|
/* @__PURE__ */ e("span", { children: "Heatmap Settings" })
|
|
13968
13968
|
] }) }),
|
|
13969
|
-
/* @__PURE__ */ n(
|
|
13969
|
+
/* @__PURE__ */ n(je, { className: "space-y-4 border-t border-border bg-background/50 px-3 py-4 text-sm", children: [
|
|
13970
13970
|
/* @__PURE__ */ n(
|
|
13971
13971
|
Hr,
|
|
13972
13972
|
{
|
|
@@ -14103,14 +14103,14 @@ function Vx() {
|
|
|
14103
14103
|
})) || [];
|
|
14104
14104
|
}, [(k = a == null ? void 0 : a.config) == null ? void 0 : k.metricColumns]);
|
|
14105
14105
|
we(() => {
|
|
14106
|
-
var
|
|
14106
|
+
var q, j;
|
|
14107
14107
|
if (!t || g.length === 0)
|
|
14108
14108
|
return;
|
|
14109
14109
|
const w = {};
|
|
14110
14110
|
let B = !1;
|
|
14111
|
-
const D = (
|
|
14111
|
+
const D = (q = g[1]) == null ? void 0 : q.value;
|
|
14112
14112
|
!d.targetMetricKey && D && (w.targetMetricKey = D, B = !0);
|
|
14113
|
-
const Y = (
|
|
14113
|
+
const Y = (j = g[2]) == null ? void 0 : j.value;
|
|
14114
14114
|
!d.comparativeMetricKey && !d.disableAutoComparative && Y && (w.comparativeMetricKey = Y, B = !0);
|
|
14115
14115
|
const O = g.slice(3), P = {
|
|
14116
14116
|
...d.rangeKeys || {}
|
|
@@ -14206,11 +14206,11 @@ function Vx() {
|
|
|
14206
14206
|
}
|
|
14207
14207
|
};
|
|
14208
14208
|
return /* @__PURE__ */ n($e, { value: "bullet-config", className: "border-b-0", children: [
|
|
14209
|
-
/* @__PURE__ */ e(
|
|
14209
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
14210
14210
|
/* @__PURE__ */ e(Io, { className: "h-4 w-4 text-muted-foreground" }),
|
|
14211
14211
|
/* @__PURE__ */ e("span", { children: "Bullet Chart" })
|
|
14212
14212
|
] }) }),
|
|
14213
|
-
/* @__PURE__ */ n(
|
|
14213
|
+
/* @__PURE__ */ n(je, { className: "space-y-6 border-t border-border/50 py-4", children: [
|
|
14214
14214
|
/* @__PURE__ */ n("section", { className: "space-y-4", children: [
|
|
14215
14215
|
/* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
|
|
14216
14216
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium", children: "ORIENTATION" }),
|
|
@@ -14511,14 +14511,14 @@ function Bx() {
|
|
|
14511
14511
|
});
|
|
14512
14512
|
};
|
|
14513
14513
|
return !c && !l ? null : /* @__PURE__ */ n($e, { value: "bubble-scatter-config", children: [
|
|
14514
|
-
/* @__PURE__ */ e(
|
|
14514
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
14515
14515
|
/* @__PURE__ */ e(c ? Ju : Ao, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
14516
14516
|
/* @__PURE__ */ n("span", { children: [
|
|
14517
14517
|
c ? "Bubble" : "Scatter",
|
|
14518
14518
|
" Configuration"
|
|
14519
14519
|
] })
|
|
14520
14520
|
] }) }),
|
|
14521
|
-
/* @__PURE__ */ n(
|
|
14521
|
+
/* @__PURE__ */ n(je, { className: "space-y-4 px-1 pb-4", children: [
|
|
14522
14522
|
/* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
14523
14523
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 text-xs font-medium text-muted-foreground", children: [
|
|
14524
14524
|
"Dimensions",
|
|
@@ -14747,7 +14747,7 @@ function Bx() {
|
|
|
14747
14747
|
size: "sm",
|
|
14748
14748
|
checked: ((N = (y = t == null ? void 0 : t.xAxisConfig) == null ? void 0 : y.name) == null ? void 0 : N.enabled) ?? !1,
|
|
14749
14749
|
onCheckedChange: (D) => {
|
|
14750
|
-
var P, $,
|
|
14750
|
+
var P, $, q, j;
|
|
14751
14751
|
const Y = i.xMetricKey || "X Axis", O = i.yMetricKey || "Y Axis";
|
|
14752
14752
|
v({
|
|
14753
14753
|
...t ?? {},
|
|
@@ -14762,7 +14762,7 @@ function Bx() {
|
|
|
14762
14762
|
...t == null ? void 0 : t.yAxisConfig,
|
|
14763
14763
|
name: {
|
|
14764
14764
|
enabled: D,
|
|
14765
|
-
text: ((
|
|
14765
|
+
text: ((j = (q = t == null ? void 0 : t.yAxisConfig) == null ? void 0 : q.name) == null ? void 0 : j.text) || O
|
|
14766
14766
|
}
|
|
14767
14767
|
}
|
|
14768
14768
|
});
|
|
@@ -14838,7 +14838,7 @@ const $x = [
|
|
|
14838
14838
|
description: "First stage = 100%, others relative to first stage"
|
|
14839
14839
|
}
|
|
14840
14840
|
];
|
|
14841
|
-
function
|
|
14841
|
+
function qx() {
|
|
14842
14842
|
const t = R((m) => m.card), a = R((m) => {
|
|
14843
14843
|
var p;
|
|
14844
14844
|
return (p = m.card) == null ? void 0 : p.preferences;
|
|
@@ -14859,11 +14859,11 @@ function jx() {
|
|
|
14859
14859
|
i({ labelThreshold: m[0] });
|
|
14860
14860
|
};
|
|
14861
14861
|
return s ? /* @__PURE__ */ n($e, { value: "funnel-config", className: "border-none", children: [
|
|
14862
|
-
/* @__PURE__ */ e(
|
|
14862
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-3 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
14863
14863
|
/* @__PURE__ */ e(Da, { className: "h-4 w-4 text-muted-foreground" }),
|
|
14864
14864
|
/* @__PURE__ */ e("span", { children: "Funnel Settings" })
|
|
14865
14865
|
] }) }),
|
|
14866
|
-
/* @__PURE__ */ n(
|
|
14866
|
+
/* @__PURE__ */ n(je, { className: "space-y-4 border-t border-border bg-background/50 px-3 py-4 text-sm", children: [
|
|
14867
14867
|
/* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
14868
14868
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium", children: "PERCENTAGE MODE" }),
|
|
14869
14869
|
/* @__PURE__ */ e(
|
|
@@ -14973,7 +14973,7 @@ function Vn() {
|
|
|
14973
14973
|
defaultMetricKeys: d
|
|
14974
14974
|
};
|
|
14975
14975
|
}
|
|
14976
|
-
const
|
|
14976
|
+
const jx = [
|
|
14977
14977
|
{ value: "USD", label: "USD - US Dollar" },
|
|
14978
14978
|
{ value: "EUR", label: "EUR - Euro" },
|
|
14979
14979
|
{ value: "GBP", label: "GBP - British Pound" },
|
|
@@ -15110,7 +15110,7 @@ function Bn({
|
|
|
15110
15110
|
onValueChange: (S) => u("currency", S),
|
|
15111
15111
|
children: [
|
|
15112
15112
|
/* @__PURE__ */ e(re, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
15113
|
-
/* @__PURE__ */ e(le, { children:
|
|
15113
|
+
/* @__PURE__ */ e(le, { children: jx.map((S) => /* @__PURE__ */ e(
|
|
15114
15114
|
K,
|
|
15115
15115
|
{
|
|
15116
15116
|
value: S.value,
|
|
@@ -15254,11 +15254,11 @@ function Wx() {
|
|
|
15254
15254
|
var r;
|
|
15255
15255
|
return (r = a.card) == null ? void 0 : r.type;
|
|
15256
15256
|
}) !== "combo" ? null : /* @__PURE__ */ n($e, { value: "combo-series", className: "border-b-0", children: [
|
|
15257
|
-
/* @__PURE__ */ e(
|
|
15257
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
15258
15258
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15259
15259
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15260
15260
|
] }) }),
|
|
15261
|
-
/* @__PURE__ */ e(
|
|
15261
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ e(Xx, {}) })
|
|
15262
15262
|
] });
|
|
15263
15263
|
}
|
|
15264
15264
|
function Xx() {
|
|
@@ -15526,11 +15526,11 @@ function rb() {
|
|
|
15526
15526
|
return (r = a.card) == null ? void 0 : r.type;
|
|
15527
15527
|
});
|
|
15528
15528
|
return t !== "area" && t !== "stackedArea" ? null : /* @__PURE__ */ n($e, { value: "area-series", className: "border-b-0", children: [
|
|
15529
|
-
/* @__PURE__ */ e(
|
|
15529
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
15530
15530
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15531
15531
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15532
15532
|
] }) }),
|
|
15533
|
-
/* @__PURE__ */ e(
|
|
15533
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ e(sb, {}) })
|
|
15534
15534
|
] });
|
|
15535
15535
|
}
|
|
15536
15536
|
function sb() {
|
|
@@ -15756,11 +15756,11 @@ function cb() {
|
|
|
15756
15756
|
var r;
|
|
15757
15757
|
return (r = a.card) == null ? void 0 : r.type;
|
|
15758
15758
|
}) !== "line" ? null : /* @__PURE__ */ n($e, { value: "line-series", className: "border-b-0", children: [
|
|
15759
|
-
/* @__PURE__ */ e(
|
|
15759
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
15760
15760
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15761
15761
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15762
15762
|
] }) }),
|
|
15763
|
-
/* @__PURE__ */ e(
|
|
15763
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ e(db, {}) })
|
|
15764
15764
|
] });
|
|
15765
15765
|
}
|
|
15766
15766
|
function db() {
|
|
@@ -15948,11 +15948,11 @@ function hb() {
|
|
|
15948
15948
|
return (r = a.card) == null ? void 0 : r.type;
|
|
15949
15949
|
});
|
|
15950
15950
|
return !t || !["bar", "horizontalBar", "stackedBar"].includes(t) ? null : /* @__PURE__ */ n($e, { value: "bar-series", className: "border-b-0", children: [
|
|
15951
|
-
/* @__PURE__ */ e(
|
|
15951
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
15952
15952
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15953
15953
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15954
15954
|
] }) }),
|
|
15955
|
-
/* @__PURE__ */ e(
|
|
15955
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ e(pb, {}) })
|
|
15956
15956
|
] });
|
|
15957
15957
|
}
|
|
15958
15958
|
function pb() {
|
|
@@ -16125,11 +16125,11 @@ function vb() {
|
|
|
16125
16125
|
o(h), d({ ...t, preferences: h });
|
|
16126
16126
|
};
|
|
16127
16127
|
return /* @__PURE__ */ n($e, { value: "line-style", className: "border-b-0", children: [
|
|
16128
|
-
/* @__PURE__ */ e(
|
|
16128
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
16129
16129
|
/* @__PURE__ */ e(rf, { className: "h-4 w-4 text-muted-foreground" }),
|
|
16130
16130
|
/* @__PURE__ */ e("span", { children: "Line Style" })
|
|
16131
16131
|
] }) }),
|
|
16132
|
-
/* @__PURE__ */ e(
|
|
16132
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
16133
16133
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "Default styles for all series. Override per-series in the Series section." }),
|
|
16134
16134
|
/* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
|
|
16135
16135
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium", children: "Line Pattern" }),
|
|
@@ -16217,11 +16217,11 @@ function wb() {
|
|
|
16217
16217
|
o(h), d({ ...t, preferences: h });
|
|
16218
16218
|
};
|
|
16219
16219
|
return /* @__PURE__ */ n($e, { value: "bar-style", className: "border-b-0", children: [
|
|
16220
|
-
/* @__PURE__ */ e(
|
|
16220
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
16221
16221
|
/* @__PURE__ */ e(ii, { className: "h-4 w-4 text-muted-foreground" }),
|
|
16222
16222
|
/* @__PURE__ */ e("span", { children: "Bar Style" })
|
|
16223
16223
|
] }) }),
|
|
16224
|
-
/* @__PURE__ */ e(
|
|
16224
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
16225
16225
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "Default styles for all bars. Override per-series in the Series section." }),
|
|
16226
16226
|
/* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
|
|
16227
16227
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium", children: "Corner Radius" }),
|
|
@@ -16284,11 +16284,11 @@ function Sb() {
|
|
|
16284
16284
|
}
|
|
16285
16285
|
), { setSortChart: a } = Ne();
|
|
16286
16286
|
return /* @__PURE__ */ n($e, { value: "stacked-sort", children: [
|
|
16287
|
-
/* @__PURE__ */ e(
|
|
16287
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
16288
16288
|
/* @__PURE__ */ e(Di, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
16289
16289
|
"Sort"
|
|
16290
16290
|
] }) }),
|
|
16291
|
-
/* @__PURE__ */ e(
|
|
16291
|
+
/* @__PURE__ */ e(je, { className: "space-y-4 px-1", children: /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
16292
16292
|
/* @__PURE__ */ e(_, { children: "Sort Order" }),
|
|
16293
16293
|
/* @__PURE__ */ e(
|
|
16294
16294
|
zt,
|
|
@@ -16359,7 +16359,7 @@ function Mb() {
|
|
|
16359
16359
|
});
|
|
16360
16360
|
};
|
|
16361
16361
|
return /* @__PURE__ */ n($e, { value: "summary", className: "border-none", children: [
|
|
16362
|
-
/* @__PURE__ */ n(
|
|
16362
|
+
/* @__PURE__ */ n(qe, { className: "flex items-center gap-2 py-2 text-[12px] hover:no-underline [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", children: [
|
|
16363
16363
|
/* @__PURE__ */ n("div", { className: "flex flex-1 items-center gap-2", children: [
|
|
16364
16364
|
/* @__PURE__ */ e(Rr, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
16365
16365
|
/* @__PURE__ */ e("span", { children: "Summary" })
|
|
@@ -16391,7 +16391,7 @@ function Mb() {
|
|
|
16391
16391
|
}
|
|
16392
16392
|
)
|
|
16393
16393
|
] }),
|
|
16394
|
-
/* @__PURE__ */ e(
|
|
16394
|
+
/* @__PURE__ */ e(je, { className: "pb-4 pt-2", children: /* @__PURE__ */ n(
|
|
16395
16395
|
"div",
|
|
16396
16396
|
{
|
|
16397
16397
|
className: G(
|
|
@@ -16522,11 +16522,11 @@ function Eb() {
|
|
|
16522
16522
|
});
|
|
16523
16523
|
};
|
|
16524
16524
|
return /* @__PURE__ */ n($e, { value: "tooltip-format", className: "border-b-0", children: [
|
|
16525
|
-
/* @__PURE__ */ e(
|
|
16525
|
+
/* @__PURE__ */ e(qe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
16526
16526
|
/* @__PURE__ */ e(Ma, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
16527
16527
|
/* @__PURE__ */ e("span", { children: "Tooltip Format" })
|
|
16528
16528
|
] }) }),
|
|
16529
|
-
/* @__PURE__ */ n(
|
|
16529
|
+
/* @__PURE__ */ n(je, { className: "space-y-4 pt-2", children: [
|
|
16530
16530
|
/* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
|
|
16531
16531
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16532
16532
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium text-muted-foreground", children: "Override metric format" }),
|
|
@@ -16576,7 +16576,7 @@ function lc({ mode: t }) {
|
|
|
16576
16576
|
t === "config" && /* @__PURE__ */ e(Mb, {}),
|
|
16577
16577
|
/* @__PURE__ */ e(_x, {}),
|
|
16578
16578
|
a === "bullet" && /* @__PURE__ */ e(Vx, {}),
|
|
16579
|
-
a === "funnel" && /* @__PURE__ */ e(
|
|
16579
|
+
a === "funnel" && /* @__PURE__ */ e(qx, {}),
|
|
16580
16580
|
(a === "bubble" || a === "scatter") && /* @__PURE__ */ e(Bx, {}),
|
|
16581
16581
|
(a === "stackedBar" || a === "stackedLine") && /* @__PURE__ */ e(Sb, {}),
|
|
16582
16582
|
/* @__PURE__ */ e(Ox, {}),
|
|
@@ -17178,7 +17178,7 @@ function Bb({ idx: t }) {
|
|
|
17178
17178
|
(i) => i.actions.setCardPreferences
|
|
17179
17179
|
), o = (l = a == null ? void 0 : a.chartOptions) == null ? void 0 : l.indexAxis, d = r == null ? void 0 : r.find((i) => i.idx === t);
|
|
17180
17180
|
function c(i, h) {
|
|
17181
|
-
(i === "end" || i === "start") && jh(
|
|
17181
|
+
(i === "end" || i === "start") && qh(jh());
|
|
17182
17182
|
const u = {
|
|
17183
17183
|
display: i !== "none",
|
|
17184
17184
|
align: i,
|
|
@@ -17270,7 +17270,7 @@ function Bb({ idx: t }) {
|
|
|
17270
17270
|
function $b(t, a = 30) {
|
|
17271
17271
|
return t.length > a ? t.slice(0, a) + "..." : t;
|
|
17272
17272
|
}
|
|
17273
|
-
function
|
|
17273
|
+
function qb({
|
|
17274
17274
|
col: t,
|
|
17275
17275
|
idx: a,
|
|
17276
17276
|
className: r,
|
|
@@ -17357,7 +17357,7 @@ function jb({
|
|
|
17357
17357
|
}
|
|
17358
17358
|
);
|
|
17359
17359
|
}
|
|
17360
|
-
function
|
|
17360
|
+
function jb() {
|
|
17361
17361
|
const t = R((l) => l.card.type), a = R((l) => l.isDevMode), r = R((l) => l.card.preferences), { setCardPreferences: s } = R((l) => l.actions);
|
|
17362
17362
|
function o(l) {
|
|
17363
17363
|
var u;
|
|
@@ -17438,12 +17438,12 @@ function Kb({
|
|
|
17438
17438
|
(i) => i === t.label || i === t.name
|
|
17439
17439
|
), d = o ? s.indexOf(o) : -1;
|
|
17440
17440
|
function c() {
|
|
17441
|
-
return /* @__PURE__ */ e("div", { className: "pr-1", children: o && /* @__PURE__ */ e(
|
|
17441
|
+
return /* @__PURE__ */ e("div", { className: "pr-1", children: o && /* @__PURE__ */ e(qb, { idx: d, col: o, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
|
|
17442
17442
|
}
|
|
17443
17443
|
function l() {
|
|
17444
17444
|
return /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
17445
17445
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
|
|
17446
|
-
/* @__PURE__ */ e(
|
|
17446
|
+
/* @__PURE__ */ e(jb, {})
|
|
17447
17447
|
] });
|
|
17448
17448
|
}
|
|
17449
17449
|
return /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
@@ -17628,7 +17628,7 @@ function Gb({
|
|
|
17628
17628
|
return we(() => {
|
|
17629
17629
|
t && M();
|
|
17630
17630
|
}, [t, c, o]), /* @__PURE__ */ e(Bt, { open: t, onOpenChange: a, children: /* @__PURE__ */ n($t, { className: "max-w-2xl", children: [
|
|
17631
|
-
/* @__PURE__ */ e(la, { children: /* @__PURE__ */ e(
|
|
17631
|
+
/* @__PURE__ */ e(la, { children: /* @__PURE__ */ e(qt, { children: c ? `Edit Filter: ${f.field ? Sa(f.field) : ""}` : l === "fields" ? "Select Field to Filter" : `Select Values for ${f.field ? Sa(f.field) : ""}` }) }),
|
|
17632
17632
|
/* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
17633
17633
|
!c && (s == null ? void 0 : s.conditions) && s.conditions.length > 0 && l === "fields" && /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
17634
17634
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium text-muted-foreground", children: "Current Filters:" }),
|
|
@@ -17778,7 +17778,7 @@ function Wb({
|
|
|
17778
17778
|
hasPivotColumns: d = !1,
|
|
17779
17779
|
cardType: c
|
|
17780
17780
|
}) {
|
|
17781
|
-
var Vs, Bs, $s,
|
|
17781
|
+
var Vs, Bs, $s, qs, js, Ks, zs, Us, Gs, Hs, Js, Qs, Ws, Xs, Zs, el, tl, al, nl, rl, sl, ll, ol, il, cl, dl, ul, ml, hl, pl, fl, gl, xl;
|
|
17782
17782
|
const l = R((J) => J.card), i = R((J) => J.frame), h = xe((J) => J.isVisualEditing), u = xe((J) => J.selectedSheetId), f = xe(
|
|
17783
17783
|
(J) => J.actions.updateSheetCalculatedFields
|
|
17784
17784
|
), m = xe(
|
|
@@ -17808,8 +17808,8 @@ function Wb({
|
|
|
17808
17808
|
removeField: O,
|
|
17809
17809
|
handleMetricComparisonChange: P,
|
|
17810
17810
|
handleMetricComparisonSpecChange: $,
|
|
17811
|
-
handleMetricComparisonPolarityChange:
|
|
17812
|
-
handleMetricWindowTransformChange:
|
|
17811
|
+
handleMetricComparisonPolarityChange: q,
|
|
17812
|
+
handleMetricWindowTransformChange: j,
|
|
17813
17813
|
handleMetricWindowOrderByChange: H,
|
|
17814
17814
|
handleMetricWindowDirectionChange: X,
|
|
17815
17815
|
handleMetricWindowPartitionToggle: ie,
|
|
@@ -17840,7 +17840,7 @@ function Wb({
|
|
|
17840
17840
|
t.qualifiedEntityName,
|
|
17841
17841
|
t.qualifiedFieldName,
|
|
17842
17842
|
b
|
|
17843
|
-
]), Ze =
|
|
17843
|
+
]), Ze = qo(
|
|
17844
17844
|
ft.dataType
|
|
17845
17845
|
), ce = ee(
|
|
17846
17846
|
() => Kh({
|
|
@@ -17933,7 +17933,7 @@ function Wb({
|
|
|
17933
17933
|
y(a, r, J);
|
|
17934
17934
|
}, nt = cm(t);
|
|
17935
17935
|
dm(t);
|
|
17936
|
-
const Xt = um(t),
|
|
17936
|
+
const Xt = um(t), jt = t.role === "metric" && Xt, $n = Xt && (nt === "user_calculated" || nt === "inline_expression" && t.fieldScope !== "domain"), Rt = $n ? cp({
|
|
17937
17937
|
field: t,
|
|
17938
17938
|
sheetFields: (i == null ? void 0 : i.calculatedFields) || [],
|
|
17939
17939
|
dashboardFields: x
|
|
@@ -17954,15 +17954,15 @@ function Wb({
|
|
|
17954
17954
|
Ye(!1);
|
|
17955
17955
|
}, fc = () => {
|
|
17956
17956
|
O(a, r);
|
|
17957
|
-
},
|
|
17957
|
+
}, qn = Lt(
|
|
17958
17958
|
ft.dataType || t.dataType
|
|
17959
|
-
), Ts =
|
|
17959
|
+
), Ts = qn === "date", jn = c === "kpi", Kn = a === "detailColumns", Ds = (Bs = l.config) == null ? void 0 : Bs.metricColumns, ga = ($s = l.config) == null ? void 0 : $s.groupByColumns, Ms = hm(l), Fs = xe((J) => J.dashboard), sn = xe(
|
|
17960
17960
|
(J) => J.semanticExecutionPayload
|
|
17961
17961
|
), zn = a === "groupBy" && ke ? Sr(
|
|
17962
17962
|
ke,
|
|
17963
17963
|
Re.format,
|
|
17964
17964
|
F
|
|
17965
|
-
) : a === "detailColumns" ? Yb(ke ?? "day") : [], gc = yt ? "custom" : !ke && a === "groupBy" ? void 0 : zn.some((J) => J.value === He) ? He : ((
|
|
17965
|
+
) : a === "detailColumns" ? Yb(ke ?? "day") : [], gc = yt ? "custom" : !ke && a === "groupBy" ? void 0 : zn.some((J) => J.value === He) ? He : ((qs = zn[0]) == null ? void 0 : qs.value) ?? "YYYY-MM-DD", xc = !!c && Gh.includes(c), bc = !!c && Hh.includes(c), Es = ee(
|
|
17966
17966
|
() => ga == null ? void 0 : ga.find((J) => Lt(J.dataType || "") === "date"),
|
|
17967
17967
|
[ga]
|
|
17968
17968
|
), Zt = ee(
|
|
@@ -17991,7 +17991,7 @@ function Wb({
|
|
|
17991
17991
|
}, Z = (de) => de.conditions.some((Ue) => Lt(Ue.field.dataType || "") === "date" && Te(Ue)) ? !0 : de.groups.some((Ue) => Z(Ue));
|
|
17992
17992
|
return Z(J);
|
|
17993
17993
|
}, [Is, rt]), yc = ee(() => {
|
|
17994
|
-
const J =
|
|
17994
|
+
const J = jp(
|
|
17995
17995
|
Ms,
|
|
17996
17996
|
Kp(Fs, sn, I)
|
|
17997
17997
|
);
|
|
@@ -17999,7 +17999,7 @@ function Wb({
|
|
|
17999
17999
|
l,
|
|
18000
18000
|
J.status === "ready" ? { status: "ready", ...J.compiledFilters } : J
|
|
18001
18001
|
);
|
|
18002
|
-
}, [l, Ms, Fs, sn, I]), Os = vc || yc, Oe = t, it = ((
|
|
18002
|
+
}, [l, Ms, Fs, sn, I]), Os = vc || yc, Oe = t, it = ((js = Oe.comparison) == null ? void 0 : js.mode) === "explicit" ? Oe.comparison.spec : void 0, Un = ((zs = (Ks = Oe.parameters) == null ? void 0 : Ks.windowTransform) == null ? void 0 : zs.function) || "none", Dt = pm(Oe), Mt = Dt ? Un : null, Gn = fm({
|
|
18003
18003
|
cardType: c || "table",
|
|
18004
18004
|
cardConfig: l.config || {},
|
|
18005
18005
|
metric: Oe,
|
|
@@ -18032,8 +18032,8 @@ function Wb({
|
|
|
18032
18032
|
const Ec = a !== "pivotBy" && a !== "sortBy", Ic = Jb(
|
|
18033
18033
|
a,
|
|
18034
18034
|
c
|
|
18035
|
-
), Oc = t.memberOrder ?? "auto", Ac = Ts && a === "groupBy" && (!
|
|
18036
|
-
const J = t, Te = a === "metrics" &&
|
|
18035
|
+
), Oc = t.memberOrder ?? "auto", Ac = Ts && a === "groupBy" && (!jn || Fc), Rc = !jn && Ts && (a === "groupBy" || Kn), Pc = a === "metrics", Lc = !jn && qn === "number" && (a === "groupBy" || Kn) && Uh(c), ln = xc && !l.sql && !l.python && a === "metrics", Yc = () => {
|
|
18036
|
+
const J = t, Te = a === "metrics" && jt;
|
|
18037
18037
|
return /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
18038
18038
|
!Te && /* @__PURE__ */ e(
|
|
18039
18039
|
"div",
|
|
@@ -18158,7 +18158,7 @@ function Wb({
|
|
|
18158
18158
|
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Examples: YYYY-MM-DD, MM/DD/YY, DD-MMM-YYYY HH:mm" })
|
|
18159
18159
|
] })
|
|
18160
18160
|
] })
|
|
18161
|
-
] }) : null,
|
|
18161
|
+
] }) : null, qc = () => Lc ? /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
18162
18162
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium text-muted-foreground", children: "Number Format" }),
|
|
18163
18163
|
/* @__PURE__ */ e(
|
|
18164
18164
|
Ir,
|
|
@@ -18173,10 +18173,10 @@ function Wb({
|
|
|
18173
18173
|
showTitle: !1
|
|
18174
18174
|
}
|
|
18175
18175
|
)
|
|
18176
|
-
] }) : null,
|
|
18176
|
+
] }) : null, jc = () => {
|
|
18177
18177
|
var Te;
|
|
18178
18178
|
if (!Pc) return null;
|
|
18179
|
-
const J =
|
|
18179
|
+
const J = jt;
|
|
18180
18180
|
return /* @__PURE__ */ n(pe, { children: [
|
|
18181
18181
|
J && A && !Aa && /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
18182
18182
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium text-muted-foreground", children: "Formula" }),
|
|
@@ -18258,7 +18258,7 @@ function Wb({
|
|
|
18258
18258
|
ne,
|
|
18259
18259
|
{
|
|
18260
18260
|
value: Dt ? Un : "none",
|
|
18261
|
-
onValueChange: (Z) =>
|
|
18261
|
+
onValueChange: (Z) => j(
|
|
18262
18262
|
r,
|
|
18263
18263
|
Z
|
|
18264
18264
|
),
|
|
@@ -18595,7 +18595,7 @@ function Wb({
|
|
|
18595
18595
|
{
|
|
18596
18596
|
value: Pp(Oe),
|
|
18597
18597
|
disabled: !!Oe.semanticComparisonPolarity,
|
|
18598
|
-
onValueChange: (Z) =>
|
|
18598
|
+
onValueChange: (Z) => q(
|
|
18599
18599
|
r,
|
|
18600
18600
|
Z
|
|
18601
18601
|
),
|
|
@@ -18752,7 +18752,7 @@ function Wb({
|
|
|
18752
18752
|
field: t,
|
|
18753
18753
|
zone: a,
|
|
18754
18754
|
label: xi(t),
|
|
18755
|
-
dataType:
|
|
18755
|
+
dataType: qn,
|
|
18756
18756
|
calculated: Qr(t),
|
|
18757
18757
|
open: fe,
|
|
18758
18758
|
onOpenChange: be,
|
|
@@ -18778,8 +18778,8 @@ function Wb({
|
|
|
18778
18778
|
_c(),
|
|
18779
18779
|
c === "kpi" && _s(),
|
|
18780
18780
|
$c(),
|
|
18781
|
-
|
|
18782
|
-
|
|
18781
|
+
qc(),
|
|
18782
|
+
jc()
|
|
18783
18783
|
] })
|
|
18784
18784
|
}
|
|
18785
18785
|
),
|
|
@@ -18813,7 +18813,7 @@ function Wb({
|
|
|
18813
18813
|
}
|
|
18814
18814
|
}
|
|
18815
18815
|
),
|
|
18816
|
-
ye && a === "metrics" &&
|
|
18816
|
+
ye && a === "metrics" && jt && /* @__PURE__ */ e(
|
|
18817
18817
|
Xo,
|
|
18818
18818
|
{
|
|
18819
18819
|
open: ye,
|
|
@@ -19227,13 +19227,13 @@ function sv({
|
|
|
19227
19227
|
"aggregateTable",
|
|
19228
19228
|
"bubble",
|
|
19229
19229
|
"scatter"
|
|
19230
|
-
].includes(N), $ = w && !P,
|
|
19230
|
+
].includes(N), $ = w && !P, q = () => N === "kpi" ? {
|
|
19231
19231
|
label: "Trend By",
|
|
19232
19232
|
placeholder: "Drop trend field here"
|
|
19233
19233
|
} : {
|
|
19234
19234
|
label: "Rows",
|
|
19235
19235
|
placeholder: "Drop dimensions here"
|
|
19236
|
-
},
|
|
19236
|
+
}, j = () => N === "kpi" ? {
|
|
19237
19237
|
label: "Metric",
|
|
19238
19238
|
placeholder: "Drop metric here"
|
|
19239
19239
|
} : {
|
|
@@ -19268,8 +19268,8 @@ function sv({
|
|
|
19268
19268
|
zone: "groupBy",
|
|
19269
19269
|
onRemoveField: t,
|
|
19270
19270
|
fields: r,
|
|
19271
|
-
label:
|
|
19272
|
-
placeholder:
|
|
19271
|
+
label: q().label,
|
|
19272
|
+
placeholder: q().placeholder
|
|
19273
19273
|
}
|
|
19274
19274
|
),
|
|
19275
19275
|
$ && /* @__PURE__ */ e(
|
|
@@ -19288,8 +19288,8 @@ function sv({
|
|
|
19288
19288
|
zone: "metrics",
|
|
19289
19289
|
onRemoveField: t,
|
|
19290
19290
|
fields: o,
|
|
19291
|
-
label:
|
|
19292
|
-
placeholder:
|
|
19291
|
+
label: j().label,
|
|
19292
|
+
placeholder: j().placeholder,
|
|
19293
19293
|
hasPivotColumns: s.length > 0
|
|
19294
19294
|
}
|
|
19295
19295
|
),
|
|
@@ -20988,7 +20988,7 @@ function Tv({
|
|
|
20988
20988
|
children: [
|
|
20989
20989
|
/* @__PURE__ */ n("div", { className: "flex h-10 shrink-0 items-center gap-2 border-b border-border pl-3 pr-10", children: [
|
|
20990
20990
|
/* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
20991
|
-
/* @__PURE__ */ e(
|
|
20991
|
+
/* @__PURE__ */ e(qt, { className: "truncate text-[13px] font-medium", children: "Card filters" }),
|
|
20992
20992
|
/* @__PURE__ */ e(Ut, { className: "sr-only", children: "Add filters to the card to limit the data that is displayed." })
|
|
20993
20993
|
] }),
|
|
20994
20994
|
/* @__PURE__ */ e(
|
|
@@ -21172,7 +21172,7 @@ function Iv({
|
|
|
21172
21172
|
children: /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 max-w-full flex-1 grow basis-0 py-4 pl-2 pr-4", children: [
|
|
21173
21173
|
(r || s) && (a == null ? void 0 : a.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
|
|
21174
21174
|
(a == null ? void 0 : a.records) && /* @__PURE__ */ e(
|
|
21175
|
-
|
|
21175
|
+
jr,
|
|
21176
21176
|
{
|
|
21177
21177
|
card: t,
|
|
21178
21178
|
data: h,
|
|
@@ -21210,7 +21210,7 @@ function Pv({
|
|
|
21210
21210
|
showInfoTab: a
|
|
21211
21211
|
}) {
|
|
21212
21212
|
return /* @__PURE__ */ e(
|
|
21213
|
-
|
|
21213
|
+
ji,
|
|
21214
21214
|
{
|
|
21215
21215
|
className: "mx-4 mt-3",
|
|
21216
21216
|
hint: a ? "The Error tab has the query and its payload." : "Contact your administrator for help resolving this issue.",
|
|
@@ -21332,12 +21332,12 @@ function _v({
|
|
|
21332
21332
|
generatedSql: C == null ? void 0 : C.sql
|
|
21333
21333
|
});
|
|
21334
21334
|
g(Le), x(!0);
|
|
21335
|
-
},
|
|
21335
|
+
}, q = () => {
|
|
21336
21336
|
const me = R.getState().actions;
|
|
21337
21337
|
me.setIsDevMode(!0), me.setCardSql(w || ""), setTimeout(() => {
|
|
21338
21338
|
me.setRunSql(!0);
|
|
21339
21339
|
}, 100);
|
|
21340
|
-
},
|
|
21340
|
+
}, j = T ? { queryRequest: O, queryResponse: C } : void 0, H = ee(
|
|
21341
21341
|
() => (C == null ? void 0 : C.records) || [],
|
|
21342
21342
|
[C == null ? void 0 : C.records]
|
|
21343
21343
|
), X = ee(
|
|
@@ -21388,7 +21388,7 @@ function _v({
|
|
|
21388
21388
|
) }),
|
|
21389
21389
|
N === "kpi" && /* @__PURE__ */ e(Yv, { visible: !0, className: "self-center" }),
|
|
21390
21390
|
Y && o.type !== "table" && /* @__PURE__ */ e(
|
|
21391
|
-
|
|
21391
|
+
qm,
|
|
21392
21392
|
{
|
|
21393
21393
|
metadata: Y,
|
|
21394
21394
|
variant: "compact"
|
|
@@ -21396,7 +21396,7 @@ function _v({
|
|
|
21396
21396
|
)
|
|
21397
21397
|
] }),
|
|
21398
21398
|
/* @__PURE__ */ n("div", { className: "flex grow items-center justify-end gap-1", children: [
|
|
21399
|
-
!
|
|
21399
|
+
!jm(N) && /* @__PURE__ */ e(Ev, {}),
|
|
21400
21400
|
/* @__PURE__ */ e(
|
|
21401
21401
|
Km,
|
|
21402
21402
|
{
|
|
@@ -21511,7 +21511,7 @@ function _v({
|
|
|
21511
21511
|
error: E,
|
|
21512
21512
|
errorSql: w,
|
|
21513
21513
|
onSendFeedback: $,
|
|
21514
|
-
onOpenInEditor: es(o.type) ?
|
|
21514
|
+
onOpenInEditor: es(o.type) ? q : void 0
|
|
21515
21515
|
}
|
|
21516
21516
|
) }) : /* @__PURE__ */ e(
|
|
21517
21517
|
Pv,
|
|
@@ -21543,7 +21543,7 @@ function _v({
|
|
|
21543
21543
|
}
|
|
21544
21544
|
) }),
|
|
21545
21545
|
/* @__PURE__ */ e(
|
|
21546
|
-
|
|
21546
|
+
jr,
|
|
21547
21547
|
{
|
|
21548
21548
|
card: s,
|
|
21549
21549
|
data: H,
|
|
@@ -21565,9 +21565,9 @@ function _v({
|
|
|
21565
21565
|
error: E,
|
|
21566
21566
|
errorSql: w,
|
|
21567
21567
|
defaultDetailsOpen: !0,
|
|
21568
|
-
debugPayloads:
|
|
21568
|
+
debugPayloads: j,
|
|
21569
21569
|
onSendFeedback: $,
|
|
21570
|
-
onOpenInEditor:
|
|
21570
|
+
onOpenInEditor: q
|
|
21571
21571
|
}
|
|
21572
21572
|
) : (
|
|
21573
21573
|
/* Show normal SQL display when there's no error */
|
|
@@ -21575,7 +21575,7 @@ function _v({
|
|
|
21575
21575
|
Xi,
|
|
21576
21576
|
{
|
|
21577
21577
|
sql: C.sql,
|
|
21578
|
-
debugPayloads:
|
|
21578
|
+
debugPayloads: j
|
|
21579
21579
|
}
|
|
21580
21580
|
)
|
|
21581
21581
|
) }) })
|
|
@@ -21648,7 +21648,7 @@ const $v = () => {
|
|
|
21648
21648
|
);
|
|
21649
21649
|
};
|
|
21650
21650
|
};
|
|
21651
|
-
function
|
|
21651
|
+
function qv() {
|
|
21652
21652
|
const [t, a] = U(
|
|
21653
21653
|
"chart"
|
|
21654
21654
|
), [r, s] = U(!1), [o, d] = U(!0), [c, l] = U(!0), i = xe((X) => X.isVisualEditing), h = ds(), u = R((X) => X.card.type);
|
|
@@ -21689,13 +21689,13 @@ function jv() {
|
|
|
21689
21689
|
ie && M(X, ie);
|
|
21690
21690
|
}, $ = (X) => {
|
|
21691
21691
|
T(X);
|
|
21692
|
-
},
|
|
21692
|
+
}, q = L, j = (X) => {
|
|
21693
21693
|
if (!X) return 0;
|
|
21694
21694
|
let ie = X.conditions.length;
|
|
21695
21695
|
return X.groups.forEach((z) => {
|
|
21696
|
-
ie +=
|
|
21696
|
+
ie += j(z);
|
|
21697
21697
|
}), ie;
|
|
21698
|
-
}, H =
|
|
21698
|
+
}, H = j(Za(I) || null);
|
|
21699
21699
|
return /* @__PURE__ */ n(
|
|
21700
21700
|
Ta,
|
|
21701
21701
|
{
|
|
@@ -21769,7 +21769,7 @@ function jv() {
|
|
|
21769
21769
|
filters: Za(I) || null,
|
|
21770
21770
|
onFiltersChange: P,
|
|
21771
21771
|
onClearFilters: $,
|
|
21772
|
-
availableFields:
|
|
21772
|
+
availableFields: q,
|
|
21773
21773
|
isOpen: r,
|
|
21774
21774
|
onOpenChange: s
|
|
21775
21775
|
}
|
|
@@ -21780,7 +21780,7 @@ function jv() {
|
|
|
21780
21780
|
}
|
|
21781
21781
|
);
|
|
21782
21782
|
}
|
|
21783
|
-
function
|
|
21783
|
+
function jv({ authToken: t, onSave: a, onClose: r }) {
|
|
21784
21784
|
const s = R((u) => u.isDevMode), o = $r(), { setAuthToken: d } = So(), { setOnSave: c, setOnClose: l } = Ne();
|
|
21785
21785
|
we(() => {
|
|
21786
21786
|
a && c(a), r && l(r);
|
|
@@ -21807,7 +21807,7 @@ function qv({ authToken: t, onSave: a, onClose: r }) {
|
|
|
21807
21807
|
{
|
|
21808
21808
|
"data-content": "explorer",
|
|
21809
21809
|
className: "min-w-[510px] flex-1 basis-0 overflow-hidden",
|
|
21810
|
-
children: /* @__PURE__ */ e(
|
|
21810
|
+
children: /* @__PURE__ */ e(qv, {})
|
|
21811
21811
|
}
|
|
21812
21812
|
) });
|
|
21813
21813
|
}
|
|
@@ -21884,7 +21884,7 @@ function Sy() {
|
|
|
21884
21884
|
"max-h-0 overflow-hidden": !i
|
|
21885
21885
|
}),
|
|
21886
21886
|
style: l.dashboardContainerStyle,
|
|
21887
|
-
children: /* @__PURE__ */ e(
|
|
21887
|
+
children: /* @__PURE__ */ e(jv, { onSave: f, onClose: m })
|
|
21888
21888
|
}
|
|
21889
21889
|
);
|
|
21890
21890
|
}
|