react-semaphor 0.1.426 → 0.1.428
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/CHANGELOG.md +5 -0
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +1 -1
- package/dist/chunks/{calendar-preferences-dialog-tBSngRN-.js → calendar-preferences-dialog-BF9bNAF_.js} +2 -2
- package/dist/chunks/{calendar-preferences-dialog-C-gN-vlq.js → calendar-preferences-dialog-_L9eBQfj.js} +1 -1
- package/dist/chunks/{code-editor-tfzm8LWW.js → code-editor-BoowcKU0.js} +23 -23
- package/dist/chunks/{code-editor-Pod1s6SK.js → code-editor-CojfM3qp.js} +772 -757
- package/dist/chunks/{dashboard-ZoKNg47G.js → dashboard-509sbC4_.js} +30989 -30715
- package/dist/chunks/dashboard-CMDXBLnG.js +1402 -0
- package/dist/chunks/{dashboard-briefing-launcher-0kR-QThz.js → dashboard-briefing-launcher-B-ZTWJwo.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BE-sNAzW.js → dashboard-briefing-launcher-DIdYHNTq.js} +3 -3
- package/dist/chunks/{dashboard-controls-BUYTVauu.js → dashboard-controls-CWprw-Pb.js} +8 -8
- package/dist/chunks/{dashboard-controls-Ce_Bps8f.js → dashboard-controls-CbRzWo1N.js} +543 -534
- package/dist/chunks/{dashboard-json-81uc8aVR.js → dashboard-json-BEZrxx_k.js} +1 -1
- package/dist/chunks/{dashboard-json-4quaFoSw.js → dashboard-json-jO4GQfZk.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-nVRXv1Lq.js → edit-dashboard-visual-D3uhqgm3.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DqQsH7rN.js → edit-dashboard-visual-KgQTjqWp.js} +302 -302
- package/dist/chunks/{use-create-flow-overlay-state-CoANTEXS.js → use-create-flow-overlay-state-BiMYdjZP.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-DUVIsF0y.js → use-create-flow-overlay-state-CGsLzp9A.js} +2 -2
- 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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/main.d.ts +19 -0
- package/dist/types/types.d.ts +18 -0
- package/package.json +1 -1
- package/dist/chunks/dashboard-JNK2ly_e.js +0 -1402
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import * as Ac from "react";
|
|
3
3
|
import en, { useState as U, useEffect as Ce, useRef as De, useCallback as Se, useMemo as ce, useContext as wr, Suspense as Oc } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c_ as Mi, b as Rn, c as Pn, d as Ln, e as Vn, f as Yn, o as ms, bk as Dt, bo as Kt, c$ as Fi, d0 as ls, p as Ze, d1 as Ri, d2 as is, b2 as wa, aX as Ct, cg as Sr, b0 as ea, bp as za, bl as wt, d3 as hs, d4 as Tr, d5 as Pi, d6 as Li, d7 as Mc, d8 as Fc, d9 as Rc, b6 as ys, da as Pc, db as Lc, dc as dr, dd as os, u as Nn, ay as Vi, de as Vc, df as Bc, dg as Bi, dh as _i, di as _c, dj as zc, dk as $c, dl as qc, be as $n, bf as Cn, bg as wn, bh as $a, bi as tn, bj as Jn, dm as ur, c8 as va, dn as zi, aL as an, aM as ft, dp as jc, dq as $i, cH as gn, cO as qi, dr as kr, ds as Kc, dt as ji, du as Uc, dv as Ki, dw as Gc, dx as Hc, dy as Qc, C as Ui, dz as Wc, dA as Jc, dB as Yc, dC as Xc, dD as Zc, dE as ed, dF as qs, dG as td, dH as ql, dI as nd, dJ as jl, dK as ad, dL as sd, cd as ta, ce as na, cf as aa, bZ as dt, dM as Sa, b3 as Gi, bt as Jt, bv as Yt, dN as Ir, bK as Dr, aK as Er, dO as rd, dP as ld, dQ as Ar, dR as id, dS as Hi, dT as Qi, dU as Wi, dV as Qt, dW as od, dX as cd, dY as dd, dZ as ud, d_ as Ji, d$ as Yi, H as Xi, e0 as Zi, e1 as md, e2 as hd, e3 as pd, e4 as Ta, N as fd, e5 as gd, e6 as xd, e7 as Kl, e8 as bd, E as Ns, t as Or, e9 as vd, ea as Mr, bC as yd, eb as Ul, I as gt, ec as Nd, ed as Cd, ee as eo, ef as to, eg as wd, eh as Fr, ei as Rr, ej as no, ek as ao, el as Gl, em as qa, en as Sd, eo as Td, ep as kd, eq as Id, er as Dd, es as ps, et as Ed, eu as Ad, ev as so, ew as ro, ex as Od, ey as Md, cr as Fd, ez as Rd, eA as lo, eB as Pd, eC as Ld, cs as Cs, eD as ws, bD as ka, bE as Wt, eE as mn, eF as Bn, eG as _n, eH as xn, eI as Xn, eJ as Vd, eK as Bd, eL as _d, eM as zd, eN as $d, eO as qd, eP as jd, eQ as Kd, eR as Hl, bu as nn, eS as Ud, eT as Gd, eU as Ss, eV as Hd, eW as Qd, eX as io, eY as Wd, eZ as Jd, e_ as Yd, e$ as Xd, f0 as Zd, f1 as mr, f2 as eu, f3 as tu, f4 as hr, f5 as nu, f6 as au, f7 as su, f8 as ru, f9 as Ql, b1 as pr, aZ as bn, aN as lu, aO as iu, aQ as ou, aR as cu, aS as du, aT as uu, aU as mu, aV as hu, aW as pu, b$ as fu, fa as Ia, fb as Da, fc as Ea, ci as Pr, cj as gu, a$ as xu, fd as bu, fe as vu, ff as yu, fg as Ts, fh as it, fi as ot, fj as ct, fk as Nu, fl as Cu, fm as oo, fn as co, fo as wu, fp as fr, fq as Su, fr as Tu, fs as ku, ft as Iu, fu as Du, fv as Eu, fw as Au, fx as Ou, fy as Mu, fz as Fu, fA as Ru, fB as Pu, fC as En, fD as ga, fE as Lu, fF as Wl, fG as Vu, fH as Bu, fI as js, fJ as Jl, fK as _u, fL as zu, fM as $u, fN as qu, fO as ju, R as Lr, g as Aa, fP as Ks, fQ as uo, b4 as Ku, fR as fs, fS as Uu, fT as mo, fU as ho, fV as Gu, fW as Hu, aC as Qu, fX as ns, fY as Wu, fZ as Yl, f_ as Ju, f$ as Yu, g0 as Xl, g1 as Xu, g2 as Zu, g3 as em, g4 as tm, g5 as nm, aP as po, g6 as am, g7 as sm, g8 as rm, g9 as lm, ga as im, gb as om, gc as cm, gd as dm, ge as fo, gf as um, gg as ks, cI as Is, gh as go, gi as mm, gj as hm, gk as xo, gl as pm, gm as fm, gn as Ds, go as Us, gp as gm, gq as xm, gr as bm, gs as vm, gt as Zn, gu as Zl, gv as bo, gw as ym, cu as Nm, gx as vo, gy as yo, gz as cs, gA as No, gB as Co, gC as Cm, gD as ei, gE as wm, gF as Sm, gG as ds, gH as Tm, gI as Vr, gJ as km, gK as gs, h as Oa, i as Ma, k as Fa, j as Ra, l as Pa, m as La, gL as Im, gM as Va, gN as hn, gO as gr, gP as xr, gQ as Ba, gR as wo, gS as Dm, gT as Gs, gU as Hs, gV as Em, gW as Qs, gX as Am, gY as ti, gZ as ni, cQ as Om, g_ as Mm, cR as Fm, cT as Rm, cU as Pm, aG as Lm, g$ as Vm, h0 as Bm, h1 as _m, ck as zm, cl as $m, cm as qm, bY as Es, h2 as As, h3 as ai, h4 as So, cK as Ws, h5 as jm, h6 as Km, h7 as Um, F as Gm, bn as Hm, h8 as Qm, h9 as Wm } from "./dashboard-509sbC4_.js";
|
|
5
5
|
import { c as Ge, C as Mt, X as et } from "./index-xHCrHprY.js";
|
|
6
|
-
import { E as Ne, B as ee, O as xs, I as ja, c as Y, aN as Jm, L as q, _ as ne, $ as ae, a0 as se, a1 as re, a2 as j, F as A, Y as Et, Q as _t, V as At, W as Ot, P as Ft, a as Lt, b as Rt, C as vn, aO as Ym, aG as ya, aP as Br, aQ as To, aD as _r, aB as Xm, Z as Me, aR as Zm, e as yn, u as ve, d as Sn, aS as zr, X as sn, D as ko, T as Ka, G as Ua, H as Xt, J as Mn, N as Os, S as zn, j as eh, aH as Fn, aT as th, aU as nh, aV as Io, af as ah, aJ as sh, aW as rh, aX as lh, aY as si, aZ as ih, a_ as oh, a$ as ch, b0 as dh, b1 as uh, b2 as mh, b3 as ri, b4 as hh, b5 as li, R as br, b6 as sa, b7 as ph, a3 as $e, b8 as fh, b9 as $r, ba as _a, bb as bs, bc as pn, bd as as, be as ii, bf as gh, bg as xh, bh as Bt, bi as bh, M as Do, bj as ut, bk as Eo, x as oi, bl as vh, bm as yh, bn as Nh, bo as Ch, bp as wh, bq as Sh, br as Th, bs as kh, bt as Ih, bu as Dh, bv as Eh, bw as Ah, bx as Oh, by as Mh, bz as ci, bA as Fh, bB as Rh, bC as Ph, bD as Lh, K as Ms, a6 as Vh } from "./code-editor-
|
|
6
|
+
import { E as Ne, B as ee, O as xs, I as ja, c as Y, aN as Jm, L as q, _ as ne, $ as ae, a0 as se, a1 as re, a2 as j, F as A, Y as Et, Q as _t, V as At, W as Ot, P as Ft, a as Lt, b as Rt, C as vn, aO as Ym, aG as ya, aP as Br, aQ as To, aD as _r, aB as Xm, Z as Me, aR as Zm, e as yn, u as ve, d as Sn, aS as zr, X as sn, D as ko, T as Ka, G as Ua, H as Xt, J as Mn, N as Os, S as zn, j as eh, aH as Fn, aT as th, aU as nh, aV as Io, af as ah, aJ as sh, aW as rh, aX as lh, aY as si, aZ as ih, a_ as oh, a$ as ch, b0 as dh, b1 as uh, b2 as mh, b3 as ri, b4 as hh, b5 as li, R as br, b6 as sa, b7 as ph, a3 as $e, b8 as fh, b9 as $r, ba as _a, bb as bs, bc as pn, bd as as, be as ii, bf as gh, bg as xh, bh as Bt, bi as bh, M as Do, bj as ut, bk as Eo, x as oi, bl as vh, bm as yh, bn as Nh, bo as Ch, bp as wh, bq as Sh, br as Th, bs as kh, bt as Ih, bu as Dh, bv as Eh, bw as Ah, bx as Oh, by as Mh, bz as ci, bA as Fh, bB as Rh, bC as Ph, bD as Lh, K as Ms, a6 as Vh } from "./code-editor-CojfM3qp.js";
|
|
7
7
|
import "./analyze-result-contract-DnfF8kBb.js";
|
|
8
8
|
import { C as Ut, E as vr, S as Fs, M as Bh, a as _h } from "./search-DHZCro8B.js";
|
|
9
|
-
import { f as zh, g as xt, r as Ao, h as Ga, i as Oo, V as Mo, e as $h, C as qh } from "./use-create-flow-overlay-state-
|
|
9
|
+
import { f as zh, g as xt, r as Ao, h as Ga, i as Oo, V as Mo, e as $h, C as qh } from "./use-create-flow-overlay-state-CGsLzp9A.js";
|
|
10
10
|
import { h as ra } from "./card-config-utils-BYZ5MJOh.js";
|
|
11
11
|
import { createPortal as jh } from "react-dom";
|
|
12
12
|
import "./index-If0wlXGi.js";
|
|
@@ -86,7 +86,7 @@ const qr = Ge("Columns3", [
|
|
|
86
86
|
* This source code is licensed under the ISC license.
|
|
87
87
|
* See the LICENSE file in the root directory of this source tree.
|
|
88
88
|
*/
|
|
89
|
-
const
|
|
89
|
+
const Qh = Ge("Component", [
|
|
90
90
|
[
|
|
91
91
|
"path",
|
|
92
92
|
{
|
|
@@ -134,7 +134,7 @@ const Po = Ge("FileCode2", [
|
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
136
|
*/
|
|
137
|
-
const
|
|
137
|
+
const Wh = Ge("FileJson2", [
|
|
138
138
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
139
139
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
140
140
|
[
|
|
@@ -1023,8 +1023,8 @@ function wp({
|
|
|
1023
1023
|
const O = (P) => {
|
|
1024
1024
|
const B = P.joinKeyGroups.flatMap(($) => $.keys), z = B.find(
|
|
1025
1025
|
($) => {
|
|
1026
|
-
var H,
|
|
1027
|
-
return ((H = $.source) == null ? void 0 : H.name) && ((
|
|
1026
|
+
var H, W;
|
|
1027
|
+
return ((H = $.source) == null ? void 0 : H.name) && ((W = $.target) == null ? void 0 : W.name);
|
|
1028
1028
|
}
|
|
1029
1029
|
);
|
|
1030
1030
|
if (!z) return null;
|
|
@@ -1122,7 +1122,7 @@ function wp({
|
|
|
1122
1122
|
(Z) => Z.name === P.source.name
|
|
1123
1123
|
), z = a.find(
|
|
1124
1124
|
(Z) => Z.name === P.target.name
|
|
1125
|
-
), _ = d.has(P.id), $ = D.has(P.id) || P.joinKeyGroups.length > 1 || P.joinKeyGroups.some((Z) => Z.operator !== "AND"), H = O(P),
|
|
1125
|
+
), _ = d.has(P.id), $ = D.has(P.id) || P.joinKeyGroups.length > 1 || P.joinKeyGroups.some((Z) => Z.operator !== "AND"), H = O(P), W = P.relationshipCardinality;
|
|
1126
1126
|
return /* @__PURE__ */ n(
|
|
1127
1127
|
"div",
|
|
1128
1128
|
{
|
|
@@ -1302,9 +1302,9 @@ function wp({
|
|
|
1302
1302
|
)
|
|
1303
1303
|
] })
|
|
1304
1304
|
] }),
|
|
1305
|
-
|
|
1306
|
-
/* @__PURE__ */ e("span", { className: "shrink-0 rounded-[3px] bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground", children: Np[
|
|
1307
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: yp[
|
|
1305
|
+
W && /* @__PURE__ */ n("div", { className: "flex min-w-0 items-center gap-2 rounded-[5px] border border-border/60 bg-muted/40 px-2.5 py-1.5 text-[11.5px]", children: [
|
|
1306
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 rounded-[3px] bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground", children: Np[W] }),
|
|
1307
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: yp[W] }),
|
|
1308
1308
|
/* @__PURE__ */ n("span", { className: "truncate text-muted-foreground/70", children: [
|
|
1309
1309
|
"(",
|
|
1310
1310
|
P.source.name || "source",
|
|
@@ -2461,7 +2461,7 @@ function Gp({
|
|
|
2461
2461
|
er
|
|
2462
2462
|
), [P, B] = U(!1), [z, _] = U(
|
|
2463
2463
|
() => ss("inline-query-session")
|
|
2464
|
-
), $ = De(null), H = De(null),
|
|
2464
|
+
), $ = De(null), H = De(null), W = De(null), K = De(0), Z = De(0), J = De(
|
|
2465
2465
|
ss("inline-run-token")
|
|
2466
2466
|
), ue = De(z), ye = De(/* @__PURE__ */ new Set()), Ee = De(/* @__PURE__ */ new Map()), Oe = De(0), Pe = De(""), tt = De(!1), nt = De(!1), ie = De(er), ke = De(!1), qe = De(null), lt = De(() => {
|
|
2467
2467
|
}), mt = (ma = d.apiServiceUrl) == null ? void 0 : ma.replace(/\/$/, ""), xe = mt ? `${mt}/v1/sql/validate` : "/v1/sql/validate", Je = Se(
|
|
@@ -2536,9 +2536,9 @@ function Gp({
|
|
|
2536
2536
|
});
|
|
2537
2537
|
},
|
|
2538
2538
|
[p, S.finalOutcome, S.hasTools]
|
|
2539
|
-
),
|
|
2539
|
+
), Qe = Se(
|
|
2540
2540
|
(X, oe) => {
|
|
2541
|
-
const le =
|
|
2541
|
+
const le = W.current;
|
|
2542
2542
|
if (!le)
|
|
2543
2543
|
return;
|
|
2544
2544
|
const Ae = { inlineRunToken: oe };
|
|
@@ -2557,12 +2557,12 @@ function Gp({
|
|
|
2557
2557
|
);
|
|
2558
2558
|
Ce(() => {
|
|
2559
2559
|
const X = qe.current;
|
|
2560
|
-
!X || X.sessionId !== z || (qe.current = null,
|
|
2561
|
-
}, [z,
|
|
2562
|
-
const
|
|
2560
|
+
!X || X.sessionId !== z || (qe.current = null, Qe(X.message, X.runToken));
|
|
2561
|
+
}, [z, Qe]);
|
|
2562
|
+
const We = z, St = Se(
|
|
2563
2563
|
async ({ toolCall: X }) => {
|
|
2564
2564
|
var bt, vt, st, Un, yt, Dn;
|
|
2565
|
-
if (
|
|
2565
|
+
if (We !== ue.current)
|
|
2566
2566
|
return;
|
|
2567
2567
|
const oe = String(X.toolName || "").trim();
|
|
2568
2568
|
if (!oe)
|
|
@@ -2626,12 +2626,12 @@ function Gp({
|
|
|
2626
2626
|
be,
|
|
2627
2627
|
S.phase,
|
|
2628
2628
|
ge,
|
|
2629
|
-
|
|
2629
|
+
We,
|
|
2630
2630
|
G
|
|
2631
2631
|
]
|
|
2632
2632
|
), he = Se(
|
|
2633
2633
|
({ message: X, messages: oe }) => {
|
|
2634
|
-
if (
|
|
2634
|
+
if (We !== ue.current)
|
|
2635
2635
|
return;
|
|
2636
2636
|
const le = gi(oe);
|
|
2637
2637
|
if (!le || le !== J.current)
|
|
@@ -2646,15 +2646,15 @@ function Gp({
|
|
|
2646
2646
|
}
|
|
2647
2647
|
ke.current && ie.current.phase === "self-healing" && lt.current(Ae);
|
|
2648
2648
|
},
|
|
2649
|
-
[ge,
|
|
2649
|
+
[ge, We]
|
|
2650
2650
|
), Fe = Se(
|
|
2651
2651
|
(X) => {
|
|
2652
|
-
if (
|
|
2652
|
+
if (We !== ue.current)
|
|
2653
2653
|
return;
|
|
2654
2654
|
const oe = Z.current;
|
|
2655
2655
|
ge(oe) && ke.current && ie.current.phase === "self-healing" && lt.current(oe);
|
|
2656
2656
|
},
|
|
2657
|
-
[ge,
|
|
2657
|
+
[ge, We]
|
|
2658
2658
|
), {
|
|
2659
2659
|
setMessages: Be,
|
|
2660
2660
|
sendMessage: me,
|
|
@@ -2704,7 +2704,7 @@ function Gp({
|
|
|
2704
2704
|
onError: Fe,
|
|
2705
2705
|
sendAutomaticallyWhen: $c
|
|
2706
2706
|
});
|
|
2707
|
-
H.current = je,
|
|
2707
|
+
H.current = je, W.current = me;
|
|
2708
2708
|
const Ue = !["ready", "error"].includes(
|
|
2709
2709
|
Ke
|
|
2710
2710
|
), Pt = (Tt == null ? void 0 : Tt.message) || "Unable to generate a SQL draft right now. Try again.", Ye = Se(
|
|
@@ -2925,7 +2925,7 @@ function Gp({
|
|
|
2925
2925
|
selectedTableName: c || "",
|
|
2926
2926
|
contextEntityLabels: st
|
|
2927
2927
|
});
|
|
2928
|
-
|
|
2928
|
+
Qe(Un, J.current);
|
|
2929
2929
|
})(), () => {
|
|
2930
2930
|
Ae = !0;
|
|
2931
2931
|
};
|
|
@@ -2940,7 +2940,7 @@ function Gp({
|
|
|
2940
2940
|
s,
|
|
2941
2941
|
r,
|
|
2942
2942
|
c,
|
|
2943
|
-
|
|
2943
|
+
Qe,
|
|
2944
2944
|
Be,
|
|
2945
2945
|
qn,
|
|
2946
2946
|
G,
|
|
@@ -2983,7 +2983,7 @@ function Gp({
|
|
|
2983
2983
|
r,
|
|
2984
2984
|
c,
|
|
2985
2985
|
Be
|
|
2986
|
-
]),
|
|
2986
|
+
]), Qa = Se(
|
|
2987
2987
|
(X) => {
|
|
2988
2988
|
const oe = N.trim();
|
|
2989
2989
|
oe && (o(oe, X), X || B(!1));
|
|
@@ -2991,7 +2991,7 @@ function Gp({
|
|
|
2991
2991
|
[o, N]
|
|
2992
2992
|
), Tn = N.trim().length > 0, la = ["valid", "invalid", "error"].includes(
|
|
2993
2993
|
F.status
|
|
2994
|
-
), kn = Tn && la, Vt = F.status === "invalid",
|
|
2994
|
+
), kn = Tn && la, Vt = F.status === "invalid", Wa = F.status === "validating", ia = Tn && k.length > 0 && k === f.trim(), ln = rn.length > 0, Ja = f.length > 0, Gt = ia && E === "draft", on = ia && E === "refine" && D === rn, cn = T === "refine" && !ln ? "draft" : T, Ya = (cn === "refine" ? on : Gt) ? "Open composer preview" : "Generate composer SQL", Xa = f.trim().length > 0 || k.trim().length > 0 || Tn || F.status !== "idle" || S.timelineSteps.length > 0, Kn = Se((X = "draft") => {
|
|
2995
2995
|
if (Ue)
|
|
2996
2996
|
return;
|
|
2997
2997
|
if ((X === "refine" ? on : Gt) && !P) {
|
|
@@ -3306,7 +3306,7 @@ function Gp({
|
|
|
3306
3306
|
variant: "secondary",
|
|
3307
3307
|
size: "xs",
|
|
3308
3308
|
disabled: Ue || !kn,
|
|
3309
|
-
onClick: () =>
|
|
3309
|
+
onClick: () => Qa(!1),
|
|
3310
3310
|
children: "Replace SQL"
|
|
3311
3311
|
}
|
|
3312
3312
|
),
|
|
@@ -3314,8 +3314,8 @@ function Gp({
|
|
|
3314
3314
|
ee,
|
|
3315
3315
|
{
|
|
3316
3316
|
size: "xs",
|
|
3317
|
-
disabled: Ue || !kn ||
|
|
3318
|
-
onClick: () =>
|
|
3317
|
+
disabled: Ue || !kn || Wa || Vt,
|
|
3318
|
+
onClick: () => Qa(!0),
|
|
3319
3319
|
children: "Replace & Run"
|
|
3320
3320
|
}
|
|
3321
3321
|
)
|
|
@@ -3407,7 +3407,7 @@ function Hp() {
|
|
|
3407
3407
|
isSuccess: _,
|
|
3408
3408
|
isError: $,
|
|
3409
3409
|
error: H,
|
|
3410
|
-
errorSql:
|
|
3410
|
+
errorSql: W,
|
|
3411
3411
|
queryKey: K,
|
|
3412
3412
|
refetch: Z,
|
|
3413
3413
|
errorMessage: J
|
|
@@ -3675,7 +3675,7 @@ function Hp() {
|
|
|
3675
3675
|
)
|
|
3676
3676
|
);
|
|
3677
3677
|
}
|
|
3678
|
-
function
|
|
3678
|
+
function Qp(t) {
|
|
3679
3679
|
const a = ve((f) => f.dashboard), s = ve((f) => f.dashboard.filters), r = ve((f) => f.filterValues), c = ve((f) => f.selectedSheetId), o = ve(
|
|
3680
3680
|
(f) => f.dashboardInputValues
|
|
3681
3681
|
), l = ve((f) => f.controlValues), i = ve(
|
|
@@ -3703,7 +3703,7 @@ function Wp(t) {
|
|
|
3703
3703
|
cardControlValuesMap: d
|
|
3704
3704
|
},
|
|
3705
3705
|
mode: h ? "editor" : "interactive"
|
|
3706
|
-
}), v =
|
|
3706
|
+
}), v = Wp(
|
|
3707
3707
|
f.inputs
|
|
3708
3708
|
);
|
|
3709
3709
|
return {
|
|
@@ -3725,7 +3725,7 @@ function Wp(t) {
|
|
|
3725
3725
|
t
|
|
3726
3726
|
);
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function Wp(t) {
|
|
3729
3729
|
return new Set(
|
|
3730
3730
|
t.flatMap(
|
|
3731
3731
|
(a) => {
|
|
@@ -3820,7 +3820,7 @@ function Xp({
|
|
|
3820
3820
|
onClick: () => P.getCanSort() && P.toggleSorting(P.getIsSorted() === "asc"),
|
|
3821
3821
|
children: [
|
|
3822
3822
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", title: b, children: b }),
|
|
3823
|
-
B === "asc" ? /* @__PURE__ */ e(Hc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : B === "desc" ? /* @__PURE__ */ e(
|
|
3823
|
+
B === "asc" ? /* @__PURE__ */ e(Hc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : B === "desc" ? /* @__PURE__ */ e(Qc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : P.getCanSort() ? /* @__PURE__ */ e(Ui, { className: "h-3 w-3 shrink-0 opacity-0 transition-opacity group-hover/header:opacity-50" }) : null
|
|
3824
3824
|
]
|
|
3825
3825
|
}
|
|
3826
3826
|
);
|
|
@@ -3842,7 +3842,7 @@ function Xp({
|
|
|
3842
3842
|
};
|
|
3843
3843
|
}),
|
|
3844
3844
|
[u, k, i]
|
|
3845
|
-
), N = Math.max(L.length, 1), C =
|
|
3845
|
+
), N = Math.max(L.length, 1), C = Wc({
|
|
3846
3846
|
data: t,
|
|
3847
3847
|
columns: L,
|
|
3848
3848
|
getCoreRowModel: Xc(),
|
|
@@ -4181,7 +4181,7 @@ function yi(t) {
|
|
|
4181
4181
|
return console.error("Unable to stringify debug payload", a), null;
|
|
4182
4182
|
}
|
|
4183
4183
|
}
|
|
4184
|
-
function
|
|
4184
|
+
function Qn(t) {
|
|
4185
4185
|
switch (t) {
|
|
4186
4186
|
case "queryRequest":
|
|
4187
4187
|
return "Query request";
|
|
@@ -4287,21 +4287,21 @@ function jo({
|
|
|
4287
4287
|
const N = s === "queryResponse" ? af(L) : { value: L }, C = yi(N.value);
|
|
4288
4288
|
return C ? {
|
|
4289
4289
|
target: s,
|
|
4290
|
-
title:
|
|
4290
|
+
title: Qn(s),
|
|
4291
4291
|
json: C,
|
|
4292
4292
|
truncationMessage: N.truncationMessage
|
|
4293
4293
|
} : null;
|
|
4294
4294
|
}, [s, m]), p = h ? h.title : "Inspect payload", y = async (L) => {
|
|
4295
4295
|
const N = m[L];
|
|
4296
4296
|
if (N === void 0)
|
|
4297
|
-
return Ze.error(`No ${
|
|
4297
|
+
return Ze.error(`No ${Qn(L).toLowerCase()} available`), !1;
|
|
4298
4298
|
const C = yi(N);
|
|
4299
4299
|
if (!C)
|
|
4300
|
-
return Ze.error(`Unable to serialize ${
|
|
4300
|
+
return Ze.error(`Unable to serialize ${Qn(L).toLowerCase()}`), !1;
|
|
4301
4301
|
try {
|
|
4302
|
-
return await vi.writeTextToClipboard(C) ? (Ze.success(`${
|
|
4302
|
+
return await vi.writeTextToClipboard(C) ? (Ze.success(`${Qn(L)} copied`), !0) : (Ze.error("Clipboard is not available"), !1);
|
|
4303
4303
|
} catch (E) {
|
|
4304
|
-
return console.error("Failed to copy debug payload", E), Ze.error(`Unable to copy ${
|
|
4304
|
+
return console.error("Failed to copy debug payload", E), Ze.error(`Unable to copy ${Qn(L).toLowerCase()}`), !1;
|
|
4305
4305
|
}
|
|
4306
4306
|
}, f = async () => h ? y(h.target) : !1, v = async (L) => {
|
|
4307
4307
|
if (!L.value)
|
|
@@ -4313,7 +4313,7 @@ function jo({
|
|
|
4313
4313
|
}
|
|
4314
4314
|
}, k = (L) => {
|
|
4315
4315
|
if (m[L] === void 0) {
|
|
4316
|
-
Ze.error(`No ${
|
|
4316
|
+
Ze.error(`No ${Qn(L).toLowerCase()} available`);
|
|
4317
4317
|
return;
|
|
4318
4318
|
}
|
|
4319
4319
|
r(L);
|
|
@@ -4535,8 +4535,8 @@ function Ko({
|
|
|
4535
4535
|
style: a,
|
|
4536
4536
|
...s
|
|
4537
4537
|
}) {
|
|
4538
|
-
var be,
|
|
4539
|
-
const r = A((me) => me.card), c = Ir(), l = A((me) => me.isDevMode) ? !1 : ((be = r.customCardPreferences) == null ? void 0 : be.showCardHeader) ?? !0, i = ((
|
|
4538
|
+
var be, Qe, We, St, he, Fe, Be;
|
|
4539
|
+
const r = A((me) => me.card), c = Ir(), l = A((me) => me.isDevMode) ? !1 : ((be = r.customCardPreferences) == null ? void 0 : be.showCardHeader) ?? !0, i = ((We = (Qe = r.preferences) == null ? void 0 : Qe.displayOptions) == null ? void 0 : We.showInlineFilterBar) ?? !0, d = A((me) => me.frame), m = A(
|
|
4540
4540
|
(me) => me.inlineFilterValuesMap[r.id]
|
|
4541
4541
|
), u = ve((me) => me.dashboard.filters), x = ve((me) => me.selectedSheetId), [g, h] = U(!1), { currentUser: p } = Dr(), { tokenProps: y } = wr(Er), f = A((me) => me.actions.setRunSql), v = A(
|
|
4542
4542
|
(me) => me.actions.setCardInlineFilterValue
|
|
@@ -4581,7 +4581,7 @@ function Ko({
|
|
|
4581
4581
|
data: S,
|
|
4582
4582
|
isLoading: O,
|
|
4583
4583
|
isFetching: P
|
|
4584
|
-
}), { handleOpenInEditor:
|
|
4584
|
+
}), { handleOpenInEditor: W, handleDebugWithAssistant: K } = jr(B, z || r.sql || r.python), Z = ce(() => (S == null ? void 0 : S.records) || [], [S == null ? void 0 : S.records]), { setCard: J, updateCardInFrame: ue } = Ne(), { data: ye } = Ar(V), Ee = V.id, Oe = V.config, Pe = V.interactionConfig, tt = V.customCfg, nt = V.preferences, ie = V.queryConfig, ke = !!V.sql, qe = S == null ? void 0 : S.records, lt = ce(
|
|
4585
4585
|
() => ({
|
|
4586
4586
|
id: Ee,
|
|
4587
4587
|
type: R,
|
|
@@ -4668,7 +4668,7 @@ function Ko({
|
|
|
4668
4668
|
J(Ke), ue(Ke), r.sql && ((Pt = (Ue = r.preferences) == null ? void 0 : Ue.tablePrefs) != null && Pt.enableDevModePagination) && f(!0);
|
|
4669
4669
|
}, fe = ce(() => {
|
|
4670
4670
|
var me;
|
|
4671
|
-
return !Ee || !qe ? null :
|
|
4671
|
+
return !Ee || !qe ? null : Qi({
|
|
4672
4672
|
card: lt,
|
|
4673
4673
|
data: qe,
|
|
4674
4674
|
cardType: R,
|
|
@@ -4703,7 +4703,7 @@ function Ko({
|
|
|
4703
4703
|
{
|
|
4704
4704
|
error: B,
|
|
4705
4705
|
errorSql: z || r.sql || r.python,
|
|
4706
|
-
onOpenInEditor:
|
|
4706
|
+
onOpenInEditor: W,
|
|
4707
4707
|
onDebugWithAssistant: K,
|
|
4708
4708
|
onSendFeedback: Je,
|
|
4709
4709
|
showFeedbackButton: !0
|
|
@@ -4713,7 +4713,7 @@ function Ko({
|
|
|
4713
4713
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "No results to display" })
|
|
4714
4714
|
] });
|
|
4715
4715
|
if ((O || P) && (!(S != null && S.records) || S.records.length === 0) && !$)
|
|
4716
|
-
return R === "table" || R === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(hd, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
4716
|
+
return R === "table" || R === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(hd, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted", "aria-label": "Loading data" }) });
|
|
4717
4717
|
if (!V.id) return null;
|
|
4718
4718
|
if (R === "custom")
|
|
4719
4719
|
return we(r);
|
|
@@ -4798,7 +4798,7 @@ function Ko({
|
|
|
4798
4798
|
) });
|
|
4799
4799
|
}
|
|
4800
4800
|
return /* @__PURE__ */ n(
|
|
4801
|
-
|
|
4801
|
+
Wi,
|
|
4802
4802
|
{
|
|
4803
4803
|
role: "editor-visual-card",
|
|
4804
4804
|
className: Y(
|
|
@@ -4811,7 +4811,7 @@ function Ko({
|
|
|
4811
4811
|
},
|
|
4812
4812
|
...s,
|
|
4813
4813
|
children: [
|
|
4814
|
-
(O || P) && (S == null ? void 0 : S.records) && S.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
|
|
4814
|
+
(O || P) && (S == null ? void 0 : S.records) && S.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
|
|
4815
4815
|
l && /* @__PURE__ */ n(
|
|
4816
4816
|
od,
|
|
4817
4817
|
{
|
|
@@ -5035,7 +5035,7 @@ function of({
|
|
|
5035
5035
|
}, I = () => {
|
|
5036
5036
|
var M, R, V;
|
|
5037
5037
|
if (!((M = k == null ? void 0 : k.records) != null && M.length)) return;
|
|
5038
|
-
const D =
|
|
5038
|
+
const D = Qi({
|
|
5039
5039
|
card: h,
|
|
5040
5040
|
data: k.records,
|
|
5041
5041
|
cardType: h.type,
|
|
@@ -5575,7 +5575,7 @@ function ff({
|
|
|
5575
5575
|
)
|
|
5576
5576
|
] });
|
|
5577
5577
|
}
|
|
5578
|
-
const
|
|
5578
|
+
const Wn = {
|
|
5579
5579
|
table: Os,
|
|
5580
5580
|
matrixTable: ps,
|
|
5581
5581
|
bar: ws,
|
|
@@ -5626,7 +5626,7 @@ const Qn = {
|
|
|
5626
5626
|
{ id: "pie" },
|
|
5627
5627
|
{ id: "kpi" },
|
|
5628
5628
|
{ id: "doughnut" }
|
|
5629
|
-
],
|
|
5629
|
+
], Qo = 6;
|
|
5630
5630
|
function gf({
|
|
5631
5631
|
selectedChart: t,
|
|
5632
5632
|
onChartChange: a
|
|
@@ -5651,17 +5651,17 @@ function gf({
|
|
|
5651
5651
|
...C.map((w) => ({
|
|
5652
5652
|
id: w.id,
|
|
5653
5653
|
label: w.name,
|
|
5654
|
-
icon: w.type === "default" ?
|
|
5654
|
+
icon: w.type === "default" ? Wn[w.id] : void 0,
|
|
5655
5655
|
isCustom: w.type === "custom",
|
|
5656
5656
|
url: w.url
|
|
5657
5657
|
})),
|
|
5658
5658
|
...I.map((w) => ({
|
|
5659
5659
|
id: w.id,
|
|
5660
5660
|
label: Ca[w.id] ?? w.id,
|
|
5661
|
-
icon:
|
|
5661
|
+
icon: Wn[w.id],
|
|
5662
5662
|
isCustom: !1
|
|
5663
5663
|
}))
|
|
5664
|
-
].slice(0,
|
|
5664
|
+
].slice(0, Qo);
|
|
5665
5665
|
}, [h, p, y]), v = t === "custom" && ((L = c == null ? void 0 : c.customCardPreferences) == null ? void 0 : L.componentName);
|
|
5666
5666
|
return f.some(
|
|
5667
5667
|
(C) => {
|
|
@@ -5671,7 +5671,7 @@ function gf({
|
|
|
5671
5671
|
) || (t === "custom" ? (N = c == null ? void 0 : c.customCardPreferences) != null && N.componentName : Ca[t]), /* @__PURE__ */ n("div", { className: "px-4 pb-3 pt-4", children: [
|
|
5672
5672
|
/* @__PURE__ */ e("p", { className: "pb-1.5 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Chart type" }),
|
|
5673
5673
|
/* @__PURE__ */ e(
|
|
5674
|
-
|
|
5674
|
+
Wo,
|
|
5675
5675
|
{
|
|
5676
5676
|
selectedChart: t,
|
|
5677
5677
|
onChartChange: a,
|
|
@@ -5680,7 +5680,7 @@ function gf({
|
|
|
5680
5680
|
)
|
|
5681
5681
|
] });
|
|
5682
5682
|
}
|
|
5683
|
-
function
|
|
5683
|
+
function Wo({
|
|
5684
5684
|
selectedChart: t,
|
|
5685
5685
|
onChartChange: a,
|
|
5686
5686
|
compactMore: s = !1
|
|
@@ -5704,14 +5704,14 @@ function Qo({
|
|
|
5704
5704
|
...w.map((F) => ({
|
|
5705
5705
|
id: F.id,
|
|
5706
5706
|
label: F.name,
|
|
5707
|
-
icon: F.type === "default" ?
|
|
5707
|
+
icon: F.type === "default" ? Wn[F.id] : void 0,
|
|
5708
5708
|
isCustom: F.type === "custom",
|
|
5709
5709
|
url: F.url
|
|
5710
5710
|
})),
|
|
5711
5711
|
...M.map((F) => ({
|
|
5712
5712
|
id: F.id,
|
|
5713
5713
|
label: Ca[F.id] ?? F.id,
|
|
5714
|
-
icon:
|
|
5714
|
+
icon: Wn[F.id],
|
|
5715
5715
|
isCustom: !1
|
|
5716
5716
|
}))
|
|
5717
5717
|
];
|
|
@@ -5729,13 +5729,13 @@ function Qo({
|
|
|
5729
5729
|
isCustom: !0,
|
|
5730
5730
|
url: F.url
|
|
5731
5731
|
});
|
|
5732
|
-
} else t &&
|
|
5732
|
+
} else t && Wn[t] && Na(t, { isDevMode: f }) && R.unshift({
|
|
5733
5733
|
id: t,
|
|
5734
5734
|
label: Ca[t] ?? t,
|
|
5735
|
-
icon:
|
|
5735
|
+
icon: Wn[t],
|
|
5736
5736
|
isCustom: !1
|
|
5737
5737
|
});
|
|
5738
|
-
return R.slice(0,
|
|
5738
|
+
return R.slice(0, Qo);
|
|
5739
5739
|
}, [
|
|
5740
5740
|
p,
|
|
5741
5741
|
y,
|
|
@@ -5964,7 +5964,7 @@ function Ur({
|
|
|
5964
5964
|
) }),
|
|
5965
5965
|
/* @__PURE__ */ n(aa, { align: "end", className: "w-64", children: [
|
|
5966
5966
|
/* @__PURE__ */ e(ka, { children: "Display Options" }),
|
|
5967
|
-
/* @__PURE__ */ e(
|
|
5967
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
5968
5968
|
/* @__PURE__ */ e("div", { className: "px-2 py-1.5", children: /* @__PURE__ */ e("p", { className: "mb-2 text-xs text-muted-foreground", children: "Changes apply to dashboard view only" }) }),
|
|
5969
5969
|
/* @__PURE__ */ n(
|
|
5970
5970
|
mn,
|
|
@@ -6060,7 +6060,7 @@ function Gr({
|
|
|
6060
6060
|
(T) => T.actions.setCardInlineFilterValue
|
|
6061
6061
|
), h = ve((T) => T.isVisualEditing), p = (o == null ? void 0 : o.inlineFilters) || [], y = ((E = (C = i == null ? void 0 : i.params) == null ? void 0 : C.calendarContext) == null ? void 0 : E.tz) || ((I = i == null ? void 0 : i.params) == null ? void 0 : I.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
6062
6062
|
function f(T) {
|
|
6063
|
-
var z, _, $, H,
|
|
6063
|
+
var z, _, $, H, W, K, Z;
|
|
6064
6064
|
const w = (($ = (_ = (z = o == null ? void 0 : o.dataSource) == null ? void 0 : z.selectedEntities) == null ? void 0 : _[0]) == null ? void 0 : $.database) || "", D = T.qualifiedFieldName || T.name;
|
|
6065
6065
|
if (p.find(
|
|
6066
6066
|
(J) => Bd(J, T)
|
|
@@ -6068,7 +6068,7 @@ function Gr({
|
|
|
6068
6068
|
return;
|
|
6069
6069
|
const R = T.qualifiedFieldName ? T.qualifiedFieldName.split(".").slice(0, -1).join(".") : T.qualifiedEntityName || T.entityName, F = eh(T.name), b = _d(T), S = zd(o == null ? void 0 : o.dataSource, {
|
|
6070
6070
|
connectionId: l || ((H = o == null ? void 0 : o.dataSource) == null ? void 0 : H.connectionId),
|
|
6071
|
-
connectionType: (
|
|
6071
|
+
connectionType: (W = o == null ? void 0 : o.dataSource) == null ? void 0 : W.connectionType
|
|
6072
6072
|
}), O = $d(b), P = !!(((K = o == null ? void 0 : o.dataSource) == null ? void 0 : K.mode) === "semanticDomain" && ((Z = S == null ? void 0 : S.selectedEntities) != null && Z.length || S != null && S.semanticDomainId)), B = {
|
|
6073
6073
|
id: Fn(),
|
|
6074
6074
|
column: D,
|
|
@@ -6526,33 +6526,33 @@ function wf({
|
|
|
6526
6526
|
value: O || "__none__",
|
|
6527
6527
|
onValueChange: (_) => f(N, ($) => {
|
|
6528
6528
|
if ($.target === "config_metric_selector") {
|
|
6529
|
-
const
|
|
6529
|
+
const W = { ...$.mapping };
|
|
6530
6530
|
if (_ === "__none__")
|
|
6531
|
-
delete
|
|
6531
|
+
delete W[b.value];
|
|
6532
6532
|
else {
|
|
6533
6533
|
const K = z.find(
|
|
6534
6534
|
(Z) => Z.value === _
|
|
6535
6535
|
);
|
|
6536
|
-
K != null && K.target ?
|
|
6536
|
+
K != null && K.target ? W[b.value] = K.target : delete W[b.value];
|
|
6537
6537
|
}
|
|
6538
6538
|
return {
|
|
6539
6539
|
...$,
|
|
6540
|
-
mapping:
|
|
6540
|
+
mapping: W
|
|
6541
6541
|
};
|
|
6542
6542
|
}
|
|
6543
6543
|
if ($.target === "config_field_selector") {
|
|
6544
|
-
const
|
|
6544
|
+
const W = { ...$.mapping };
|
|
6545
6545
|
if (_ === "__none__")
|
|
6546
|
-
delete
|
|
6546
|
+
delete W[b.value];
|
|
6547
6547
|
else {
|
|
6548
6548
|
const K = z.find(
|
|
6549
6549
|
(Z) => Z.value === _
|
|
6550
6550
|
);
|
|
6551
|
-
K != null && K.target ?
|
|
6551
|
+
K != null && K.target ? W[b.value] = K.target : delete W[b.value];
|
|
6552
6552
|
}
|
|
6553
6553
|
return {
|
|
6554
6554
|
...$,
|
|
6555
|
-
mapping:
|
|
6555
|
+
mapping: W
|
|
6556
6556
|
};
|
|
6557
6557
|
}
|
|
6558
6558
|
const H = { ...$.mapping };
|
|
@@ -6861,17 +6861,17 @@ function Tf({
|
|
|
6861
6861
|
}, D = (_, $) => {
|
|
6862
6862
|
const H = _.dataTransfer.getData("tabIndex");
|
|
6863
6863
|
if (H === $.toString()) return;
|
|
6864
|
-
const
|
|
6865
|
-
|
|
6864
|
+
const W = Array.from(r.cards), [K] = W.splice(parseInt(H), 1);
|
|
6865
|
+
W.splice($, 0, K), i({ ...r, cards: W });
|
|
6866
6866
|
};
|
|
6867
6867
|
function M(_) {
|
|
6868
6868
|
const $ = (s == null ? void 0 : s.id) === _;
|
|
6869
6869
|
if (!(I && $ ? r.cards.length > 1 : E)) return;
|
|
6870
|
-
let
|
|
6871
|
-
f && !I && (
|
|
6872
|
-
const K =
|
|
6870
|
+
let W = r.cards.filter((ue) => ue.id !== _);
|
|
6871
|
+
f && !I && (W = su(W));
|
|
6872
|
+
const K = W[0], Z = {
|
|
6873
6873
|
...r,
|
|
6874
|
-
cards:
|
|
6874
|
+
cards: W,
|
|
6875
6875
|
// update the active card to the first card in the frame
|
|
6876
6876
|
activeCardId: K.id
|
|
6877
6877
|
}, J = _ === c.id;
|
|
@@ -6913,7 +6913,7 @@ function Tf({
|
|
|
6913
6913
|
function F(_) {
|
|
6914
6914
|
var J;
|
|
6915
6915
|
if (l || !C) return;
|
|
6916
|
-
let $ = f ? "table" : "bar", H = "Title",
|
|
6916
|
+
let $ = f ? "table" : "bar", H = "Title", W = "";
|
|
6917
6917
|
const K = f ? Math.max(
|
|
6918
6918
|
-1,
|
|
6919
6919
|
...L.map(
|
|
@@ -6925,7 +6925,7 @@ function Tf({
|
|
|
6925
6925
|
p.slots,
|
|
6926
6926
|
K
|
|
6927
6927
|
);
|
|
6928
|
-
ue && ($ = ru(ue), H = ue.label || `Tab ${K + 1}`,
|
|
6928
|
+
ue && ($ = ru(ue), H = ue.label || `Tab ${K + 1}`, W = ue.description || "");
|
|
6929
6929
|
}
|
|
6930
6930
|
const Z = {
|
|
6931
6931
|
dataSource: _.dataSource,
|
|
@@ -6937,7 +6937,7 @@ function Tf({
|
|
|
6937
6937
|
id: Fn(),
|
|
6938
6938
|
title: H,
|
|
6939
6939
|
tabTitle: H,
|
|
6940
|
-
description:
|
|
6940
|
+
description: W,
|
|
6941
6941
|
preferences: {
|
|
6942
6942
|
onClickFilter: [
|
|
6943
6943
|
{
|
|
@@ -6987,7 +6987,7 @@ function Tf({
|
|
|
6987
6987
|
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
|
|
6988
6988
|
r.cards.map((_, $) => {
|
|
6989
6989
|
var J, ue;
|
|
6990
|
-
const H = f ? tn(_, $) : -1,
|
|
6990
|
+
const H = f ? tn(_, $) : -1, W = f && ((J = p == null ? void 0 : p.slots) != null && J.length) && H >= 0 ? mr(p.slots, H) : null, K = W ? (Array.isArray(W.expectedType) ? W.expectedType[0] : W.expectedType) || "table" : _.type, Z = f && ((ue = p == null ? void 0 : p.slots) == null ? void 0 : ue.length) && p.slots.every(
|
|
6991
6991
|
(ye) => typeof ye.position == "number" || typeof ye.position == "string" && !ye.position.includes("+")
|
|
6992
6992
|
);
|
|
6993
6993
|
return /* @__PURE__ */ n(
|
|
@@ -7005,12 +7005,12 @@ function Tf({
|
|
|
7005
7005
|
),
|
|
7006
7006
|
value: _.id,
|
|
7007
7007
|
children: [
|
|
7008
|
-
f &&
|
|
7008
|
+
f && W ? (
|
|
7009
7009
|
// Multi-input visual: Icon + Slot Label (non-editable, no eye icon)
|
|
7010
7010
|
/* @__PURE__ */ e(_t, { delayDuration: 0, children: /* @__PURE__ */ n(At, { children: [
|
|
7011
7011
|
/* @__PURE__ */ e(Ot, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
7012
7012
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: eo(K, "size-3.5") }),
|
|
7013
|
-
/* @__PURE__ */ e("span", { children:
|
|
7013
|
+
/* @__PURE__ */ e("span", { children: W.label || `Tab ${H + 1}` })
|
|
7014
7014
|
] }) }),
|
|
7015
7015
|
/* @__PURE__ */ e(
|
|
7016
7016
|
Et,
|
|
@@ -7018,11 +7018,11 @@ function Tf({
|
|
|
7018
7018
|
side: "bottom",
|
|
7019
7019
|
className: "w-64 p-3 text-left",
|
|
7020
7020
|
children: /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
7021
|
-
/* @__PURE__ */ e("p", { className: "text-xs font-medium", children:
|
|
7022
|
-
|
|
7021
|
+
/* @__PURE__ */ e("p", { className: "text-xs font-medium", children: W.label }),
|
|
7022
|
+
W.description && /* @__PURE__ */ e("p", { className: "whitespace-normal break-words text-xs text-muted-foreground", children: W.description }),
|
|
7023
7023
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2 pt-1", children: [
|
|
7024
|
-
|
|
7025
|
-
|
|
7024
|
+
W.expectedType && /* @__PURE__ */ e("span", { className: "inline-flex items-center rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground", children: Array.isArray(W.expectedType) ? W.expectedType.join(" / ") : W.expectedType }),
|
|
7025
|
+
W.required && /* @__PURE__ */ e("span", { className: "inline-flex items-center rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Required" })
|
|
7026
7026
|
] })
|
|
7027
7027
|
] })
|
|
7028
7028
|
}
|
|
@@ -7099,7 +7099,7 @@ function On({
|
|
|
7099
7099
|
renderCardOverride: t,
|
|
7100
7100
|
alwaysRenderOverride: a = !1
|
|
7101
7101
|
} = {}) {
|
|
7102
|
-
var de, be,
|
|
7102
|
+
var de, be, Qe, We, St;
|
|
7103
7103
|
const s = A((he) => he.frame), r = A((he) => he.card), [c, o] = U(!1), l = ce(
|
|
7104
7104
|
() => $n(s, r),
|
|
7105
7105
|
[s, r]
|
|
@@ -7116,13 +7116,13 @@ function On({
|
|
|
7116
7116
|
} = Ne(), [y, f] = U({}), [v, k] = U(
|
|
7117
7117
|
() => /* @__PURE__ */ new Set()
|
|
7118
7118
|
), { authToken: L } = Nn(), N = ch(L == null ? void 0 : L.accessToken), { compiledAppearance: C } = dh(), E = ce(
|
|
7119
|
-
() =>
|
|
7119
|
+
() => Qd(C),
|
|
7120
7120
|
[C]
|
|
7121
7121
|
), {
|
|
7122
7122
|
getCard: I,
|
|
7123
7123
|
manifest: T,
|
|
7124
7124
|
isLoading: w
|
|
7125
|
-
} = Cn(((de = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : de.url) || ""), D = (be = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : be.componentName, M = D ? I(D) : null, R = (
|
|
7125
|
+
} = Cn(((de = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : de.url) || ""), D = (be = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : be.componentName, M = D ? I(D) : null, R = (Qe = T == null ? void 0 : T.visuals) == null ? void 0 : Qe.find(
|
|
7126
7126
|
(he) => he.name === D
|
|
7127
7127
|
), V = wn(l, R), F = c && V === "multiple" && !!l, b = ce(() => $a({
|
|
7128
7128
|
frame: s,
|
|
@@ -7150,7 +7150,7 @@ function On({
|
|
|
7150
7150
|
python: "",
|
|
7151
7151
|
config: void 0,
|
|
7152
7152
|
queryConfig: void 0
|
|
7153
|
-
} : P !== r.type ? { ...r, type: P } : r, [r, P, F]), { data: z, isLoading: _, isFetching: $, isError: H, errorMessage:
|
|
7153
|
+
} : P !== r.type ? { ...r, type: P } : r, [r, P, F]), { data: z, isLoading: _, isFetching: $, isError: H, errorMessage: W, errorSql: K } = wt(B), { handleOpenInEditor: Z, handleDebugWithAssistant: J } = jr(W, K || r.sql || r.python), ue = r.type === "text" && ((St = (We = r.preferences) == null ? void 0 : We.textVisualOptions) == null ? void 0 : St.isDynamicText) === !0 && !!W, ye = Se(
|
|
7154
7154
|
(he, Fe) => {
|
|
7155
7155
|
const Be = Yd(Fe);
|
|
7156
7156
|
f((me) => ({
|
|
@@ -7179,7 +7179,7 @@ function On({
|
|
|
7179
7179
|
), mt = A(
|
|
7180
7180
|
(he) => he.actions.removeCardInlineFilterValue
|
|
7181
7181
|
), xe = ce(
|
|
7182
|
-
() => l ?
|
|
7182
|
+
() => l ? Wd({
|
|
7183
7183
|
card: l,
|
|
7184
7184
|
sheetId: ke || "",
|
|
7185
7185
|
inlineFilterValues: qe,
|
|
@@ -7227,7 +7227,7 @@ function On({
|
|
|
7227
7227
|
}
|
|
7228
7228
|
function fe() {
|
|
7229
7229
|
if (w)
|
|
7230
|
-
return /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
7230
|
+
return /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted", "aria-label": "Loading manifest" }) });
|
|
7231
7231
|
if (!M)
|
|
7232
7232
|
return /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: "Select a component to preview the multi-input visual." });
|
|
7233
7233
|
const Fe = S.map(
|
|
@@ -7256,7 +7256,7 @@ function On({
|
|
|
7256
7256
|
`${Be.id}-${je}`
|
|
7257
7257
|
);
|
|
7258
7258
|
}),
|
|
7259
|
-
Oe && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
|
|
7259
|
+
Oe && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted", "aria-label": "Loading preview" }) }),
|
|
7260
7260
|
/* @__PURE__ */ e(
|
|
7261
7261
|
"div",
|
|
7262
7262
|
{
|
|
@@ -7267,7 +7267,7 @@ function On({
|
|
|
7267
7267
|
children: /* @__PURE__ */ e(
|
|
7268
7268
|
Oc,
|
|
7269
7269
|
{
|
|
7270
|
-
fallback: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
7270
|
+
fallback: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted" }) }),
|
|
7271
7271
|
children: /* @__PURE__ */ e(
|
|
7272
7272
|
M,
|
|
7273
7273
|
{
|
|
@@ -7296,13 +7296,13 @@ function On({
|
|
|
7296
7296
|
}
|
|
7297
7297
|
function we() {
|
|
7298
7298
|
var he;
|
|
7299
|
-
return F ? fe() : t && (a || !_ && !$ && !H && !
|
|
7299
|
+
return F ? fe() : t && (a || !_ && !$ && !H && !W) ? t({
|
|
7300
7300
|
card: r,
|
|
7301
7301
|
data: z,
|
|
7302
7302
|
isLoading: _,
|
|
7303
7303
|
isFetching: $,
|
|
7304
7304
|
isError: H
|
|
7305
|
-
}) : r.type === "kpi" ? _ || $ ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
7305
|
+
}) : r.type === "kpi" ? _ || $ ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Qt, { 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: [
|
|
7306
7306
|
/* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
7307
7307
|
Xd,
|
|
7308
7308
|
{
|
|
@@ -7314,10 +7314,10 @@ function On({
|
|
|
7314
7314
|
}
|
|
7315
7315
|
) }),
|
|
7316
7316
|
Yi(r) && /* @__PURE__ */ e(Xi, { card: r, mode: "editor" })
|
|
7317
|
-
] }) }) : r.type === "text" ? _ || $ ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
7317
|
+
] }) }) : r.type === "text" ? _ || $ ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : ue ? /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col overflow-auto p-4", children: /* @__PURE__ */ e(
|
|
7318
7318
|
Rs,
|
|
7319
7319
|
{
|
|
7320
|
-
error:
|
|
7320
|
+
error: W,
|
|
7321
7321
|
errorSql: K || r.sql || r.python,
|
|
7322
7322
|
onOpenInEditor: Z,
|
|
7323
7323
|
onDebugWithAssistant: J,
|
|
@@ -7449,7 +7449,7 @@ function Yo({
|
|
|
7449
7449
|
}
|
|
7450
7450
|
return /* @__PURE__ */ n("div", { className: "flex h-full min-h-0 flex-col", children: [
|
|
7451
7451
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 bg-background px-2", children: y ? /* @__PURE__ */ e(
|
|
7452
|
-
|
|
7452
|
+
Ql,
|
|
7453
7453
|
{
|
|
7454
7454
|
card: o,
|
|
7455
7455
|
records: a,
|
|
@@ -7492,7 +7492,7 @@ function Yo({
|
|
|
7492
7492
|
] }) }),
|
|
7493
7493
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ n(an, { direction: "horizontal", children: [
|
|
7494
7494
|
/* @__PURE__ */ e(ft, { defaultSize: 54, minSize: 38, children: /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col", children: /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 bg-background p-4", children: v ? /* @__PURE__ */ e(
|
|
7495
|
-
|
|
7495
|
+
Ql,
|
|
7496
7496
|
{
|
|
7497
7497
|
card: f,
|
|
7498
7498
|
records: a,
|
|
@@ -7656,7 +7656,7 @@ function Xo({
|
|
|
7656
7656
|
), c(m), r(!0);
|
|
7657
7657
|
};
|
|
7658
7658
|
return /* @__PURE__ */ n(Te, { children: [
|
|
7659
|
-
/* @__PURE__ */ e(
|
|
7659
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
7660
7660
|
/* @__PURE__ */ n(
|
|
7661
7661
|
dt,
|
|
7662
7662
|
{
|
|
@@ -7788,7 +7788,7 @@ function nr({
|
|
|
7788
7788
|
data: _,
|
|
7789
7789
|
isLoading: $,
|
|
7790
7790
|
isFetching: H,
|
|
7791
|
-
errorMessage:
|
|
7791
|
+
errorMessage: W,
|
|
7792
7792
|
errorSql: K,
|
|
7793
7793
|
refetch: Z,
|
|
7794
7794
|
queryKey: J,
|
|
@@ -7796,9 +7796,9 @@ function nr({
|
|
|
7796
7796
|
} = wt(z), ye = De(J);
|
|
7797
7797
|
ye.current = J;
|
|
7798
7798
|
const { handleDebugWithAssistant: Ee } = jr(
|
|
7799
|
-
|
|
7799
|
+
W,
|
|
7800
7800
|
K
|
|
7801
|
-
), Oe = ce(() => (_ == null ? void 0 : _.records) || [], [_ == null ? void 0 : _.records]), { cardFilterValues: Pe } =
|
|
7801
|
+
), Oe = ce(() => (_ == null ? void 0 : _.records) || [], [_ == null ? void 0 : _.records]), { cardFilterValues: Pe } = Qp(
|
|
7802
7802
|
(i == null ? void 0 : i.id) ?? ""
|
|
7803
7803
|
), [tt, nt] = U(!1);
|
|
7804
7804
|
Ce(() => {
|
|
@@ -7825,17 +7825,17 @@ function nr({
|
|
|
7825
7825
|
R(fe);
|
|
7826
7826
|
const we = {
|
|
7827
7827
|
...l,
|
|
7828
|
-
cards: l.cards.map((
|
|
7828
|
+
cards: l.cards.map((Qe) => Qe.id === i.id ? fe : Qe)
|
|
7829
7829
|
};
|
|
7830
7830
|
M(we), i.sql && ((be = (de = i.preferences) == null ? void 0 : de.tablePrefs) != null && be.enableDevModePagination) && f(!0);
|
|
7831
7831
|
}
|
|
7832
7832
|
function ke(ge) {
|
|
7833
|
-
var de, be,
|
|
7833
|
+
var de, be, Qe, We, St;
|
|
7834
7834
|
const G = Mr(
|
|
7835
7835
|
ge,
|
|
7836
7836
|
(de = i.config) == null ? void 0 : de.metricColumns,
|
|
7837
7837
|
(be = i.config) == null ? void 0 : be.groupByColumns,
|
|
7838
|
-
(
|
|
7838
|
+
(Qe = i.config) == null ? void 0 : Qe.detailColumns
|
|
7839
7839
|
), fe = {
|
|
7840
7840
|
...i,
|
|
7841
7841
|
config: {
|
|
@@ -7848,7 +7848,7 @@ function nr({
|
|
|
7848
7848
|
...l,
|
|
7849
7849
|
cards: l.cards.map((he) => he.id === i.id ? fe : he)
|
|
7850
7850
|
};
|
|
7851
|
-
M(we), i.sql && ((St = (
|
|
7851
|
+
M(we), i.sql && ((St = (We = i.preferences) == null ? void 0 : We.tablePrefs) != null && St.enableDevModePagination) && f(!0);
|
|
7852
7852
|
}
|
|
7853
7853
|
function qe() {
|
|
7854
7854
|
var G;
|
|
@@ -7864,7 +7864,7 @@ function nr({
|
|
|
7864
7864
|
function mt() {
|
|
7865
7865
|
const G = [
|
|
7866
7866
|
Object.keys(
|
|
7867
|
-
_ == null ? void 0 : _.records.reduce((be,
|
|
7867
|
+
_ == null ? void 0 : _.records.reduce((be, Qe) => ({ ...be, ...Qe }), {})
|
|
7868
7868
|
).join(","),
|
|
7869
7869
|
...((_ == null ? void 0 : _.records) || []).map((be) => Object.values(be).join(","))
|
|
7870
7870
|
].join(`
|
|
@@ -7891,7 +7891,7 @@ function nr({
|
|
|
7891
7891
|
// across surfaces. `compactMore` collapses the "More"
|
|
7892
7892
|
// trigger to icon-only since the toolbar is space-tight.
|
|
7893
7893
|
/* @__PURE__ */ e(
|
|
7894
|
-
|
|
7894
|
+
Wo,
|
|
7895
7895
|
{
|
|
7896
7896
|
selectedChart: i.type,
|
|
7897
7897
|
onChartChange: (ge) => B(ge),
|
|
@@ -7899,7 +7899,7 @@ function nr({
|
|
|
7899
7899
|
}
|
|
7900
7900
|
) }) }),
|
|
7901
7901
|
!x && /* @__PURE__ */ e("div", { className: "grow" }),
|
|
7902
|
-
!$ && !H && !
|
|
7902
|
+
!$ && !H && !W && (_ == null ? void 0 : _.sql) && /* @__PURE__ */ e("div", { className: "inline-flex shrink-0 items-center text-[11px] text-muted-foreground", children: /* @__PURE__ */ n(Ia, { openDelay: 200, children: [
|
|
7903
7903
|
/* @__PURE__ */ e(Da, { asChild: !0, children: /* @__PURE__ */ e(
|
|
7904
7904
|
"button",
|
|
7905
7905
|
{
|
|
@@ -8075,7 +8075,7 @@ function nr({
|
|
|
8075
8075
|
onCustomize: () => D(!0)
|
|
8076
8076
|
}
|
|
8077
8077
|
),
|
|
8078
|
-
/* @__PURE__ */ e(
|
|
8078
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
8079
8079
|
/* @__PURE__ */ e(ka, { children: "Export" }),
|
|
8080
8080
|
/* @__PURE__ */ n(
|
|
8081
8081
|
dt,
|
|
@@ -8094,7 +8094,7 @@ function nr({
|
|
|
8094
8094
|
onSelect: lt,
|
|
8095
8095
|
className: "gap-2 text-[13px]",
|
|
8096
8096
|
children: [
|
|
8097
|
-
/* @__PURE__ */ e(
|
|
8097
|
+
/* @__PURE__ */ e(Wh, { className: "h-3.5 w-3.5" }),
|
|
8098
8098
|
"Download JSON"
|
|
8099
8099
|
]
|
|
8100
8100
|
}
|
|
@@ -8164,7 +8164,7 @@ function nr({
|
|
|
8164
8164
|
}
|
|
8165
8165
|
),
|
|
8166
8166
|
children: [
|
|
8167
|
-
Array.isArray(_ == null ? void 0 : _.records) && !
|
|
8167
|
+
Array.isArray(_ == null ? void 0 : _.records) && !W && (d ? /* @__PURE__ */ e(
|
|
8168
8168
|
Xp,
|
|
8169
8169
|
{
|
|
8170
8170
|
data: _.records,
|
|
@@ -8188,10 +8188,10 @@ function nr({
|
|
|
8188
8188
|
isLoading: $ || H
|
|
8189
8189
|
}
|
|
8190
8190
|
) : null),
|
|
8191
|
-
|
|
8191
|
+
W && /* @__PURE__ */ e("div", { className: "flex h-full flex-col items-start justify-start overflow-auto p-4", children: /* @__PURE__ */ e(
|
|
8192
8192
|
Rs,
|
|
8193
8193
|
{
|
|
8194
|
-
error:
|
|
8194
|
+
error: W,
|
|
8195
8195
|
errorSql: K || i.sql || i.python,
|
|
8196
8196
|
onDebugWithAssistant: Ee,
|
|
8197
8197
|
showFeedbackButton: !1
|
|
@@ -8728,7 +8728,7 @@ function ec() {
|
|
|
8728
8728
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && (!g || h) && /* @__PURE__ */ e(Te, { children: d && /* @__PURE__ */ e(
|
|
8729
8729
|
fn,
|
|
8730
8730
|
{
|
|
8731
|
-
icon: /* @__PURE__ */ e(
|
|
8731
|
+
icon: /* @__PURE__ */ e(Qh, { className: "h-3.5 w-3.5" }),
|
|
8732
8732
|
className: "h-9 w-full",
|
|
8733
8733
|
label: "Select Component",
|
|
8734
8734
|
options: (d == null ? void 0 : d.map((b) => ({
|
|
@@ -9409,7 +9409,7 @@ function Bf({
|
|
|
9409
9409
|
)
|
|
9410
9410
|
] }) : null;
|
|
9411
9411
|
}
|
|
9412
|
-
function
|
|
9412
|
+
function Qr({
|
|
9413
9413
|
chartType: t,
|
|
9414
9414
|
suffix: a = "Configuration"
|
|
9415
9415
|
}) {
|
|
@@ -9439,7 +9439,7 @@ function _f() {
|
|
|
9439
9439
|
});
|
|
9440
9440
|
};
|
|
9441
9441
|
return /* @__PURE__ */ n("div", { className: "space-y-6 px-6 py-4", children: [
|
|
9442
|
-
/* @__PURE__ */ e(
|
|
9442
|
+
/* @__PURE__ */ e(Qr, { chartType: "kpi" }),
|
|
9443
9443
|
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(Pf, {}) }),
|
|
9444
9444
|
t && /* @__PURE__ */ n("section", { className: "space-y-1.5", children: [
|
|
9445
9445
|
/* @__PURE__ */ e(q, { htmlFor: "query-kpi-favorable-direction", className: "text-xs", children: "Favorable direction" }),
|
|
@@ -9715,7 +9715,7 @@ function Kf() {
|
|
|
9715
9715
|
value: D
|
|
9716
9716
|
})) || [];
|
|
9717
9717
|
return /* @__PURE__ */ n("div", { className: "space-y-4 px-6 py-4", children: [
|
|
9718
|
-
/* @__PURE__ */ e(
|
|
9718
|
+
/* @__PURE__ */ e(Qr, { chartType: "map" }),
|
|
9719
9719
|
/* @__PURE__ */ e(wi, { open: !0, summary: "Settings", children: /* @__PURE__ */ n("div", { className: "space-y-3 px-2", children: [
|
|
9720
9720
|
/* @__PURE__ */ e(
|
|
9721
9721
|
fn,
|
|
@@ -10172,7 +10172,7 @@ function ac({
|
|
|
10172
10172
|
focusSection: s,
|
|
10173
10173
|
focusRequestId: r
|
|
10174
10174
|
}) {
|
|
10175
|
-
var $, H,
|
|
10175
|
+
var $, H, W;
|
|
10176
10176
|
const c = A((K) => K.card), o = A(
|
|
10177
10177
|
(K) => K.queryResultColumns
|
|
10178
10178
|
), l = A((K) => {
|
|
@@ -10189,7 +10189,7 @@ function ac({
|
|
|
10189
10189
|
h,
|
|
10190
10190
|
g
|
|
10191
10191
|
), f = Fu(x), v = x === "table", k = x === "table", L = ((H = p[0]) == null ? void 0 : H.value) || "", N = ku(
|
|
10192
|
-
(
|
|
10192
|
+
(W = l == null ? void 0 : l.tablePrefs) == null ? void 0 : W.conditionalFormatting
|
|
10193
10193
|
), C = Iu(i), E = Du(h), I = Eu(h), [T, w] = U("style");
|
|
10194
10194
|
Ce(() => {
|
|
10195
10195
|
if (s === "style") {
|
|
@@ -10391,7 +10391,7 @@ function ac({
|
|
|
10391
10391
|
}
|
|
10392
10392
|
) });
|
|
10393
10393
|
}
|
|
10394
|
-
function
|
|
10394
|
+
function Qf() {
|
|
10395
10395
|
var c;
|
|
10396
10396
|
const t = A((o) => o.card.preferences), { setCardPreferences: a } = A((o) => o.actions), s = (c = t == null ? void 0 : t.textVisualOptions) != null && c.isDynamicText ? "dynamic" : "static";
|
|
10397
10397
|
function r(o) {
|
|
@@ -10408,10 +10408,10 @@ function Wf() {
|
|
|
10408
10408
|
/* @__PURE__ */ e(Xt, { value: "dynamic", children: "Dynamic" })
|
|
10409
10409
|
] }) });
|
|
10410
10410
|
}
|
|
10411
|
-
function
|
|
10411
|
+
function Wf() {
|
|
10412
10412
|
return /* @__PURE__ */ n("div", { className: "space-y-2 px-6 py-4", children: [
|
|
10413
10413
|
/* @__PURE__ */ e("div", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Text mode" }),
|
|
10414
|
-
/* @__PURE__ */ e(
|
|
10414
|
+
/* @__PURE__ */ e(Qf, {}),
|
|
10415
10415
|
/* @__PURE__ */ e("p", { className: "pt-1 text-[12px] leading-[1.55] text-muted-foreground", children: "Static text is authored inline. Dynamic text reads from the first cell of the card's query." })
|
|
10416
10416
|
] });
|
|
10417
10417
|
}
|
|
@@ -10633,7 +10633,7 @@ function eg() {
|
|
|
10633
10633
|
}), s = xt(), { setCardPreferences: r, updateCardInFrame: c } = Ne(), o = ce(() => s !== t.type ? { ...t, type: s } : t, [t, s]), { data: l } = wt(o), [i, d] = U({}), [m, u] = U(
|
|
10634
10634
|
null
|
|
10635
10635
|
), [x, g] = U(null), h = ce(() => {
|
|
10636
|
-
var P, B, z, _, $, H,
|
|
10636
|
+
var P, B, z, _, $, H, W;
|
|
10637
10637
|
if (!(l != null && l.records) || l.records.length === 0) return [];
|
|
10638
10638
|
const b = s === "stackedBar" || s === "stackedLine", S = s === "bar" || s === "line" || s === "horizontalBar" || s === "bullet" || s === "combo" || s === "area" || s === "stackedArea", O = ((P = t == null ? void 0 : t.config) == null ? void 0 : P.pivotByColumns) && t.config.pivotByColumns.length > 0;
|
|
10639
10639
|
if ((b || S) && O) {
|
|
@@ -10663,7 +10663,7 @@ function eg() {
|
|
|
10663
10663
|
return t.config.metricColumns.map(
|
|
10664
10664
|
(K) => K.alias || K.label || K.name
|
|
10665
10665
|
);
|
|
10666
|
-
if ((
|
|
10666
|
+
if ((W = (H = t == null ? void 0 : t.config) == null ? void 0 : H.groupByColumns) != null && W.length) {
|
|
10667
10667
|
const K = t.config.groupByColumns[0], Z = K.label || K.name, J = /* @__PURE__ */ new Set();
|
|
10668
10668
|
return l.records.forEach((ue) => {
|
|
10669
10669
|
const ye = ue[Z];
|
|
@@ -10681,7 +10681,7 @@ function eg() {
|
|
|
10681
10681
|
Ce(() => {
|
|
10682
10682
|
const b = {};
|
|
10683
10683
|
h.forEach((S, O) => {
|
|
10684
|
-
b[S] =
|
|
10684
|
+
b[S] = Wl(
|
|
10685
10685
|
S,
|
|
10686
10686
|
O,
|
|
10687
10687
|
a == null ? void 0 : a.colorConfig
|
|
@@ -10741,7 +10741,7 @@ function eg() {
|
|
|
10741
10741
|
c(S);
|
|
10742
10742
|
const O = {};
|
|
10743
10743
|
h.forEach((P, B) => {
|
|
10744
|
-
O[P] =
|
|
10744
|
+
O[P] = Wl(P, B, void 0);
|
|
10745
10745
|
}), d(O);
|
|
10746
10746
|
}, N = Object.keys(((F = a == null ? void 0 : a.colorConfig) == null ? void 0 : F.segments) || {}).length > 0;
|
|
10747
10747
|
return /* @__PURE__ */ n(it, { value: "colors", className: "border-b-0", children: [
|
|
@@ -11903,15 +11903,15 @@ function cg() {
|
|
|
11903
11903
|
a,
|
|
11904
11904
|
t.preferences
|
|
11905
11905
|
), p = s ?? h, y = (h == null ? void 0 : h.enabled) ?? g ?? !1, f = (s == null ? void 0 : s.enabled) !== void 0 ? s.enabled : y, v = (z, _) => {
|
|
11906
|
-
const
|
|
11906
|
+
const W = {
|
|
11907
11907
|
...h ?? {},
|
|
11908
11908
|
...s ?? {},
|
|
11909
11909
|
[z]: _
|
|
11910
11910
|
};
|
|
11911
|
-
z === "enabled" && (
|
|
11911
|
+
z === "enabled" && (W.display = _, _ && u && !W.position && (W.position = "bottom")), z === "position" && u && (W.position = "bottom"), z === "formatMode" && _ === "inherit" && (W.format = void 0, W.formatOptions = void 0);
|
|
11912
11912
|
const K = {
|
|
11913
11913
|
...t.preferences || {},
|
|
11914
|
-
dataLabelsConfig:
|
|
11914
|
+
dataLabelsConfig: W
|
|
11915
11915
|
};
|
|
11916
11916
|
c(K);
|
|
11917
11917
|
const Z = {
|
|
@@ -11920,7 +11920,7 @@ function cg() {
|
|
|
11920
11920
|
};
|
|
11921
11921
|
o(Z);
|
|
11922
11922
|
}, k = (z, _) => {
|
|
11923
|
-
const $ = s ?? {},
|
|
11923
|
+
const $ = s ?? {}, W = {
|
|
11924
11924
|
...h ?? {},
|
|
11925
11925
|
...$,
|
|
11926
11926
|
font: {
|
|
@@ -11929,7 +11929,7 @@ function cg() {
|
|
|
11929
11929
|
}
|
|
11930
11930
|
}, K = {
|
|
11931
11931
|
...t.preferences || {},
|
|
11932
|
-
dataLabelsConfig:
|
|
11932
|
+
dataLabelsConfig: W
|
|
11933
11933
|
};
|
|
11934
11934
|
c(K);
|
|
11935
11935
|
const Z = {
|
|
@@ -12058,13 +12058,13 @@ function cg() {
|
|
|
12058
12058
|
formatMode: "override",
|
|
12059
12059
|
format: z ? "none" : void 0,
|
|
12060
12060
|
formatOptions: z ? void 0 : _.formatOptions
|
|
12061
|
-
},
|
|
12061
|
+
}, W = {
|
|
12062
12062
|
...t.preferences || {},
|
|
12063
12063
|
dataLabelsConfig: H
|
|
12064
12064
|
};
|
|
12065
|
-
c(
|
|
12065
|
+
c(W), o({
|
|
12066
12066
|
...t,
|
|
12067
|
-
preferences:
|
|
12067
|
+
preferences: W
|
|
12068
12068
|
});
|
|
12069
12069
|
}
|
|
12070
12070
|
}
|
|
@@ -12081,13 +12081,13 @@ function cg() {
|
|
|
12081
12081
|
formatMode: "override",
|
|
12082
12082
|
format: z.type && z.type !== "auto" ? z.type : void 0,
|
|
12083
12083
|
formatOptions: z
|
|
12084
|
-
},
|
|
12084
|
+
}, W = {
|
|
12085
12085
|
...t.preferences || {},
|
|
12086
12086
|
dataLabelsConfig: H
|
|
12087
12087
|
};
|
|
12088
|
-
c(
|
|
12088
|
+
c(W), o({
|
|
12089
12089
|
...t,
|
|
12090
|
-
preferences:
|
|
12090
|
+
preferences: W
|
|
12091
12091
|
});
|
|
12092
12092
|
},
|
|
12093
12093
|
showTitle: !1
|
|
@@ -12414,16 +12414,16 @@ function hg() {
|
|
|
12414
12414
|
...o.rangeKeys || {}
|
|
12415
12415
|
};
|
|
12416
12416
|
let _ = !1;
|
|
12417
|
-
if (ki.forEach((
|
|
12418
|
-
!z[
|
|
12417
|
+
if (ki.forEach((W, K) => {
|
|
12418
|
+
!z[W] && B[K] && (z[W] = B[K].value, _ = !0);
|
|
12419
12419
|
}), _ && (b.rangeKeys = z, S = !0, o.showRanges === void 0 && (b.showRanges = !0)), S) {
|
|
12420
|
-
const
|
|
12420
|
+
const W = Ii({
|
|
12421
12421
|
...o,
|
|
12422
12422
|
...b
|
|
12423
12423
|
});
|
|
12424
12424
|
r({
|
|
12425
12425
|
...t,
|
|
12426
|
-
bulletConfig:
|
|
12426
|
+
bulletConfig: W
|
|
12427
12427
|
});
|
|
12428
12428
|
}
|
|
12429
12429
|
}, [f, o, t, r]);
|
|
@@ -14476,7 +14476,7 @@ function Hg() {
|
|
|
14476
14476
|
] }) })
|
|
14477
14477
|
] });
|
|
14478
14478
|
}
|
|
14479
|
-
const
|
|
14479
|
+
const Qg = [0, 2, 4, 6, 8, 10, 12, 16, 20], Wg = [
|
|
14480
14480
|
{ value: "0.5", label: "50%" },
|
|
14481
14481
|
{ value: "0.6", label: "60%" },
|
|
14482
14482
|
{ value: "0.7", label: "70%" },
|
|
@@ -14524,7 +14524,7 @@ function Yg() {
|
|
|
14524
14524
|
onValueChange: (i) => l("borderRadius", Number(i)),
|
|
14525
14525
|
children: [
|
|
14526
14526
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
14527
|
-
/* @__PURE__ */ e(re, { children:
|
|
14527
|
+
/* @__PURE__ */ e(re, { children: Qg.map((i) => /* @__PURE__ */ e(
|
|
14528
14528
|
j,
|
|
14529
14529
|
{
|
|
14530
14530
|
value: String(i),
|
|
@@ -14546,7 +14546,7 @@ function Yg() {
|
|
|
14546
14546
|
onValueChange: (i) => l("barPercentage", Number(i)),
|
|
14547
14547
|
children: [
|
|
14548
14548
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
14549
|
-
/* @__PURE__ */ e(re, { children:
|
|
14549
|
+
/* @__PURE__ */ e(re, { children: Wg.map(({ value: i, label: d }) => /* @__PURE__ */ e(j, { value: i, className: "text-xs", children: d }, i)) })
|
|
14550
14550
|
]
|
|
14551
14551
|
}
|
|
14552
14552
|
)
|
|
@@ -14881,7 +14881,7 @@ function rc({ mode: t }) {
|
|
|
14881
14881
|
function rx() {
|
|
14882
14882
|
const t = A((s) => s.card), a = t == null ? void 0 : t.type;
|
|
14883
14883
|
return a ? /* @__PURE__ */ n("div", { className: "space-y-4 px-6 py-4", children: [
|
|
14884
|
-
/* @__PURE__ */ e(
|
|
14884
|
+
/* @__PURE__ */ e(Qr, { chartType: a }),
|
|
14885
14885
|
/* @__PURE__ */ e(Ts, { type: "single", collapsible: !0, className: "w-full px-2", children: /* @__PURE__ */ e(rc, { mode: "dev" }) })
|
|
14886
14886
|
] }) : null;
|
|
14887
14887
|
}
|
|
@@ -14914,7 +14914,7 @@ function lx({
|
|
|
14914
14914
|
case "custom":
|
|
14915
14915
|
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(ec, {}) });
|
|
14916
14916
|
case "text":
|
|
14917
|
-
return /* @__PURE__ */ e(
|
|
14917
|
+
return /* @__PURE__ */ e(Wf, {});
|
|
14918
14918
|
default:
|
|
14919
14919
|
return /* @__PURE__ */ e(rx, {});
|
|
14920
14920
|
}
|
|
@@ -15038,11 +15038,11 @@ function ox(t) {
|
|
|
15038
15038
|
errorMessage: w,
|
|
15039
15039
|
refetch: D,
|
|
15040
15040
|
data: M
|
|
15041
|
-
} = wt(L), { setTriggerAIRun: R, setCurrentAssitantScope: V, setCardConfig: F } = Ne(), { selectedDatamodelName: b, connectionType: S, selectedDatamodelId: O } =
|
|
15041
|
+
} = wt(L), { setTriggerAIRun: R, setCurrentAssitantScope: V, setCardConfig: F } = Ne(), { selectedDatamodelName: b, connectionType: S, selectedDatamodelId: O } = Qu(), P = (ge = Vi().data) == null ? void 0 : ge.assistantProfileId, B = De(ns()), z = De(null), _ = De(i), $ = De(!1), H = () => {
|
|
15042
15042
|
const G = z.current;
|
|
15043
15043
|
G && (z.current = null, B.current = ns(), G === "clear" && K([]));
|
|
15044
15044
|
}, {
|
|
15045
|
-
messages:
|
|
15045
|
+
messages: W,
|
|
15046
15046
|
setMessages: K,
|
|
15047
15047
|
regenerate: Z,
|
|
15048
15048
|
error: J,
|
|
@@ -15064,7 +15064,7 @@ function ox(t) {
|
|
|
15064
15064
|
assistantId: "editor-assistant",
|
|
15065
15065
|
assistantProfileId: P,
|
|
15066
15066
|
conversationId: B.current,
|
|
15067
|
-
assistantRequestId:
|
|
15067
|
+
assistantRequestId: Wu(),
|
|
15068
15068
|
isDevMode: m,
|
|
15069
15069
|
aiContext: G.currentAIContext,
|
|
15070
15070
|
reasoningEffort: G.reasoningEffort,
|
|
@@ -15143,9 +15143,9 @@ function ox(t) {
|
|
|
15143
15143
|
}), R(!1));
|
|
15144
15144
|
}, [k, v, tt, R]);
|
|
15145
15145
|
async function ke({ toolCall: G }) {
|
|
15146
|
-
var fe, we, de, be,
|
|
15146
|
+
var fe, we, de, be, Qe, We, St, he, Fe, Be, me, je, Ke, at, Tt, _e;
|
|
15147
15147
|
if (["createChartFromSql", "createForecast"].includes(G.toolName)) {
|
|
15148
|
-
const Ue = ((fe = G.input) == null ? void 0 : fe.sql) ?? ((we = G.args) == null ? void 0 : we.sql), Pt = ((de = G.input) == null ? void 0 : de.python) ?? ((be = G.args) == null ? void 0 : be.python), Ye = ((
|
|
15148
|
+
const Ue = ((fe = G.input) == null ? void 0 : fe.sql) ?? ((we = G.args) == null ? void 0 : we.sql), Pt = ((de = G.input) == null ? void 0 : de.python) ?? ((be = G.args) == null ? void 0 : be.python), Ye = ((Qe = G.input) == null ? void 0 : Qe.chartType) ?? ((We = G.args) == null ? void 0 : We.chartType);
|
|
15149
15149
|
p(Ye), g(Ue), x(Pt), h(!0), Ee({
|
|
15150
15150
|
tool: G.toolName,
|
|
15151
15151
|
toolCallId: G.toolCallId,
|
|
@@ -15277,7 +15277,7 @@ function ox(t) {
|
|
|
15277
15277
|
}
|
|
15278
15278
|
const Je = !["ready", "error"].includes(ye), ze = Ju(J);
|
|
15279
15279
|
return {
|
|
15280
|
-
messages:
|
|
15280
|
+
messages: W,
|
|
15281
15281
|
setMessages: ie,
|
|
15282
15282
|
sendMessage: tt,
|
|
15283
15283
|
regenerate: nt,
|
|
@@ -15324,7 +15324,7 @@ function Ei({
|
|
|
15324
15324
|
sendMessage: _,
|
|
15325
15325
|
isLoading: $,
|
|
15326
15326
|
stop: H,
|
|
15327
|
-
status:
|
|
15327
|
+
status: W,
|
|
15328
15328
|
llmUsage: K,
|
|
15329
15329
|
errorMessage: Z,
|
|
15330
15330
|
clearError: J
|
|
@@ -15334,16 +15334,16 @@ function Ei({
|
|
|
15334
15334
|
de.preventDefault();
|
|
15335
15335
|
const be = ue.trim();
|
|
15336
15336
|
if (!be && I.length === 0) return;
|
|
15337
|
-
const
|
|
15338
|
-
be &&
|
|
15339
|
-
|
|
15337
|
+
const Qe = [];
|
|
15338
|
+
be && Qe.push({ type: "text", text: be }), I.forEach((We) => {
|
|
15339
|
+
We.data && Qe.push({
|
|
15340
15340
|
type: "file",
|
|
15341
|
-
mediaType:
|
|
15342
|
-
filename:
|
|
15341
|
+
mediaType: We.type,
|
|
15342
|
+
filename: We.name,
|
|
15343
15343
|
// Convert base64 to data URL for the file content
|
|
15344
|
-
url: `data:${
|
|
15344
|
+
url: `data:${We.type};base64,${We.data}`
|
|
15345
15345
|
});
|
|
15346
|
-
}), _({ role: "user", parts:
|
|
15346
|
+
}), _({ role: "user", parts: Qe }), ye(""), E("editor"), Pe();
|
|
15347
15347
|
}, Pe = Se(() => {
|
|
15348
15348
|
f((de) => de + 1);
|
|
15349
15349
|
}, []);
|
|
@@ -15362,7 +15362,7 @@ function Ei({
|
|
|
15362
15362
|
F
|
|
15363
15363
|
]), tm({
|
|
15364
15364
|
assistantType: "editor",
|
|
15365
|
-
status:
|
|
15365
|
+
status: W,
|
|
15366
15366
|
isLoading: $,
|
|
15367
15367
|
sendMessage: _
|
|
15368
15368
|
});
|
|
@@ -15438,7 +15438,7 @@ function Ei({
|
|
|
15438
15438
|
) }),
|
|
15439
15439
|
/* @__PURE__ */ n(aa, { align: "end", children: [
|
|
15440
15440
|
/* @__PURE__ */ e(ka, { children: "Options" }),
|
|
15441
|
-
/* @__PURE__ */ e(
|
|
15441
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
15442
15442
|
/* @__PURE__ */ e(
|
|
15443
15443
|
mn,
|
|
15444
15444
|
{
|
|
@@ -15552,7 +15552,7 @@ function Ei({
|
|
|
15552
15552
|
showSystemMessage: m,
|
|
15553
15553
|
onQuickReply: ke,
|
|
15554
15554
|
disableQuickReplies: $,
|
|
15555
|
-
status:
|
|
15555
|
+
status: W,
|
|
15556
15556
|
errorMessage: Z,
|
|
15557
15557
|
activeToolText: $ && tt ? nt : void 0,
|
|
15558
15558
|
className: "mt-2 w-full grow px-0 py-2 pr-3",
|
|
@@ -15590,7 +15590,7 @@ function Ei({
|
|
|
15590
15590
|
xe(), Oe(de);
|
|
15591
15591
|
},
|
|
15592
15592
|
isLoading: $,
|
|
15593
|
-
status:
|
|
15593
|
+
status: W,
|
|
15594
15594
|
assistantType: "editor",
|
|
15595
15595
|
onFocus: () => {
|
|
15596
15596
|
}
|
|
@@ -15963,7 +15963,7 @@ function hx({ idx: t }) {
|
|
|
15963
15963
|
] }) })
|
|
15964
15964
|
] });
|
|
15965
15965
|
}
|
|
15966
|
-
function
|
|
15966
|
+
function Wr({
|
|
15967
15967
|
children: t,
|
|
15968
15968
|
className: a,
|
|
15969
15969
|
delayDuration: s
|
|
@@ -16034,7 +16034,7 @@ function fx({
|
|
|
16034
16034
|
s
|
|
16035
16035
|
),
|
|
16036
16036
|
children: [
|
|
16037
|
-
c || /* @__PURE__ */ e(
|
|
16037
|
+
c || /* @__PURE__ */ e(Wr, { className: "max-w-[100px]", title: t, children: px(t) }),
|
|
16038
16038
|
/* @__PURE__ */ n("div", { className: "flex gap-2", children: [
|
|
16039
16039
|
/* @__PURE__ */ e(
|
|
16040
16040
|
ws,
|
|
@@ -16501,7 +16501,7 @@ function vx({
|
|
|
16501
16501
|
onCheckedChange: () => u(g.value)
|
|
16502
16502
|
}
|
|
16503
16503
|
),
|
|
16504
|
-
/* @__PURE__ */ e(
|
|
16504
|
+
/* @__PURE__ */ e(Wr, { className: "text-sm", children: g.label })
|
|
16505
16505
|
]
|
|
16506
16506
|
},
|
|
16507
16507
|
g.id
|
|
@@ -16546,14 +16546,14 @@ function Cx({
|
|
|
16546
16546
|
transform: u,
|
|
16547
16547
|
transition: x,
|
|
16548
16548
|
isDragging: g
|
|
16549
|
-
} = ks({ id: t.id }), h = A((
|
|
16550
|
-
(
|
|
16549
|
+
} = ks({ id: t.id }), h = A((Q) => Q.card), p = A((Q) => Q.frame), y = ve((Q) => Q.isVisualEditing), f = ve((Q) => Q.selectedSheetId), v = ve(
|
|
16550
|
+
(Q) => Q.actions.updateSheetCalculatedFields
|
|
16551
16551
|
), k = ve(
|
|
16552
|
-
(
|
|
16552
|
+
(Q) => Q.actions.updateDashboardCalculatedFields
|
|
16553
16553
|
), N = ve(
|
|
16554
|
-
(
|
|
16554
|
+
(Q) => {
|
|
16555
16555
|
var Ie;
|
|
16556
|
-
return
|
|
16556
|
+
return Q.visualEditPendingDashboardCalculatedFields ?? ((Ie = Q.dashboard) == null ? void 0 : Ie.calculatedFields);
|
|
16557
16557
|
}
|
|
16558
16558
|
) ?? Nx, {
|
|
16559
16559
|
scopedFields: C,
|
|
@@ -16571,7 +16571,7 @@ function Cx({
|
|
|
16571
16571
|
handleMetricComparisonChange: _,
|
|
16572
16572
|
handleMetricComparisonSpecChange: $,
|
|
16573
16573
|
handleMetricComparisonPolarityChange: H,
|
|
16574
|
-
handleMetricWindowTransformChange:
|
|
16574
|
+
handleMetricWindowTransformChange: W,
|
|
16575
16575
|
handleMetricWindowOrderByChange: K,
|
|
16576
16576
|
handleMetricWindowDirectionChange: Z,
|
|
16577
16577
|
handleMetricWindowPartitionToggle: J,
|
|
@@ -16585,13 +16585,13 @@ function Cx({
|
|
|
16585
16585
|
handleKpiTrendlineGranularityChange: ie,
|
|
16586
16586
|
handleMetricTargetValueChange: ke
|
|
16587
16587
|
} = go(h), [qe, lt] = U(!1), [mt, xe] = U(() => {
|
|
16588
|
-
var
|
|
16589
|
-
return !!((
|
|
16588
|
+
var Q;
|
|
16589
|
+
return !!((Q = t.parameters) != null && Q.windowTransform);
|
|
16590
16590
|
}), [Je, ze] = U(!1), [ge, G] = U(!1), [fe, we] = U(null), de = ce(() => {
|
|
16591
|
-
const
|
|
16591
|
+
const Q = (pe) => pe != null && pe.startsWith("card-source-") ? pe.replace("card-source-", "") : pe, Ie = Q(t.id), te = C.find((pe) => {
|
|
16592
16592
|
if (t.qualifiedFieldName && pe.qualifiedFieldName && pe.qualifiedFieldName === t.qualifiedFieldName || t.qualifiedEntityName && pe.qualifiedEntityName && pe.qualifiedEntityName === t.qualifiedEntityName && pe.name === t.name)
|
|
16593
16593
|
return !0;
|
|
16594
|
-
const Ve =
|
|
16594
|
+
const Ve = Q(pe.id);
|
|
16595
16595
|
return !!(Ie && Ve && Ie === Ve);
|
|
16596
16596
|
});
|
|
16597
16597
|
return {
|
|
@@ -16607,38 +16607,38 @@ function Cx({
|
|
|
16607
16607
|
C
|
|
16608
16608
|
]), be = mm(
|
|
16609
16609
|
de.dataType
|
|
16610
|
-
), [
|
|
16610
|
+
), [Qe, We] = U(
|
|
16611
16611
|
t.dateFormat || "YYYY-MM-DD"
|
|
16612
16612
|
), [St, he] = U(t.customFormat || ""), [Fe, Be] = U(!!t.customFormat), me = De(null), [je, Ke] = U(
|
|
16613
16613
|
t.aliasTemplate || ""
|
|
16614
16614
|
), [at, Tt] = U(
|
|
16615
16615
|
t.valueAliases || {}
|
|
16616
|
-
), [_e, Ue] = U((ol = t.parameters) == null ? void 0 : ol.filters), Pt = (
|
|
16617
|
-
|
|
16618
|
-
}, Ye = (
|
|
16619
|
-
he(
|
|
16620
|
-
}, Ha = (
|
|
16616
|
+
), [_e, Ue] = U((ol = t.parameters) == null ? void 0 : ol.filters), Pt = (Q) => {
|
|
16617
|
+
Q === "custom" ? Be(!0) : (Be(!1), We(Q), (a === "groupBy" || ca) && b(s, Q, "", a));
|
|
16618
|
+
}, Ye = (Q) => {
|
|
16619
|
+
he(Q), (a === "groupBy" || ca) && b(s, "custom", Q, a);
|
|
16620
|
+
}, Ha = (Q) => {
|
|
16621
16621
|
var pe;
|
|
16622
|
-
const te = (pe = Us(
|
|
16623
|
-
te && !Fe && (
|
|
16624
|
-
}, qn = (
|
|
16625
|
-
Ke(
|
|
16626
|
-
}, Bs = (
|
|
16627
|
-
Tt(
|
|
16628
|
-
}, rn = (
|
|
16629
|
-
V(a, s,
|
|
16630
|
-
}, jn = hm(t),
|
|
16622
|
+
const te = (pe = Us(Q)[0]) == null ? void 0 : pe.value;
|
|
16623
|
+
te && !Fe && (We(te), a === "groupBy" && b(s, te, "", a)), a === "groupBy" && S(s, Q);
|
|
16624
|
+
}, qn = (Q) => {
|
|
16625
|
+
Ke(Q), a === "metrics" && O(s, Q);
|
|
16626
|
+
}, Bs = (Q) => {
|
|
16627
|
+
Tt(Q), a === "metrics" && P(s, Q);
|
|
16628
|
+
}, rn = (Q) => {
|
|
16629
|
+
V(a, s, Q);
|
|
16630
|
+
}, jn = hm(t), Qa = xo(t), Tn = pm(t), la = t.role === "metric" && Tn, kn = Tn && (jn === "user_calculated" || jn === "inline_expression" && t.fieldScope !== "domain"), Vt = kn ? Ah({
|
|
16631
16631
|
field: t,
|
|
16632
16632
|
sheetFields: (p == null ? void 0 : p.calculatedFields) || [],
|
|
16633
16633
|
dashboardFields: N
|
|
16634
|
-
}) : void 0,
|
|
16634
|
+
}) : void 0, Wa = kn && (Vt == null ? void 0 : Vt.scope) === "sheet", ia = kn && (Vt == null ? void 0 : Vt.scope) === "dashboard", ln = jn === "domain_calculated" || t.fieldScope === "domain", Ja = ln ? fm(t, C) : void 0, Gt = ln ? "domain" : Wa ? "sheet" : ia ? "dashboard" : "card", on = ln ? Ja || t : (Wa || ia) && (Vt != null && Vt.matchedField) ? Vt.matchedField : t, cn = (Q) => {
|
|
16635
16635
|
var Ie;
|
|
16636
|
-
if (Ue(
|
|
16636
|
+
if (Ue(Q), a === "metrics") {
|
|
16637
16637
|
const te = {
|
|
16638
16638
|
...t,
|
|
16639
16639
|
parameters: {
|
|
16640
16640
|
...t.parameters,
|
|
16641
|
-
filters:
|
|
16641
|
+
filters: Q
|
|
16642
16642
|
}
|
|
16643
16643
|
}, pe = [...((Ie = h.config) == null ? void 0 : Ie.metricColumns) || []];
|
|
16644
16644
|
pe[s] = te, A.getState().actions.updateCardConfig(h.id, {
|
|
@@ -16653,34 +16653,34 @@ function Cx({
|
|
|
16653
16653
|
transition: x
|
|
16654
16654
|
}, Xa = ut(
|
|
16655
16655
|
de.dataType || t.dataType
|
|
16656
|
-
), Kn = Xa === "date", oa = l === "kpi", ca = a === "detailColumns", Za = (cl = h.config) == null ? void 0 : cl.metricColumns, dn = (dl = h.config) == null ? void 0 : dl.groupByColumns, da = ve((
|
|
16657
|
-
(
|
|
16656
|
+
), Kn = Xa === "date", oa = l === "kpi", ca = a === "detailColumns", Za = (cl = h.config) == null ? void 0 : cl.metricColumns, dn = (dl = h.config) == null ? void 0 : dl.groupByColumns, da = ve((Q) => Q.dashboard), es = ve(
|
|
16657
|
+
(Q) => {
|
|
16658
16658
|
var Ie;
|
|
16659
|
-
return (Ie =
|
|
16659
|
+
return (Ie = Q.dashboard) == null ? void 0 : Ie.filters;
|
|
16660
16660
|
}
|
|
16661
16661
|
), In = ve(
|
|
16662
|
-
(
|
|
16662
|
+
(Q) => Q.filterValues
|
|
16663
16663
|
), ua = ve(
|
|
16664
|
-
(
|
|
16664
|
+
(Q) => Q.dashboardInputValues
|
|
16665
16665
|
), ma = ve(
|
|
16666
|
-
(
|
|
16666
|
+
(Q) => Q.semanticExecutionPayload
|
|
16667
16667
|
), X = t.granularity || "day", oe = be.includes(
|
|
16668
16668
|
X
|
|
16669
|
-
) ? X : "day", le = a === "groupBy" && !be.includes(X), Ae = Us(oe), Re = Fe ? "custom" : Ae.some((
|
|
16669
|
+
) ? X : "day", le = a === "groupBy" && !be.includes(X), Ae = Us(oe), Re = Fe ? "custom" : Ae.some((Q) => Q.value === Qe) ? Qe : ((ul = Ae[0]) == null ? void 0 : ul.value) ?? "YYYY-MM-DD";
|
|
16670
16670
|
Ce(() => {
|
|
16671
16671
|
var te;
|
|
16672
16672
|
if (I || !le) {
|
|
16673
16673
|
me.current = null;
|
|
16674
16674
|
return;
|
|
16675
16675
|
}
|
|
16676
|
-
const
|
|
16677
|
-
if (me.current ===
|
|
16676
|
+
const Q = `${t.id}:${X}:${de.dataType || t.dataType || ""}:${s}`;
|
|
16677
|
+
if (me.current === Q)
|
|
16678
16678
|
return;
|
|
16679
|
-
me.current =
|
|
16679
|
+
me.current = Q;
|
|
16680
16680
|
const Ie = "day";
|
|
16681
16681
|
if (S(s, Ie), !Fe) {
|
|
16682
16682
|
const pe = (te = Us(Ie)[0]) == null ? void 0 : te.value;
|
|
16683
|
-
pe && (
|
|
16683
|
+
pe && (We(pe), b(s, pe, "", a));
|
|
16684
16684
|
}
|
|
16685
16685
|
}, [
|
|
16686
16686
|
t.dataType,
|
|
@@ -16696,7 +16696,7 @@ function Cx({
|
|
|
16696
16696
|
a
|
|
16697
16697
|
]);
|
|
16698
16698
|
const Le = !!l && Mh.includes(l), ht = !!l && Rh.includes(l), bt = ce(
|
|
16699
|
-
() => dn == null ? void 0 : dn.find((
|
|
16699
|
+
() => dn == null ? void 0 : dn.find((Q) => ut(Q.dataType || "") === "date"),
|
|
16700
16700
|
[dn]
|
|
16701
16701
|
), vt = ce(
|
|
16702
16702
|
() => Oh({
|
|
@@ -16717,13 +16717,13 @@ function Cx({
|
|
|
16717
16717
|
), Un = ce(() => {
|
|
16718
16718
|
var pe;
|
|
16719
16719
|
if (!st) return !1;
|
|
16720
|
-
const
|
|
16721
|
-
if (!
|
|
16720
|
+
const Q = (pe = h.config) == null ? void 0 : pe.filters;
|
|
16721
|
+
if (!Q) return !1;
|
|
16722
16722
|
const Ie = (Ve) => {
|
|
16723
16723
|
const pt = Ve.field;
|
|
16724
16724
|
return pt ? st.id && pt.id === st.id || st.qualifiedFieldName && pt.qualifiedFieldName === st.qualifiedFieldName ? !0 : pt.name === st.name : !1;
|
|
16725
16725
|
}, te = (Ve) => Ve.conditions.some((rt) => ut(rt.field.dataType || "") === "date" && Ie(rt)) ? !0 : Ve.groups.some((rt) => te(rt));
|
|
16726
|
-
return te(
|
|
16726
|
+
return te(Q);
|
|
16727
16727
|
}, [(ml = h.config) == null ? void 0 : ml.filters, st]), yt = ce(
|
|
16728
16728
|
() => lc(
|
|
16729
16729
|
es || [],
|
|
@@ -16755,7 +16755,7 @@ function Cx({
|
|
|
16755
16755
|
}), ha = ((gl = He.comparison) == null ? void 0 : gl.mode) === "explicit", Zr = Cm(
|
|
16756
16756
|
dn || []
|
|
16757
16757
|
), Gn = ((vl = (bl = (xl = He.parameters) == null ? void 0 : xl.windowTransform) == null ? void 0 : bl.orderBy) == null ? void 0 : vl.fieldId) || "", cc = ((Cl = (Nl = (yl = He.parameters) == null ? void 0 : yl.windowTransform) == null ? void 0 : Nl.orderBy) == null ? void 0 : Cl.direction) || "asc", el = Zr.find(
|
|
16758
|
-
(
|
|
16758
|
+
(Q) => Q.id === Gn
|
|
16759
16759
|
), $s = $t === "running_total" || $t === "moving_average" || $t === "previous_period_delta", dc = zt && $s && !!el && ut(el.dataType || "") !== "date", uc = bm({
|
|
16760
16760
|
cardType: l || "table",
|
|
16761
16761
|
cardConfig: h.config || {},
|
|
@@ -16767,9 +16767,9 @@ function Cx({
|
|
|
16767
16767
|
h.config || {}
|
|
16768
16768
|
), tl = [
|
|
16769
16769
|
...(dn || []).filter(
|
|
16770
|
-
(
|
|
16770
|
+
(Q) => Q.id && (!$s || Q.id !== Gn)
|
|
16771
16771
|
),
|
|
16772
|
-
...hc ? (((Tl = h.config) == null ? void 0 : Tl.pivotByColumns) || []).filter((
|
|
16772
|
+
...hc ? (((Tl = h.config) == null ? void 0 : Tl.pivotByColumns) || []).filter((Q) => Q.id) : []
|
|
16773
16773
|
], nl = ((Dl = (Il = (kl = He.parameters) == null ? void 0 : kl.windowTransform) == null ? void 0 : Il.movingAverage) == null ? void 0 : Dl.windowSize) || 7, pc = ((Ol = (Al = (El = He.parameters) == null ? void 0 : El.windowTransform) == null ? void 0 : Al.movingAverage) == null ? void 0 : Ol.minPeriods) || 1, fc = ((Rl = (Fl = (Ml = He.parameters) == null ? void 0 : Ml.windowTransform) == null ? void 0 : Fl.previousPeriodDelta) == null ? void 0 : Rl.mode) || "absolute", al = ((Vl = (Ll = (Pl = He.parameters) == null ? void 0 : Pl.windowTransform) == null ? void 0 : Ll.percentOfTotal) == null ? void 0 : Vl.scope) || "grand_total", gc = ((zl = (_l = (Bl = He.parameters) == null ? void 0 : Bl.windowTransform) == null ? void 0 : _l.percentOfTotal) == null ? void 0 : zl.output) || "percent", xc = ce(
|
|
16774
16774
|
() => (Za || []).some(
|
|
16775
16775
|
() => !1
|
|
@@ -16780,7 +16780,7 @@ function Cx({
|
|
|
16780
16780
|
zt && xe(!0);
|
|
16781
16781
|
}, [zt]);
|
|
16782
16782
|
const bc = a !== "pivotBy" && a !== "sortBy", vc = Kn && a === "groupBy" && (!oa || xc), yc = !oa && Kn && (a === "groupBy" || ca), Nc = l === "kpi" && Kn && a === "groupBy", Cc = a === "metrics", ts = Le && !h.sql && !h.python && a === "metrics", wc = () => {
|
|
16783
|
-
const
|
|
16783
|
+
const Q = t, Ie = a === "metrics" && la;
|
|
16784
16784
|
return /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16785
16785
|
!Ie && /* @__PURE__ */ e(
|
|
16786
16786
|
"div",
|
|
@@ -16793,17 +16793,17 @@ function Cx({
|
|
|
16793
16793
|
children: `${t.entityName}.${t.name}`
|
|
16794
16794
|
}
|
|
16795
16795
|
),
|
|
16796
|
-
Ie &&
|
|
16796
|
+
Ie && Q.calculatedFormula && /* @__PURE__ */ n(
|
|
16797
16797
|
"div",
|
|
16798
16798
|
{
|
|
16799
|
-
title: ei(
|
|
16799
|
+
title: ei(Q.calculatedFormula),
|
|
16800
16800
|
onPointerDown: (te) => {
|
|
16801
16801
|
te.stopPropagation();
|
|
16802
16802
|
},
|
|
16803
16803
|
className: "max-w-[270px] cursor-default overflow-hidden text-ellipsis whitespace-nowrap rounded bg-muted/50 px-1.5 py-0.5 font-mono text-xs text-primary",
|
|
16804
16804
|
children: [
|
|
16805
16805
|
"= ",
|
|
16806
|
-
ei(
|
|
16806
|
+
ei(Q.calculatedFormula)
|
|
16807
16807
|
]
|
|
16808
16808
|
}
|
|
16809
16809
|
)
|
|
@@ -16825,7 +16825,7 @@ function Cx({
|
|
|
16825
16825
|
ne,
|
|
16826
16826
|
{
|
|
16827
16827
|
value: r || "asc",
|
|
16828
|
-
onValueChange: (
|
|
16828
|
+
onValueChange: (Q) => c(Q),
|
|
16829
16829
|
children: [
|
|
16830
16830
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
16831
16831
|
/* @__PURE__ */ n(re, { children: [
|
|
@@ -16844,7 +16844,7 @@ function Cx({
|
|
|
16844
16844
|
onValueChange: Ha,
|
|
16845
16845
|
children: [
|
|
16846
16846
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select granularity..." }) }),
|
|
16847
|
-
/* @__PURE__ */ e(re, { children: be.map((
|
|
16847
|
+
/* @__PURE__ */ e(re, { children: be.map((Q) => /* @__PURE__ */ e(j, { className: "text-xs", value: Q, children: ci(Q) }, Q)) })
|
|
16848
16848
|
]
|
|
16849
16849
|
}
|
|
16850
16850
|
)
|
|
@@ -16859,14 +16859,14 @@ function Cx({
|
|
|
16859
16859
|
onValueChange: Pt,
|
|
16860
16860
|
children: [
|
|
16861
16861
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select date format..." }) }),
|
|
16862
|
-
/* @__PURE__ */ e(re, { children: Ae.map((
|
|
16862
|
+
/* @__PURE__ */ e(re, { children: Ae.map((Q) => /* @__PURE__ */ e(
|
|
16863
16863
|
j,
|
|
16864
16864
|
{
|
|
16865
16865
|
className: "text-xs",
|
|
16866
|
-
value:
|
|
16867
|
-
children:
|
|
16866
|
+
value: Q.value,
|
|
16867
|
+
children: Q.label
|
|
16868
16868
|
},
|
|
16869
|
-
|
|
16869
|
+
Q.value
|
|
16870
16870
|
)) })
|
|
16871
16871
|
]
|
|
16872
16872
|
}
|
|
@@ -16877,10 +16877,10 @@ function Cx({
|
|
|
16877
16877
|
{
|
|
16878
16878
|
placeholder: "Enter custom format (e.g., YYYY-MM-DD HH:mm)",
|
|
16879
16879
|
value: St,
|
|
16880
|
-
onChange: (
|
|
16881
|
-
|
|
16880
|
+
onChange: (Q) => {
|
|
16881
|
+
Q.stopPropagation(), Ye(Q.target.value);
|
|
16882
16882
|
},
|
|
16883
|
-
onClick: (
|
|
16883
|
+
onClick: (Q) => Q.stopPropagation(),
|
|
16884
16884
|
className: "h-8 text-xs"
|
|
16885
16885
|
}
|
|
16886
16886
|
),
|
|
@@ -16889,8 +16889,8 @@ function Cx({
|
|
|
16889
16889
|
] })
|
|
16890
16890
|
] }) : null, Ic = () => {
|
|
16891
16891
|
var Ie, te, pe, Ve;
|
|
16892
|
-
const
|
|
16893
|
-
return
|
|
16892
|
+
const Q = Nc;
|
|
16893
|
+
return Q ? /* @__PURE__ */ e(Te, { children: Q && /* @__PURE__ */ n(Te, { children: [
|
|
16894
16894
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
|
|
16895
16895
|
/* @__PURE__ */ e(q, { className: "text-xs font-medium text-muted-foreground", children: "Show Trendline" }),
|
|
16896
16896
|
/* @__PURE__ */ e(
|
|
@@ -16944,9 +16944,9 @@ function Cx({
|
|
|
16944
16944
|
}, Dc = () => {
|
|
16945
16945
|
var Ie;
|
|
16946
16946
|
if (!Cc) return null;
|
|
16947
|
-
const
|
|
16947
|
+
const Q = la;
|
|
16948
16948
|
return /* @__PURE__ */ n(Te, { children: [
|
|
16949
|
-
|
|
16949
|
+
Q && D && !ln && /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16950
16950
|
/* @__PURE__ */ e(q, { className: "text-xs font-medium text-muted-foreground", children: "Formula" }),
|
|
16951
16951
|
/* @__PURE__ */ n(
|
|
16952
16952
|
ee,
|
|
@@ -16971,7 +16971,7 @@ function Cx({
|
|
|
16971
16971
|
onValueChange: (te) => {
|
|
16972
16972
|
F(s, te);
|
|
16973
16973
|
},
|
|
16974
|
-
disabled:
|
|
16974
|
+
disabled: Q,
|
|
16975
16975
|
children: [
|
|
16976
16976
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select function..." }) }),
|
|
16977
16977
|
/* @__PURE__ */ n(re, { children: [
|
|
@@ -17035,7 +17035,7 @@ function Cx({
|
|
|
17035
17035
|
ne,
|
|
17036
17036
|
{
|
|
17037
17037
|
value: zt ? _s : "none",
|
|
17038
|
-
onValueChange: (te) =>
|
|
17038
|
+
onValueChange: (te) => W(
|
|
17039
17039
|
s,
|
|
17040
17040
|
te
|
|
17041
17041
|
),
|
|
@@ -17545,8 +17545,8 @@ function Cx({
|
|
|
17545
17545
|
...d,
|
|
17546
17546
|
className: "inline-flex shrink-0 cursor-grab items-center text-muted-foreground transition-colors hover:text-foreground active:cursor-grabbing",
|
|
17547
17547
|
"aria-label": `Drag ${Zl(t)}`,
|
|
17548
|
-
onClick: (
|
|
17549
|
-
|
|
17548
|
+
onClick: (Q) => {
|
|
17549
|
+
Q.stopPropagation();
|
|
17550
17550
|
},
|
|
17551
17551
|
children: /* @__PURE__ */ e(Zn, { className: "h-3 w-3" })
|
|
17552
17552
|
}
|
|
@@ -17555,21 +17555,21 @@ function Cx({
|
|
|
17555
17555
|
bo,
|
|
17556
17556
|
{
|
|
17557
17557
|
dataType: Xa,
|
|
17558
|
-
calculated: !!
|
|
17558
|
+
calculated: !!Qa
|
|
17559
17559
|
}
|
|
17560
17560
|
),
|
|
17561
|
-
/* @__PURE__ */ e(
|
|
17561
|
+
/* @__PURE__ */ e(Wr, { className: "block w-0 min-w-0 flex-1 text-[12px] text-foreground", children: Zl(t) }),
|
|
17562
17562
|
a === "metrics" && (($l = _e == null ? void 0 : _e.conditions) == null ? void 0 : $l.length) && !qe && /* @__PURE__ */ e(_t, { children: /* @__PURE__ */ n(At, { children: [
|
|
17563
17563
|
/* @__PURE__ */ e(Ot, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex shrink-0 items-center gap-1 rounded-[3px] bg-primary/10 px-1 text-[10px] tabular-nums text-primary/90", children: [
|
|
17564
17564
|
/* @__PURE__ */ e(gn, { className: "h-2.5 w-2.5" }),
|
|
17565
17565
|
/* @__PURE__ */ e("span", { children: _e.conditions.length })
|
|
17566
17566
|
] }) }),
|
|
17567
|
-
/* @__PURE__ */ e(Et, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: _e.conditions.map((
|
|
17568
|
-
|
|
17567
|
+
/* @__PURE__ */ e(Et, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: _e.conditions.map((Q) => /* @__PURE__ */ n("div", { children: [
|
|
17568
|
+
Q.field.label,
|
|
17569
17569
|
":",
|
|
17570
17570
|
" ",
|
|
17571
|
-
Array.isArray(
|
|
17572
|
-
] },
|
|
17571
|
+
Array.isArray(Q.value) ? `${Q.value.length} values` : String(Q.value)
|
|
17572
|
+
] }, Q.id)) }) })
|
|
17573
17573
|
] }) }),
|
|
17574
17574
|
a === "sortBy" && /* @__PURE__ */ e(
|
|
17575
17575
|
"button",
|
|
@@ -17577,8 +17577,8 @@ function Cx({
|
|
|
17577
17577
|
type: "button",
|
|
17578
17578
|
"aria-label": r === "asc" ? "Switch to descending" : "Switch to ascending",
|
|
17579
17579
|
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",
|
|
17580
|
-
onClick: (
|
|
17581
|
-
|
|
17580
|
+
onClick: (Q) => {
|
|
17581
|
+
Q.stopPropagation(), c(r === "asc" ? "desc" : "asc");
|
|
17582
17582
|
},
|
|
17583
17583
|
children: r === "asc" ? /* @__PURE__ */ e(ym, { className: "h-3 w-3" }) : /* @__PURE__ */ e($i, { className: "h-3 w-3" })
|
|
17584
17584
|
}
|
|
@@ -17589,7 +17589,7 @@ function Cx({
|
|
|
17589
17589
|
type: "button",
|
|
17590
17590
|
"aria-label": "Field configuration",
|
|
17591
17591
|
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",
|
|
17592
|
-
onClick: (
|
|
17592
|
+
onClick: (Q) => Q.stopPropagation(),
|
|
17593
17593
|
children: /* @__PURE__ */ e(Nm, { className: "h-3 w-3" })
|
|
17594
17594
|
}
|
|
17595
17595
|
) }),
|
|
@@ -17599,8 +17599,8 @@ function Cx({
|
|
|
17599
17599
|
type: "button",
|
|
17600
17600
|
"aria-label": "Remove",
|
|
17601
17601
|
className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[3px] text-muted-foreground opacity-0 transition-opacity hover:bg-muted hover:text-foreground group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",
|
|
17602
|
-
onClick: (
|
|
17603
|
-
|
|
17602
|
+
onClick: (Q) => {
|
|
17603
|
+
Q.stopPropagation(), Xr();
|
|
17604
17604
|
},
|
|
17605
17605
|
children: /* @__PURE__ */ e(et, { className: "h-3 w-3" })
|
|
17606
17606
|
}
|
|
@@ -17622,16 +17622,16 @@ function Cx({
|
|
|
17622
17622
|
ic,
|
|
17623
17623
|
{
|
|
17624
17624
|
open: Je,
|
|
17625
|
-
onOpenChange: (
|
|
17626
|
-
ze(
|
|
17625
|
+
onOpenChange: (Q) => {
|
|
17626
|
+
ze(Q), Q || we(null);
|
|
17627
17627
|
},
|
|
17628
17628
|
availableFields: E,
|
|
17629
17629
|
existingFilters: _e,
|
|
17630
17630
|
editingCondition: fe,
|
|
17631
|
-
onSave: (
|
|
17631
|
+
onSave: (Q) => {
|
|
17632
17632
|
var Ie;
|
|
17633
|
-
if (
|
|
17634
|
-
cn(
|
|
17633
|
+
if (Q)
|
|
17634
|
+
cn(Q);
|
|
17635
17635
|
else if (Ue(void 0), a === "metrics") {
|
|
17636
17636
|
const te = {
|
|
17637
17637
|
...t,
|
|
@@ -17658,9 +17658,9 @@ function Cx({
|
|
|
17658
17658
|
existingFieldScope: Gt,
|
|
17659
17659
|
initialFieldType: "metric",
|
|
17660
17660
|
allowedFieldTypes: ["metric"],
|
|
17661
|
-
onSave: (
|
|
17661
|
+
onSave: (Q) => {
|
|
17662
17662
|
var Hn, Ht;
|
|
17663
|
-
if (
|
|
17663
|
+
if (Q.role !== "metric") return;
|
|
17664
17664
|
const {
|
|
17665
17665
|
card: Ie,
|
|
17666
17666
|
frame: te,
|
|
@@ -17675,7 +17675,7 @@ function Cx({
|
|
|
17675
17675
|
sortByFields: pt,
|
|
17676
17676
|
storedFields: Ie.calculatedFields || [],
|
|
17677
17677
|
sharedFields: rt,
|
|
17678
|
-
updatedField:
|
|
17678
|
+
updatedField: Q,
|
|
17679
17679
|
editingField: on,
|
|
17680
17680
|
previousScope: Gt
|
|
17681
17681
|
});
|
|
@@ -17693,9 +17693,9 @@ function Cx({
|
|
|
17693
17693
|
updateSheetCalculatedFields: v
|
|
17694
17694
|
});
|
|
17695
17695
|
},
|
|
17696
|
-
onSaveToSheet: (
|
|
17696
|
+
onSaveToSheet: (Q) => {
|
|
17697
17697
|
var pa, fa;
|
|
17698
|
-
if (
|
|
17698
|
+
if (Q.role !== "metric") return;
|
|
17699
17699
|
const {
|
|
17700
17700
|
card: Ie,
|
|
17701
17701
|
frame: te,
|
|
@@ -17713,7 +17713,7 @@ function Cx({
|
|
|
17713
17713
|
sheetFields: kt,
|
|
17714
17714
|
dashboardFields: N,
|
|
17715
17715
|
updatedField: {
|
|
17716
|
-
...
|
|
17716
|
+
...Q,
|
|
17717
17717
|
id: Ve.id,
|
|
17718
17718
|
aliasTemplate: Ve.aliasTemplate,
|
|
17719
17719
|
valueAliases: Ve.valueAliases,
|
|
@@ -17737,9 +17737,9 @@ function Cx({
|
|
|
17737
17737
|
calculatedFields: un
|
|
17738
17738
|
});
|
|
17739
17739
|
},
|
|
17740
|
-
onSaveToDashboard: (
|
|
17740
|
+
onSaveToDashboard: (Q) => {
|
|
17741
17741
|
var pa, fa;
|
|
17742
|
-
if (
|
|
17742
|
+
if (Q.role !== "metric") return;
|
|
17743
17743
|
const {
|
|
17744
17744
|
card: Ie,
|
|
17745
17745
|
frame: te,
|
|
@@ -17757,7 +17757,7 @@ function Cx({
|
|
|
17757
17757
|
sharedFields: N,
|
|
17758
17758
|
sheetFields: kt,
|
|
17759
17759
|
updatedField: {
|
|
17760
|
-
...
|
|
17760
|
+
...Q,
|
|
17761
17761
|
id: Ve.id,
|
|
17762
17762
|
aliasTemplate: Ve.aliasTemplate,
|
|
17763
17763
|
valueAliases: Ve.valueAliases,
|
|
@@ -17982,7 +17982,7 @@ function Dx({
|
|
|
17982
17982
|
detailFields: c,
|
|
17983
17983
|
activeField: o
|
|
17984
17984
|
}) {
|
|
17985
|
-
var
|
|
17985
|
+
var W, K, Z;
|
|
17986
17986
|
const [l, i] = U(!1);
|
|
17987
17987
|
A(
|
|
17988
17988
|
(J) => {
|
|
@@ -17991,7 +17991,7 @@ function Dx({
|
|
|
17991
17991
|
}
|
|
17992
17992
|
);
|
|
17993
17993
|
const d = A((J) => J.card), m = A((J) => J.frame), u = $n(m, d), { manifest: x } = Cn(
|
|
17994
|
-
((
|
|
17994
|
+
((W = u == null ? void 0 : u.customCardPreferences) == null ? void 0 : W.url) || ""
|
|
17995
17995
|
), g = (K = x == null ? void 0 : x.visuals) == null ? void 0 : K.find(
|
|
17996
17996
|
(J) => {
|
|
17997
17997
|
var ue;
|
|
@@ -19654,7 +19654,7 @@ function Hx({
|
|
|
19654
19654
|
M.id
|
|
19655
19655
|
), D = wo(t);
|
|
19656
19656
|
return /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
19657
|
-
/* @__PURE__ */ e(
|
|
19657
|
+
/* @__PURE__ */ e(Wi, { children: /* @__PURE__ */ e(Ji, { className: "p-4", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
19658
19658
|
i ? /* @__PURE__ */ n("div", { className: "flex items-center justify-center p-4", children: [
|
|
19659
19659
|
/* @__PURE__ */ e("div", { className: "h-5 w-5 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }),
|
|
19660
19660
|
/* @__PURE__ */ e("span", { className: "ml-2 text-sm text-gray-600", children: "Loading columns..." })
|
|
@@ -19697,7 +19697,7 @@ function Hx({
|
|
|
19697
19697
|
] })
|
|
19698
19698
|
] });
|
|
19699
19699
|
}
|
|
19700
|
-
function
|
|
19700
|
+
function Qx({
|
|
19701
19701
|
cardId: t,
|
|
19702
19702
|
filters: a,
|
|
19703
19703
|
onFiltersChange: s,
|
|
@@ -19739,7 +19739,7 @@ function Wx({
|
|
|
19739
19739
|
)
|
|
19740
19740
|
] });
|
|
19741
19741
|
}
|
|
19742
|
-
function
|
|
19742
|
+
function Wx({
|
|
19743
19743
|
activeCardId: t,
|
|
19744
19744
|
sourceFields: a,
|
|
19745
19745
|
getFieldsForContainer: s,
|
|
@@ -19861,12 +19861,12 @@ function Qx({
|
|
|
19861
19861
|
// Pass authoritative base entity
|
|
19862
19862
|
datasetAliases: g.datasets
|
|
19863
19863
|
}).state === "unreachable") {
|
|
19864
|
-
|
|
19864
|
+
Qs(), o(null);
|
|
19865
19865
|
return;
|
|
19866
19866
|
}
|
|
19867
19867
|
} else {
|
|
19868
19868
|
if (!m) {
|
|
19869
|
-
|
|
19869
|
+
Qs(), o(null);
|
|
19870
19870
|
return;
|
|
19871
19871
|
}
|
|
19872
19872
|
if (!Am(
|
|
@@ -19874,7 +19874,7 @@ function Qx({
|
|
|
19874
19874
|
R.qualifiedEntityName,
|
|
19875
19875
|
m
|
|
19876
19876
|
)) {
|
|
19877
|
-
|
|
19877
|
+
Qs(), o(null);
|
|
19878
19878
|
return;
|
|
19879
19879
|
}
|
|
19880
19880
|
}
|
|
@@ -20127,7 +20127,7 @@ function Zx({
|
|
|
20127
20127
|
role: "results-section",
|
|
20128
20128
|
className: "flex flex-col",
|
|
20129
20129
|
children: /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 max-w-full flex-1 grow basis-0 px-4 py-4", children: [
|
|
20130
|
-
(s || r) && (a == null ? void 0 : a.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
|
|
20130
|
+
(s || r) && (a == null ? void 0 : a.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
|
|
20131
20131
|
(a == null ? void 0 : a.records) && /* @__PURE__ */ e(
|
|
20132
20132
|
Ta,
|
|
20133
20133
|
{
|
|
@@ -20164,7 +20164,7 @@ function Zx({
|
|
|
20164
20164
|
role: "results-section",
|
|
20165
20165
|
className: "flex flex-col",
|
|
20166
20166
|
children: /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 max-w-full flex-1 grow basis-0 py-4 pl-2 pr-4", children: [
|
|
20167
|
-
(s || r) && (a == null ? void 0 : a.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
|
|
20167
|
+
(s || r) && (a == null ? void 0 : a.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Qt, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
|
|
20168
20168
|
(a == null ? void 0 : a.records) && /* @__PURE__ */ e(
|
|
20169
20169
|
Ta,
|
|
20170
20170
|
{
|
|
@@ -20289,7 +20289,7 @@ function rb({
|
|
|
20289
20289
|
isLoading: _,
|
|
20290
20290
|
isFetching: $,
|
|
20291
20291
|
errorSql: H,
|
|
20292
|
-
pagination:
|
|
20292
|
+
pagination: W,
|
|
20293
20293
|
refetch: K,
|
|
20294
20294
|
comparisonMetadata: Z,
|
|
20295
20295
|
queryRequestPayload: J,
|
|
@@ -20439,12 +20439,12 @@ function rb({
|
|
|
20439
20439
|
) }),
|
|
20440
20440
|
/* @__PURE__ */ n(aa, { align: "end", className: "w-64", children: [
|
|
20441
20441
|
/* @__PURE__ */ e(ka, { children: "More Options" }),
|
|
20442
|
-
/* @__PURE__ */ e(
|
|
20442
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
20443
20443
|
/* @__PURE__ */ n(dt, { onClick: tt, children: [
|
|
20444
20444
|
V ? /* @__PURE__ */ e(Jh, { className: "mr-2 h-4 w-4" }) : /* @__PURE__ */ e(dp, { className: "mr-2 h-4 w-4" }),
|
|
20445
20445
|
V ? "Hide Results Table" : "Show Results Table"
|
|
20446
20446
|
] }),
|
|
20447
|
-
/* @__PURE__ */ e(
|
|
20447
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
20448
20448
|
/* @__PURE__ */ n("div", { className: "px-1 py-1", children: [
|
|
20449
20449
|
/* @__PURE__ */ e(
|
|
20450
20450
|
Gr,
|
|
@@ -20486,7 +20486,7 @@ function rb({
|
|
|
20486
20486
|
queryData: B,
|
|
20487
20487
|
isLoading: _,
|
|
20488
20488
|
isFetching: $,
|
|
20489
|
-
pagination:
|
|
20489
|
+
pagination: W,
|
|
20490
20490
|
onPaginationChange: nt,
|
|
20491
20491
|
onSortChange: ie,
|
|
20492
20492
|
sortState: ke,
|
|
@@ -20497,7 +20497,7 @@ function rb({
|
|
|
20497
20497
|
) }),
|
|
20498
20498
|
t === "table" && (B == null ? void 0 : B.records) && /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 max-w-full flex-1 grow basis-0 px-4 py-4", children: [
|
|
20499
20499
|
(_ || $) && (B == null ? void 0 : B.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
|
|
20500
|
-
|
|
20500
|
+
Qt,
|
|
20501
20501
|
{
|
|
20502
20502
|
size: "md",
|
|
20503
20503
|
color: "muted",
|
|
@@ -20511,7 +20511,7 @@ function rb({
|
|
|
20511
20511
|
data: ye,
|
|
20512
20512
|
totalsByColumnId: B == null ? void 0 : B.tableTotalsByColumnId,
|
|
20513
20513
|
comparisonMetadata: Z,
|
|
20514
|
-
paginationMetadata:
|
|
20514
|
+
paginationMetadata: W,
|
|
20515
20515
|
onPaginationChange: nt,
|
|
20516
20516
|
isLoading: _ || $,
|
|
20517
20517
|
onSortChange: ie,
|
|
@@ -20638,10 +20638,10 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20638
20638
|
if (!y.current) return;
|
|
20639
20639
|
const Z = K.clientX - y.current.startX, J = Math.max(80, y.current.startWidth + Z);
|
|
20640
20640
|
o == null || o(t.id, J);
|
|
20641
|
-
},
|
|
20642
|
-
p(!1), y.current = null, document.removeEventListener("mousemove", H), document.removeEventListener("mouseup",
|
|
20641
|
+
}, W = () => {
|
|
20642
|
+
p(!1), y.current = null, document.removeEventListener("mousemove", H), document.removeEventListener("mouseup", W);
|
|
20643
20643
|
};
|
|
20644
|
-
document.addEventListener("mousemove", H), document.addEventListener("mouseup",
|
|
20644
|
+
document.addEventListener("mousemove", H), document.addEventListener("mouseup", W);
|
|
20645
20645
|
}, [c, t.id, o]), v = (B = l == null ? void 0 : l.config) == null ? void 0 : B.filters, k = (z = v == null ? void 0 : v.conditions) == null ? void 0 : z.some(
|
|
20646
20646
|
($) => $.field.name === t.name && $.field.qualifiedEntityName === t.qualifiedEntityName
|
|
20647
20647
|
), L = ($) => {
|
|
@@ -20657,8 +20657,8 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20657
20657
|
transform: Ds.Transform.toString(I),
|
|
20658
20658
|
transition: T
|
|
20659
20659
|
}, M = ut(t.dataType), R = cb(M), V = () => {
|
|
20660
|
-
var
|
|
20661
|
-
const $ = ((
|
|
20660
|
+
var W;
|
|
20661
|
+
const $ = ((W = l == null ? void 0 : l.config) == null ? void 0 : W.sortByColumns) || [], H = $.findIndex((K) => K.name === t.name);
|
|
20662
20662
|
if (H !== -1) {
|
|
20663
20663
|
const K = [...$];
|
|
20664
20664
|
K[H] = { ...K[H], direction: "asc" }, i(l.id, { sortByColumns: K });
|
|
@@ -20675,8 +20675,8 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20675
20675
|
]
|
|
20676
20676
|
});
|
|
20677
20677
|
}, F = () => {
|
|
20678
|
-
var
|
|
20679
|
-
const $ = ((
|
|
20678
|
+
var W;
|
|
20679
|
+
const $ = ((W = l == null ? void 0 : l.config) == null ? void 0 : W.sortByColumns) || [], H = $.findIndex((K) => K.name === t.name);
|
|
20680
20680
|
if (H !== -1) {
|
|
20681
20681
|
const K = [...$];
|
|
20682
20682
|
K[H] = { ...K[H], direction: "desc" }, i(l.id, { sortByColumns: K });
|
|
@@ -20693,8 +20693,8 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20693
20693
|
]
|
|
20694
20694
|
});
|
|
20695
20695
|
}, b = () => {
|
|
20696
|
-
var
|
|
20697
|
-
const $ = ((
|
|
20696
|
+
var W;
|
|
20697
|
+
const $ = ((W = l == null ? void 0 : l.config) == null ? void 0 : W.groupByColumns) || [];
|
|
20698
20698
|
if (!$.some((K) => K.name === t.name)) {
|
|
20699
20699
|
const K = {
|
|
20700
20700
|
...t,
|
|
@@ -20780,7 +20780,7 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20780
20780
|
/* @__PURE__ */ e(gn, { className: Y("mr-2 h-4 w-4", k && "text-primary") }),
|
|
20781
20781
|
k ? "Edit Filter" : "Filter"
|
|
20782
20782
|
] }),
|
|
20783
|
-
/* @__PURE__ */ e(
|
|
20783
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
20784
20784
|
/* @__PURE__ */ n(dt, { onClick: V, children: [
|
|
20785
20785
|
/* @__PURE__ */ e(Hh, { className: "mr-2 h-4 w-4" }),
|
|
20786
20786
|
"Sort A → Z"
|
|
@@ -20789,7 +20789,7 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20789
20789
|
/* @__PURE__ */ e(Gh, { className: "mr-2 h-4 w-4" }),
|
|
20790
20790
|
"Sort Z → A"
|
|
20791
20791
|
] }),
|
|
20792
|
-
/* @__PURE__ */ e(
|
|
20792
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
20793
20793
|
/* @__PURE__ */ n(zm, { children: [
|
|
20794
20794
|
/* @__PURE__ */ n($m, { children: [
|
|
20795
20795
|
/* @__PURE__ */ e(Vr, { className: "mr-2 h-4 w-4" }),
|
|
@@ -20804,7 +20804,7 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20804
20804
|
/* @__PURE__ */ e(dt, { onClick: () => S("MAX"), children: "Max" })
|
|
20805
20805
|
] })
|
|
20806
20806
|
] }),
|
|
20807
|
-
/* @__PURE__ */ e(
|
|
20807
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
20808
20808
|
/* @__PURE__ */ n(dt, { onClick: b, children: [
|
|
20809
20809
|
/* @__PURE__ */ e(Ss, { className: "mr-2 h-4 w-4" }),
|
|
20810
20810
|
"Group by this column"
|
|
@@ -20813,7 +20813,7 @@ function ob({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
20813
20813
|
/* @__PURE__ */ e(qr, { className: "mr-2 h-4 w-4" }),
|
|
20814
20814
|
"Pivot by this column"
|
|
20815
20815
|
] }),
|
|
20816
|
-
/* @__PURE__ */ e(
|
|
20816
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
20817
20817
|
/* @__PURE__ */ n(dt, { disabled: !0, children: [
|
|
20818
20818
|
/* @__PURE__ */ e(hr, { className: "mr-2 h-4 w-4" }),
|
|
20819
20819
|
"Hide column"
|
|
@@ -21579,7 +21579,7 @@ function gb() {
|
|
|
21579
21579
|
), T = p, {
|
|
21580
21580
|
getFieldsForContainer: w,
|
|
21581
21581
|
setFieldsForContainer: D
|
|
21582
|
-
} = go(T), { activeField: M, handleDragStart: R, handleDragEnd: V } =
|
|
21582
|
+
} = go(T), { activeField: M, handleDragStart: R, handleDragEnd: V } = Wx({
|
|
21583
21583
|
activeCardId: h.activeCardId,
|
|
21584
21584
|
sourceFields: C,
|
|
21585
21585
|
getFieldsForContainer: w,
|
|
@@ -21664,7 +21664,7 @@ function gb() {
|
|
|
21664
21664
|
) })
|
|
21665
21665
|
] }),
|
|
21666
21666
|
T && /* @__PURE__ */ e(
|
|
21667
|
-
|
|
21667
|
+
Qx,
|
|
21668
21668
|
{
|
|
21669
21669
|
cardId: T.id,
|
|
21670
21670
|
filters: ((z = T.config) == null ? void 0 : z.filters) || null,
|
|
@@ -21681,7 +21681,7 @@ function gb() {
|
|
|
21681
21681
|
);
|
|
21682
21682
|
}
|
|
21683
21683
|
function xb({ authToken: t, onSave: a, onClose: s }) {
|
|
21684
|
-
const r = De(null), c = A((I) => I.showAIDialog), o = A((I) => I.isDevMode), l =
|
|
21684
|
+
const r = De(null), c = A((I) => I.showAIDialog), o = A((I) => I.isDevMode), l = Ws((I) => I.setFullscreen), i = Ws((I) => I.setPanelOpen), d = Ws((I) => I.setContainer), m = jm("editor"), u = Km(), x = Um("editor"), g = u === "editor", h = Ir(), p = Se(
|
|
21685
21685
|
(I) => {
|
|
21686
21686
|
d("editor", I);
|
|
21687
21687
|
},
|
|
@@ -21831,7 +21831,7 @@ function Rb() {
|
|
|
21831
21831
|
async function x(h) {
|
|
21832
21832
|
var k, L, N;
|
|
21833
21833
|
if ((c == null ? void 0 : c.type) === "documentSection") {
|
|
21834
|
-
const C =
|
|
21834
|
+
const C = Qm(
|
|
21835
21835
|
h,
|
|
21836
21836
|
c.cardId
|
|
21837
21837
|
);
|
|
@@ -21839,7 +21839,7 @@ function Rb() {
|
|
|
21839
21839
|
Ze.error("No document section card found");
|
|
21840
21840
|
return;
|
|
21841
21841
|
}
|
|
21842
|
-
if (!
|
|
21842
|
+
if (!Wm(C)) {
|
|
21843
21843
|
Ze.error("Document table sections support Table and Pivot Table");
|
|
21844
21844
|
return;
|
|
21845
21845
|
}
|