react-semaphor 0.1.422 → 0.1.423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +1 -1
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +913 -712
- package/dist/chunks/{calendar-preferences-dialog-C2fBRNZh.js → calendar-preferences-dialog-CTmeASaM.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-Cbavs2EK.js → calendar-preferences-dialog-t5ET6MON.js} +2 -2
- package/dist/chunks/card-config-utils-15sRtebL.js +1 -0
- package/dist/chunks/card-config-utils-BYZ5MJOh.js +16 -0
- package/dist/chunks/dashboard-briefing-launcher-Cavd0QJb.js +3401 -0
- package/dist/chunks/dashboard-briefing-launcher-S2akO-ub.js +26 -0
- package/dist/chunks/dashboard-controls-BJLrErjW.js +2322 -0
- package/dist/chunks/dashboard-controls-DzbP8AXA.js +52 -0
- package/dist/chunks/dashboard-json-5tWb5KD6.js +1 -0
- package/dist/chunks/{dashboard-json-Db3rkY_a.js → dashboard-json-Do2-pdPZ.js} +11 -10
- package/dist/chunks/{edit-dashboard-visual-CW7mv_si.js → edit-dashboard-visual-Cw6bq4_w.js} +258 -256
- package/dist/chunks/edit-dashboard-visual-Yh5YFgMF.js +178 -0
- package/dist/chunks/index-BPM3gDRw.js +1406 -0
- package/dist/chunks/{index-OD6mLD7U.js → index-yHe0SeLO.js} +81534 -75431
- package/dist/chunks/{switch-CWcWwwDJ.js → switch-2bh3Hka1.js} +619 -632
- package/dist/chunks/{switch-DRNqX0v0.js → switch-DMT7qf_R.js} +24 -24
- package/dist/chunks/{use-create-flow-overlay-state-CkMmXhI-.js → use-create-flow-overlay-state-5MDbZcs1.js} +514 -543
- package/dist/chunks/use-create-flow-overlay-state-BNczg9Gj.js +11 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +108 -108
- package/dist/index.cjs +1 -1
- package/dist/index.js +167 -163
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings.d.ts +2388 -7
- package/dist/types/main.d.ts +70 -10
- package/dist/types/types.d.ts +4 -8
- package/package.json +1 -1
- package/dist/chunks/dashboard-briefing-launcher-C0_ZbBK3.js +0 -9077
- package/dist/chunks/dashboard-briefing-launcher-CGfEFUnX.js +0 -80
- package/dist/chunks/dashboard-controls-BUuS-BGl.js +0 -52
- package/dist/chunks/dashboard-controls-ae5t32xV.js +0 -2280
- package/dist/chunks/dashboard-json-DTL_kYhz.js +0 -1
- package/dist/chunks/edit-dashboard-visual-Ciqdu58a.js +0 -178
- package/dist/chunks/index-8y8XX7sX.js +0 -1346
- package/dist/chunks/use-create-flow-overlay-state-C0Uhmlpd.js +0 -21
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as Dc from "react";
|
|
3
3
|
import en, { useState as K, useEffect as Se, useRef as Me, useCallback as Ee, useMemo as de, useContext as Sr, Suspense as Ic } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { d0 as Mo, b as On, c as Mn, d as Fn, e as Rn, f as Xn, o as hs, bk as kt, bp as wt, d1 as Fo, d2 as os, p as Ze, d3 as Ro, d4 as is, b2 as Ia, aX as yt, ce as Tr, b0 as sa, bq as qa, bl as Nt, d5 as ps, d6 as kr, d7 as Ec, d8 as Lo, d9 as Po, da as Ac, db as Oc, b6 as Ns, dc as Mc, dd as Fc, de as mr, df as cs, u as bn, z as Vo, dg as Rc, dh as Lc, di as Bo, dj as _o, dk as Pc, dl as Vc, dm as Bc, dn as _c, be as Bn, bf as vn, bg as yn, bh as ja, bi as tn, bj as Jn, dp as hr, c7 as Sa, dq as zo, aL as an, aM as ft, dr as zc, ds as $o, cF as hn, cQ as qo, dt as Dr, du as jo, dv as $c, dw as qc, dx as jc, C as Ko, dy as Kc, dz as Uc, dA as Gc, dB as Hc, dC as Wc, dD as Qc, dE as zs, dF as Jc, dG as $l, dH as Yc, dI as ql, dJ as Xc, dK as Zc, cb as ra, cc as la, cd as oa, bZ as ct, dL as Ea, b3 as Uo, bu as Qt, bw as Jt, dM as Ir, bK as Er, aK as Ar, dN as ed, dO as td, dP as Or, dQ as nd, dR as Go, dS as Ho, dT as Wo, dU as Ht, dV as ad, dW as sd, dX as rd, dY as ld, dZ as Qo, d_ as Jo, X as Yo, d$ as Xo, e0 as od, e1 as id, e2 as cd, e3 as Aa, M as dd, e4 as ud, e5 as md, e6 as jl, e7 as hd, E as Cs, t as Mr, e8 as pd, e9 as Fr, bC as fd, ea as Kl, I as gt, eb as gd, ec as xd, ed as Zo, ee as ei, ef as bd, eg as Rr, eh as Lr, ei as ti, ej as ni, ek as Ul, el as Ka, em as vd, en as yd, eo as Nd, ep as Cd, eq as wd, er as fs, es as Sd, et as Td, eu as ai, ev as si, ew as kd, ex as Dd, cp as Id, ey as Ed, ez as ri, eA as Ad, eB as Od, cq as ws, eC as Ss, bD as Oa, bE as Wt, eD as cn, eE as Ln, eF as Pn, eG as pn, eH as Zn, eI as Md, eJ as Fd, eK as Rd, eL as Ld, eM as Pd, eN as Vd, eO as Bd, eP as _d, eQ as Gl, bv as nn, eR as zd, eS as $d, eT as Ts, eU as qd, eV as jd, eW as li, eX as Kd, eY as Ud, eZ as Gd, e_ as Hd, e$ as Wd, f0 as pr, f1 as Qd, f2 as Jd, f3 as fr, f4 as Yd, f5 as Xd, f6 as Zd, f7 as eu, f8 as Hl, b1 as gr, aZ as fn, aN as tu, aO as nu, aQ as au, aR as su, aS as ru, aT as lu, aU as ou, aV as iu, aW as cu, b$ as du, f9 as uu, fa as ea, fb as ta, fc as na, cg as Pr, ch as mu, a$ as hu, fd as pu, fe as fu, ff as gu, fg as ks, fh as st, fi as rt, fj as lt, fk as xu, fl as bu, fm as oi, fn as ii, fo as vu, fp as yu, fq as Nu, fr as Cu, fs as wu, ft as Su, fu as Tu, fv as ku, fw as Du, fx as Iu, fy as Eu, fz as Au, fA as Ou, fB as kn, fC as ya, fD as Yn, fE as Mu, fF as Wl, fG as Fu, fH as Ru, fI as $s, fJ as Ql, fK as Lu, fL as Pu, fM as Vu, fN as Bu, fO as _u, R as Vr, g as Ma, fP as qs, fQ as ci, b4 as zu, fR as gs, fS as $u, fT as di, fU as qu, fV as ui, fW as ju, fX as Ku, a4 as Uu, fY as as, fZ as Gu, f_ as Jl, f$ as Hu, g0 as Wu, g1 as Yl, g2 as Qu, g3 as Ju, g4 as Yu, g5 as Xu, g6 as Zu, aP as mi, g7 as em, g8 as tm, g9 as nm, ga as am, gb as sm, gc as rm, gd as lm, ge as om, gf as im, gg as hi, gh as cm, gi as Ds, cG as Is, gj as pi, gk as dm, gl as um, gm as fi, gn as mm, go as hm, gp as Es, gq as js, gr as pm, gs as fm, gt as gm, gu as xm, gv as bm, gw as Xl, gx as aa, gy as gi, gz as vm, cs as ym, gA as xi, gB as bi, gC as ds, gD as vi, gE as yi, gF as Zl, gG as Nm, gH as Cm, gI as us, gJ as wm, gK as Br, gL as Sm, gM as xs, h as Fa, i as Ra, k as La, j as Pa, l as Va, m as Ba, gN as Tm, gO as _a, gP as dn, gQ as xr, gR as br, gS as za, gT as Ni, gU as km, gV as Ks, gW as Us, gX as Dm, gY as Gs, gZ as Im, g_ as eo, g$ as to, cS as Em, h0 as Am, cT as Om, cV as Mm, cW as Fm, y as Rm, h1 as Lm, h2 as Pm, h3 as Vm, ci as Bm, cj as _m, ck as zm, bY as As, h4 as Os, h5 as no, h6 as Ci, cM as Hs, h7 as $m, h8 as qm, h9 as jm, F as Km, bn as Um, ha as Gm, hb as Hm, bo as Wm } from "./index-yHe0SeLO.js";
|
|
5
5
|
import { c as $e, C as At, X as et } from "./x-CXDkqdur.js";
|
|
6
|
-
import { F as Ne, B as Z, O as bs, I as Ua, c as J,
|
|
6
|
+
import { F as Ne, B as Z, O as bs, I as Ua, c as J, aI as Qm, L as $, _ as ne, $ as ae, a0 as se, a1 as re, a2 as j, E as M, Y as Dt, Q as Vt, V as It, W as Et, P as Ot, a as Rt, b as Mt, C as gn, aJ as Jm, aE as Ta, aK as _r, aL as wi, aB as zr, az as Ym, Z as Fe, aM as Xm, e as xn, u as Ie, d as Nn, aN as $r, X as Xt, A as Si, T as Ga, G as Ha, H as Yt, J as En, N as Ms, S as Vn, h as Zm, aF as An, aO as eh, aP as th, aQ as Ti, ae as nh, aH as ah, aR as sh, aS as rh, aT as ao, aU as lh, aV as oh, aW as ih, aX as ch, aY as dh, aZ as uh, a_ as so, a$ as mh, b0 as ro, R as vr, b1 as ia, b2 as hh, a3 as Je, b3 as ph, b4 as qr, b5 as $a, b6 as vs, b7 as un, b8 as ss, b9 as lo, ba as fh, bb as Pt, bc as gh, M as ki, bd as at, be as Di, s as oo, bf as xh, bg as bh, bh as vh, bi as yh, bj as Nh, bk as Ch, bl as wh, bm as Sh, bn as Th, bo as kh, bp as Dh, bq as Ih, br as io, bs as Eh, bt as Ah, bu as Oh, K as Fs } from "./switch-2bh3Hka1.js";
|
|
7
7
|
import "./analyze-result-contract-D7pjjYPy.js";
|
|
8
|
-
import { C as $t, E as yr, S as
|
|
9
|
-
import { f as
|
|
8
|
+
import { C as $t, E as yr, S as Rs, M as Mh, a as Fh } from "./search-BHsQIWBV.js";
|
|
9
|
+
import { f as Rh, g as xt, r as Ii, h as Wa, i as Ei, V as Ai, e as Lh, C as Ph } from "./use-create-flow-overlay-state-5MDbZcs1.js";
|
|
10
|
+
import { h as Qa } from "./card-config-utils-BYZ5MJOh.js";
|
|
10
11
|
import { createPortal as Vh } from "react-dom";
|
|
11
12
|
import "./index-CJdxSyQq.js";
|
|
13
|
+
import "../briefings/index.js";
|
|
12
14
|
import { P as Bh } from "./palette-Cp1hqZtm.js";
|
|
13
15
|
import { a as _h } from "./common-types-4bjoIgvm.js";
|
|
14
16
|
/**
|
|
@@ -970,7 +972,7 @@ function gp({
|
|
|
970
972
|
onCancel: c
|
|
971
973
|
}) {
|
|
972
974
|
const { columnGroups: o } = Ro(), l = o.filter(
|
|
973
|
-
(R) => R.entityName !==
|
|
975
|
+
(R) => R.entityName !== Qm
|
|
974
976
|
), {
|
|
975
977
|
joinPlan: i,
|
|
976
978
|
expandedJoins: d,
|
|
@@ -2138,7 +2140,7 @@ function wp(t) {
|
|
|
2138
2140
|
return t.connectionType && a.push(String(t.connectionType)), t.database && a.push(t.database), t.schema && a.push(t.schema), a.join(" · ");
|
|
2139
2141
|
}
|
|
2140
2142
|
function Bi({ isVisible: t }) {
|
|
2141
|
-
|
|
2143
|
+
Rh();
|
|
2142
2144
|
const [a, s] = K(!1);
|
|
2143
2145
|
return /* @__PURE__ */ n(
|
|
2144
2146
|
"div",
|
|
@@ -2223,7 +2225,7 @@ function Tp() {
|
|
|
2223
2225
|
});
|
|
2224
2226
|
Se(() => Ii(N), [N]);
|
|
2225
2227
|
function b(v) {
|
|
2226
|
-
g(v),
|
|
2228
|
+
g(v), Jm(p.current) || o({});
|
|
2227
2229
|
}
|
|
2228
2230
|
return /* @__PURE__ */ n("div", { className: "relative h-full w-full", children: [
|
|
2229
2231
|
!u && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute left-[56px] top-4 z-10 font-mono text-[12px] leading-[1.55] text-muted-foreground", children: "Write your SQL here" }),
|
|
@@ -2237,7 +2239,7 @@ function Tp() {
|
|
|
2237
2239
|
flushGutter: !0,
|
|
2238
2240
|
wrapLines: !0,
|
|
2239
2241
|
onKeyDown: (v) => {
|
|
2240
|
-
v.key === "Enter" && v.shiftKey && (v.preventDefault(),
|
|
2242
|
+
v.key === "Enter" && v.shiftKey && (v.preventDefault(), Wa(), setTimeout(() => {
|
|
2241
2243
|
h.removeQueries({ queryKey: m.current, exact: !0 }), l(!0);
|
|
2242
2244
|
}, 0));
|
|
2243
2245
|
}
|
|
@@ -2265,7 +2267,7 @@ function Dp() {
|
|
|
2265
2267
|
flushGutter: !0,
|
|
2266
2268
|
wrapLines: !0,
|
|
2267
2269
|
onKeyDown: (f) => {
|
|
2268
|
-
f.key === "Enter" && f.shiftKey && (f.preventDefault(),
|
|
2270
|
+
f.key === "Enter" && f.shiftKey && (f.preventDefault(), Wa(), setTimeout(() => {
|
|
2269
2271
|
i.removeQueries({ queryKey: d.current, exact: !0 }), c(!0);
|
|
2270
2272
|
}, 0));
|
|
2271
2273
|
}
|
|
@@ -2688,7 +2690,7 @@ function _p({
|
|
|
2688
2690
|
onToolCall: ut,
|
|
2689
2691
|
onFinish: pe,
|
|
2690
2692
|
onError: ce,
|
|
2691
|
-
sendAutomaticallyWhen:
|
|
2693
|
+
sendAutomaticallyWhen: Bc
|
|
2692
2694
|
});
|
|
2693
2695
|
H.current = je, Q.current = Ve;
|
|
2694
2696
|
const He = !["ready", "error"].includes(
|
|
@@ -2774,7 +2776,7 @@ function _p({
|
|
|
2774
2776
|
} catch (Le) {
|
|
2775
2777
|
if (Y.current !== ie || !xe(oe))
|
|
2776
2778
|
return null;
|
|
2777
|
-
const ke =
|
|
2779
|
+
const ke = Ym(
|
|
2778
2780
|
Le,
|
|
2779
2781
|
"Validation service unavailable. You can still replace and run."
|
|
2780
2782
|
);
|
|
@@ -2877,7 +2879,7 @@ function _p({
|
|
|
2877
2879
|
const ke = await Ja(X, oe);
|
|
2878
2880
|
if (!ke || Re || !xe(oe) || ke.status !== "invalid")
|
|
2879
2881
|
return;
|
|
2880
|
-
if (!
|
|
2882
|
+
if (!_c.has(ke.errorCode)) {
|
|
2881
2883
|
_n(oe, "terminal", ke.error, ke.errorCode);
|
|
2882
2884
|
return;
|
|
2883
2885
|
}
|
|
@@ -3061,7 +3063,7 @@ function _p({
|
|
|
3061
3063
|
}
|
|
3062
3064
|
),
|
|
3063
3065
|
/* @__PURE__ */ n(Ot, { open: R, onOpenChange: ts, children: [
|
|
3064
|
-
/* @__PURE__ */ e(
|
|
3066
|
+
/* @__PURE__ */ e(Xm, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
|
|
3065
3067
|
/* @__PURE__ */ n("div", { className: "absolute right-1 flex items-center gap-1", children: [
|
|
3066
3068
|
Cn && /* @__PURE__ */ e(
|
|
3067
3069
|
Z,
|
|
@@ -3092,7 +3094,7 @@ function _p({
|
|
|
3092
3094
|
disabled: He,
|
|
3093
3095
|
"aria-label": Kn,
|
|
3094
3096
|
title: Kn,
|
|
3095
|
-
children: /* @__PURE__ */ e(
|
|
3097
|
+
children: /* @__PURE__ */ e(Pc, { className: "size-3.5" })
|
|
3096
3098
|
}
|
|
3097
3099
|
)
|
|
3098
3100
|
] }),
|
|
@@ -3147,7 +3149,7 @@ function _p({
|
|
|
3147
3149
|
)
|
|
3148
3150
|
] }),
|
|
3149
3151
|
/* @__PURE__ */ e(
|
|
3150
|
-
|
|
3152
|
+
Vc,
|
|
3151
3153
|
{
|
|
3152
3154
|
mode: "full",
|
|
3153
3155
|
compact: !0,
|
|
@@ -3464,7 +3466,7 @@ function zp() {
|
|
|
3464
3466
|
}
|
|
3465
3467
|
),
|
|
3466
3468
|
a && /* @__PURE__ */ n(De, { children: [
|
|
3467
|
-
/* @__PURE__ */ n(
|
|
3469
|
+
/* @__PURE__ */ n(zc, { className: "group/divider relative my-1 flex h-6 w-full shrink-0 cursor-row-resize items-center gap-3 px-1 outline-none", children: [
|
|
3468
3470
|
/* @__PURE__ */ e("span", { className: "h-px flex-1 bg-border transition-colors group-hover/divider:bg-foreground/30" }),
|
|
3469
3471
|
/* @__PURE__ */ n("span", { className: "inline-flex items-center gap-1.5 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: [
|
|
3470
3472
|
/* @__PURE__ */ e($o, { className: "h-3 w-3", strokeWidth: 1.75 }),
|
|
@@ -3564,7 +3566,7 @@ function zp() {
|
|
|
3564
3566
|
title: "Shift + Enter",
|
|
3565
3567
|
disabled: B || z,
|
|
3566
3568
|
onClick: () => {
|
|
3567
|
-
|
|
3569
|
+
Wa(), setTimeout(() => {
|
|
3568
3570
|
t.removeQueries({
|
|
3569
3571
|
queryKey: ue.current,
|
|
3570
3572
|
exact: !0
|
|
@@ -3711,7 +3713,7 @@ function jp({
|
|
|
3711
3713
|
pagination: g,
|
|
3712
3714
|
paginationMode: N,
|
|
3713
3715
|
sorting: b
|
|
3714
|
-
} =
|
|
3716
|
+
} = $c({
|
|
3715
3717
|
card: a,
|
|
3716
3718
|
dataLength: t.length,
|
|
3717
3719
|
onPaginationChange: r,
|
|
@@ -3746,7 +3748,7 @@ function jp({
|
|
|
3746
3748
|
onClick: () => R.getCanSort() && R.toggleSorting(R.getIsSorted() === "asc"),
|
|
3747
3749
|
children: [
|
|
3748
3750
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", title: x, children: x }),
|
|
3749
|
-
B === "asc" ? /* @__PURE__ */ e(
|
|
3751
|
+
B === "asc" ? /* @__PURE__ */ e(qc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : B === "desc" ? /* @__PURE__ */ e(jc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : R.getCanSort() ? /* @__PURE__ */ e(Ko, { className: "h-3 w-3 shrink-0 opacity-0 transition-opacity group-hover/header:opacity-50" }) : null
|
|
3750
3752
|
]
|
|
3751
3753
|
}
|
|
3752
3754
|
);
|
|
@@ -3768,13 +3770,13 @@ function jp({
|
|
|
3768
3770
|
};
|
|
3769
3771
|
}),
|
|
3770
3772
|
[m, I, i]
|
|
3771
|
-
), y = Math.max(P.length, 1), C =
|
|
3773
|
+
), y = Math.max(P.length, 1), C = Kc({
|
|
3772
3774
|
data: t,
|
|
3773
3775
|
columns: P,
|
|
3774
|
-
getCoreRowModel:
|
|
3775
|
-
getPaginationRowModel: N === "client" ?
|
|
3776
|
+
getCoreRowModel: Hc(),
|
|
3777
|
+
getPaginationRowModel: N === "client" ? Gc() : void 0,
|
|
3776
3778
|
onSortingChange: u,
|
|
3777
|
-
getSortedRowModel: p ?
|
|
3779
|
+
getSortedRowModel: p ? Uc() : void 0,
|
|
3778
3780
|
onPaginationChange: N === "disabled" ? void 0 : f,
|
|
3779
3781
|
manualPagination: N === "server" || N === "disabled",
|
|
3780
3782
|
manualSorting: !p,
|
|
@@ -3786,21 +3788,21 @@ function jp({
|
|
|
3786
3788
|
}), w = N === "server" && s ? s.totalCount : t.length, T = N !== "disabled" && (N === "server" || w > 10), k = i.length > 0 ? `${i.length * 144}px` : "100%";
|
|
3787
3789
|
return /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 w-full flex-col", children: [
|
|
3788
3790
|
l && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(xn, { className: "h-5 w-5 animate-spin text-muted-foreground" }) }),
|
|
3789
|
-
/* @__PURE__ */ n(
|
|
3791
|
+
/* @__PURE__ */ n(Wc, { className: "relative min-h-0 w-full grow overflow-auto rounded-none border-0 bg-transparent text-foreground", children: [
|
|
3790
3792
|
/* @__PURE__ */ n(
|
|
3791
3793
|
"table",
|
|
3792
3794
|
{
|
|
3793
3795
|
className: "w-full text-sm [border-spacing:0]",
|
|
3794
3796
|
style: { minWidth: k },
|
|
3795
3797
|
children: [
|
|
3796
|
-
/* @__PURE__ */ e(
|
|
3798
|
+
/* @__PURE__ */ e(Qc, { className: "sticky top-0 z-10 bg-muted [&_tr]:border-b-0", children: C.getHeaderGroups().map((x) => /* @__PURE__ */ e(
|
|
3797
3799
|
zs,
|
|
3798
3800
|
{
|
|
3799
3801
|
className: "border-b-0 hover:bg-transparent",
|
|
3800
3802
|
children: x.headers.map((D) => {
|
|
3801
3803
|
const R = I[D.id] === "number";
|
|
3802
3804
|
return /* @__PURE__ */ e(
|
|
3803
|
-
|
|
3805
|
+
Jc,
|
|
3804
3806
|
{
|
|
3805
3807
|
className: J(
|
|
3806
3808
|
"group/header relative h-auto border-b border-transparent bg-muted/95 px-4 py-2 align-middle text-[10px] font-medium tracking-[0.08em] text-muted-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-border/60",
|
|
@@ -3817,7 +3819,7 @@ function jp({
|
|
|
3817
3819
|
},
|
|
3818
3820
|
x.id
|
|
3819
3821
|
)) }),
|
|
3820
|
-
/* @__PURE__ */ e(
|
|
3822
|
+
/* @__PURE__ */ e(Yc, { children: (F = C.getRowModel().rows) != null && F.length ? C.getRowModel().rows.map((x) => /* @__PURE__ */ e(
|
|
3821
3823
|
zs,
|
|
3822
3824
|
{
|
|
3823
3825
|
className: "border-b border-border/40 transition-colors",
|
|
@@ -3855,7 +3857,7 @@ function jp({
|
|
|
3855
3857
|
/* @__PURE__ */ e($r, { orientation: "horizontal" })
|
|
3856
3858
|
] }),
|
|
3857
3859
|
/* @__PURE__ */ e("div", { className: "shrink-0 border-t border-border/60 bg-background text-[13px]", children: T ? /* @__PURE__ */ e(
|
|
3858
|
-
|
|
3860
|
+
Xc,
|
|
3859
3861
|
{
|
|
3860
3862
|
totalColumns: i.length,
|
|
3861
3863
|
pageCount: N === "server" && s ? s.pageCount : C.getPageCount(),
|
|
@@ -3909,7 +3911,7 @@ function Kp({ className: t }) {
|
|
|
3909
3911
|
"aggregateTable",
|
|
3910
3912
|
"pivotTable",
|
|
3911
3913
|
"detailTable"
|
|
3912
|
-
].includes(c), h =
|
|
3914
|
+
].includes(c), h = Qa(a.config), m = Zc(a, s.cards);
|
|
3913
3915
|
if (!d || !h || m)
|
|
3914
3916
|
return /* @__PURE__ */ e(
|
|
3915
3917
|
"div",
|
|
@@ -4505,7 +4507,7 @@ function qi({
|
|
|
4505
4507
|
) ?? r.type, [C, k, E, r, T == null ? void 0 : T.slots]), L = O ?? r.type, V = de(
|
|
4506
4508
|
() => L === r.type ? r : { ...r, type: L },
|
|
4507
4509
|
[r, L]
|
|
4508
|
-
), F = V.type === "table" || V.type === "matrixTable" || V.type === "pivotTable" || V.type === "aggregateTable" || V.type === "detailTable", x = de(() => O !== r.type ? { ...r, type: O } : r, [r, O]), { data: D, isLoading: A, isFetching: R, errorMessage: B, errorSql: z, pagination: _ } = Nt(x), q = L === "matrixTable" &&
|
|
4510
|
+
), F = V.type === "table" || V.type === "matrixTable" || V.type === "pivotTable" || V.type === "aggregateTable" || V.type === "detailTable", x = de(() => O !== r.type ? { ...r, type: O } : r, [r, O]), { data: D, isLoading: A, isFetching: R, errorMessage: B, errorSql: z, pagination: _ } = Nt(x), q = L === "matrixTable" && ed(D), H = td({
|
|
4509
4511
|
data: D,
|
|
4510
4512
|
isLoading: A,
|
|
4511
4513
|
isFetching: R
|
|
@@ -4541,7 +4543,7 @@ function qi({
|
|
|
4541
4543
|
D == null ? void 0 : D.subtotalColumns,
|
|
4542
4544
|
D == null ? void 0 : D.pivotSchema,
|
|
4543
4545
|
D == null ? void 0 : D.groupByColumns
|
|
4544
|
-
]), ge =
|
|
4546
|
+
]), ge = nd(
|
|
4545
4547
|
V,
|
|
4546
4548
|
dt
|
|
4547
4549
|
), Ue = () => {
|
|
@@ -4615,7 +4617,7 @@ function qi({
|
|
|
4615
4617
|
ye
|
|
4616
4618
|
]);
|
|
4617
4619
|
function Ae(ce) {
|
|
4618
|
-
return /* @__PURE__ */ e(Cs, { FallbackComponent: Mr, children: /* @__PURE__ */ e(
|
|
4620
|
+
return /* @__PURE__ */ e(Cs, { FallbackComponent: Mr, children: /* @__PURE__ */ e(pd, { card: ce }) });
|
|
4619
4621
|
}
|
|
4620
4622
|
function me() {
|
|
4621
4623
|
var ce;
|
|
@@ -4631,11 +4633,11 @@ function qi({
|
|
|
4631
4633
|
showFeedbackButton: !0
|
|
4632
4634
|
}
|
|
4633
4635
|
) }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
|
|
4634
|
-
/* @__PURE__ */ e(
|
|
4636
|
+
/* @__PURE__ */ e(od, { className: "size-8 text-muted-foreground" }),
|
|
4635
4637
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "No results to display" })
|
|
4636
4638
|
] });
|
|
4637
4639
|
if ((A || R) && (!(D != null && D.records) || D.records.length === 0) && !q)
|
|
4638
|
-
return L === "table" || L === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
4640
|
+
return L === "table" || L === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(id, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Ht, { size: "md", color: "muted", "aria-label": "Loading data" }) });
|
|
4639
4641
|
if (!V.id) return null;
|
|
4640
4642
|
if (L === "custom")
|
|
4641
4643
|
return Ae(r);
|
|
@@ -4648,7 +4650,7 @@ function qi({
|
|
|
4648
4650
|
"custom"
|
|
4649
4651
|
].includes(L) && fe)
|
|
4650
4652
|
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: A || R ? /* @__PURE__ */ e(De, {}) : /* @__PURE__ */ e(
|
|
4651
|
-
|
|
4653
|
+
cd,
|
|
4652
4654
|
{
|
|
4653
4655
|
cfg: fe
|
|
4654
4656
|
}
|
|
@@ -4669,7 +4671,7 @@ function qi({
|
|
|
4669
4671
|
) });
|
|
4670
4672
|
if (L === "matrixTable")
|
|
4671
4673
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
4672
|
-
|
|
4674
|
+
dd,
|
|
4673
4675
|
{
|
|
4674
4676
|
result: D == null ? void 0 : D.matrixResult,
|
|
4675
4677
|
isLoading: H
|
|
@@ -4677,7 +4679,7 @@ function qi({
|
|
|
4677
4679
|
) });
|
|
4678
4680
|
if (L === "pivotTable" && ge)
|
|
4679
4681
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
4680
|
-
|
|
4682
|
+
ud,
|
|
4681
4683
|
{
|
|
4682
4684
|
card: V,
|
|
4683
4685
|
data: ge.data,
|
|
@@ -4690,7 +4692,7 @@ function qi({
|
|
|
4690
4692
|
W(je), ue(je);
|
|
4691
4693
|
},
|
|
4692
4694
|
onAggregationLabelChange: (we) => {
|
|
4693
|
-
const Ve =
|
|
4695
|
+
const Ve = md(
|
|
4694
4696
|
we,
|
|
4695
4697
|
r.config
|
|
4696
4698
|
), je = { ...r, config: Ve };
|
|
@@ -4700,7 +4702,7 @@ function qi({
|
|
|
4700
4702
|
) });
|
|
4701
4703
|
if (L === "aggregateTable")
|
|
4702
4704
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
4703
|
-
|
|
4705
|
+
hd,
|
|
4704
4706
|
{
|
|
4705
4707
|
card: V,
|
|
4706
4708
|
data: (D == null ? void 0 : D.records) || [],
|
|
@@ -4735,7 +4737,7 @@ function qi({
|
|
|
4735
4737
|
children: [
|
|
4736
4738
|
(A || R) && (D == null ? void 0 : D.records) && D.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Ht, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
|
|
4737
4739
|
l && /* @__PURE__ */ n(
|
|
4738
|
-
|
|
4740
|
+
ad,
|
|
4739
4741
|
{
|
|
4740
4742
|
className: J(
|
|
4741
4743
|
"flex flex-row items-start justify-between gap-4 px-4 pb-3 pt-3"
|
|
@@ -4744,7 +4746,7 @@ function qi({
|
|
|
4744
4746
|
children: [
|
|
4745
4747
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1 space-y-1", children: [
|
|
4746
4748
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
4747
|
-
/* @__PURE__ */ e(
|
|
4749
|
+
/* @__PURE__ */ e(sd, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
|
|
4748
4750
|
Sa,
|
|
4749
4751
|
{
|
|
4750
4752
|
value: r.title,
|
|
@@ -4783,7 +4785,7 @@ function qi({
|
|
|
4783
4785
|
inputClassName: "text-sm"
|
|
4784
4786
|
}
|
|
4785
4787
|
) }),
|
|
4786
|
-
/* @__PURE__ */ e(
|
|
4788
|
+
/* @__PURE__ */ e(rd, { filter: y })
|
|
4787
4789
|
] })
|
|
4788
4790
|
]
|
|
4789
4791
|
}
|
|
@@ -4794,7 +4796,7 @@ function qi({
|
|
|
4794
4796
|
className: "px-4 pb-2",
|
|
4795
4797
|
style: c.cardGutterStyle,
|
|
4796
4798
|
children: /* @__PURE__ */ e(
|
|
4797
|
-
|
|
4799
|
+
ld,
|
|
4798
4800
|
{
|
|
4799
4801
|
card: r,
|
|
4800
4802
|
sheetId: p || "",
|
|
@@ -4868,8 +4870,8 @@ const Zs = ({
|
|
|
4868
4870
|
mergedConfig: s,
|
|
4869
4871
|
onConfigChange: r,
|
|
4870
4872
|
onCodeChange: c
|
|
4871
|
-
}) => /* @__PURE__ */ n(
|
|
4872
|
-
/* @__PURE__ */ n(
|
|
4873
|
+
}) => /* @__PURE__ */ n(Ga, { defaultValue: "final-config", className: "flex w-1/2 flex-col", children: [
|
|
4874
|
+
/* @__PURE__ */ n(Ha, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
|
|
4873
4875
|
/* @__PURE__ */ e(Yt, { value: "final-config", children: "Config" }),
|
|
4874
4876
|
/* @__PURE__ */ e(Yt, { value: "custom-config", children: "Changes" }),
|
|
4875
4877
|
/* @__PURE__ */ e(Yt, { value: "custom-code", children: "Custom Code" })
|
|
@@ -4968,7 +4970,7 @@ function Xp({
|
|
|
4968
4970
|
});
|
|
4969
4971
|
if (E) {
|
|
4970
4972
|
l(w(E)), m(((L = u.preferences) == null ? void 0 : L.customVisualCode) || "");
|
|
4971
|
-
const V =
|
|
4973
|
+
const V = gd(E, N);
|
|
4972
4974
|
d(w(V));
|
|
4973
4975
|
}
|
|
4974
4976
|
}, k = () => {
|
|
@@ -4976,7 +4978,7 @@ function Xp({
|
|
|
4976
4978
|
if (h && C(h), i) {
|
|
4977
4979
|
const E = JSON.parse(
|
|
4978
4980
|
i
|
|
4979
|
-
), O =
|
|
4981
|
+
), O = xd(
|
|
4980
4982
|
JSON.parse(o),
|
|
4981
4983
|
E
|
|
4982
4984
|
);
|
|
@@ -4987,7 +4989,7 @@ function Xp({
|
|
|
4987
4989
|
}
|
|
4988
4990
|
}, S = Object.keys(N || {}).length === 0;
|
|
4989
4991
|
return /* @__PURE__ */ n(On, { open: r, onOpenChange: c, children: [
|
|
4990
|
-
/* @__PURE__ */ e(
|
|
4992
|
+
/* @__PURE__ */ e(fd, { asChild: !0, children: t === "menu" ? /* @__PURE__ */ n(
|
|
4991
4993
|
Z,
|
|
4992
4994
|
{
|
|
4993
4995
|
variant: "ghost",
|
|
@@ -5093,7 +5095,7 @@ function tf({ isStarred: t, onClick: a, className: s }) {
|
|
|
5093
5095
|
),
|
|
5094
5096
|
"aria-label": t ? "Remove from favorites" : "Add to favorites",
|
|
5095
5097
|
children: /* @__PURE__ */ e(
|
|
5096
|
-
|
|
5098
|
+
bd,
|
|
5097
5099
|
{
|
|
5098
5100
|
className: J(
|
|
5099
5101
|
"h-3.5 w-3.5 transition-colors",
|
|
@@ -5270,7 +5272,7 @@ function Ki({ onChartSelect: t, onClose: a }) {
|
|
|
5270
5272
|
};
|
|
5271
5273
|
return /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
|
|
5272
5274
|
/* @__PURE__ */ n("div", { className: "mb-2 flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 focus-within:border-ring", children: [
|
|
5273
|
-
/* @__PURE__ */ e(
|
|
5275
|
+
/* @__PURE__ */ e(Rs, { className: "h-3 w-3 shrink-0 text-muted-foreground" }),
|
|
5274
5276
|
/* @__PURE__ */ e(
|
|
5275
5277
|
"input",
|
|
5276
5278
|
{
|
|
@@ -5497,27 +5499,27 @@ function rf({
|
|
|
5497
5499
|
] });
|
|
5498
5500
|
}
|
|
5499
5501
|
const Qn = {
|
|
5500
|
-
table:
|
|
5502
|
+
table: Ms,
|
|
5501
5503
|
matrixTable: fs,
|
|
5502
5504
|
bar: Ss,
|
|
5503
5505
|
line: ws,
|
|
5504
|
-
stackedBar:
|
|
5505
|
-
stackedLine:
|
|
5506
|
+
stackedBar: Od,
|
|
5507
|
+
stackedLine: Ad,
|
|
5506
5508
|
scatter: ri,
|
|
5507
|
-
bubble:
|
|
5508
|
-
pie:
|
|
5509
|
-
doughnut:
|
|
5510
|
-
kpi:
|
|
5509
|
+
bubble: Ed,
|
|
5510
|
+
pie: Id,
|
|
5511
|
+
doughnut: Dd,
|
|
5512
|
+
kpi: kd,
|
|
5511
5513
|
treemap: si,
|
|
5512
5514
|
bullet: ai,
|
|
5513
|
-
funnel:
|
|
5514
|
-
tornado:
|
|
5515
|
+
funnel: Td,
|
|
5516
|
+
tornado: Sd,
|
|
5515
5517
|
heatmap: fs,
|
|
5516
|
-
range:
|
|
5517
|
-
radar:
|
|
5518
|
-
polarArea:
|
|
5519
|
-
text:
|
|
5520
|
-
map:
|
|
5518
|
+
range: wd,
|
|
5519
|
+
radar: Cd,
|
|
5520
|
+
polarArea: Nd,
|
|
5521
|
+
text: yd,
|
|
5522
|
+
map: vd
|
|
5521
5523
|
}, Da = {
|
|
5522
5524
|
table: "Table",
|
|
5523
5525
|
matrixTable: "Matrix Table",
|
|
@@ -5984,13 +5986,13 @@ function Hr({
|
|
|
5984
5986
|
var z, _, q, H, Q, Y, ee;
|
|
5985
5987
|
const S = ((q = (_ = (z = o == null ? void 0 : o.dataSource) == null ? void 0 : z.selectedEntities) == null ? void 0 : _[0]) == null ? void 0 : q.database) || "", E = k.qualifiedFieldName || k.name;
|
|
5986
5988
|
if (g.find(
|
|
5987
|
-
(W) =>
|
|
5989
|
+
(W) => Fd(W, k)
|
|
5988
5990
|
))
|
|
5989
5991
|
return;
|
|
5990
|
-
const L = k.qualifiedFieldName ? k.qualifiedFieldName.split(".").slice(0, -1).join(".") : k.qualifiedEntityName || k.entityName, F =
|
|
5992
|
+
const L = k.qualifiedFieldName ? k.qualifiedFieldName.split(".").slice(0, -1).join(".") : k.qualifiedEntityName || k.entityName, F = Zm(k.name), x = Rd(k), D = Ld(o == null ? void 0 : o.dataSource, {
|
|
5991
5993
|
connectionId: l || ((H = o == null ? void 0 : o.dataSource) == null ? void 0 : H.connectionId),
|
|
5992
5994
|
connectionType: (Q = o == null ? void 0 : o.dataSource) == null ? void 0 : Q.connectionType
|
|
5993
|
-
}), A =
|
|
5995
|
+
}), A = Pd(x), R = !!(((Y = o == null ? void 0 : o.dataSource) == null ? void 0 : Y.mode) === "semanticDomain" && ((ee = D == null ? void 0 : D.selectedEntities) != null && ee.length || D != null && D.semanticDomainId)), B = {
|
|
5994
5996
|
id: An(),
|
|
5995
5997
|
column: E,
|
|
5996
5998
|
title: k.label || k.name,
|
|
@@ -6000,7 +6002,7 @@ function Hr({
|
|
|
6000
6002
|
qualifiedTableName: L,
|
|
6001
6003
|
connectionId: l || "",
|
|
6002
6004
|
operation: "in",
|
|
6003
|
-
sql: A || R ? "" :
|
|
6005
|
+
sql: A || R ? "" : Vd(
|
|
6004
6006
|
k.dataType,
|
|
6005
6007
|
L,
|
|
6006
6008
|
F
|
|
@@ -6034,7 +6036,7 @@ function Hr({
|
|
|
6034
6036
|
const L = E.find((F) => F.id === k);
|
|
6035
6037
|
if (!L)
|
|
6036
6038
|
return;
|
|
6037
|
-
const V =
|
|
6039
|
+
const V = eh(
|
|
6038
6040
|
L,
|
|
6039
6041
|
N
|
|
6040
6042
|
);
|
|
@@ -6112,7 +6114,7 @@ function Hr({
|
|
|
6112
6114
|
items: [],
|
|
6113
6115
|
strategy: Zn,
|
|
6114
6116
|
children: /* @__PURE__ */ e(
|
|
6115
|
-
|
|
6117
|
+
Md,
|
|
6116
6118
|
{
|
|
6117
6119
|
context: "inline-filter",
|
|
6118
6120
|
onFieldSelect: b,
|
|
@@ -6149,7 +6151,7 @@ function cf({
|
|
|
6149
6151
|
/* @__PURE__ */ e("span", { className: "truncate", title: t.column, children: t.title }),
|
|
6150
6152
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-0.5", children: [
|
|
6151
6153
|
/* @__PURE__ */ e(
|
|
6152
|
-
|
|
6154
|
+
Bd,
|
|
6153
6155
|
{
|
|
6154
6156
|
filter: t,
|
|
6155
6157
|
variant: "inline",
|
|
@@ -6235,10 +6237,10 @@ function pf({
|
|
|
6235
6237
|
...t.controls || []
|
|
6236
6238
|
], [d, h] = K(
|
|
6237
6239
|
{}
|
|
6238
|
-
), m =
|
|
6240
|
+
), m = _d({
|
|
6239
6241
|
sql: t.sql,
|
|
6240
6242
|
controlBindings: t.controlBindings
|
|
6241
|
-
}), p =
|
|
6243
|
+
}), p = th(t), f = new Set(
|
|
6242
6244
|
s.map((P) => ys(P.controlId, P.target))
|
|
6243
6245
|
), u = i.some(
|
|
6244
6246
|
(P) => Ti({
|
|
@@ -6357,7 +6359,7 @@ function pf({
|
|
|
6357
6359
|
s.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." }) : s.map((P, y) => {
|
|
6358
6360
|
const C = p[P.target] || [], w = i.find(
|
|
6359
6361
|
(x) => x.id === P.controlId
|
|
6360
|
-
), T = w ?
|
|
6362
|
+
), T = w ? nh(w) : null, k = (T == null ? void 0 : T.source.kind) === "manual" ? T.source.options : [], S = N(P.target), E = Array.from(
|
|
6361
6363
|
/* @__PURE__ */ new Set([
|
|
6362
6364
|
...k.map((x) => x.value),
|
|
6363
6365
|
...Object.keys(P.mapping)
|
|
@@ -6540,13 +6542,13 @@ function Wr({
|
|
|
6540
6542
|
}, [i == null ? void 0 : i.id, o, g]), Se(() => {
|
|
6541
6543
|
!o && g !== null && N(null);
|
|
6542
6544
|
}, [o, g]);
|
|
6543
|
-
const b = de(() => g ? (d == null ? void 0 : d.cards.find((F) => F.id === g)) || ((i == null ? void 0 : i.id) === g ? i : void 0) : i, [i, d == null ? void 0 : d.cards, g]), v = (b == null ? void 0 : b.controls) || [], I = b ?
|
|
6545
|
+
const b = de(() => g ? (d == null ? void 0 : d.cards.find((F) => F.id === g)) || ((i == null ? void 0 : i.id) === g ? i : void 0) : i, [i, d == null ? void 0 : d.cards, g]), v = (b == null ? void 0 : b.controls) || [], I = b ? ah(h, { excludeCardId: b.id }) : p.map((F) => F.id), P = ((b == null ? void 0 : b.controlBindings) || []).filter(
|
|
6544
6546
|
(F) => F.target !== "sql_param"
|
|
6545
|
-
), y =
|
|
6547
|
+
), y = zd({
|
|
6546
6548
|
card: b,
|
|
6547
6549
|
controls: v
|
|
6548
6550
|
}), C = {
|
|
6549
|
-
choices:
|
|
6551
|
+
choices: sh(b),
|
|
6550
6552
|
targetMap: Object.fromEntries(
|
|
6551
6553
|
(((L = b == null ? void 0 : b.config) == null ? void 0 : L.groupByColumns) || []).map((F) => [
|
|
6552
6554
|
F.id,
|
|
@@ -6554,7 +6556,7 @@ function Wr({
|
|
|
6554
6556
|
])
|
|
6555
6557
|
)
|
|
6556
6558
|
}, w = {
|
|
6557
|
-
choices:
|
|
6559
|
+
choices: rh(b),
|
|
6558
6560
|
targetMap: Object.fromEntries(
|
|
6559
6561
|
(((V = b == null ? void 0 : b.config) == null ? void 0 : V.metricColumns) || []).map((F) => [
|
|
6560
6562
|
F.id,
|
|
@@ -6580,7 +6582,7 @@ function Wr({
|
|
|
6580
6582
|
}) : b, A = {
|
|
6581
6583
|
...D,
|
|
6582
6584
|
controls: F,
|
|
6583
|
-
controlBindings:
|
|
6585
|
+
controlBindings: lh(
|
|
6584
6586
|
D.controlBindings,
|
|
6585
6587
|
F
|
|
6586
6588
|
)
|
|
@@ -6591,7 +6593,7 @@ function Wr({
|
|
|
6591
6593
|
return;
|
|
6592
6594
|
const x = {
|
|
6593
6595
|
...b,
|
|
6594
|
-
controlBindings:
|
|
6596
|
+
controlBindings: oh(
|
|
6595
6597
|
F,
|
|
6596
6598
|
b.controlBindings
|
|
6597
6599
|
)
|
|
@@ -6701,7 +6703,7 @@ function Wi({
|
|
|
6701
6703
|
var g, N;
|
|
6702
6704
|
return (N = (g = u.card) == null ? void 0 : g.preferences) == null ? void 0 : N.chartOptions;
|
|
6703
6705
|
}
|
|
6704
|
-
), i =
|
|
6706
|
+
), i = $d(l), { setChartGrid: d } = Ne();
|
|
6705
6707
|
function h() {
|
|
6706
6708
|
const u = ["xy", "none", "x", "y"], N = (u.indexOf(i) + 1) % u.length;
|
|
6707
6709
|
d(u[N]);
|
|
@@ -6738,8 +6740,8 @@ function Wi({
|
|
|
6738
6740
|
children: [
|
|
6739
6741
|
(i === "xy" || !i) && /* @__PURE__ */ e(fs, { className: "h-3.5 w-3.5" }),
|
|
6740
6742
|
i === "x" && /* @__PURE__ */ e(jr, { className: "h-3.5 w-3.5" }),
|
|
6741
|
-
i === "y" && /* @__PURE__ */ e(
|
|
6742
|
-
i === "none" && /* @__PURE__ */ e(
|
|
6743
|
+
i === "y" && /* @__PURE__ */ e(Ts, { className: "h-3.5 w-3.5" }),
|
|
6744
|
+
i === "none" && /* @__PURE__ */ e(qd, { className: "h-3.5 w-3.5" })
|
|
6743
6745
|
]
|
|
6744
6746
|
}
|
|
6745
6747
|
),
|
|
@@ -6789,7 +6791,7 @@ function gf({
|
|
|
6789
6791
|
const q = (s == null ? void 0 : s.id) === _;
|
|
6790
6792
|
if (!(T && q ? r.cards.length > 1 : w)) return;
|
|
6791
6793
|
let Q = r.cards.filter((ue) => ue.id !== _);
|
|
6792
|
-
b && !T && (Q =
|
|
6794
|
+
b && !T && (Q = Zd(Q));
|
|
6793
6795
|
const Y = Q[0], ee = {
|
|
6794
6796
|
...r,
|
|
6795
6797
|
cards: Q,
|
|
@@ -6846,7 +6848,7 @@ function gf({
|
|
|
6846
6848
|
g.slots,
|
|
6847
6849
|
Y
|
|
6848
6850
|
);
|
|
6849
|
-
ue && (q =
|
|
6851
|
+
ue && (q = eu(ue), H = ue.label || `Tab ${Y + 1}`, Q = ue.description || "");
|
|
6850
6852
|
}
|
|
6851
6853
|
const ee = {
|
|
6852
6854
|
dataSource: _.dataSource,
|
|
@@ -6868,7 +6870,7 @@ function gf({
|
|
|
6868
6870
|
],
|
|
6869
6871
|
...q === "text" ? {
|
|
6870
6872
|
textVisualOptions: {
|
|
6871
|
-
richContent:
|
|
6873
|
+
richContent: uh()
|
|
6872
6874
|
}
|
|
6873
6875
|
} : {}
|
|
6874
6876
|
},
|
|
@@ -6901,7 +6903,7 @@ function gf({
|
|
|
6901
6903
|
);
|
|
6902
6904
|
}
|
|
6903
6905
|
return /* @__PURE__ */ e(
|
|
6904
|
-
|
|
6906
|
+
Ha,
|
|
6905
6907
|
{
|
|
6906
6908
|
variant: "underline",
|
|
6907
6909
|
className: "group flex h-9 items-center justify-start gap-1 overflow-x-auto rounded-none border-b-0 border-t border-border bg-background px-4",
|
|
@@ -6954,7 +6956,7 @@ function gf({
|
|
|
6954
6956
|
/* @__PURE__ */ n(De, { children: [
|
|
6955
6957
|
x(r, _),
|
|
6956
6958
|
/* @__PURE__ */ e(
|
|
6957
|
-
|
|
6959
|
+
Qd,
|
|
6958
6960
|
{
|
|
6959
6961
|
enabled: r.activeCardId === _.id,
|
|
6960
6962
|
text: _.tabTitle || _.title,
|
|
@@ -6968,7 +6970,7 @@ function gf({
|
|
|
6968
6970
|
] })
|
|
6969
6971
|
),
|
|
6970
6972
|
!l && r.activeCardId === _.id && !ee && /* @__PURE__ */ e(
|
|
6971
|
-
|
|
6973
|
+
Jd,
|
|
6972
6974
|
{
|
|
6973
6975
|
className: "h-3 w-3 text-muted-foreground hover:text-foreground",
|
|
6974
6976
|
onClick: (ye) => {
|
|
@@ -7036,8 +7038,8 @@ function In({
|
|
|
7036
7038
|
initializeModeDrafts: g
|
|
7037
7039
|
} = Ne(), [N, b] = K({}), [v, I] = K(
|
|
7038
7040
|
() => /* @__PURE__ */ new Set()
|
|
7039
|
-
), { authToken: P } = bn(), y =
|
|
7040
|
-
() =>
|
|
7041
|
+
), { authToken: P } = bn(), y = ih(P == null ? void 0 : P.accessToken), { compiledAppearance: C } = ch(), w = de(
|
|
7042
|
+
() => jd(C),
|
|
7041
7043
|
[C]
|
|
7042
7044
|
), {
|
|
7043
7045
|
getCard: T,
|
|
@@ -7073,7 +7075,7 @@ function In({
|
|
|
7073
7075
|
queryConfig: void 0
|
|
7074
7076
|
} : R !== r.type ? { ...r, type: R } : r, [r, R, F]), { data: z, isLoading: _, isFetching: q, isError: H, errorMessage: Q, errorSql: Y } = Nt(B), { handleOpenInEditor: ee, handleDebugWithAssistant: W } = Kr(Q, Y || r.sql || r.python), ue = r.type === "text" && ((ut = (Ge = r.preferences) == null ? void 0 : Ge.textVisualOptions) == null ? void 0 : ut.isDynamicText) === !0 && !!Q, ye = Ee(
|
|
7075
7077
|
(pe, ce) => {
|
|
7076
|
-
const we =
|
|
7078
|
+
const we = Kd(ce);
|
|
7077
7079
|
b((Ve) => ({
|
|
7078
7080
|
...Ve,
|
|
7079
7081
|
[pe]: we
|
|
@@ -7088,7 +7090,7 @@ function In({
|
|
|
7088
7090
|
});
|
|
7089
7091
|
},
|
|
7090
7092
|
[]
|
|
7091
|
-
), Ce = v.size > 0, Pe =
|
|
7093
|
+
), Ce = v.size > 0, Pe = dh(
|
|
7092
7094
|
(pe) => pe.interactionStates
|
|
7093
7095
|
), tt = Ie((pe) => {
|
|
7094
7096
|
var ce;
|
|
@@ -7100,7 +7102,7 @@ function In({
|
|
|
7100
7102
|
), dt = M(
|
|
7101
7103
|
(pe) => pe.actions.removeCardInlineFilterValue
|
|
7102
7104
|
), ge = de(
|
|
7103
|
-
() => l ?
|
|
7105
|
+
() => l ? Ud({
|
|
7104
7106
|
card: l,
|
|
7105
7107
|
sheetId: Oe || "",
|
|
7106
7108
|
inlineFilterValues: Be,
|
|
@@ -7115,7 +7117,7 @@ function In({
|
|
|
7115
7117
|
dt
|
|
7116
7118
|
]
|
|
7117
7119
|
), { cardFilters: Ue, cardFilterValues: _e } = de(
|
|
7118
|
-
() => l ?
|
|
7120
|
+
() => l ? Gd({
|
|
7119
7121
|
card: l,
|
|
7120
7122
|
interactionStates: Pe,
|
|
7121
7123
|
currentDashboardId: tt,
|
|
@@ -7134,7 +7136,7 @@ function In({
|
|
|
7134
7136
|
);
|
|
7135
7137
|
function xe(pe) {
|
|
7136
7138
|
const ce = s.cards.find((we) => we.id === pe);
|
|
7137
|
-
ce && (
|
|
7139
|
+
ce && (Wa(), f(), U(pe), h(pe), u(), g(ce));
|
|
7138
7140
|
}
|
|
7139
7141
|
function U(pe) {
|
|
7140
7142
|
const ce = M.getState().card, we = M.getState().frame, Ve = {
|
|
@@ -7167,7 +7169,7 @@ function In({
|
|
|
7167
7169
|
L == null ? void 0 : L.slots
|
|
7168
7170
|
);
|
|
7169
7171
|
return /* @__PURE__ */ e(
|
|
7170
|
-
|
|
7172
|
+
Yd,
|
|
7171
7173
|
{
|
|
7172
7174
|
onLoadingStatus: he,
|
|
7173
7175
|
onDataChange: ye,
|
|
@@ -7193,7 +7195,7 @@ function In({
|
|
|
7193
7195
|
O,
|
|
7194
7196
|
{
|
|
7195
7197
|
editing: !0,
|
|
7196
|
-
...
|
|
7198
|
+
...Xd({
|
|
7197
7199
|
configCard: l,
|
|
7198
7200
|
slotOrderedCards: D,
|
|
7199
7201
|
slotTypes: ce,
|
|
@@ -7225,7 +7227,7 @@ function In({
|
|
|
7225
7227
|
isError: H
|
|
7226
7228
|
}) : r.type === "kpi" ? _ || q ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Ht, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ n("div", { className: "w-1/2 space-y-3", children: [
|
|
7227
7229
|
/* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
7228
|
-
|
|
7230
|
+
Hd,
|
|
7229
7231
|
{
|
|
7230
7232
|
card: r,
|
|
7231
7233
|
data: z == null ? void 0 : z.records,
|
|
@@ -7245,7 +7247,7 @@ function In({
|
|
|
7245
7247
|
showFeedbackButton: !1
|
|
7246
7248
|
}
|
|
7247
7249
|
) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(
|
|
7248
|
-
|
|
7250
|
+
Wd,
|
|
7249
7251
|
{
|
|
7250
7252
|
isLoading: i,
|
|
7251
7253
|
card: r,
|
|
@@ -7254,7 +7256,7 @@ function In({
|
|
|
7254
7256
|
) }) : /* @__PURE__ */ e(Cs, { FallbackComponent: Mr, children: /* @__PURE__ */ e(qi, { className: "grow border-none shadow-none" }) });
|
|
7255
7257
|
}
|
|
7256
7258
|
return /* @__PURE__ */ n(
|
|
7257
|
-
|
|
7259
|
+
Ga,
|
|
7258
7260
|
{
|
|
7259
7261
|
onValueChange: xe,
|
|
7260
7262
|
value: s.activeCardId,
|
|
@@ -7320,7 +7322,7 @@ function Qi({
|
|
|
7320
7322
|
() => so(h),
|
|
7321
7323
|
[h]
|
|
7322
7324
|
), g = de(
|
|
7323
|
-
() =>
|
|
7325
|
+
() => mh(u),
|
|
7324
7326
|
[u]
|
|
7325
7327
|
), N = !!d, b = de(
|
|
7326
7328
|
() => {
|
|
@@ -7431,8 +7433,8 @@ function Qi({
|
|
|
7431
7433
|
"Visual Code"
|
|
7432
7434
|
] }),
|
|
7433
7435
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
7434
|
-
/* @__PURE__ */ n(
|
|
7435
|
-
/* @__PURE__ */ e(
|
|
7436
|
+
/* @__PURE__ */ n(tu, { children: [
|
|
7437
|
+
/* @__PURE__ */ e(nu, { asChild: !0, children: /* @__PURE__ */ n(
|
|
7436
7438
|
Z,
|
|
7437
7439
|
{
|
|
7438
7440
|
type: "button",
|
|
@@ -7446,15 +7448,15 @@ function Qi({
|
|
|
7446
7448
|
]
|
|
7447
7449
|
}
|
|
7448
7450
|
) }),
|
|
7449
|
-
/* @__PURE__ */ n(
|
|
7450
|
-
/* @__PURE__ */ n(
|
|
7451
|
-
/* @__PURE__ */ e(
|
|
7452
|
-
/* @__PURE__ */ e(
|
|
7451
|
+
/* @__PURE__ */ n(au, { children: [
|
|
7452
|
+
/* @__PURE__ */ n(su, { children: [
|
|
7453
|
+
/* @__PURE__ */ e(ru, { children: "Clear dynamic visual?" }),
|
|
7454
|
+
/* @__PURE__ */ e(lu, { children: "This removes the saved dynamic renderer and switches the card back to built-in mode. The underlying query and built-in chart type will remain." })
|
|
7453
7455
|
] }),
|
|
7454
|
-
/* @__PURE__ */ n(
|
|
7455
|
-
/* @__PURE__ */ e(
|
|
7456
|
+
/* @__PURE__ */ n(ou, { children: [
|
|
7457
|
+
/* @__PURE__ */ e(iu, { children: "Cancel" }),
|
|
7456
7458
|
/* @__PURE__ */ e(
|
|
7457
|
-
|
|
7459
|
+
cu,
|
|
7458
7460
|
{
|
|
7459
7461
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
7460
7462
|
onClick: L,
|
|
@@ -7565,12 +7567,12 @@ function Ji({
|
|
|
7565
7567
|
const a = M((h) => h.card), s = M((h) => h.frame), r = M(
|
|
7566
7568
|
(h) => h.actions.setIsShowingVisual
|
|
7567
7569
|
), { setVisualizationMode: c, setDynamicCardPreferences: o } = Ne(), i = ia(a) === "dynamic";
|
|
7568
|
-
if (s.cards.length !== 1 ||
|
|
7570
|
+
if (s.cards.length !== 1 || hh(a))
|
|
7569
7571
|
return null;
|
|
7570
7572
|
const d = (h) => {
|
|
7571
7573
|
var m;
|
|
7572
7574
|
h === "dynamic" && !a.dynamicCardPreferences && o(
|
|
7573
|
-
|
|
7575
|
+
ph(
|
|
7574
7576
|
a.type,
|
|
7575
7577
|
(m = a.preferences) == null ? void 0 : m.displayOptions
|
|
7576
7578
|
)
|
|
@@ -7694,7 +7696,7 @@ function er({
|
|
|
7694
7696
|
var _e;
|
|
7695
7697
|
const o = Ns(), l = M((xe) => xe.frame), i = M((xe) => xe.card), d = M((xe) => xe.isDevMode), h = M((xe) => xe.editorContext), m = (h == null ? void 0 : h.type) === "documentSection", p = M((xe) => xe.isShowingVisual), f = M(
|
|
7696
7698
|
(xe) => xe.actions.setIsShowingVisual
|
|
7697
|
-
), u = Ie((xe) => xe.isVisualEditing), { isConsoleMode: g } =
|
|
7699
|
+
), u = Ie((xe) => xe.isVisualEditing), { isConsoleMode: g } = du(), N = M((xe) => xe.pythonStdOut), b = M((xe) => xe.actions.setRunSql), v = xt(), I = v === "table" || v === "detailTable" || v === "matrixTable", y = qr(v) && !!(a != null && a.onOpen), w = ia(i) === "dynamic", [T, k] = K(!1), S = r ?? T, E = c ?? k, {
|
|
7698
7700
|
setFrame: O,
|
|
7699
7701
|
setCard: L,
|
|
7700
7702
|
setActiveTabCardId: V,
|
|
@@ -7719,7 +7721,7 @@ function er({
|
|
|
7719
7721
|
const { handleDebugWithAssistant: he } = Kr(
|
|
7720
7722
|
Q,
|
|
7721
7723
|
Y
|
|
7722
|
-
), Ce = de(() => (_ == null ? void 0 : _.records) || [], [_ == null ? void 0 : _.records]), { cardFilterValues: Pe } =
|
|
7724
|
+
), Ce = de(() => (_ == null ? void 0 : _.records) || [], [_ == null ? void 0 : _.records]), { cardFilterValues: Pe } = uu(
|
|
7723
7725
|
(i == null ? void 0 : i.id) ?? ""
|
|
7724
7726
|
), [tt, Ye] = K(!1);
|
|
7725
7727
|
Se(() => {
|
|
@@ -7894,7 +7896,7 @@ function er({
|
|
|
7894
7896
|
className: "h-7 w-7 px-0",
|
|
7895
7897
|
onClick: () => {
|
|
7896
7898
|
if (Ye(!0), d) {
|
|
7897
|
-
|
|
7899
|
+
Wa(), setTimeout(() => {
|
|
7898
7900
|
o.removeQueries({
|
|
7899
7901
|
queryKey: ye.current,
|
|
7900
7902
|
exact: !0
|
|
@@ -8004,7 +8006,7 @@ function er({
|
|
|
8004
8006
|
onSelect: dt,
|
|
8005
8007
|
className: "gap-2 text-[13px]",
|
|
8006
8008
|
children: [
|
|
8007
|
-
/* @__PURE__ */ e(
|
|
8009
|
+
/* @__PURE__ */ e(mu, { className: "h-3.5 w-3.5" }),
|
|
8008
8010
|
"Download CSV"
|
|
8009
8011
|
]
|
|
8010
8012
|
}
|
|
@@ -8026,7 +8028,7 @@ function er({
|
|
|
8026
8028
|
onSelect: Be,
|
|
8027
8029
|
className: "gap-2 text-[13px]",
|
|
8028
8030
|
children: [
|
|
8029
|
-
/* @__PURE__ */ e(
|
|
8031
|
+
/* @__PURE__ */ e(hu, { className: "h-3.5 w-3.5" }),
|
|
8030
8032
|
"Copy JSON"
|
|
8031
8033
|
]
|
|
8032
8034
|
}
|
|
@@ -8149,10 +8151,10 @@ function vf() {
|
|
|
8149
8151
|
), o = de(
|
|
8150
8152
|
() => {
|
|
8151
8153
|
var N, b;
|
|
8152
|
-
return
|
|
8154
|
+
return pu((b = (N = t.preferences) == null ? void 0 : N.tablePrefs) == null ? void 0 : b.pageSize);
|
|
8153
8155
|
},
|
|
8154
8156
|
[(d = (i = t.preferences) == null ? void 0 : i.tablePrefs) == null ? void 0 : d.pageSize]
|
|
8155
|
-
), l =
|
|
8157
|
+
), l = fu(
|
|
8156
8158
|
(m = (h = t.preferences) == null ? void 0 : h.tablePrefs) == null ? void 0 : m.pageSize
|
|
8157
8159
|
);
|
|
8158
8160
|
return t.type !== "table" && t.type !== "detailTable" ? null : /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
@@ -8220,7 +8222,7 @@ function yf() {
|
|
|
8220
8222
|
"aria-label": "Toggle results",
|
|
8221
8223
|
className: "h-7 gap-1.5 rounded-[5px] border border-border/60 px-2.5 text-[12px] text-foreground/80 hover:bg-accent hover:text-accent-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
8222
8224
|
children: [
|
|
8223
|
-
/* @__PURE__ */ e(
|
|
8225
|
+
/* @__PURE__ */ e(Ms, { className: "h-3.5 w-3.5" }),
|
|
8224
8226
|
/* @__PURE__ */ e("span", { children: "Results" })
|
|
8225
8227
|
]
|
|
8226
8228
|
}
|
|
@@ -8318,7 +8320,7 @@ function tr(t) {
|
|
|
8318
8320
|
if (!t) return !1;
|
|
8319
8321
|
if (t.type === "text")
|
|
8320
8322
|
return !!((r = t.description) != null && r.trim());
|
|
8321
|
-
const a = !!((c = t.sql) != null && c.trim()), s =
|
|
8323
|
+
const a = !!((c = t.sql) != null && c.trim()), s = Qa(t.config);
|
|
8322
8324
|
return a || s;
|
|
8323
8325
|
}
|
|
8324
8326
|
function wf({
|
|
@@ -8399,7 +8401,7 @@ function Xi() {
|
|
|
8399
8401
|
var L, V, F;
|
|
8400
8402
|
const t = M(
|
|
8401
8403
|
(x) => x.card.customCardPreferences
|
|
8402
|
-
), { data: a } =
|
|
8404
|
+
), { data: a } = gu(), s = (a == null ? void 0 : a.plugins) || [], r = M((x) => x.card), c = M((x) => x.frame), { setCustomCardPreferences: o } = Ne(), l = de(
|
|
8403
8405
|
() => Bn(c, r),
|
|
8404
8406
|
[c, r]
|
|
8405
8407
|
), i = l == null ? void 0 : l.customCardPreferences, { components: d, manifest: h } = vn(
|
|
@@ -8617,7 +8619,7 @@ function Xi() {
|
|
|
8617
8619
|
] });
|
|
8618
8620
|
}
|
|
8619
8621
|
return /* @__PURE__ */ n(
|
|
8620
|
-
|
|
8622
|
+
ks,
|
|
8621
8623
|
{
|
|
8622
8624
|
type: "multiple",
|
|
8623
8625
|
defaultValue: ["component-settings"],
|
|
@@ -8700,9 +8702,9 @@ function Xi() {
|
|
|
8700
8702
|
m.docs.dataSchema && /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
8701
8703
|
/* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
|
|
8702
8704
|
/* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
|
|
8703
|
-
|
|
8705
|
+
xu,
|
|
8704
8706
|
{
|
|
8705
|
-
remarkPlugins: [
|
|
8707
|
+
remarkPlugins: [bu],
|
|
8706
8708
|
components: Sf,
|
|
8707
8709
|
children: m.docs.dataSchema
|
|
8708
8710
|
}
|
|
@@ -8823,7 +8825,7 @@ function kf() {
|
|
|
8823
8825
|
var m, p, f, u, g;
|
|
8824
8826
|
const t = M((N) => N.card.preferences), a = M(
|
|
8825
8827
|
(N) => N.actions.setCardPreferences
|
|
8826
|
-
), s = M((N) => N.card), r =
|
|
8828
|
+
), s = M((N) => N.card), r = Qa(s.config), c = M(
|
|
8827
8829
|
(N) => N.actions.setNumberFormat
|
|
8828
8830
|
);
|
|
8829
8831
|
M(
|
|
@@ -9299,7 +9301,7 @@ function If({
|
|
|
9299
9301
|
className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
|
|
9300
9302
|
children: [
|
|
9301
9303
|
"View documentation",
|
|
9302
|
-
/* @__PURE__ */ e(
|
|
9304
|
+
/* @__PURE__ */ e(vu, { className: "h-3 w-3" })
|
|
9303
9305
|
]
|
|
9304
9306
|
}
|
|
9305
9307
|
)
|
|
@@ -9358,7 +9360,7 @@ function Co({
|
|
|
9358
9360
|
children: [
|
|
9359
9361
|
/* @__PURE__ */ n("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
9360
9362
|
/* @__PURE__ */ e($, { children: a }),
|
|
9361
|
-
/* @__PURE__ */ e(
|
|
9363
|
+
/* @__PURE__ */ e(fh, { className: "h-4 w-4" })
|
|
9362
9364
|
] }),
|
|
9363
9365
|
/* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
|
|
9364
9366
|
]
|
|
@@ -10347,15 +10349,15 @@ function tc({
|
|
|
10347
10349
|
(he) => he.actions.setCardPreferences
|
|
10348
10350
|
), h = M(
|
|
10349
10351
|
(he) => he.actions.updateTableConditionalFormatting
|
|
10350
|
-
), m = ((H = c.config) == null ? void 0 : H.metricColumns) || [], p = t ?? c.type, f = a ?? o, u = c.type === p ? c : { ...c, type: p }, g =
|
|
10352
|
+
), m = ((H = c.config) == null ? void 0 : H.metricColumns) || [], p = t ?? c.type, f = a ?? o, u = c.type === p ? c : { ...c, type: p }, g = yu(
|
|
10351
10353
|
u,
|
|
10352
10354
|
f
|
|
10353
|
-
), N =
|
|
10355
|
+
), N = Nu(
|
|
10354
10356
|
u,
|
|
10355
10357
|
f
|
|
10356
|
-
), b =
|
|
10358
|
+
), b = ku(p), v = p === "table", I = p === "table", P = ((Q = g[0]) == null ? void 0 : Q.value) || "", y = Cu(
|
|
10357
10359
|
(Y = l == null ? void 0 : l.tablePrefs) == null ? void 0 : Y.conditionalFormatting
|
|
10358
|
-
), C =
|
|
10360
|
+
), C = wu(i), w = Su(u), T = Tu(u), [k, S] = K("style");
|
|
10359
10361
|
Se(() => {
|
|
10360
10362
|
if (s === "style") {
|
|
10361
10363
|
S("style");
|
|
@@ -10441,7 +10443,7 @@ function tc({
|
|
|
10441
10443
|
...l,
|
|
10442
10444
|
tablePrefs: {
|
|
10443
10445
|
...i,
|
|
10444
|
-
columnVisibility:
|
|
10446
|
+
columnVisibility: Au(
|
|
10445
10447
|
i == null ? void 0 : i.columnVisibility,
|
|
10446
10448
|
he,
|
|
10447
10449
|
Ce
|
|
@@ -10453,7 +10455,7 @@ function tc({
|
|
|
10453
10455
|
...l,
|
|
10454
10456
|
tablePrefs: {
|
|
10455
10457
|
...i,
|
|
10456
|
-
columnVisibility:
|
|
10458
|
+
columnVisibility: Ou()
|
|
10457
10459
|
}
|
|
10458
10460
|
});
|
|
10459
10461
|
}, _ = () => {
|
|
@@ -10491,13 +10493,13 @@ function tc({
|
|
|
10491
10493
|
}
|
|
10492
10494
|
) : null;
|
|
10493
10495
|
return /* @__PURE__ */ e("div", { className: "px-4 py-3", children: /* @__PURE__ */ n(
|
|
10494
|
-
|
|
10496
|
+
Ga,
|
|
10495
10497
|
{
|
|
10496
10498
|
value: k,
|
|
10497
10499
|
onValueChange: (he) => S(he),
|
|
10498
10500
|
className: "space-y-4",
|
|
10499
10501
|
children: [
|
|
10500
|
-
/* @__PURE__ */ n(
|
|
10502
|
+
/* @__PURE__ */ n(Ha, { variant: "underline", children: [
|
|
10501
10503
|
/* @__PURE__ */ e(Yt, { value: "style", children: "Appearance" }),
|
|
10502
10504
|
I ? /* @__PURE__ */ e(Yt, { value: "columns", children: "Columns" }) : null,
|
|
10503
10505
|
/* @__PURE__ */ e(
|
|
@@ -10510,7 +10512,7 @@ function tc({
|
|
|
10510
10512
|
)
|
|
10511
10513
|
] }),
|
|
10512
10514
|
/* @__PURE__ */ e(En, { value: "style", className: "mt-0", children: /* @__PURE__ */ e(
|
|
10513
|
-
|
|
10515
|
+
Du,
|
|
10514
10516
|
{
|
|
10515
10517
|
style: C,
|
|
10516
10518
|
onDensityChange: x,
|
|
@@ -10527,7 +10529,7 @@ function tc({
|
|
|
10527
10529
|
}
|
|
10528
10530
|
) }),
|
|
10529
10531
|
/* @__PURE__ */ e(En, { value: "columns", className: "mt-0", children: I ? /* @__PURE__ */ e(
|
|
10530
|
-
|
|
10532
|
+
Iu,
|
|
10531
10533
|
{
|
|
10532
10534
|
columns: N,
|
|
10533
10535
|
columnVisibility: i == null ? void 0 : i.columnVisibility,
|
|
@@ -10536,7 +10538,7 @@ function tc({
|
|
|
10536
10538
|
}
|
|
10537
10539
|
) : /* @__PURE__ */ e("p", { className: "py-6 text-center text-[12px] text-muted-foreground", children: "Column visibility is available for table cards." }) }),
|
|
10538
10540
|
/* @__PURE__ */ e(En, { value: "conditional-formatting", className: "mt-0", children: b ? P ? /* @__PURE__ */ e(
|
|
10539
|
-
|
|
10541
|
+
Eu,
|
|
10540
10542
|
{
|
|
10541
10543
|
columnId: P,
|
|
10542
10544
|
availableColumns: g,
|
|
@@ -10701,7 +10703,7 @@ function Gf() {
|
|
|
10701
10703
|
}
|
|
10702
10704
|
});
|
|
10703
10705
|
}
|
|
10704
|
-
return /* @__PURE__ */ e(
|
|
10706
|
+
return /* @__PURE__ */ e(Ga, { value: s, onValueChange: r, children: /* @__PURE__ */ n(Ha, { variant: "underline", children: [
|
|
10705
10707
|
/* @__PURE__ */ e(Yt, { value: "static", children: "Static" }),
|
|
10706
10708
|
/* @__PURE__ */ e(Yt, { value: "dynamic", children: "Dynamic" })
|
|
10707
10709
|
] }) });
|
|
@@ -10975,7 +10977,7 @@ function Xf() {
|
|
|
10975
10977
|
(w = t == null ? void 0 : t.config) == null ? void 0 : w.pivotByColumns,
|
|
10976
10978
|
(T = t == null ? void 0 : t.config) == null ? void 0 : T.metricColumns,
|
|
10977
10979
|
s
|
|
10978
|
-
]), g = de(() =>
|
|
10980
|
+
]), g = de(() => Mu(), []);
|
|
10979
10981
|
Se(() => {
|
|
10980
10982
|
const x = {};
|
|
10981
10983
|
u.forEach((D, A) => {
|
|
@@ -11060,7 +11062,7 @@ function Xf() {
|
|
|
11060
11062
|
}
|
|
11061
11063
|
) }) }),
|
|
11062
11064
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: u.map((x, D) => {
|
|
11063
|
-
const A =
|
|
11065
|
+
const A = Fu(i[x], D), R = !A;
|
|
11064
11066
|
return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
11065
11067
|
/* @__PURE__ */ n(
|
|
11066
11068
|
Ot,
|
|
@@ -11237,7 +11239,7 @@ function zt({
|
|
|
11237
11239
|
}
|
|
11238
11240
|
function rr({ axis: t, label: a, type: s, config: r, onChange: c, defaultTitle: o, hidePosition: l }) {
|
|
11239
11241
|
var g, N, b, v, I, P, y, C, w, T, k, S, E, O;
|
|
11240
|
-
const i =
|
|
11242
|
+
const i = Lu({
|
|
11241
11243
|
formatMode: r == null ? void 0 : r.formatMode,
|
|
11242
11244
|
formatOptions: r == null ? void 0 : r.formatOptions
|
|
11243
11245
|
}), d = (L, V) => {
|
|
@@ -11505,7 +11507,7 @@ function Zf() {
|
|
|
11505
11507
|
}), { setCardPreferences: s, updateCardInFrame: r } = Ne(), c = xt();
|
|
11506
11508
|
if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(c))
|
|
11507
11509
|
return null;
|
|
11508
|
-
const o =
|
|
11510
|
+
const o = Ru.getAxisInfo(
|
|
11509
11511
|
c,
|
|
11510
11512
|
a
|
|
11511
11513
|
);
|
|
@@ -11530,7 +11532,7 @@ function Zf() {
|
|
|
11530
11532
|
/* @__PURE__ */ e(Vn, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11531
11533
|
/* @__PURE__ */ e("span", { children: "Axes" })
|
|
11532
11534
|
] }) }),
|
|
11533
|
-
/* @__PURE__ */ e(lt, { className: "pt-2", children: /* @__PURE__ */ n(
|
|
11535
|
+
/* @__PURE__ */ e(lt, { className: "pt-2", children: /* @__PURE__ */ n(ks, { type: "single", collapsible: !0, className: "w-full", children: [
|
|
11534
11536
|
o.hasXAxis && /* @__PURE__ */ e(
|
|
11535
11537
|
rr,
|
|
11536
11538
|
{
|
|
@@ -11584,9 +11586,9 @@ function eg() {
|
|
|
11584
11586
|
return (N = (g = (u = (f = p.card) == null ? void 0 : f.preferences) == null ? void 0 : u.chartOptions) == null ? void 0 : g.plugins) == null ? void 0 : N.legend;
|
|
11585
11587
|
}
|
|
11586
11588
|
), { setLegendOptions: r } = Ne();
|
|
11587
|
-
if (!t || !
|
|
11589
|
+
if (!t || !Pu(a))
|
|
11588
11590
|
return null;
|
|
11589
|
-
const c =
|
|
11591
|
+
const c = Vu(a), o = (c == null ? void 0 : c.display) ?? !0, l = (c == null ? void 0 : c.position) ?? "top", i = (c == null ? void 0 : c.align) ?? "center", d = (p, f) => {
|
|
11590
11592
|
const u = {
|
|
11591
11593
|
...s,
|
|
11592
11594
|
[p]: f
|
|
@@ -11654,9 +11656,9 @@ function tg() {
|
|
|
11654
11656
|
var _;
|
|
11655
11657
|
return (_ = z.card) == null ? void 0 : _.preferences;
|
|
11656
11658
|
}), { setCardPreferences: c, updateCardInFrame: o } = Ne();
|
|
11657
|
-
if (!t || !
|
|
11659
|
+
if (!t || !Bu(a))
|
|
11658
11660
|
return null;
|
|
11659
|
-
const l = a === "bullet" ? ((V = r == null ? void 0 : r.bulletConfig) == null ? void 0 : V.orientation) ?? (((F = r == null ? void 0 : r.chartOptions) == null ? void 0 : F.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, i = l != null ? l === "horizontal" : ((x = r == null ? void 0 : r.chartOptions) == null ? void 0 : x.indexAxis) === "y", d = a === "stackedBar" || a === "stackedLine", h = a === "pie" || a === "doughnut" || a === "polarArea" || a === "funnel", m = a === "bubble" || a === "scatter", p = (A = (D = r == null ? void 0 : r.chartOptions) == null ? void 0 : D.plugins) == null ? void 0 : A.datalabels, f = (p == null ? void 0 : p.display) !== !1 && ((p == null ? void 0 : p.anchor) || (p == null ? void 0 : p.align)), u =
|
|
11661
|
+
const l = a === "bullet" ? ((V = r == null ? void 0 : r.bulletConfig) == null ? void 0 : V.orientation) ?? (((F = r == null ? void 0 : r.chartOptions) == null ? void 0 : F.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, i = l != null ? l === "horizontal" : ((x = r == null ? void 0 : r.chartOptions) == null ? void 0 : x.indexAxis) === "y", d = a === "stackedBar" || a === "stackedLine", h = a === "pie" || a === "doughnut" || a === "polarArea" || a === "funnel", m = a === "bubble" || a === "scatter", p = (A = (D = r == null ? void 0 : r.chartOptions) == null ? void 0 : D.plugins) == null ? void 0 : A.datalabels, f = (p == null ? void 0 : p.display) !== !1 && ((p == null ? void 0 : p.anchor) || (p == null ? void 0 : p.align)), u = _u(
|
|
11660
11662
|
a,
|
|
11661
11663
|
t.preferences
|
|
11662
11664
|
), g = s ?? u, N = (u == null ? void 0 : u.enabled) ?? f ?? !1, b = (s == null ? void 0 : s.enabled) !== void 0 ? s.enabled : N, v = (z, _) => {
|
|
@@ -12519,7 +12521,7 @@ function og() {
|
|
|
12519
12521
|
const t = M((x) => x.card.preferences), a = M((x) => x.card), s = M((x) => x.isDevMode), { setCardPreferences: r, setChartOrientation: c } = Ne(), o = de(
|
|
12520
12522
|
() => (t == null ? void 0 : t.bulletConfig) || {},
|
|
12521
12523
|
[t == null ? void 0 : t.bulletConfig]
|
|
12522
|
-
), i =
|
|
12524
|
+
), i = Qa(a == null ? void 0 : a.config) && !s, [d, h] = K(
|
|
12523
12525
|
o.showRanges ?? !1
|
|
12524
12526
|
), [m, p] = K(
|
|
12525
12527
|
o.rangesArePercentages ?? !1
|
|
@@ -12895,7 +12897,7 @@ function ig() {
|
|
|
12895
12897
|
const t = M((A) => A.card.preferences), a = M((A) => A.card), s = xt(), r = M((A) => A.isDevMode), { setCardPreferences: c, updateCardInFrame: o } = Ne(), l = s === "bubble", i = s === "scatter", d = de(
|
|
12896
12898
|
() => (t == null ? void 0 : t.bubbleScatterConfig) || {},
|
|
12897
12899
|
[t == null ? void 0 : t.bubbleScatterConfig]
|
|
12898
|
-
), m =
|
|
12900
|
+
), m = Qa(a == null ? void 0 : a.config) && !r, p = de(() => {
|
|
12899
12901
|
var A, R;
|
|
12900
12902
|
return ((R = (A = a == null ? void 0 : a.config) == null ? void 0 : A.metricColumns) == null ? void 0 : R.map((B) => {
|
|
12901
12903
|
const z = B.label || B.name || B.alias || "";
|
|
@@ -12960,7 +12962,7 @@ function ig() {
|
|
|
12960
12962
|
};
|
|
12961
12963
|
return !l && !i ? null : /* @__PURE__ */ n(st, { value: "bubble-scatter-config", children: [
|
|
12962
12964
|
/* @__PURE__ */ e(rt, { 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: [
|
|
12963
|
-
/* @__PURE__ */ e(l ?
|
|
12965
|
+
/* @__PURE__ */ e(l ? zu : ri, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
12964
12966
|
/* @__PURE__ */ n("span", { children: [
|
|
12965
12967
|
l ? "Bubble" : "Scatter",
|
|
12966
12968
|
" Configuration"
|
|
@@ -13397,10 +13399,10 @@ function dg() {
|
|
|
13397
13399
|
] }) : null;
|
|
13398
13400
|
}
|
|
13399
13401
|
function Ps() {
|
|
13400
|
-
const t = M((o) => o.card), { data: a } = Nt(t), { keys: s } = hr((a == null ? void 0 : a.records) || []), r = s.slice(1).filter((o) => !
|
|
13402
|
+
const t = M((o) => o.card), { data: a } = Nt(t), { keys: s } = hr((a == null ? void 0 : a.records) || []), r = s.slice(1).filter((o) => !gh.includes(o));
|
|
13401
13403
|
let c = r;
|
|
13402
13404
|
if (["stackedBar", "stackedLine"].includes(t.type)) {
|
|
13403
|
-
const o =
|
|
13405
|
+
const o = $u({
|
|
13404
13406
|
dataArray: (a == null ? void 0 : a.records) || [],
|
|
13405
13407
|
groupKey: s[0],
|
|
13406
13408
|
pivotKey: s[1],
|
|
@@ -14279,7 +14281,7 @@ function Fg({ metricKey: t, idx: a }) {
|
|
|
14279
14281
|
"border border-border bg-background text-muted-foreground"
|
|
14280
14282
|
),
|
|
14281
14283
|
children: [
|
|
14282
|
-
/* @__PURE__ */ e(
|
|
14284
|
+
/* @__PURE__ */ e(qu, { className: "h-3 w-3" }),
|
|
14283
14285
|
f.label.split(" ")[0]
|
|
14284
14286
|
]
|
|
14285
14287
|
}
|
|
@@ -14803,7 +14805,7 @@ function Jg() {
|
|
|
14803
14805
|
return /* @__PURE__ */ n(st, { value: "summary", className: "border-none", children: [
|
|
14804
14806
|
/* @__PURE__ */ n(rt, { className: "flex items-center gap-2 py-2 text-[12px] hover:no-underline [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", children: [
|
|
14805
14807
|
/* @__PURE__ */ n("div", { className: "flex flex-1 items-center gap-2", children: [
|
|
14806
|
-
/* @__PURE__ */ e(
|
|
14808
|
+
/* @__PURE__ */ e(ju, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
14807
14809
|
/* @__PURE__ */ e("span", { children: "Summary" })
|
|
14808
14810
|
] }),
|
|
14809
14811
|
/* @__PURE__ */ e(
|
|
@@ -15032,7 +15034,7 @@ function Zg() {
|
|
|
15032
15034
|
const t = M((s) => s.card), a = t == null ? void 0 : t.type;
|
|
15033
15035
|
return a ? /* @__PURE__ */ n("div", { className: "space-y-4 px-6 py-4", children: [
|
|
15034
15036
|
/* @__PURE__ */ e(Qr, { chartType: a }),
|
|
15035
|
-
/* @__PURE__ */ e(
|
|
15037
|
+
/* @__PURE__ */ e(ks, { type: "single", collapsible: !0, className: "w-full px-2", children: /* @__PURE__ */ e(nc, { mode: "dev" }) })
|
|
15036
15038
|
] }) : null;
|
|
15037
15039
|
}
|
|
15038
15040
|
function ex({
|
|
@@ -15043,7 +15045,7 @@ function ex({
|
|
|
15043
15045
|
if (ia(s) === "dynamic")
|
|
15044
15046
|
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ n(oi, { children: [
|
|
15045
15047
|
/* @__PURE__ */ e(Xt, { className: "h-4 w-4" }),
|
|
15046
|
-
/* @__PURE__ */ e(
|
|
15048
|
+
/* @__PURE__ */ e(Ku, { children: "Dynamic mode manages presentation" }),
|
|
15047
15049
|
/* @__PURE__ */ e(ii, { children: "Built-in chart settings are hidden while this card is in dynamic mode. Query and data edits still apply, and the dynamic visual editor in the main panel controls the rendered output." })
|
|
15048
15050
|
] }) });
|
|
15049
15051
|
function o() {
|
|
@@ -15188,7 +15190,7 @@ function nx(t) {
|
|
|
15188
15190
|
errorMessage: S,
|
|
15189
15191
|
refetch: E,
|
|
15190
15192
|
data: O
|
|
15191
|
-
} = Nt(P), { setTriggerAIRun: L, setCurrentAssitantScope: V, setCardConfig: F } = Ne(), { selectedDatamodelName: x, connectionType: D, selectedDatamodelId: A } =
|
|
15193
|
+
} = Nt(P), { setTriggerAIRun: L, setCurrentAssitantScope: V, setCardConfig: F } = Ne(), { selectedDatamodelName: x, connectionType: D, selectedDatamodelId: A } = Uu(), R = (xe = Vo().data) == null ? void 0 : xe.assistantProfileId, B = Me(as()), z = Me(null), _ = Me(i), q = Me(!1), H = () => {
|
|
15192
15194
|
const U = z.current;
|
|
15193
15195
|
U && (z.current = null, B.current = as(), U === "clear" && Y([]));
|
|
15194
15196
|
}, {
|
|
@@ -15214,7 +15216,7 @@ function nx(t) {
|
|
|
15214
15216
|
assistantId: "editor-assistant",
|
|
15215
15217
|
assistantProfileId: R,
|
|
15216
15218
|
conversationId: B.current,
|
|
15217
|
-
assistantRequestId:
|
|
15219
|
+
assistantRequestId: Gu(),
|
|
15218
15220
|
isDevMode: h,
|
|
15219
15221
|
aiContext: U.currentAIContext,
|
|
15220
15222
|
reasoningEffort: U.reasoningEffort,
|
|
@@ -15368,11 +15370,11 @@ function nx(t) {
|
|
|
15368
15370
|
s("Analyzing...");
|
|
15369
15371
|
}
|
|
15370
15372
|
function Be(U) {
|
|
15371
|
-
const fe =
|
|
15373
|
+
const fe = Wu(b, U);
|
|
15372
15374
|
nt(fe);
|
|
15373
15375
|
}
|
|
15374
15376
|
function nt(U) {
|
|
15375
|
-
const fe =
|
|
15377
|
+
const fe = Ju(U);
|
|
15376
15378
|
V(fe), Y((Ae) => [
|
|
15377
15379
|
...Ae,
|
|
15378
15380
|
{
|
|
@@ -15411,7 +15413,7 @@ function nx(t) {
|
|
|
15411
15413
|
connectionType: D || "",
|
|
15412
15414
|
datamodelId: A || ""
|
|
15413
15415
|
};
|
|
15414
|
-
if (!
|
|
15416
|
+
if (!Qu(
|
|
15415
15417
|
[...k || [], ...b],
|
|
15416
15418
|
U
|
|
15417
15419
|
) || b.length === 0) {
|
|
@@ -15425,7 +15427,7 @@ function nx(t) {
|
|
|
15425
15427
|
nt(Ae);
|
|
15426
15428
|
}
|
|
15427
15429
|
}
|
|
15428
|
-
const Ue = !["ready", "error"].includes(ye), _e =
|
|
15430
|
+
const Ue = !["ready", "error"].includes(ye), _e = Hu(W);
|
|
15429
15431
|
return {
|
|
15430
15432
|
messages: Q,
|
|
15431
15433
|
setMessages: le,
|
|
@@ -15461,14 +15463,14 @@ function Eo({
|
|
|
15461
15463
|
onFullscreenChange: a,
|
|
15462
15464
|
fullscreenContainer: s
|
|
15463
15465
|
}) {
|
|
15464
|
-
const r = Me(null), c = Me(!1), [o, l] = K(!1), [i, d] = K(
|
|
15466
|
+
const r = Me(null), c = Me(!1), [o, l] = K(!1), [i, d] = K(xh), [h, m] = K(!1), [p, f] = K(!1), [u, g] = K(!1), [N, b] = K(0), v = t ?? u, I = bh(), { setCurrentAIContext: P, setHasEditorEntitySelectionOverride: y } = _r(), { clearQueue: C } = vh(), { clearFileAttachments: w } = yh(), T = Nh("editor"), { selectedEntities: k } = Mo("editor"), S = M((me) => me.card.id), E = M((me) => me.card.dataSource), O = M(
|
|
15465
15467
|
(me) => {
|
|
15466
15468
|
var be;
|
|
15467
15469
|
return (be = me.card.dataSource) == null ? void 0 : be.selectedEntities;
|
|
15468
15470
|
}
|
|
15469
15471
|
), L = M((me) => me.actions.setCardSql), V = M((me) => me.actions.setRunSql), F = M((me) => me.showAIDialog), x = Ie(
|
|
15470
15472
|
(me) => me.handleOpenAssistantProfile
|
|
15471
|
-
), { setShowAIDialog: D, setCardPython: A } = Ne(), { assistantProfile: R } =
|
|
15473
|
+
), { setShowAIDialog: D, setCardPython: A } = Ne(), { assistantProfile: R } = Yu(), {
|
|
15472
15474
|
messages: B,
|
|
15473
15475
|
setMessages: z,
|
|
15474
15476
|
sendMessage: _,
|
|
@@ -15510,13 +15512,13 @@ function Eo({
|
|
|
15510
15512
|
P,
|
|
15511
15513
|
y,
|
|
15512
15514
|
F
|
|
15513
|
-
]),
|
|
15515
|
+
]), Xu({
|
|
15514
15516
|
assistantType: "editor",
|
|
15515
15517
|
status: Q,
|
|
15516
15518
|
isLoading: q,
|
|
15517
15519
|
sendMessage: _
|
|
15518
15520
|
});
|
|
15519
|
-
const { hasActiveTools: tt, activeToolText: Ye } =
|
|
15521
|
+
const { hasActiveTools: tt, activeToolText: Ye } = Zu(B), le = Ee(
|
|
15520
15522
|
(me) => {
|
|
15521
15523
|
a == null || a(me), t === void 0 && g(me);
|
|
15522
15524
|
},
|
|
@@ -15663,7 +15665,7 @@ function Eo({
|
|
|
15663
15665
|
tooltip: v ? "Exit Fullscreen" : "Expand",
|
|
15664
15666
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
15665
15667
|
onClick: nt,
|
|
15666
|
-
children: v ? /* @__PURE__ */ e(
|
|
15668
|
+
children: v ? /* @__PURE__ */ e(Mh, { className: "size-4" }) : /* @__PURE__ */ e(Fh, { className: "size-4" })
|
|
15667
15669
|
}
|
|
15668
15670
|
),
|
|
15669
15671
|
/* @__PURE__ */ e(
|
|
@@ -15694,7 +15696,7 @@ function Eo({
|
|
|
15694
15696
|
}
|
|
15695
15697
|
),
|
|
15696
15698
|
/* @__PURE__ */ e(
|
|
15697
|
-
|
|
15699
|
+
em,
|
|
15698
15700
|
{
|
|
15699
15701
|
messages: B,
|
|
15700
15702
|
showTools: i,
|
|
@@ -15713,23 +15715,23 @@ function Eo({
|
|
|
15713
15715
|
/* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
15714
15716
|
/* @__PURE__ */ n("div", { children: [
|
|
15715
15717
|
fe && !R && /* @__PURE__ */ e(
|
|
15716
|
-
|
|
15718
|
+
tm,
|
|
15717
15719
|
{
|
|
15718
15720
|
onClick: Ue,
|
|
15719
15721
|
placeholders: ax
|
|
15720
15722
|
}
|
|
15721
15723
|
),
|
|
15722
15724
|
/* @__PURE__ */ e("div", { children: fe && R && /* @__PURE__ */ e(
|
|
15723
|
-
|
|
15725
|
+
nm,
|
|
15724
15726
|
{
|
|
15725
15727
|
seedQuestions: R.seedQuestions || [],
|
|
15726
15728
|
handleSeedQuestionClick: _e
|
|
15727
15729
|
}
|
|
15728
15730
|
) })
|
|
15729
15731
|
] }),
|
|
15730
|
-
/* @__PURE__ */ e(
|
|
15732
|
+
/* @__PURE__ */ e(am, { assistantType: "editor", className: "mb-3" }),
|
|
15731
15733
|
/* @__PURE__ */ e(
|
|
15732
|
-
|
|
15734
|
+
sm,
|
|
15733
15735
|
{
|
|
15734
15736
|
ref: r,
|
|
15735
15737
|
setInput: ye,
|
|
@@ -15763,7 +15765,7 @@ function Eo({
|
|
|
15763
15765
|
incomingSelectedEntities: k,
|
|
15764
15766
|
open: p,
|
|
15765
15767
|
onOpenChange: f,
|
|
15766
|
-
dataSource: E ||
|
|
15768
|
+
dataSource: E || rm,
|
|
15767
15769
|
dialogMode: "aiContext",
|
|
15768
15770
|
onSaveSelectedEntities: (me) => {
|
|
15769
15771
|
y(!0), P({
|
|
@@ -15777,7 +15779,7 @@ function Eo({
|
|
|
15777
15779
|
}
|
|
15778
15780
|
);
|
|
15779
15781
|
return v && s ? Vh(
|
|
15780
|
-
/* @__PURE__ */ e(
|
|
15782
|
+
/* @__PURE__ */ e(lm, { className: "pointer-events-auto absolute inset-0 z-50 flex bg-background px-6 pb-6 pt-[calc(var(--app-header-height,15px)+1rem)]", children: /* @__PURE__ */ e("div", { className: "flex h-full w-full", children: Ae }) }),
|
|
15781
15783
|
s
|
|
15782
15784
|
) : Ae;
|
|
15783
15785
|
}
|
|
@@ -15786,7 +15788,7 @@ function ac(t, a, s) {
|
|
|
15786
15788
|
const r = a.qualifiedFieldName, c = a.qualifiedEntityName, o = c && a.name ? `${c}.${a.name}` : r;
|
|
15787
15789
|
return t.some((l) => {
|
|
15788
15790
|
if (!(at(l.dataType || "") === "date")) return !1;
|
|
15789
|
-
const d =
|
|
15791
|
+
const d = om(l, s), h = d.split("."), m = h[h.length - 1] || d, p = h.length > 1 ? h.slice(0, -1).join(".") : void 0, f = l.qualifiedTableName || p, u = f ? `${f}.${m}` : void 0;
|
|
15790
15792
|
return r ? u ? u === o || u.endsWith(`.${r}`) : m === a.name : u ? u === o : m === a.name;
|
|
15791
15793
|
});
|
|
15792
15794
|
}
|
|
@@ -15813,7 +15815,7 @@ function sx({
|
|
|
15813
15815
|
filters: [],
|
|
15814
15816
|
controls: []
|
|
15815
15817
|
};
|
|
15816
|
-
return
|
|
15818
|
+
return im({
|
|
15817
15819
|
dashboard: d,
|
|
15818
15820
|
sheetId: c,
|
|
15819
15821
|
card: o,
|
|
@@ -16026,7 +16028,7 @@ function ox({ idx: t }) {
|
|
|
16026
16028
|
(d) => d.actions.setCardPreferences
|
|
16027
16029
|
), c = (i = a == null ? void 0 : a.chartOptions) == null ? void 0 : i.indexAxis, o = s == null ? void 0 : s.find((d) => d.idx === t);
|
|
16028
16030
|
function l(d, h) {
|
|
16029
|
-
(d === "end" || d === "start") &&
|
|
16031
|
+
(d === "end" || d === "start") && Ch(wh());
|
|
16030
16032
|
const m = {
|
|
16031
16033
|
display: d !== "none",
|
|
16032
16034
|
align: d,
|
|
@@ -16363,7 +16365,7 @@ function mx({
|
|
|
16363
16365
|
connection_id: l.connectionId,
|
|
16364
16366
|
cardConfig: h,
|
|
16365
16367
|
cardDataSource: l,
|
|
16366
|
-
cache_config:
|
|
16368
|
+
cache_config: Sh({ card: o })
|
|
16367
16369
|
};
|
|
16368
16370
|
console.log("requestBody", m);
|
|
16369
16371
|
const p = await zr(
|
|
@@ -16509,7 +16511,7 @@ function sc({
|
|
|
16509
16511
|
] }),
|
|
16510
16512
|
i === "fields" && !l ? /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
16511
16513
|
/* @__PURE__ */ n("div", { className: "flex h-7 items-center gap-1.5 rounded-[5px] border border-border bg-background px-2 focus-within:border-ring", children: [
|
|
16512
|
-
/* @__PURE__ */ e(
|
|
16514
|
+
/* @__PURE__ */ e(Rs, { className: "h-3 w-3 shrink-0 text-muted-foreground" }),
|
|
16513
16515
|
/* @__PURE__ */ e(
|
|
16514
16516
|
"input",
|
|
16515
16517
|
{
|
|
@@ -16538,7 +16540,7 @@ function sc({
|
|
|
16538
16540
|
onClick: () => g(C),
|
|
16539
16541
|
className: "group flex items-center gap-2 rounded-[5px] border border-border px-2 py-1.5 text-left transition-colors hover:bg-muted focus-visible:border-ring focus-visible:outline-none",
|
|
16540
16542
|
children: [
|
|
16541
|
-
/* @__PURE__ */ e(
|
|
16543
|
+
/* @__PURE__ */ e(cm, { dataType: at(C.dataType) }),
|
|
16542
16544
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: [
|
|
16543
16545
|
/* @__PURE__ */ e("div", { className: "truncate text-[13px] text-foreground", children: C.label }),
|
|
16544
16546
|
/* @__PURE__ */ n("div", { className: "truncate font-mono text-[10px] text-muted-foreground", children: [
|
|
@@ -16614,7 +16616,7 @@ function hx({
|
|
|
16614
16616
|
] })
|
|
16615
16617
|
] }),
|
|
16616
16618
|
/* @__PURE__ */ n("div", { className: "relative", children: [
|
|
16617
|
-
/* @__PURE__ */ e(
|
|
16619
|
+
/* @__PURE__ */ e(Rs, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
16618
16620
|
/* @__PURE__ */ e(
|
|
16619
16621
|
Fe,
|
|
16620
16622
|
{
|
|
@@ -16667,13 +16669,13 @@ function px({
|
|
|
16667
16669
|
showTitle: s = !0,
|
|
16668
16670
|
title: r = "NUMBER FORMAT"
|
|
16669
16671
|
}) {
|
|
16670
|
-
const c =
|
|
16672
|
+
const c = Th(kh(t)) || {};
|
|
16671
16673
|
return /* @__PURE__ */ e(
|
|
16672
16674
|
ca,
|
|
16673
16675
|
{
|
|
16674
16676
|
formatOptions: c,
|
|
16675
16677
|
onFormatOptionsChange: (l) => {
|
|
16676
|
-
a(
|
|
16678
|
+
a(Dh(l));
|
|
16677
16679
|
},
|
|
16678
16680
|
showTitle: s,
|
|
16679
16681
|
title: r
|
|
@@ -16698,7 +16700,7 @@ function gx({
|
|
|
16698
16700
|
transform: m,
|
|
16699
16701
|
transition: p,
|
|
16700
16702
|
isDragging: f
|
|
16701
|
-
} =
|
|
16703
|
+
} = Ds({ id: t.id }), u = M((G) => G.card), g = M((G) => G.frame), N = Ie((G) => G.isVisualEditing), b = Ie((G) => G.selectedSheetId), v = Ie(
|
|
16702
16704
|
(G) => G.actions.updateSheetCalculatedFields
|
|
16703
16705
|
), I = Ie(
|
|
16704
16706
|
(G) => G.actions.updateDashboardCalculatedFields
|
|
@@ -16711,7 +16713,7 @@ function gx({
|
|
|
16711
16713
|
scopedFields: C,
|
|
16712
16714
|
valuePickFilterableFields: w,
|
|
16713
16715
|
isLoading: T
|
|
16714
|
-
} =
|
|
16716
|
+
} = Is(), { userContext: k } = Er(), { tokenProps: S } = bn(), E = (k == null ? void 0 : k.type) === "organization", L = ((ol = (ll = S == null ? void 0 : S.params) == null ? void 0 : ll.calendarContext) == null ? void 0 : ol.tz) || ((il = S == null ? void 0 : S.params) == null ? void 0 : il.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone, {
|
|
16715
16717
|
updateLabel: V,
|
|
16716
16718
|
handleAggregationChange: F,
|
|
16717
16719
|
handleDateFormatChange: x,
|
|
@@ -16755,7 +16757,7 @@ function gx({
|
|
|
16755
16757
|
t.qualifiedEntityName,
|
|
16756
16758
|
t.qualifiedFieldName,
|
|
16757
16759
|
C
|
|
16758
|
-
]), Ae =
|
|
16760
|
+
]), Ae = dm(
|
|
16759
16761
|
fe.dataType
|
|
16760
16762
|
), [me, be] = K(
|
|
16761
16763
|
t.dateFormat || "YYYY-MM-DD"
|
|
@@ -16777,11 +16779,11 @@ function gx({
|
|
|
16777
16779
|
mt(G), a === "metrics" && R(s, G);
|
|
16778
16780
|
}, _n = (G) => {
|
|
16779
16781
|
V(a, s, G);
|
|
16780
|
-
}, da =
|
|
16782
|
+
}, da = um(t), sn = fi(t), ua = mm(t), zn = t.role === "metric" && ua, rn = ua && (da === "user_calculated" || da === "inline_expression" && t.fieldScope !== "domain"), Lt = rn ? Ih({
|
|
16781
16783
|
field: t,
|
|
16782
16784
|
sheetFields: (g == null ? void 0 : g.calculatedFields) || [],
|
|
16783
16785
|
dashboardFields: y
|
|
16784
|
-
}) : void 0, $n = rn && (Lt == null ? void 0 : Lt.scope) === "sheet", Ya = rn && (Lt == null ? void 0 : Lt.scope) === "dashboard", qn = da === "domain_calculated" || t.fieldScope === "domain", Xa = qn ?
|
|
16786
|
+
}) : void 0, $n = rn && (Lt == null ? void 0 : Lt.scope) === "sheet", Ya = rn && (Lt == null ? void 0 : Lt.scope) === "dashboard", qn = da === "domain_calculated" || t.fieldScope === "domain", Xa = qn ? hm(t, C) : void 0, jt = qn ? "domain" : $n ? "sheet" : Ya ? "dashboard" : "card", Cn = qn ? Xa || t : ($n || Ya) && (Lt != null && Lt.matchedField) ? Lt.matchedField : t, jn = (G) => {
|
|
16785
16787
|
var te;
|
|
16786
16788
|
if (St(G), a === "metrics") {
|
|
16787
16789
|
const Te = {
|
|
@@ -16799,7 +16801,7 @@ function gx({
|
|
|
16799
16801
|
}, ma = () => {
|
|
16800
16802
|
z(a, s);
|
|
16801
16803
|
}, wn = {
|
|
16802
|
-
transform:
|
|
16804
|
+
transform: Es.Transform.toString(m),
|
|
16803
16805
|
transition: p
|
|
16804
16806
|
}, Bs = at(
|
|
16805
16807
|
fe.dataType || t.dataType
|
|
@@ -16845,7 +16847,7 @@ function gx({
|
|
|
16845
16847
|
fe.dataType,
|
|
16846
16848
|
a
|
|
16847
16849
|
]);
|
|
16848
|
-
const Re = !!l &&
|
|
16850
|
+
const Re = !!l && Eh.includes(l), Le = l === "kpi" || l === "table", ke = de(
|
|
16849
16851
|
() => Kt == null ? void 0 : Kt.find((G) => at(G.dataType || "") === "date"),
|
|
16850
16852
|
[Kt]
|
|
16851
16853
|
), ot = de(
|
|
@@ -16888,22 +16890,22 @@ function gx({
|
|
|
16888
16890
|
b,
|
|
16889
16891
|
L
|
|
16890
16892
|
]
|
|
16891
|
-
), Tn = Ct || Ut, Xe = t, ht = ((fl = (pl = Xe.parameters) == null ? void 0 : pl.windowTransform) == null ? void 0 : fl.function) || "none", vt =
|
|
16893
|
+
), Tn = Ct || Ut, Xe = t, ht = ((fl = (pl = Xe.parameters) == null ? void 0 : pl.windowTransform) == null ? void 0 : fl.function) || "none", vt = pm(Xe), Ft = vt ? ht : null, ga = fm({
|
|
16892
16894
|
cardType: l || "table",
|
|
16893
16895
|
cardConfig: u.config || {},
|
|
16894
16896
|
metric: Xe,
|
|
16895
16897
|
transformMode: Ft || "running_total"
|
|
16896
|
-
}), xa = !!Xe.comparisonType && Xe.comparisonType !== "none", Zr =
|
|
16898
|
+
}), xa = !!Xe.comparisonType && Xe.comparisonType !== "none", Zr = gm(
|
|
16897
16899
|
Kt || []
|
|
16898
16900
|
), Gn = ((bl = (xl = (gl = Xe.parameters) == null ? void 0 : gl.windowTransform) == null ? void 0 : xl.orderBy) == null ? void 0 : bl.fieldId) || "", lc = ((Nl = (yl = (vl = Xe.parameters) == null ? void 0 : vl.windowTransform) == null ? void 0 : yl.orderBy) == null ? void 0 : Nl.direction) || "asc", el = Zr.find(
|
|
16899
16901
|
(G) => G.id === Gn
|
|
16900
|
-
), _s = Ft === "running_total" || Ft === "moving_average" || Ft === "previous_period_delta", oc = vt && _s && !!el && at(el.dataType || "") !== "date", ic =
|
|
16902
|
+
), _s = Ft === "running_total" || Ft === "moving_average" || Ft === "previous_period_delta", oc = vt && _s && !!el && at(el.dataType || "") !== "date", ic = xm({
|
|
16901
16903
|
cardType: l || "table",
|
|
16902
16904
|
cardConfig: u.config || {},
|
|
16903
16905
|
orderByFieldId: Gn || void 0
|
|
16904
16906
|
}), cc = new Set(
|
|
16905
16907
|
((wl = (Cl = Xe.parameters) == null ? void 0 : Cl.windowTransform) == null ? void 0 : wl.partitionByFieldIds) || ic
|
|
16906
|
-
), dc = l === "pivotTable" ||
|
|
16908
|
+
), dc = l === "pivotTable" || bm(
|
|
16907
16909
|
l || "table",
|
|
16908
16910
|
u.config || {}
|
|
16909
16911
|
), tl = [
|
|
@@ -17628,7 +17630,7 @@ function gx({
|
|
|
17628
17630
|
onClick: (G) => {
|
|
17629
17631
|
G.stopPropagation(), c(r === "asc" ? "desc" : "asc");
|
|
17630
17632
|
},
|
|
17631
|
-
children: r === "asc" ? /* @__PURE__ */ e(
|
|
17633
|
+
children: r === "asc" ? /* @__PURE__ */ e(vm, { className: "h-3 w-3" }) : /* @__PURE__ */ e($o, { className: "h-3 w-3" })
|
|
17632
17634
|
}
|
|
17633
17635
|
),
|
|
17634
17636
|
kc && /* @__PURE__ */ e(Rt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -17638,7 +17640,7 @@ function gx({
|
|
|
17638
17640
|
"aria-label": "Field configuration",
|
|
17639
17641
|
className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[3px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground data-[state=open]:bg-muted data-[state=open]:text-foreground",
|
|
17640
17642
|
onClick: (G) => G.stopPropagation(),
|
|
17641
|
-
children: /* @__PURE__ */ e(
|
|
17643
|
+
children: /* @__PURE__ */ e(ym, { className: "h-3 w-3" })
|
|
17642
17644
|
}
|
|
17643
17645
|
) }),
|
|
17644
17646
|
/* @__PURE__ */ e(
|
|
@@ -17843,7 +17845,7 @@ function xx({ concept: t }) {
|
|
|
17843
17845
|
type: "button",
|
|
17844
17846
|
"aria-label": `What does ${a} mean?`,
|
|
17845
17847
|
className: "inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground/70 transition-colors hover:text-foreground",
|
|
17846
|
-
children: /* @__PURE__ */ e(
|
|
17848
|
+
children: /* @__PURE__ */ e(Nm, { className: "h-3 w-3" })
|
|
17847
17849
|
}
|
|
17848
17850
|
) }),
|
|
17849
17851
|
/* @__PURE__ */ n(
|
|
@@ -17939,10 +17941,10 @@ const Ao = [
|
|
|
17939
17941
|
{ label: "Electronics", values: ["2,300", "1,800", "3,400"] },
|
|
17940
17942
|
{ label: "Clothing", values: ["1,300", "620", "480"] }
|
|
17941
17943
|
], yx = {
|
|
17942
|
-
groupBy:
|
|
17944
|
+
groupBy: Ts,
|
|
17943
17945
|
pivotBy: jr,
|
|
17944
17946
|
metrics: tp,
|
|
17945
|
-
detailColumns:
|
|
17947
|
+
detailColumns: Ms,
|
|
17946
17948
|
sortBy: Oi
|
|
17947
17949
|
};
|
|
17948
17950
|
function wa({
|
|
@@ -17954,7 +17956,7 @@ function wa({
|
|
|
17954
17956
|
hasPivotColumns: o = !1,
|
|
17955
17957
|
activeField: l = null
|
|
17956
17958
|
}) {
|
|
17957
|
-
const { isOver: i, setNodeRef: d } =
|
|
17959
|
+
const { isOver: i, setNodeRef: d } = Cm({
|
|
17958
17960
|
id: t
|
|
17959
17961
|
}), { updateSortByColumn: h } = Ne(), m = M((v) => v.card), p = M((v) => v.card.type), f = a.length > 0, u = de(() => !l || !i ? !0 : us(
|
|
17960
17962
|
l,
|
|
@@ -18047,7 +18049,7 @@ function Cx({
|
|
|
18047
18049
|
}
|
|
18048
18050
|
), u = yn(m, f) === "multiple";
|
|
18049
18051
|
u && ((ee = m == null ? void 0 : m.customCardPreferences) != null && ee.url);
|
|
18050
|
-
const g =
|
|
18052
|
+
const g = wm(f == null ? void 0 : f.slots), N = M(
|
|
18051
18053
|
(W) => W.actions.updateCardConfig
|
|
18052
18054
|
), b = M((W) => W.actions.updateCard), v = M((W) => W.actions.updateFrame), I = Ie((W) => W.isVisualEditing), P = Ie((W) => W.selectedSheetId), y = Ie(
|
|
18053
18055
|
(W) => W.actions.updateSheetCalculatedFields
|
|
@@ -18250,7 +18252,7 @@ function wx() {
|
|
|
18250
18252
|
a ? "max-h-[72vh]" : "max-h-[50vh]"
|
|
18251
18253
|
),
|
|
18252
18254
|
children: /* @__PURE__ */ e(
|
|
18253
|
-
|
|
18255
|
+
ks,
|
|
18254
18256
|
{
|
|
18255
18257
|
type: "single",
|
|
18256
18258
|
collapsible: !0,
|
|
@@ -18473,7 +18475,7 @@ function Tx({
|
|
|
18473
18475
|
"aria-label": "Hide chart configuration",
|
|
18474
18476
|
onClick: r,
|
|
18475
18477
|
className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
|
|
18476
|
-
children: /* @__PURE__ */ e(
|
|
18478
|
+
children: /* @__PURE__ */ e(Sm, { className: "h-4 w-4", strokeWidth: 1.75 })
|
|
18477
18479
|
}
|
|
18478
18480
|
) })
|
|
18479
18481
|
] }),
|
|
@@ -18539,7 +18541,7 @@ function kx({
|
|
|
18539
18541
|
}
|
|
18540
18542
|
);
|
|
18541
18543
|
M((y) => y.card.dataSource);
|
|
18542
|
-
const { filterableFields: c, isLoading: o } =
|
|
18544
|
+
const { filterableFields: c, isLoading: o } = Is(), l = a || c || [], i = {
|
|
18543
18545
|
id: "default",
|
|
18544
18546
|
qualifiedFieldName: "default",
|
|
18545
18547
|
name: "default",
|
|
@@ -19041,9 +19043,9 @@ function Mx({
|
|
|
19041
19043
|
const v = new Date(b);
|
|
19042
19044
|
if (!isNaN(v.getTime()))
|
|
19043
19045
|
return v;
|
|
19044
|
-
}, [t, i]), m = (b) => a === "<=" || a === ">" ?
|
|
19046
|
+
}, [t, i]), m = (b) => a === "<=" || a === ">" ? Ah(b, l) : Oh(b, l);
|
|
19045
19047
|
return /* @__PURE__ */ e(
|
|
19046
|
-
|
|
19048
|
+
Tm,
|
|
19047
19049
|
{
|
|
19048
19050
|
value: i ? d : void 0,
|
|
19049
19051
|
selectionMode: i ? "range" : "single",
|
|
@@ -19176,10 +19178,10 @@ function rc({
|
|
|
19176
19178
|
transform: f,
|
|
19177
19179
|
transition: u,
|
|
19178
19180
|
isDragging: g
|
|
19179
|
-
} =
|
|
19181
|
+
} = Ds({ id: t.id }), { isPending: N, error: b } = Yr(
|
|
19180
19182
|
t.field
|
|
19181
19183
|
), v = {
|
|
19182
|
-
transform:
|
|
19184
|
+
transform: Es.Transform.toString(f),
|
|
19183
19185
|
transition: u
|
|
19184
19186
|
};
|
|
19185
19187
|
return /* @__PURE__ */ n(
|
|
@@ -19368,8 +19370,8 @@ function zx({
|
|
|
19368
19370
|
transform: P,
|
|
19369
19371
|
transition: y,
|
|
19370
19372
|
isDragging: C
|
|
19371
|
-
} =
|
|
19372
|
-
transform:
|
|
19373
|
+
} = Ds({ id: t.id }), w = {
|
|
19374
|
+
transform: Es.Transform.toString(P),
|
|
19373
19375
|
transition: y
|
|
19374
19376
|
}, T = (S) => {
|
|
19375
19377
|
const { active: E, over: O } = S;
|
|
@@ -19801,7 +19803,7 @@ function jx({
|
|
|
19801
19803
|
), h = (I = l == null ? void 0 : l.config) == null ? void 0 : I.joinPlan, m = Ee(
|
|
19802
19804
|
(y) => y.entityName === _h || y.entityName === "calculated_fields" || y.qualifiedEntityName === "calculated_fields",
|
|
19803
19805
|
[]
|
|
19804
|
-
), p = (P = l == null ? void 0 : l.dataSource) == null ? void 0 : P.semanticDomainId, { data: f } =
|
|
19806
|
+
), p = (P = l == null ? void 0 : l.dataSource) == null ? void 0 : P.semanticDomainId, { data: f } = km(p), u = [
|
|
19805
19807
|
...a,
|
|
19806
19808
|
...s("groupBy"),
|
|
19807
19809
|
...s("pivotBy"),
|
|
@@ -19902,7 +19904,7 @@ function jx({
|
|
|
19902
19904
|
}
|
|
19903
19905
|
if (B !== L.qualifiedEntityName && !m(L) && L.qualifiedEntityName)
|
|
19904
19906
|
if (p && (f != null && f.joinabilityMap)) {
|
|
19905
|
-
if (
|
|
19907
|
+
if (Dm(L, {
|
|
19906
19908
|
joinabilityMap: f.joinabilityMap,
|
|
19907
19909
|
selectedFields: V,
|
|
19908
19910
|
baseEntityName: (O = h == null ? void 0 : h.baseEntity) == null ? void 0 : O.name,
|
|
@@ -19917,7 +19919,7 @@ function jx({
|
|
|
19917
19919
|
Gs(), o(null);
|
|
19918
19920
|
return;
|
|
19919
19921
|
}
|
|
19920
|
-
if (!
|
|
19922
|
+
if (!Im(
|
|
19921
19923
|
B,
|
|
19922
19924
|
L.qualifiedEntityName,
|
|
19923
19925
|
h
|
|
@@ -20057,11 +20059,11 @@ function Kx({
|
|
|
20057
20059
|
{ id: "chart", label: "Chart" }
|
|
20058
20060
|
];
|
|
20059
20061
|
return l() && i.push({ id: "table", label: "Results" }), o && i.push({ id: "info", label: "Info", icon: Xt }), /* @__PURE__ */ e(
|
|
20060
|
-
|
|
20062
|
+
Ga,
|
|
20061
20063
|
{
|
|
20062
20064
|
value: t,
|
|
20063
20065
|
onValueChange: (d) => a(d),
|
|
20064
|
-
children: /* @__PURE__ */ e(
|
|
20066
|
+
children: /* @__PURE__ */ e(Ha, { variant: "underline", className: "gap-5 border-b-0", children: i.map((d) => {
|
|
20065
20067
|
const h = d.icon;
|
|
20066
20068
|
return /* @__PURE__ */ n(
|
|
20067
20069
|
Yt,
|
|
@@ -20249,8 +20251,8 @@ function Yx({
|
|
|
20249
20251
|
effectiveCardType: a = t.type,
|
|
20250
20252
|
queryResultColumns: s
|
|
20251
20253
|
}) {
|
|
20252
|
-
return qr(a) ? /* @__PURE__ */ n(
|
|
20253
|
-
/* @__PURE__ */ e(
|
|
20254
|
+
return qr(a) ? /* @__PURE__ */ n(Em, { modal: !1, children: [
|
|
20255
|
+
/* @__PURE__ */ e(Am, { asChild: !0, children: /* @__PURE__ */ n(
|
|
20254
20256
|
gt,
|
|
20255
20257
|
{
|
|
20256
20258
|
tooltip: "Table settings",
|
|
@@ -20266,14 +20268,14 @@ function Yx({
|
|
|
20266
20268
|
}
|
|
20267
20269
|
) }),
|
|
20268
20270
|
/* @__PURE__ */ n(
|
|
20269
|
-
|
|
20271
|
+
Om,
|
|
20270
20272
|
{
|
|
20271
20273
|
side: "right",
|
|
20272
20274
|
hideOverlay: !0,
|
|
20273
20275
|
className: "flex w-[420px] flex-col gap-0 p-0 sm:max-w-[420px]",
|
|
20274
20276
|
children: [
|
|
20275
|
-
/* @__PURE__ */ e(
|
|
20276
|
-
/* @__PURE__ */ e(
|
|
20277
|
+
/* @__PURE__ */ e(Mm, { className: "sr-only", children: "Table settings" }),
|
|
20278
|
+
/* @__PURE__ */ e(Fm, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
|
|
20277
20279
|
/* @__PURE__ */ n("div", { className: "border-b px-4 py-3", children: [
|
|
20278
20280
|
/* @__PURE__ */ e("div", { className: "text-[13px] font-semibold text-foreground", children: "Table settings" }),
|
|
20279
20281
|
/* @__PURE__ */ e("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: "Settings apply to this table and document exports that reuse it." })
|
|
@@ -20295,7 +20297,7 @@ function Xx({
|
|
|
20295
20297
|
className: t,
|
|
20296
20298
|
visible: a
|
|
20297
20299
|
}) {
|
|
20298
|
-
const s = Ie((i) => i.selectedFrameId), r =
|
|
20300
|
+
const s = Ie((i) => i.selectedFrameId), r = Rm((i) => i.selectedVisual), c = M((i) => i.frame), l = !!!(c != null && c.visualId || r != null && r.id) && !!s;
|
|
20299
20301
|
return !a || l ? null : /* @__PURE__ */ e("div", { className: J("flex", t), children: /* @__PURE__ */ e(
|
|
20300
20302
|
Ai,
|
|
20301
20303
|
{
|
|
@@ -20415,7 +20417,7 @@ function Zx({
|
|
|
20415
20417
|
}
|
|
20416
20418
|
),
|
|
20417
20419
|
ee && o.type !== "table" && /* @__PURE__ */ e(
|
|
20418
|
-
|
|
20420
|
+
Lm,
|
|
20419
20421
|
{
|
|
20420
20422
|
metadata: ee,
|
|
20421
20423
|
variant: "compact"
|
|
@@ -20425,7 +20427,7 @@ function Zx({
|
|
|
20425
20427
|
] }),
|
|
20426
20428
|
/* @__PURE__ */ n("div", { className: "flex grow items-center justify-end gap-1", children: [
|
|
20427
20429
|
/* @__PURE__ */ e(
|
|
20428
|
-
|
|
20430
|
+
Pm,
|
|
20429
20431
|
{
|
|
20430
20432
|
cardId: r.id,
|
|
20431
20433
|
cardFilters: (nt = r.config) == null ? void 0 : nt.filters,
|
|
@@ -20580,7 +20582,7 @@ function Zx({
|
|
|
20580
20582
|
dashboardFilters: h
|
|
20581
20583
|
} : void 0,
|
|
20582
20584
|
onSendFeedback: () => {
|
|
20583
|
-
const ge =
|
|
20585
|
+
const ge = Vm(
|
|
20584
20586
|
Go.QUERY_GENERATION,
|
|
20585
20587
|
{
|
|
20586
20588
|
cardConfig: o.config,
|
|
@@ -20701,8 +20703,8 @@ function nb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20701
20703
|
transform: T,
|
|
20702
20704
|
transition: k,
|
|
20703
20705
|
isDragging: S
|
|
20704
|
-
} =
|
|
20705
|
-
transform:
|
|
20706
|
+
} = Ds({ id: t.id }), E = {
|
|
20707
|
+
transform: Es.Transform.toString(T),
|
|
20706
20708
|
transition: k
|
|
20707
20709
|
}, O = at(t.dataType), L = ab(O), V = () => {
|
|
20708
20710
|
var Q;
|
|
@@ -20838,12 +20840,12 @@ function nb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20838
20840
|
"Sort Z → A"
|
|
20839
20841
|
] }),
|
|
20840
20842
|
/* @__PURE__ */ e(Wt, {}),
|
|
20841
|
-
/* @__PURE__ */ n(
|
|
20842
|
-
/* @__PURE__ */ n(
|
|
20843
|
+
/* @__PURE__ */ n(Bm, { children: [
|
|
20844
|
+
/* @__PURE__ */ n(_m, { children: [
|
|
20843
20845
|
/* @__PURE__ */ e(Br, { className: "mr-2 h-4 w-4" }),
|
|
20844
20846
|
"Summarize"
|
|
20845
20847
|
] }),
|
|
20846
|
-
/* @__PURE__ */ n(
|
|
20848
|
+
/* @__PURE__ */ n(zm, { children: [
|
|
20847
20849
|
/* @__PURE__ */ e(ct, { onClick: () => D("SUM"), children: "Sum" }),
|
|
20848
20850
|
/* @__PURE__ */ e(ct, { onClick: () => D("AVG"), children: "Average" }),
|
|
20849
20851
|
/* @__PURE__ */ e(ct, { onClick: () => D("COUNT"), children: "Count" }),
|
|
@@ -20854,7 +20856,7 @@ function nb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20854
20856
|
] }),
|
|
20855
20857
|
/* @__PURE__ */ e(Wt, {}),
|
|
20856
20858
|
/* @__PURE__ */ n(ct, { onClick: x, children: [
|
|
20857
|
-
/* @__PURE__ */ e(
|
|
20859
|
+
/* @__PURE__ */ e(Ts, { className: "mr-2 h-4 w-4" }),
|
|
20858
20860
|
"Group by this column"
|
|
20859
20861
|
] }),
|
|
20860
20862
|
/* @__PURE__ */ n(ct, { disabled: !0, children: [
|
|
@@ -20910,12 +20912,12 @@ function nb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20910
20912
|
function ab(t) {
|
|
20911
20913
|
switch (t) {
|
|
20912
20914
|
case "number":
|
|
20913
|
-
return
|
|
20915
|
+
return Os;
|
|
20914
20916
|
case "date":
|
|
20915
|
-
return
|
|
20917
|
+
return As;
|
|
20916
20918
|
case "string":
|
|
20917
20919
|
default:
|
|
20918
|
-
return
|
|
20920
|
+
return Fs;
|
|
20919
20921
|
}
|
|
20920
20922
|
}
|
|
20921
20923
|
function sb({
|
|
@@ -21058,7 +21060,7 @@ function sb({
|
|
|
21058
21060
|
/* @__PURE__ */ n(Pa, { children: [
|
|
21059
21061
|
/* @__PURE__ */ e(La, { children: "No columns available." }),
|
|
21060
21062
|
/* @__PURE__ */ e(Va, { heading: "Available Columns", children: g.map((V) => {
|
|
21061
|
-
const F = at(V.dataType), x = F === "number" ?
|
|
21063
|
+
const F = at(V.dataType), x = F === "number" ? Os : F === "date" ? As : Fs;
|
|
21062
21064
|
return /* @__PURE__ */ n(
|
|
21063
21065
|
Ba,
|
|
21064
21066
|
{
|
|
@@ -21212,11 +21214,11 @@ function lb({
|
|
|
21212
21214
|
}, I = (C) => {
|
|
21213
21215
|
switch (at(C)) {
|
|
21214
21216
|
case "number":
|
|
21215
|
-
return
|
|
21217
|
+
return Os;
|
|
21216
21218
|
case "date":
|
|
21217
|
-
return
|
|
21219
|
+
return As;
|
|
21218
21220
|
default:
|
|
21219
|
-
return
|
|
21221
|
+
return Fs;
|
|
21220
21222
|
}
|
|
21221
21223
|
};
|
|
21222
21224
|
return l ? /* @__PURE__ */ n("div", { className: "flex h-full w-72 flex-col border-l border-border bg-background", children: [
|
|
@@ -21235,7 +21237,7 @@ function lb({
|
|
|
21235
21237
|
)
|
|
21236
21238
|
] }),
|
|
21237
21239
|
/* @__PURE__ */ e("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ n("div", { className: "relative", children: [
|
|
21238
|
-
/* @__PURE__ */ e(
|
|
21240
|
+
/* @__PURE__ */ e(Rs, { className: "absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
21239
21241
|
/* @__PURE__ */ e(
|
|
21240
21242
|
Fe,
|
|
21241
21243
|
{
|
|
@@ -21250,7 +21252,7 @@ function lb({
|
|
|
21250
21252
|
f.length > 0 && /* @__PURE__ */ n(Qt, { defaultOpen: !0, children: [
|
|
21251
21253
|
/* @__PURE__ */ n(nn, { className: "flex w-full items-center gap-2 px-3 py-2 text-sm font-medium hover:bg-muted/50", children: [
|
|
21252
21254
|
/* @__PURE__ */ e($t, { className: "h-3.5 w-3.5 transition-transform duration-200 [[data-state=open]>&]:rotate-90" }),
|
|
21253
|
-
/* @__PURE__ */ e(
|
|
21255
|
+
/* @__PURE__ */ e(Ts, { className: "h-3.5 w-3.5 text-blue-500" }),
|
|
21254
21256
|
/* @__PURE__ */ e("span", { children: "Groupings" }),
|
|
21255
21257
|
/* @__PURE__ */ e("span", { className: "ml-auto text-xs text-muted-foreground", children: f.length })
|
|
21256
21258
|
] }),
|
|
@@ -21335,7 +21337,7 @@ function lb({
|
|
|
21335
21337
|
)
|
|
21336
21338
|
}
|
|
21337
21339
|
),
|
|
21338
|
-
/* @__PURE__ */ e(
|
|
21340
|
+
/* @__PURE__ */ e(Ms, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
21339
21341
|
/* @__PURE__ */ e("span", { className: "flex-1 truncate text-left", children: C.label || C.entityName }),
|
|
21340
21342
|
/* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: w.length })
|
|
21341
21343
|
] }),
|
|
@@ -21436,11 +21438,11 @@ function ib({
|
|
|
21436
21438
|
}, u = (g) => {
|
|
21437
21439
|
switch (at(g)) {
|
|
21438
21440
|
case "number":
|
|
21439
|
-
return
|
|
21441
|
+
return Os;
|
|
21440
21442
|
case "date":
|
|
21441
|
-
return
|
|
21443
|
+
return As;
|
|
21442
21444
|
default:
|
|
21443
|
-
return
|
|
21445
|
+
return Fs;
|
|
21444
21446
|
}
|
|
21445
21447
|
};
|
|
21446
21448
|
return /* @__PURE__ */ n("div", { className: "flex items-center gap-2 border-b border-border bg-muted/30 px-3 py-1.5", children: [
|
|
@@ -21560,7 +21562,7 @@ function cb({ className: t }) {
|
|
|
21560
21562
|
columns: l = [],
|
|
21561
21563
|
columnGroups: i = [],
|
|
21562
21564
|
isLoading: d
|
|
21563
|
-
} = Ro(), { valuePickFilterableFields: h = [] } =
|
|
21565
|
+
} = Ro(), { valuePickFilterableFields: h = [] } = Is();
|
|
21564
21566
|
(u = a == null ? void 0 : a.config) != null && u.groupByColumns, (g = a == null ? void 0 : a.config) != null && g.metricColumns, (N = a == null ? void 0 : a.config) != null && N.groupByColumns, (b = a == null ? void 0 : a.config) != null && b.pivotByColumns;
|
|
21565
21567
|
const m = (v) => {
|
|
21566
21568
|
r(v), o(v ? `[${v.label || v.name}]` : "");
|
|
@@ -21618,7 +21620,7 @@ function db() {
|
|
|
21618
21620
|
columnFields: y = [],
|
|
21619
21621
|
scopedFields: C = [],
|
|
21620
21622
|
filterableFields: w = []
|
|
21621
|
-
} =
|
|
21623
|
+
} = Is(), T = _a(
|
|
21622
21624
|
dn(za, {
|
|
21623
21625
|
activationConstraint: {
|
|
21624
21626
|
distance: 8
|
|
@@ -21729,7 +21731,7 @@ function db() {
|
|
|
21729
21731
|
);
|
|
21730
21732
|
}
|
|
21731
21733
|
function ub({ authToken: t, onSave: a, onClose: s }) {
|
|
21732
|
-
const r = Me(null), c = M((T) => T.showAIDialog), o = M((T) => T.isDevMode), l = Hs((T) => T.setFullscreen), i = Hs((T) => T.setPanelOpen), d = Hs((T) => T.setContainer), h =
|
|
21734
|
+
const r = Me(null), c = M((T) => T.showAIDialog), o = M((T) => T.isDevMode), l = Hs((T) => T.setFullscreen), i = Hs((T) => T.setPanelOpen), d = Hs((T) => T.setContainer), h = $m("editor"), m = qm(), p = jm("editor"), f = m === "editor", u = Ir(), g = Ee(
|
|
21733
21735
|
(T) => {
|
|
21734
21736
|
d("editor", T);
|
|
21735
21737
|
},
|
|
@@ -21851,7 +21853,7 @@ function ub({ authToken: t, onSave: a, onClose: s }) {
|
|
|
21851
21853
|
)
|
|
21852
21854
|
] });
|
|
21853
21855
|
}
|
|
21854
|
-
return /* @__PURE__ */ e(Cs, { FallbackComponent:
|
|
21856
|
+
return /* @__PURE__ */ e(Cs, { FallbackComponent: Km, children: o ? /* @__PURE__ */ e(
|
|
21855
21857
|
"section",
|
|
21856
21858
|
{
|
|
21857
21859
|
className: "isolate flex h-full grow",
|
|
@@ -21869,17 +21871,17 @@ function ub({ authToken: t, onSave: a, onClose: s }) {
|
|
|
21869
21871
|
}
|
|
21870
21872
|
) });
|
|
21871
21873
|
}
|
|
21872
|
-
function
|
|
21874
|
+
function kb() {
|
|
21873
21875
|
Ie((u) => u.selectedCardId);
|
|
21874
21876
|
const t = Ie((u) => u.selectedSheetId), a = Ie((u) => u.dashboard), { setIsVisualEditing: s, setSelectedSheetId: r } = Ie(
|
|
21875
21877
|
(u) => u.actions
|
|
21876
21878
|
), c = M((u) => u.editorContext), { clearEditorContext: o } = M((u) => u.actions), l = Ir(), i = Ie((u) => u.isVisualEditing), d = Ie((u) => u.actions.updateFrame), h = Ie(
|
|
21877
21879
|
(u) => u.actions.updateDocumentSectionCard
|
|
21878
|
-
), m =
|
|
21880
|
+
), m = Um();
|
|
21879
21881
|
async function p(u) {
|
|
21880
21882
|
var I, P, y;
|
|
21881
21883
|
if ((c == null ? void 0 : c.type) === "documentSection") {
|
|
21882
|
-
const C =
|
|
21884
|
+
const C = Gm(
|
|
21883
21885
|
u,
|
|
21884
21886
|
c.cardId
|
|
21885
21887
|
);
|
|
@@ -21887,7 +21889,7 @@ function Sb() {
|
|
|
21887
21889
|
Ze.error("No document section card found");
|
|
21888
21890
|
return;
|
|
21889
21891
|
}
|
|
21890
|
-
if (!
|
|
21892
|
+
if (!Hm(C)) {
|
|
21891
21893
|
Ze.error("Document table sections support Table and Pivot Table");
|
|
21892
21894
|
return;
|
|
21893
21895
|
}
|
|
@@ -21913,7 +21915,7 @@ function Sb() {
|
|
|
21913
21915
|
}
|
|
21914
21916
|
)) == null ? void 0 : y.id, b = g ? t : N || null;
|
|
21915
21917
|
if (!b) return;
|
|
21916
|
-
const v =
|
|
21918
|
+
const v = Wm(a, u.id);
|
|
21917
21919
|
try {
|
|
21918
21920
|
const C = await m(u, {
|
|
21919
21921
|
previousFrame: v
|
|
@@ -21943,5 +21945,5 @@ function Sb() {
|
|
|
21943
21945
|
);
|
|
21944
21946
|
}
|
|
21945
21947
|
export {
|
|
21946
|
-
|
|
21948
|
+
kb as default
|
|
21947
21949
|
};
|