react-semaphor 0.1.302 → 0.1.304
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appearance/index.cjs +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/brand-studio/index.cjs +5 -5
- package/dist/brand-studio/index.js +334 -385
- package/dist/chunks/common-types-C6cAQgyh.js +9 -0
- package/dist/chunks/common-types-nBuCd3u2.js +1 -0
- package/dist/chunks/{dashboard-controls-CZuC_QjN.js → dashboard-controls-CyFZfGaN.js} +800 -776
- package/dist/chunks/dashboard-controls-DCZnUFI0.js +47 -0
- package/dist/chunks/{dashboard-filter-controls-button-kfb_T18o.js → dashboard-filter-controls-button-DI7XUgZK.js} +142 -142
- package/dist/chunks/{dashboard-filter-controls-button-2I1ltWQ9.js → dashboard-filter-controls-button-YQZ-oeN5.js} +3 -3
- package/dist/chunks/{dashboard-json-Df6v2Jem.js → dashboard-json-C6R2qixD.js} +3 -3
- package/dist/chunks/{dashboard-json-C3v6rBdp.js → dashboard-json-Z8jz16Yj.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-DKAaWq-G.js → dashboard-summary-settings-dialog-BlD77h63.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-BBALEHJQ.js → dashboard-summary-settings-dialog-DJyY-PB9.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CGBYahAK.js → edit-dashboard-visual-CNGc1zcN.js} +33 -33
- package/dist/chunks/{edit-dashboard-visual-D8L0cl_U.js → edit-dashboard-visual-CfRJXwDR.js} +167 -168
- package/dist/chunks/{index-uRJmUpof.js → index-CJdxSyQq.js} +679 -656
- package/dist/chunks/index-D2vz3gvd.js +1360 -0
- package/dist/chunks/index-DRlMUglg.js +4 -0
- package/dist/chunks/{index-BmoR3VQT.js → index-GHhvGdF9.js} +42745 -40322
- package/dist/chunks/{palette-326-dgn0.js → palette-BqJlrRto.js} +7 -2
- package/dist/chunks/{palette-jd7xiGTg.js → palette-DD-i7bNS.js} +23 -3
- package/dist/chunks/{resource-management-panel-C_c-BwrC.js → resource-management-panel-7Y4ITzGH.js} +65 -65
- package/dist/chunks/{resource-management-panel-DrcEEARD.js → resource-management-panel-Bdus73Iu.js} +1 -1
- package/dist/chunks/{rotate-ccw-BugHcM1w.js → rotate-ccw-CdGW8Rxm.js} +1 -1
- package/dist/chunks/{rotate-ccw-yFwqBFJZ.js → rotate-ccw-X8MbX_hF.js} +1 -1
- package/dist/chunks/{save-CaybXtdd.js → save-CFBIhbHD.js} +1 -1
- package/dist/chunks/{save-DU0FXUlM.js → save-j-clxFtx.js} +1 -1
- package/dist/chunks/{switch-CZtMtqEj.js → switch-BFhVVwh9.js} +4285 -3275
- package/dist/chunks/switch-BH17qlxH.js +163 -0
- package/dist/chunks/use-create-flow-overlay-state-CSytlf2H.js +16 -0
- package/dist/chunks/{use-create-flow-overlay-state-84Xe8VrP.js → use-create-flow-overlay-state-CllZvyvE.js} +318 -316
- package/dist/chunks/{use-visual-utils-lp5DfmvL.js → use-visual-utils-CDO4kVX5.js} +1 -1
- package/dist/chunks/{use-visual-utils-z3ifg6Fd.js → use-visual-utils-CyjLzcDG.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +61 -60
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +6 -6
- package/dist/types/dashboard.d.ts +168 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +8 -11
- package/dist/types/main.d.ts +195 -2
- package/dist/types/shared.d.ts +120 -0
- package/dist/types/surfboard.d.ts +168 -0
- package/dist/types/types.d.ts +168 -0
- package/package.json +1 -1
- package/dist/chunks/braces-CpOcaBNm.js +0 -6
- package/dist/chunks/braces-TYclg8Hl.js +0 -23
- package/dist/chunks/dashboard-controls-BkuB9TQX.js +0 -47
- package/dist/chunks/index-Cxb9UUro.js +0 -4
- package/dist/chunks/index-eM6MU4q_.js +0 -1361
- package/dist/chunks/switch-AmoR1YIA.js +0 -163
- package/dist/chunks/use-create-flow-overlay-state-CiKVJGWF.js +0 -16
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as zn from "react";
|
|
3
3
|
import Kt, { useState as K, useRef as Ee, useCallback as De, useEffect as Ne, useMemo as oe, useContext as tr, Suspense as Jo } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { c as _e, l as he, B as Z, y as Wn, s as Xa, a as X, n as F,
|
|
6
|
-
import { r as ro, f as Tn } from "./use-visual-utils-
|
|
7
|
-
import { f as bt, g as lo, V as io, u as zm, e as _m, C as Vl } from "./use-create-flow-overlay-state-
|
|
4
|
+
import { cH as ii, b as xa, c as ba, d as va, e as ya, f as _a, o as Un, Q as Ze, ba as kt, cI as oi, cJ as _n, p as st, cK as ci, bl as yt, cL as Xn, cM as di, cN as ui, cO as mi, cP as ar, cQ as nr, bc as Zn, b6 as xt, cR as $s, cS as sr, cT as Yo, cU as Gn, cV as hi, cW as Xo, cX as Zo, r as es, cY as ec, cZ as tc, c_ as Ks, c$ as qn, u as Ta, X as pi, d0 as ac, d1 as nc, d2 as fi, d3 as gi, d4 as sc, d5 as rc, d6 as lc, b0 as ka, b1 as ua, b2 as ma, b3 as yn, b4 as Ut, b5 as Va, d7 as Us, cy as cn, d8 as xi, d9 as Qt, da as mt, db as ic, c3 as la, dc as bi, dd as vi, de as yi, df as oc, dg as cc, dh as dc, C as Ni, di as uc, dj as mc, dk as hc, dl as pc, dm as Ci, dn as fc, dp as ws, dq as gc, dr as fl, ds as xc, dt as gl, du as bc, dv as vc, dw as yc, dx as Ba, bg as qt, bi as jt, dy as wi, dz as rr, bO as lr, bX as ir, dA as or, dB as Nc, dC as Si, dD as Ti, dE as _t, dF as Cc, dG as wc, dH as ki, a9 as Ii, dI as Di, dJ as Sc, dK as Tc, dL as kc, dM as hn, dN as Ic, dO as Dc, dP as xl, dQ as Ac, E as ts, I as cr, dR as Ec, dS as dr, c6 as Oc, dT as bl, L as ht, dU as Mc, dV as Fc, dW as Ai, dX as Ei, cz as Rc, dY as ur, dZ as mr, bS as as, d_ as Oi, d$ as Mi, e0 as vl, e1 as Nn, e2 as Lc, e3 as Pc, e4 as Vc, e5 as Bc, e6 as zc, bD as hr, e7 as _c, e8 as qc, e9 as Fi, ea as Ri, eb as jc, ec as $c, ed as Kc, ee as Uc, ef as Li, eg as Gc, eh as Hc, ei as ns, ej as ss, bq as Wa, br as Ja, bt as Ya, c7 as za, by as Bt, ek as ta, el as Na, em as Ca, en as ia, eo as qa, ep as Qc, eq as Wc, er as Jc, es as Yc, et as Xc, eu as Zc, ev as ed, ew as pr, ex as td, ey as yl, bh as Gt, bb as Ht, ez as ad, eA as nd, eB as sd, W as rd, eC as ld, eD as Pi, eE as id, eF as od, eG as cd, eH as dd, eI as ud, eJ as Gs, eK as md, eL as hd, eM as Hs, eN as Qs, eO as pd, eP as fd, eQ as gd, eR as xd, eS as Nl, bY as Ws, eT as oa, bF as bd, eU as vd, bG as yd, bH as Nd, bI as Cd, bJ as wd, bK as Sd, bL as Td, bM as kd, bu as ct, bp as Id, eV as Dd, eW as pn, eX as fn, eY as gn, eZ as Vi, bs as fr, bZ as Ad, bv as Ed, e_ as Od, e$ as Md, f0 as Fd, f1 as Cn, f2 as Qe, f3 as We, f4 as Je, f5 as Rd, f6 as Ld, f7 as Bi, f8 as zi, f9 as Pd, c4 as _i, fa as wn, fb as Vd, fc as Bd, fd as zd, h as ja, i as $a, j as Ka, k as Ua, l as Ga, m as Ha, fe as _d, R as rs, g as wa, ff as qd, fg as Cl, fh as jd, fi as $d, fj as Ss, fk as wl, fl as Kd, fm as Ud, fn as Gd, fo as Hd, fp as Qd, fq as Ts, fr as qi, fs as Wd, ft as Hn, fu as Jd, fv as ji, fw as Yd, fx as $i, fy as Xd, cC as Zd, fz as eu, aA as tu, fA as Ln, fB as au, fC as Sl, fD as nu, fE as su, fF as Tl, fG as ru, fH as lu, fI as iu, fJ as ou, fK as cu, fL as du, fM as uu, fN as mu, fO as hu, fP as Ki, fQ as pu, fR as fu, fS as gu, fT as xu, fU as bu, fV as vu, fW as yu, fX as Nu, fY as Cu, fZ as Ui, f_ as wu, f$ as ls, g0 as Gi, g1 as Su, g2 as Tu, g3 as Hi, g4 as ku, g5 as Iu, g6 as is, g7 as ks, g8 as Du, g9 as Au, ga as Eu, gb as Ou, gc as Mu, gd as kl, ge as Qa, gf as Qi, gg as Fu, gh as Wi, gi as Ji, gj as Js, gk as Yi, gl as Il, gm as Ru, gn as Lu, go as jn, gp as Pu, gq as gr, gr as Vu, gs as Bu, gt as Qn, gu as zu, gv as xn, gw as aa, gx as Ys, gy as Xs, gz as bn, gA as Xi, gB as _u, gC as Is, gD as Ds, gE as qu, gF as As, gG as ju, gH as Dl, gI as Al, gJ as $u, gK as Ku, gL as Uu, cD as Gu, cE as Hu, cF as Qu, bA as os, gM as cs, gN as El, gO as Zi, ct as Es, gP as Wu, gQ as Ju, gR as Yu, F as Xu, b8 as Zu, gS as em, gT as tm, b9 as am } from "./index-GHhvGdF9.js";
|
|
5
|
+
import { c as _e, l as he, B as Z, y as Wn, s as Xa, a as X, n as F, aR as nm, L as _, g as ae, h as ne, i as se, j as re, k as $, aS as eo, G as It, X as et, F as Nt, z as Ft, A as Ct, D as wt, P as ft, b as St, d as gt, C as ca, aT as sm, aQ as dn, aU as xr, aV as to, aK as br, aI as rm, I as Re, aW as lm, f as da, u as Fe, e as Wt, aX as vr, aY as Sn, m as ao, T as yr, q as Nr, r as un, t as $n, E as $t, x as ds, p as Sa, W as im, aE as ga, aZ as om, a_ as cm, a$ as no, am as dm, aG as um, b0 as mm, b1 as hm, b2 as Ol, b3 as pm, b4 as fm, b5 as gm, b6 as xm, b7 as bm, b8 as Ml, b9 as vm, ba as Fl, bb as Za, bc as ym, S as je, bd as Nm, be as vn, bf as Jn, bg as na, bh as Pn, bi as Rl, bj as Cm, bk as wm, bl as Sm, bm as Mt, bn as Tm, w as so, bo as rt, a5 as Ll, bp as km, bq as Im, br as Dm, bs as Am, bt as Em, bu as Om, bv as Mm, bw as Fm, bx as Rm, aD as Pl, by as Lm, bz as Pm, bA as Vm, M as Bm, v as us } from "./switch-BFhVVwh9.js";
|
|
6
|
+
import { r as ro, f as Tn } from "./use-visual-utils-CyjLzcDG.js";
|
|
7
|
+
import { f as bt, g as lo, V as io, u as zm, e as _m, C as Vl } from "./use-create-flow-overlay-state-CllZvyvE.js";
|
|
8
8
|
import { createPortal as qm } from "react-dom";
|
|
9
|
-
import "./index-
|
|
10
|
-
import { R as Zs } from "./rotate-ccw-
|
|
11
|
-
import { P as jm } from "./palette-
|
|
12
|
-
import { B as $m } from "./braces-TYclg8Hl.js";
|
|
9
|
+
import "./index-CJdxSyQq.js";
|
|
10
|
+
import { R as Zs } from "./rotate-ccw-X8MbX_hF.js";
|
|
11
|
+
import { P as jm, B as $m } from "./palette-DD-i7bNS.js";
|
|
13
12
|
/**
|
|
14
13
|
* @license lucide-react v0.453.0 - ISC
|
|
15
14
|
*
|
|
@@ -892,7 +891,7 @@ function hh({
|
|
|
892
891
|
const { setCardConfig: o } = he();
|
|
893
892
|
F((D) => D.card.config);
|
|
894
893
|
const { columnGroups: l } = ci(), c = l.filter(
|
|
895
|
-
(D) => D.entityName !==
|
|
894
|
+
(D) => D.entityName !== nm
|
|
896
895
|
), {
|
|
897
896
|
joinPlan: i,
|
|
898
897
|
expandedJoins: m,
|
|
@@ -1028,7 +1027,7 @@ function hh({
|
|
|
1028
1027
|
variant: "ghost",
|
|
1029
1028
|
size: "sm",
|
|
1030
1029
|
onClick: () => x(D.id),
|
|
1031
|
-
children: p ? /* @__PURE__ */ e(
|
|
1030
|
+
children: p ? /* @__PURE__ */ e(eo, { className: "h-4 w-4" }) : /* @__PURE__ */ e(It, { className: "h-4 w-4" })
|
|
1032
1031
|
}
|
|
1033
1032
|
),
|
|
1034
1033
|
/* @__PURE__ */ e(
|
|
@@ -1948,7 +1947,7 @@ function vh() {
|
|
|
1948
1947
|
});
|
|
1949
1948
|
Ne(() => ro(y), [y]);
|
|
1950
1949
|
function x(w) {
|
|
1951
|
-
g(w),
|
|
1950
|
+
g(w), sm(v.current) || o({});
|
|
1952
1951
|
}
|
|
1953
1952
|
return /* @__PURE__ */ a("div", { className: "relative h-full w-full", children: [
|
|
1954
1953
|
!u && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute left-[56px] top-4 z-10 font-mono text-[12px] leading-[1.55] text-muted-foreground", children: "Write your SQL here" }),
|
|
@@ -2405,7 +2404,7 @@ function Fh({
|
|
|
2405
2404
|
body: {
|
|
2406
2405
|
...le,
|
|
2407
2406
|
inlineRunToken: ve || Oe,
|
|
2408
|
-
messages:
|
|
2407
|
+
messages: to(H)
|
|
2409
2408
|
}
|
|
2410
2409
|
};
|
|
2411
2410
|
}
|
|
@@ -2499,7 +2498,7 @@ function Fh({
|
|
|
2499
2498
|
} catch (Oe) {
|
|
2500
2499
|
if (Q.current !== ee || !Ve(le))
|
|
2501
2500
|
return null;
|
|
2502
|
-
const Me =
|
|
2501
|
+
const Me = rm(
|
|
2503
2502
|
Oe,
|
|
2504
2503
|
"Validation service unavailable. You can still replace and run."
|
|
2505
2504
|
);
|
|
@@ -2786,7 +2785,7 @@ function Fh({
|
|
|
2786
2785
|
}
|
|
2787
2786
|
),
|
|
2788
2787
|
/* @__PURE__ */ a(ft, { open: P, onOpenChange: ys, children: [
|
|
2789
|
-
/* @__PURE__ */ e(
|
|
2788
|
+
/* @__PURE__ */ e(lm, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
|
|
2790
2789
|
/* @__PURE__ */ a("div", { className: "absolute right-1 flex items-center gap-1", children: [
|
|
2791
2790
|
Ea && /* @__PURE__ */ e(
|
|
2792
2791
|
Z,
|
|
@@ -3875,7 +3874,7 @@ function xo({
|
|
|
3875
3874
|
(ce) => ce.actions.setCardInlineFilterValue
|
|
3876
3875
|
), A = F(
|
|
3877
3876
|
(ce) => ce.actions.removeCardInlineFilterValue
|
|
3878
|
-
), { updateFilter: V } =
|
|
3877
|
+
), { updateFilter: V } = ao(), C = h == null ? void 0 : h.find((ce) => ce.id === i.filterId), T = oe(
|
|
3879
3878
|
() => ka(i, r),
|
|
3880
3879
|
[i, r]
|
|
3881
3880
|
), { manifest: k } = ua(
|
|
@@ -5354,7 +5353,7 @@ function kr({
|
|
|
5354
5353
|
(be) => Wc(be, N)
|
|
5355
5354
|
))
|
|
5356
5355
|
return;
|
|
5357
|
-
const D = N.qualifiedFieldName ? N.qualifiedFieldName.split(".").slice(0, -1).join(".") : N.qualifiedEntityName || N.entityName, R =
|
|
5356
|
+
const D = N.qualifiedFieldName ? N.qualifiedFieldName.split(".").slice(0, -1).join(".") : N.qualifiedEntityName || N.entityName, R = im(N.name), p = Jc(N), M = Yc(o == null ? void 0 : o.dataSource, {
|
|
5358
5357
|
connectionId: l || ((Y = o == null ? void 0 : o.dataSource) == null ? void 0 : Y.connectionId),
|
|
5359
5358
|
connectionType: (U = o == null ? void 0 : o.dataSource) == null ? void 0 : U.connectionType
|
|
5360
5359
|
}), I = Xc(p), P = !!(((Q = o == null ? void 0 : o.dataSource) == null ? void 0 : Q.mode) === "semanticDomain" && ((ue = M == null ? void 0 : M.selectedEntities) != null && ue.length || M != null && M.semanticDomainId)), B = {
|
|
@@ -5401,7 +5400,7 @@ function kr({
|
|
|
5401
5400
|
const D = b.find((R) => R.id === N);
|
|
5402
5401
|
if (!D)
|
|
5403
5402
|
return;
|
|
5404
|
-
const O =
|
|
5403
|
+
const O = om(
|
|
5405
5404
|
D,
|
|
5406
5405
|
y
|
|
5407
5406
|
);
|
|
@@ -5568,7 +5567,7 @@ function ep(t, n, s) {
|
|
|
5568
5567
|
const r = new Set(
|
|
5569
5568
|
s.filter((o) => o.target !== "sql_param").map((o) => Yn(o.controlId, o.target))
|
|
5570
5569
|
), d = n.map((o) => {
|
|
5571
|
-
const l =
|
|
5570
|
+
const l = no({
|
|
5572
5571
|
card: t,
|
|
5573
5572
|
control: o
|
|
5574
5573
|
}).map((h) => h.value), c = Zh[o.type], m = [
|
|
@@ -5605,10 +5604,10 @@ function tp({
|
|
|
5605
5604
|
), h = td({
|
|
5606
5605
|
sql: t.sql,
|
|
5607
5606
|
controlBindings: t.controlBindings
|
|
5608
|
-
}), v =
|
|
5607
|
+
}), v = cm(t), f = new Set(
|
|
5609
5608
|
s.map((V) => Yn(V.controlId, V.target))
|
|
5610
5609
|
), u = c.some(
|
|
5611
|
-
(V) =>
|
|
5610
|
+
(V) => no({
|
|
5612
5611
|
card: t,
|
|
5613
5612
|
control: V
|
|
5614
5613
|
}).some(
|
|
@@ -5724,7 +5723,7 @@ function tp({
|
|
|
5724
5723
|
s.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "This card is not using any controls yet." }) : s.map((V, C) => {
|
|
5725
5724
|
const T = v[V.target] || [], k = c.find(
|
|
5726
5725
|
(p) => p.id === V.controlId
|
|
5727
|
-
), S = k ?
|
|
5726
|
+
), S = k ? dm(k) : null, N = (S == null ? void 0 : S.source.kind) === "manual" ? S.source.options : [], E = y(V.target), b = Array.from(
|
|
5728
5727
|
/* @__PURE__ */ new Set([
|
|
5729
5728
|
...N.map((p) => p.value),
|
|
5730
5729
|
...Object.keys(V.mapping)
|
|
@@ -5905,13 +5904,13 @@ function Co({
|
|
|
5905
5904
|
}, [c == null ? void 0 : c.id, o, g]), Ne(() => {
|
|
5906
5905
|
!o && g !== null && y(null);
|
|
5907
5906
|
}, [o, g]);
|
|
5908
|
-
const x = oe(() => g ? (i == null ? void 0 : i.cards.find((R) => R.id === g)) || ((c == null ? void 0 : c.id) === g ? c : void 0) : c, [c, i == null ? void 0 : i.cards, g]), w = (x == null ? void 0 : x.controls) || [], A = x ?
|
|
5907
|
+
const x = oe(() => g ? (i == null ? void 0 : i.cards.find((R) => R.id === g)) || ((c == null ? void 0 : c.id) === g ? c : void 0) : c, [c, i == null ? void 0 : i.cards, g]), w = (x == null ? void 0 : x.controls) || [], A = x ? um(m, { excludeCardId: x.id }) : v.map((R) => R.id), V = ((x == null ? void 0 : x.controlBindings) || []).filter(
|
|
5909
5908
|
(R) => R.target !== "sql_param"
|
|
5910
|
-
), C =
|
|
5909
|
+
), C = ad({
|
|
5911
5910
|
card: x,
|
|
5912
5911
|
controls: w
|
|
5913
5912
|
}), T = {
|
|
5914
|
-
choices:
|
|
5913
|
+
choices: mm(x),
|
|
5915
5914
|
targetMap: Object.fromEntries(
|
|
5916
5915
|
(((D = x == null ? void 0 : x.config) == null ? void 0 : D.groupByColumns) || []).map((R) => [
|
|
5917
5916
|
R.id,
|
|
@@ -5919,7 +5918,7 @@ function Co({
|
|
|
5919
5918
|
])
|
|
5920
5919
|
)
|
|
5921
5920
|
}, k = {
|
|
5922
|
-
choices:
|
|
5921
|
+
choices: hm(x),
|
|
5923
5922
|
targetMap: Object.fromEntries(
|
|
5924
5923
|
(((O = x == null ? void 0 : x.config) == null ? void 0 : O.metricColumns) || []).map((R) => [
|
|
5925
5924
|
R.id,
|
|
@@ -5945,7 +5944,7 @@ function Co({
|
|
|
5945
5944
|
}) : x, I = {
|
|
5946
5945
|
...M,
|
|
5947
5946
|
controls: R,
|
|
5948
|
-
controlBindings:
|
|
5947
|
+
controlBindings: pm(
|
|
5949
5948
|
M.controlBindings,
|
|
5950
5949
|
R
|
|
5951
5950
|
)
|
|
@@ -5956,7 +5955,7 @@ function Co({
|
|
|
5956
5955
|
return;
|
|
5957
5956
|
const p = {
|
|
5958
5957
|
...x,
|
|
5959
|
-
controlBindings:
|
|
5958
|
+
controlBindings: fm(
|
|
5960
5959
|
R,
|
|
5961
5960
|
x.controlBindings
|
|
5962
5961
|
)
|
|
@@ -6063,7 +6062,7 @@ function wo({
|
|
|
6063
6062
|
var g, y;
|
|
6064
6063
|
return (y = (g = u.card) == null ? void 0 : g.preferences) == null ? void 0 : y.chartOptions;
|
|
6065
6064
|
}
|
|
6066
|
-
), c =
|
|
6065
|
+
), c = nd(l), { setChartGrid: i } = he();
|
|
6067
6066
|
function m() {
|
|
6068
6067
|
const u = ["xy", "none", "x", "y"], y = (u.indexOf(c) + 1) % u.length;
|
|
6069
6068
|
i(u[y]);
|
|
@@ -6101,7 +6100,7 @@ function wo({
|
|
|
6101
6100
|
(c === "xy" || !c) && /* @__PURE__ */ e(hr, { className: "h-3.5 w-3.5" }),
|
|
6102
6101
|
c === "x" && /* @__PURE__ */ e(Cr, { className: "h-3.5 w-3.5" }),
|
|
6103
6102
|
c === "y" && /* @__PURE__ */ e(ms, { className: "h-3.5 w-3.5" }),
|
|
6104
|
-
c === "none" && /* @__PURE__ */ e(
|
|
6103
|
+
c === "none" && /* @__PURE__ */ e(sd, { className: "h-3.5 w-3.5" })
|
|
6105
6104
|
]
|
|
6106
6105
|
}
|
|
6107
6106
|
),
|
|
@@ -6113,7 +6112,7 @@ function wo({
|
|
|
6113
6112
|
function np({
|
|
6114
6113
|
visible: t
|
|
6115
6114
|
}) {
|
|
6116
|
-
const n = Fe((l) => l.selectedFrameId), s =
|
|
6115
|
+
const n = Fe((l) => l.selectedFrameId), s = rd((l) => l.selectedVisual), r = F((l) => l.frame), o = !!!(r != null && r.visualId || s != null && s.id) && !!n;
|
|
6117
6116
|
return !t || o ? null : /* @__PURE__ */ e("div", { className: "mb-2 flex", children: /* @__PURE__ */ e(
|
|
6118
6117
|
io,
|
|
6119
6118
|
{
|
|
@@ -6163,7 +6162,7 @@ function sp({
|
|
|
6163
6162
|
const j = (s == null ? void 0 : s.id) === q;
|
|
6164
6163
|
if (!(S && j ? r.cards.length > 1 : k)) return;
|
|
6165
6164
|
let U = r.cards.filter((ge) => ge.id !== q);
|
|
6166
|
-
x && !S && (U =
|
|
6165
|
+
x && !S && (U = gd(U));
|
|
6167
6166
|
const Q = U[0], ue = {
|
|
6168
6167
|
...r,
|
|
6169
6168
|
cards: U,
|
|
@@ -6220,7 +6219,7 @@ function sp({
|
|
|
6220
6219
|
g.slots,
|
|
6221
6220
|
Q
|
|
6222
6221
|
);
|
|
6223
|
-
ge && (j =
|
|
6222
|
+
ge && (j = xd(ge), Y = ge.label || `Tab ${Q + 1}`, U = ge.description || "");
|
|
6224
6223
|
}
|
|
6225
6224
|
const ue = {
|
|
6226
6225
|
dataSource: q.dataSource,
|
|
@@ -6323,7 +6322,7 @@ function sp({
|
|
|
6323
6322
|
/* @__PURE__ */ a(we, { children: [
|
|
6324
6323
|
p(r, q),
|
|
6325
6324
|
/* @__PURE__ */ e(
|
|
6326
|
-
|
|
6325
|
+
md,
|
|
6327
6326
|
{
|
|
6328
6327
|
enabled: r.activeCardId === q.id,
|
|
6329
6328
|
text: q.tabTitle || q.title,
|
|
@@ -6337,7 +6336,7 @@ function sp({
|
|
|
6337
6336
|
] })
|
|
6338
6337
|
),
|
|
6339
6338
|
!l && r.activeCardId === q.id && !ue && /* @__PURE__ */ e(
|
|
6340
|
-
|
|
6339
|
+
hd,
|
|
6341
6340
|
{
|
|
6342
6341
|
className: "h-3 w-3 text-muted-foreground hover:text-foreground",
|
|
6343
6342
|
onClick: (ye) => {
|
|
@@ -6406,7 +6405,7 @@ function fa({
|
|
|
6406
6405
|
} = he(), [y, x] = K({}), [w, A] = K(
|
|
6407
6406
|
() => /* @__PURE__ */ new Set()
|
|
6408
6407
|
), { authToken: V } = Ta(), C = gm(V == null ? void 0 : V.accessToken), { compiledAppearance: T } = xm(), k = oe(
|
|
6409
|
-
() =>
|
|
6408
|
+
() => ld(T),
|
|
6410
6409
|
[T]
|
|
6411
6410
|
), {
|
|
6412
6411
|
getCard: S,
|
|
@@ -6421,7 +6420,7 @@ function fa({
|
|
|
6421
6420
|
}).map(
|
|
6422
6421
|
(de) => (de == null ? void 0 : de.id) === r.id ? r : de
|
|
6423
6422
|
), [s, l, r]), M = oe(
|
|
6424
|
-
() =>
|
|
6423
|
+
() => Pi(p),
|
|
6425
6424
|
[p]
|
|
6426
6425
|
), I = oe(() => {
|
|
6427
6426
|
const J = p.findIndex(
|
|
@@ -6442,7 +6441,7 @@ function fa({
|
|
|
6442
6441
|
queryConfig: void 0
|
|
6443
6442
|
} : P !== r.type ? { ...r, type: P } : r, [r, P, R]), { data: z, isLoading: q, isFetching: j, isError: Y } = xt(B), U = De(
|
|
6444
6443
|
(J, de) => {
|
|
6445
|
-
const Te =
|
|
6444
|
+
const Te = id(de);
|
|
6446
6445
|
x((Ie) => ({
|
|
6447
6446
|
...Ie,
|
|
6448
6447
|
[J]: Te
|
|
@@ -6469,7 +6468,7 @@ function fa({
|
|
|
6469
6468
|
), Ke = F(
|
|
6470
6469
|
(J) => J.actions.removeCardInlineFilterValue
|
|
6471
6470
|
), ie = oe(
|
|
6472
|
-
() => l ?
|
|
6471
|
+
() => l ? od({
|
|
6473
6472
|
card: l,
|
|
6474
6473
|
sheetId: Ce || "",
|
|
6475
6474
|
inlineFilterValues: Be,
|
|
@@ -6484,7 +6483,7 @@ function fa({
|
|
|
6484
6483
|
Ke
|
|
6485
6484
|
]
|
|
6486
6485
|
), { cardFilters: Le, cardFilterValues: Ge } = oe(
|
|
6487
|
-
() => l ?
|
|
6486
|
+
() => l ? cd({
|
|
6488
6487
|
card: l,
|
|
6489
6488
|
interactionStates: be,
|
|
6490
6489
|
currentDashboardId: ge,
|
|
@@ -6536,7 +6535,7 @@ function fa({
|
|
|
6536
6535
|
D == null ? void 0 : D.slots
|
|
6537
6536
|
);
|
|
6538
6537
|
return /* @__PURE__ */ e(
|
|
6539
|
-
|
|
6538
|
+
pd,
|
|
6540
6539
|
{
|
|
6541
6540
|
onLoadingStatus: Q,
|
|
6542
6541
|
onDataChange: U,
|
|
@@ -6562,7 +6561,7 @@ function fa({
|
|
|
6562
6561
|
L,
|
|
6563
6562
|
{
|
|
6564
6563
|
editing: !0,
|
|
6565
|
-
...
|
|
6564
|
+
...fd({
|
|
6566
6565
|
configCard: l,
|
|
6567
6566
|
slotOrderedCards: M,
|
|
6568
6567
|
slotTypes: de,
|
|
@@ -6595,7 +6594,7 @@ function fa({
|
|
|
6595
6594
|
}) : r.type === "kpi" ? q || j ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ a("div", { className: "w-1/2 space-y-3", children: [
|
|
6596
6595
|
/* @__PURE__ */ e(np, { visible: !0 }),
|
|
6597
6596
|
/* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
6598
|
-
|
|
6597
|
+
dd,
|
|
6599
6598
|
{
|
|
6600
6599
|
card: r,
|
|
6601
6600
|
data: z == null ? void 0 : z.records,
|
|
@@ -6606,7 +6605,7 @@ function fa({
|
|
|
6606
6605
|
) }),
|
|
6607
6606
|
ki(r) && /* @__PURE__ */ e(Ii, { card: r, mode: "editor" })
|
|
6608
6607
|
] }) }) : r.type === "text" ? q || j ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(Xa, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
6609
|
-
|
|
6608
|
+
ud,
|
|
6610
6609
|
{
|
|
6611
6610
|
isLoading: c,
|
|
6612
6611
|
card: r,
|
|
@@ -6792,8 +6791,8 @@ function So({
|
|
|
6792
6791
|
"Visual Code"
|
|
6793
6792
|
] }),
|
|
6794
6793
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6795
|
-
/* @__PURE__ */ a(
|
|
6796
|
-
/* @__PURE__ */ e(
|
|
6794
|
+
/* @__PURE__ */ a(bd, { children: [
|
|
6795
|
+
/* @__PURE__ */ e(vd, { asChild: !0, children: /* @__PURE__ */ a(
|
|
6797
6796
|
Z,
|
|
6798
6797
|
{
|
|
6799
6798
|
type: "button",
|
|
@@ -6807,15 +6806,15 @@ function So({
|
|
|
6807
6806
|
]
|
|
6808
6807
|
}
|
|
6809
6808
|
) }),
|
|
6810
|
-
/* @__PURE__ */ a(
|
|
6811
|
-
/* @__PURE__ */ a(
|
|
6812
|
-
/* @__PURE__ */ e(
|
|
6813
|
-
/* @__PURE__ */ e(
|
|
6809
|
+
/* @__PURE__ */ a(yd, { children: [
|
|
6810
|
+
/* @__PURE__ */ a(Nd, { children: [
|
|
6811
|
+
/* @__PURE__ */ e(Cd, { children: "Clear dynamic visual?" }),
|
|
6812
|
+
/* @__PURE__ */ e(wd, { children: "This removes the saved dynamic renderer and switches the card back to built-in mode. The underlying query and built-in chart type will remain." })
|
|
6814
6813
|
] }),
|
|
6815
|
-
/* @__PURE__ */ a(
|
|
6816
|
-
/* @__PURE__ */ e(
|
|
6814
|
+
/* @__PURE__ */ a(Sd, { children: [
|
|
6815
|
+
/* @__PURE__ */ e(Td, { children: "Cancel" }),
|
|
6817
6816
|
/* @__PURE__ */ e(
|
|
6818
|
-
|
|
6817
|
+
kd,
|
|
6819
6818
|
{
|
|
6820
6819
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
6821
6820
|
onClick: D,
|
|
@@ -7277,7 +7276,7 @@ function Ps({
|
|
|
7277
7276
|
var tt;
|
|
7278
7277
|
const o = es(), l = F((pe) => pe.frame), c = F((pe) => pe.card), i = c.type === "table" || c.type === "detailTable", m = F((pe) => pe.isDevMode), h = F((pe) => pe.editorContext), v = (h == null ? void 0 : h.type) === "documentSection", f = F((pe) => pe.isShowingVisual), u = F(
|
|
7279
7278
|
(pe) => pe.actions.setIsShowingVisual
|
|
7280
|
-
), g = Fe((pe) => pe.isVisualEditing), { isConsoleMode: y } =
|
|
7279
|
+
), g = Fe((pe) => pe.isVisualEditing), { isConsoleMode: y } = Id(), x = F((pe) => pe.pythonStdOut), w = F((pe) => pe.actions.setRunSql), A = bt(), C = Za(c) === "dynamic", [T, k] = K(!1), S = r ?? T, N = d ?? k, {
|
|
7281
7280
|
setFrame: E,
|
|
7282
7281
|
setCard: b,
|
|
7283
7282
|
setActiveTabCardId: L,
|
|
@@ -7302,7 +7301,7 @@ function Ps({
|
|
|
7302
7301
|
const { handleDebugWithAssistant: ge } = go(
|
|
7303
7302
|
j,
|
|
7304
7303
|
Y
|
|
7305
|
-
), ye = oe(() => (B == null ? void 0 : B.records) || [], [B == null ? void 0 : B.records]), { cardFilterValues: Se } =
|
|
7304
|
+
), ye = oe(() => (B == null ? void 0 : B.records) || [], [B == null ? void 0 : B.records]), { cardFilterValues: Se } = Dd(
|
|
7306
7305
|
(c == null ? void 0 : c.id) ?? ""
|
|
7307
7306
|
), [Ce, Be] = K(!1);
|
|
7308
7307
|
Ne(() => {
|
|
@@ -7480,7 +7479,7 @@ function Ps({
|
|
|
7480
7479
|
U();
|
|
7481
7480
|
},
|
|
7482
7481
|
children: /* @__PURE__ */ e(
|
|
7483
|
-
|
|
7482
|
+
Vi,
|
|
7484
7483
|
{
|
|
7485
7484
|
className: X("h-3.5 w-3.5", {
|
|
7486
7485
|
"animate-spin": Ce
|
|
@@ -7588,7 +7587,7 @@ function Ps({
|
|
|
7588
7587
|
onSelect: Ge,
|
|
7589
7588
|
className: "gap-2 text-[13px]",
|
|
7590
7589
|
children: [
|
|
7591
|
-
/* @__PURE__ */ e(
|
|
7590
|
+
/* @__PURE__ */ e(Ad, { className: "h-3.5 w-3.5" }),
|
|
7592
7591
|
"Download CSV"
|
|
7593
7592
|
]
|
|
7594
7593
|
}
|
|
@@ -7610,7 +7609,7 @@ function Ps({
|
|
|
7610
7609
|
onSelect: ie,
|
|
7611
7610
|
className: "gap-2 text-[13px]",
|
|
7612
7611
|
children: [
|
|
7613
|
-
/* @__PURE__ */ e(
|
|
7612
|
+
/* @__PURE__ */ e(Ed, { className: "h-3.5 w-3.5" }),
|
|
7614
7613
|
"Copy JSON"
|
|
7615
7614
|
]
|
|
7616
7615
|
}
|
|
@@ -7732,10 +7731,10 @@ function dp() {
|
|
|
7732
7731
|
), o = oe(
|
|
7733
7732
|
() => {
|
|
7734
7733
|
var y, x;
|
|
7735
|
-
return
|
|
7734
|
+
return Od((x = (y = t.preferences) == null ? void 0 : y.tablePrefs) == null ? void 0 : x.pageSize);
|
|
7736
7735
|
},
|
|
7737
7736
|
[(i = (c = t.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : i.pageSize]
|
|
7738
|
-
), l =
|
|
7737
|
+
), l = Md(
|
|
7739
7738
|
(h = (m = t.preferences) == null ? void 0 : m.tablePrefs) == null ? void 0 : h.pageSize
|
|
7740
7739
|
);
|
|
7741
7740
|
return t.type !== "table" && t.type !== "detailTable" ? null : /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
@@ -7960,7 +7959,7 @@ function Io() {
|
|
|
7960
7959
|
var D, O, R;
|
|
7961
7960
|
const t = F(
|
|
7962
7961
|
(p) => p.card.customCardPreferences
|
|
7963
|
-
), { data: n } =
|
|
7962
|
+
), { data: n } = Fd(), s = (n == null ? void 0 : n.plugins) || [], r = F((p) => p.card), d = F((p) => p.frame), { setCustomCardPreferences: o } = he(), l = oe(
|
|
7964
7963
|
() => ka(d, r),
|
|
7965
7964
|
[d, r]
|
|
7966
7965
|
), c = l == null ? void 0 : l.customCardPreferences, { components: i, manifest: m } = ua(
|
|
@@ -7978,7 +7977,7 @@ function Io() {
|
|
|
7978
7977
|
}),
|
|
7979
7978
|
[d, l, r, f]
|
|
7980
7979
|
), w = oe(
|
|
7981
|
-
() =>
|
|
7980
|
+
() => Pi(x),
|
|
7982
7981
|
[x]
|
|
7983
7982
|
), A = oe(
|
|
7984
7983
|
() => w.map((p, M) => {
|
|
@@ -8149,7 +8148,7 @@ function Io() {
|
|
|
8149
8148
|
] })
|
|
8150
8149
|
] }) })
|
|
8151
8150
|
] }),
|
|
8152
|
-
f && V.length > 0 && /* @__PURE__ */ e(
|
|
8151
|
+
f && V.length > 0 && /* @__PURE__ */ e(Bi, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(zi, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: V.map((p, M) => /* @__PURE__ */ e("li", { children: p.message }, `${p.type}-${M}`)) }) }) }),
|
|
8153
8152
|
h && !f && h.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: b({
|
|
8154
8153
|
settingsSchema: h.settings,
|
|
8155
8154
|
settingsField: "settings",
|
|
@@ -8261,9 +8260,9 @@ function Io() {
|
|
|
8261
8260
|
h.docs.dataSchema && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
8262
8261
|
/* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
|
|
8263
8262
|
/* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
|
|
8264
|
-
|
|
8263
|
+
Rd,
|
|
8265
8264
|
{
|
|
8266
|
-
remarkPlugins: [
|
|
8265
|
+
remarkPlugins: [Ld],
|
|
8267
8266
|
components: pp,
|
|
8268
8267
|
children: h.docs.dataSchema
|
|
8269
8268
|
}
|
|
@@ -8860,7 +8859,7 @@ function bp({
|
|
|
8860
8859
|
className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
|
|
8861
8860
|
children: [
|
|
8862
8861
|
"View documentation",
|
|
8863
|
-
/* @__PURE__ */ e(
|
|
8862
|
+
/* @__PURE__ */ e(Pd, { className: "h-3 w-3" })
|
|
8864
8863
|
]
|
|
8865
8864
|
}
|
|
8866
8865
|
)
|
|
@@ -8919,7 +8918,7 @@ function Ql({
|
|
|
8919
8918
|
children: [
|
|
8920
8919
|
/* @__PURE__ */ a("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
8921
8920
|
/* @__PURE__ */ e(_, { children: n }),
|
|
8922
|
-
/* @__PURE__ */ e(
|
|
8921
|
+
/* @__PURE__ */ e(eo, { className: "h-4 w-4" })
|
|
8923
8922
|
] }),
|
|
8924
8923
|
/* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
|
|
8925
8924
|
]
|
|
@@ -9021,7 +9020,7 @@ function Ao() {
|
|
|
9021
9020
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: ((f = s == null ? void 0 : s.onClickFilter) == null ? void 0 : f.find(
|
|
9022
9021
|
(u) => u.columnIndex === h
|
|
9023
9022
|
)) && /* @__PURE__ */ e(
|
|
9024
|
-
|
|
9023
|
+
_i,
|
|
9025
9024
|
{
|
|
9026
9025
|
onClick: () => {
|
|
9027
9026
|
n((u) => {
|
|
@@ -9997,7 +9996,7 @@ function Ir({
|
|
|
9997
9996
|
function Mp() {
|
|
9998
9997
|
const t = Fe(
|
|
9999
9998
|
(c) => c.dashboard.filters
|
|
10000
|
-
), n = F((c) => c.frame), { setFrame: s } = he(), { dashboardFilterableFields: r } = wn(), { assignFilter: d } =
|
|
9999
|
+
), n = F((c) => c.frame), { setFrame: s } = he(), { dashboardFilterableFields: r } = wn(), { assignFilter: d } = Vd();
|
|
10001
10000
|
function o(c) {
|
|
10002
10001
|
const i = d(c, "frame");
|
|
10003
10002
|
s({ ...n, filterId: i });
|
|
@@ -10012,7 +10011,7 @@ function Mp() {
|
|
|
10012
10011
|
columns: r
|
|
10013
10012
|
}
|
|
10014
10013
|
),
|
|
10015
|
-
l && /* @__PURE__ */ e(
|
|
10014
|
+
l && /* @__PURE__ */ e(Bd, { filter: l })
|
|
10016
10015
|
] });
|
|
10017
10016
|
}
|
|
10018
10017
|
function Fp({
|
|
@@ -10035,7 +10034,7 @@ function Fp({
|
|
|
10035
10034
|
className: "w-full justify-between font-normal",
|
|
10036
10035
|
children: [
|
|
10037
10036
|
d ? ((c = t.find((i) => i.id === d)) == null ? void 0 : c.label) || d : "Select Column...",
|
|
10038
|
-
/* @__PURE__ */ e(
|
|
10037
|
+
/* @__PURE__ */ e(zd, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
10039
10038
|
]
|
|
10040
10039
|
}
|
|
10041
10040
|
) }),
|
|
@@ -10054,7 +10053,7 @@ function Fp({
|
|
|
10054
10053
|
children: [
|
|
10055
10054
|
i.label || i.name,
|
|
10056
10055
|
/* @__PURE__ */ e(
|
|
10057
|
-
|
|
10056
|
+
_d,
|
|
10058
10057
|
{
|
|
10059
10058
|
className: X(
|
|
10060
10059
|
"ml-auto h-4 w-4",
|
|
@@ -10411,7 +10410,7 @@ function _p() {
|
|
|
10411
10410
|
(k = t == null ? void 0 : t.config) == null ? void 0 : k.pivotByColumns,
|
|
10412
10411
|
(S = t == null ? void 0 : t.config) == null ? void 0 : S.metricColumns,
|
|
10413
10412
|
s
|
|
10414
|
-
]), g = oe(() =>
|
|
10413
|
+
]), g = oe(() => qd(), []);
|
|
10415
10414
|
Ne(() => {
|
|
10416
10415
|
const p = {};
|
|
10417
10416
|
u.forEach((M, I) => {
|
|
@@ -10496,7 +10495,7 @@ function _p() {
|
|
|
10496
10495
|
}
|
|
10497
10496
|
) }) }),
|
|
10498
10497
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: u.map((p, M) => {
|
|
10499
|
-
const I =
|
|
10498
|
+
const I = jd(c[p], M), P = !I;
|
|
10500
10499
|
return /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
10501
10500
|
/* @__PURE__ */ a(
|
|
10502
10501
|
ft,
|
|
@@ -10673,7 +10672,7 @@ function Vt({
|
|
|
10673
10672
|
}
|
|
10674
10673
|
function Bs({ axis: t, label: n, type: s, config: r, onChange: d, defaultTitle: o, hidePosition: l }) {
|
|
10675
10674
|
var g, y, x, w, A, V, C, T, k, S, N, E, b, L;
|
|
10676
|
-
const c =
|
|
10675
|
+
const c = Kd({
|
|
10677
10676
|
formatMode: r == null ? void 0 : r.formatMode,
|
|
10678
10677
|
formatOptions: r == null ? void 0 : r.formatOptions
|
|
10679
10678
|
}), i = (D, O) => {
|
|
@@ -10941,7 +10940,7 @@ function qp() {
|
|
|
10941
10940
|
}), { setCardPreferences: s, updateCardInFrame: r } = he(), d = bt();
|
|
10942
10941
|
if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(d))
|
|
10943
10942
|
return null;
|
|
10944
|
-
const o =
|
|
10943
|
+
const o = $d.getAxisInfo(
|
|
10945
10944
|
d,
|
|
10946
10945
|
n
|
|
10947
10946
|
);
|
|
@@ -11020,9 +11019,9 @@ function jp() {
|
|
|
11020
11019
|
return (y = (g = (u = (f = v.card) == null ? void 0 : f.preferences) == null ? void 0 : u.chartOptions) == null ? void 0 : g.plugins) == null ? void 0 : y.legend;
|
|
11021
11020
|
}
|
|
11022
11021
|
), { setLegendOptions: r } = he();
|
|
11023
|
-
if (!t || !
|
|
11022
|
+
if (!t || !Ud(n))
|
|
11024
11023
|
return null;
|
|
11025
|
-
const d =
|
|
11024
|
+
const d = Gd(n), o = (d == null ? void 0 : d.display) ?? !0, l = (d == null ? void 0 : d.position) ?? "top", c = (d == null ? void 0 : d.align) ?? "center", i = (v, f) => {
|
|
11026
11025
|
const u = {
|
|
11027
11026
|
...s,
|
|
11028
11027
|
[v]: f
|
|
@@ -11090,9 +11089,9 @@ function $p() {
|
|
|
11090
11089
|
var q;
|
|
11091
11090
|
return (q = z.card) == null ? void 0 : q.preferences;
|
|
11092
11091
|
}), { setCardPreferences: d, updateCardInFrame: o } = he();
|
|
11093
|
-
if (!t || !
|
|
11092
|
+
if (!t || !Hd(n))
|
|
11094
11093
|
return null;
|
|
11095
|
-
const l = n === "bullet" ? ((O = r == null ? void 0 : r.bulletConfig) == null ? void 0 : O.orientation) ?? (((R = r == null ? void 0 : r.chartOptions) == null ? void 0 : R.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, c = l != null ? l === "horizontal" : ((p = r == null ? void 0 : r.chartOptions) == null ? void 0 : p.indexAxis) === "y", i = n === "stackedBar" || n === "stackedLine", m = n === "pie" || n === "doughnut" || n === "polarArea" || n === "funnel", h = n === "bubble" || n === "scatter", v = (I = (M = r == null ? void 0 : r.chartOptions) == null ? void 0 : M.plugins) == null ? void 0 : I.datalabels, f = (v == null ? void 0 : v.display) !== !1 && ((v == null ? void 0 : v.anchor) || (v == null ? void 0 : v.align)), u =
|
|
11094
|
+
const l = n === "bullet" ? ((O = r == null ? void 0 : r.bulletConfig) == null ? void 0 : O.orientation) ?? (((R = r == null ? void 0 : r.chartOptions) == null ? void 0 : R.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, c = l != null ? l === "horizontal" : ((p = r == null ? void 0 : r.chartOptions) == null ? void 0 : p.indexAxis) === "y", i = n === "stackedBar" || n === "stackedLine", m = n === "pie" || n === "doughnut" || n === "polarArea" || n === "funnel", h = n === "bubble" || n === "scatter", v = (I = (M = r == null ? void 0 : r.chartOptions) == null ? void 0 : M.plugins) == null ? void 0 : I.datalabels, f = (v == null ? void 0 : v.display) !== !1 && ((v == null ? void 0 : v.anchor) || (v == null ? void 0 : v.align)), u = Qd(
|
|
11096
11095
|
n,
|
|
11097
11096
|
t.preferences
|
|
11098
11097
|
), g = s ?? u, y = (u == null ? void 0 : u.enabled) ?? f ?? !1, x = (s == null ? void 0 : s.enabled) !== void 0 ? s.enabled : y, w = (z, q) => {
|
|
@@ -11792,7 +11791,7 @@ function Up() {
|
|
|
11792
11791
|
) })
|
|
11793
11792
|
] });
|
|
11794
11793
|
}
|
|
11795
|
-
const Gp = Object.keys(
|
|
11794
|
+
const Gp = Object.keys(qi);
|
|
11796
11795
|
function Hp() {
|
|
11797
11796
|
const t = F((f) => f.card), n = F((f) => {
|
|
11798
11797
|
var u;
|
|
@@ -11834,7 +11833,7 @@ function Hp() {
|
|
|
11834
11833
|
className: "space-y-3",
|
|
11835
11834
|
children: [
|
|
11836
11835
|
Gp.map((f) => {
|
|
11837
|
-
const u =
|
|
11836
|
+
const u = qi[f];
|
|
11838
11837
|
return /* @__PURE__ */ a(
|
|
11839
11838
|
"div",
|
|
11840
11839
|
{
|
|
@@ -12363,7 +12362,7 @@ function Wp() {
|
|
|
12363
12362
|
};
|
|
12364
12363
|
return !l && !c ? null : /* @__PURE__ */ a(Qe, { value: "bubble-scatter-config", children: [
|
|
12365
12364
|
/* @__PURE__ */ e(We, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
12366
|
-
/* @__PURE__ */ e(l ?
|
|
12365
|
+
/* @__PURE__ */ e(l ? Wd : Li, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
12367
12366
|
/* @__PURE__ */ a("span", { children: [
|
|
12368
12367
|
l ? "Bubble" : "Scatter",
|
|
12369
12368
|
" Configuration"
|
|
@@ -12803,7 +12802,7 @@ function ps() {
|
|
|
12803
12802
|
const t = F((o) => o.card), { data: n } = xt(t), { keys: s } = Us((n == null ? void 0 : n.records) || []), r = s.slice(1).filter((o) => !Tm.includes(o));
|
|
12804
12803
|
let d = r;
|
|
12805
12804
|
if (["stackedBar", "stackedLine"].includes(t.type)) {
|
|
12806
|
-
const o =
|
|
12805
|
+
const o = Jd({
|
|
12807
12806
|
dataArray: (n == null ? void 0 : n.records) || [],
|
|
12808
12807
|
groupKey: s[0],
|
|
12809
12808
|
pivotKey: s[1],
|
|
@@ -13453,7 +13452,7 @@ function gf({ metricKey: t, idx: n }) {
|
|
|
13453
13452
|
"border border-border bg-background text-muted-foreground"
|
|
13454
13453
|
),
|
|
13455
13454
|
children: [
|
|
13456
|
-
/* @__PURE__ */ e(
|
|
13455
|
+
/* @__PURE__ */ e(ji, { className: "h-3 w-3" }),
|
|
13457
13456
|
h.label.split(" ")[0]
|
|
13458
13457
|
]
|
|
13459
13458
|
}
|
|
@@ -13682,7 +13681,7 @@ function Nf({ metricKey: t, idx: n }) {
|
|
|
13682
13681
|
"border border-border bg-background text-muted-foreground"
|
|
13683
13682
|
),
|
|
13684
13683
|
children: [
|
|
13685
|
-
/* @__PURE__ */ e(
|
|
13684
|
+
/* @__PURE__ */ e(Yd, { className: "h-3 w-3" }),
|
|
13686
13685
|
f.label.split(" ")[0]
|
|
13687
13686
|
]
|
|
13688
13687
|
}
|
|
@@ -14180,7 +14179,7 @@ function Bf() {
|
|
|
14180
14179
|
var A, V;
|
|
14181
14180
|
const t = F((C) => C.card), n = F(
|
|
14182
14181
|
(C) => C.actions.updateCardConfig
|
|
14183
|
-
), s = bt(), { scopedFields: r } =
|
|
14182
|
+
), s = bt(), { scopedFields: r } = $i(), d = ((A = t.config) == null ? void 0 : A.metricColumns) || [], o = ((V = t.config) == null ? void 0 : V.summary) || {}, l = o.breakdownDimensions || [], c = Lf.includes(s), i = d.length > 0, m = o.enabled === !0, h = c && i, { comparisonType: v } = Xd(t.config, s), f = ni[v] || ni.none, u = Array.from(
|
|
14184
14183
|
new Map(
|
|
14185
14184
|
r.filter(Pf).map((C) => [pa(C), Vf(C)])
|
|
14186
14185
|
).values()
|
|
@@ -14208,7 +14207,7 @@ function Bf() {
|
|
|
14208
14207
|
};
|
|
14209
14208
|
return /* @__PURE__ */ a(Qe, { value: "summary", className: "border-none", children: [
|
|
14210
14209
|
/* @__PURE__ */ e(We, { className: "flex items-center gap-2 py-2 text-[12px] hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
14211
|
-
/* @__PURE__ */ e(
|
|
14210
|
+
/* @__PURE__ */ e(Zd, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
14212
14211
|
/* @__PURE__ */ e("span", { children: "Summary" })
|
|
14213
14212
|
] }) }),
|
|
14214
14213
|
/* @__PURE__ */ a(Je, { className: "space-y-4 pb-4 pt-2", children: [
|
|
@@ -14472,10 +14471,10 @@ function $f() {
|
|
|
14472
14471
|
function Kf() {
|
|
14473
14472
|
const t = F((d) => d.card), n = t.type;
|
|
14474
14473
|
if (Za(t) === "dynamic")
|
|
14475
|
-
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ a(
|
|
14474
|
+
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ a(Bi, { children: [
|
|
14476
14475
|
/* @__PURE__ */ e($t, { className: "h-4 w-4" }),
|
|
14477
|
-
/* @__PURE__ */ e(
|
|
14478
|
-
/* @__PURE__ */ e(
|
|
14476
|
+
/* @__PURE__ */ e(eu, { children: "Dynamic mode manages presentation" }),
|
|
14477
|
+
/* @__PURE__ */ e(zi, { children: "Built-in chart settings are hidden while this card is in dynamic mode. Query and data edits still apply, and the dynamic visual editor in the main panel controls the rendered output." })
|
|
14479
14478
|
] }) });
|
|
14480
14479
|
function r() {
|
|
14481
14480
|
switch (n) {
|
|
@@ -14608,7 +14607,7 @@ function Gf(t) {
|
|
|
14608
14607
|
errorMessage: E,
|
|
14609
14608
|
refetch: b,
|
|
14610
14609
|
data: L
|
|
14611
|
-
} = xt(V), { setTriggerAIRun: D, setCurrentAssitantScope: O, setCardConfig: R } = he(), { selectedDatamodelName: p, connectionType: M, selectedDatamodelId: I } =
|
|
14610
|
+
} = xt(V), { setTriggerAIRun: D, setCurrentAssitantScope: O, setCardConfig: R } = he(), { selectedDatamodelName: p, connectionType: M, selectedDatamodelId: I } = tu(), P = (Ve = pi().data) == null ? void 0 : Ve.assistantProfileId, B = Ee(Ln()), z = Ee(null), q = Ee(c), j = Ee(!1), Y = () => {
|
|
14612
14611
|
const G = z.current;
|
|
14613
14612
|
G && (z.current = null, B.current = Ln(), G === "clear" && Q([]));
|
|
14614
14613
|
}, {
|
|
@@ -14634,7 +14633,7 @@ function Gf(t) {
|
|
|
14634
14633
|
assistantId: "editor-assistant",
|
|
14635
14634
|
assistantProfileId: P,
|
|
14636
14635
|
conversationId: B.current,
|
|
14637
|
-
assistantRequestId:
|
|
14636
|
+
assistantRequestId: au(),
|
|
14638
14637
|
isDevMode: m,
|
|
14639
14638
|
aiContext: G.currentAIContext,
|
|
14640
14639
|
reasoningEffort: G.reasoningEffort,
|
|
@@ -14647,7 +14646,7 @@ function Gf(t) {
|
|
|
14647
14646
|
prepareSendMessagesRequest: ({ messages: G, body: J }) => ({
|
|
14648
14647
|
body: {
|
|
14649
14648
|
...J,
|
|
14650
|
-
messages:
|
|
14649
|
+
messages: to(G)
|
|
14651
14650
|
}
|
|
14652
14651
|
})
|
|
14653
14652
|
}),
|
|
@@ -14788,11 +14787,11 @@ function Gf(t) {
|
|
|
14788
14787
|
s("Analyzing...");
|
|
14789
14788
|
}
|
|
14790
14789
|
function Ge(G) {
|
|
14791
|
-
const J =
|
|
14790
|
+
const J = su(x, G);
|
|
14792
14791
|
me(J);
|
|
14793
14792
|
}
|
|
14794
14793
|
function me(G) {
|
|
14795
|
-
const J =
|
|
14794
|
+
const J = lu(G);
|
|
14796
14795
|
O(J), Q((de) => [
|
|
14797
14796
|
...de,
|
|
14798
14797
|
{
|
|
@@ -14831,7 +14830,7 @@ function Gf(t) {
|
|
|
14831
14830
|
connectionType: M || "",
|
|
14832
14831
|
datamodelId: I || ""
|
|
14833
14832
|
};
|
|
14834
|
-
if (!
|
|
14833
|
+
if (!ru(
|
|
14835
14834
|
[...N || [], ...x],
|
|
14836
14835
|
G
|
|
14837
14836
|
) || x.length === 0) {
|
|
@@ -14845,7 +14844,7 @@ function Gf(t) {
|
|
|
14845
14844
|
me(de);
|
|
14846
14845
|
}
|
|
14847
14846
|
}
|
|
14848
|
-
const pe = !["ready", "error"].includes(ye), Pe =
|
|
14847
|
+
const pe = !["ready", "error"].includes(ye), Pe = nu(be);
|
|
14849
14848
|
return {
|
|
14850
14849
|
messages: U,
|
|
14851
14850
|
setMessages: ie,
|
|
@@ -14888,7 +14887,7 @@ function si({
|
|
|
14888
14887
|
}
|
|
14889
14888
|
), b = F((fe) => fe.actions.setCardSql), L = F((fe) => fe.actions.setRunSql), D = F((fe) => fe.showAIDialog), O = Fe(
|
|
14890
14889
|
(fe) => fe.handleOpenAssistantProfile
|
|
14891
|
-
), { setShowAIDialog: R, setCardPython: p } = he(), { setDataSource: M } = he(), { assistantProfile: I } =
|
|
14890
|
+
), { setShowAIDialog: R, setCardPython: p } = he(), { setDataSource: M } = he(), { assistantProfile: I } = iu(), {
|
|
14892
14891
|
messages: P,
|
|
14893
14892
|
setMessages: B,
|
|
14894
14893
|
sendMessage: z,
|
|
@@ -14920,7 +14919,7 @@ function si({
|
|
|
14920
14919
|
totalMessageCount: $e,
|
|
14921
14920
|
loadMoreMessages: Ke,
|
|
14922
14921
|
resetMessageWindow: ie
|
|
14923
|
-
} =
|
|
14922
|
+
} = ou(P, {
|
|
14924
14923
|
maxVisibleMessages: 15,
|
|
14925
14924
|
// Reduced from 50 to 15 for better performance
|
|
14926
14925
|
initialLoadCount: 10,
|
|
@@ -14936,7 +14935,7 @@ function si({
|
|
|
14936
14935
|
scrollToBottom: pe,
|
|
14937
14936
|
handleScroll: Pe,
|
|
14938
14937
|
resetNewMessageCount: Ve
|
|
14939
|
-
} =
|
|
14938
|
+
} = cu(Ce, {
|
|
14940
14939
|
threshold: 40,
|
|
14941
14940
|
behavior: "smooth",
|
|
14942
14941
|
isStreaming: q
|
|
@@ -14956,13 +14955,13 @@ function si({
|
|
|
14956
14955
|
w,
|
|
14957
14956
|
A,
|
|
14958
14957
|
D
|
|
14959
|
-
]),
|
|
14958
|
+
]), du({
|
|
14960
14959
|
assistantType: "editor",
|
|
14961
14960
|
status: Y,
|
|
14962
14961
|
isLoading: q,
|
|
14963
14962
|
sendMessage: z
|
|
14964
14963
|
});
|
|
14965
|
-
const { hasActiveTools: G, activeToolText: J } =
|
|
14964
|
+
const { hasActiveTools: G, activeToolText: J } = uu(P), de = De(
|
|
14966
14965
|
(fe) => {
|
|
14967
14966
|
n == null || n(fe), t === void 0 && g(fe);
|
|
14968
14967
|
},
|
|
@@ -15109,7 +15108,7 @@ function si({
|
|
|
15109
15108
|
tooltip: y ? "Exit Fullscreen" : "Expand",
|
|
15110
15109
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
15111
15110
|
onClick: at,
|
|
15112
|
-
children: y ? /* @__PURE__ */ e(
|
|
15111
|
+
children: y ? /* @__PURE__ */ e(mu, { className: "size-4" }) : /* @__PURE__ */ e(hu, { className: "size-4" })
|
|
15113
15112
|
}
|
|
15114
15113
|
),
|
|
15115
15114
|
/* @__PURE__ */ e(
|
|
@@ -15120,7 +15119,7 @@ function si({
|
|
|
15120
15119
|
onClick: () => {
|
|
15121
15120
|
B([]), V("editor"), ue(), ie();
|
|
15122
15121
|
},
|
|
15123
|
-
children: /* @__PURE__ */ e(
|
|
15122
|
+
children: /* @__PURE__ */ e(Ki, { className: "size-4" })
|
|
15124
15123
|
}
|
|
15125
15124
|
),
|
|
15126
15125
|
/* @__PURE__ */ e(
|
|
@@ -15171,7 +15170,7 @@ function si({
|
|
|
15171
15170
|
}
|
|
15172
15171
|
) }),
|
|
15173
15172
|
/* @__PURE__ */ e(
|
|
15174
|
-
|
|
15173
|
+
pu,
|
|
15175
15174
|
{
|
|
15176
15175
|
messages: Ce,
|
|
15177
15176
|
showTools: c,
|
|
@@ -15182,7 +15181,7 @@ function si({
|
|
|
15182
15181
|
}
|
|
15183
15182
|
),
|
|
15184
15183
|
/* @__PURE__ */ e(
|
|
15185
|
-
|
|
15184
|
+
fu,
|
|
15186
15185
|
{
|
|
15187
15186
|
status: Y,
|
|
15188
15187
|
errorMessage: Q,
|
|
@@ -15213,23 +15212,23 @@ function si({
|
|
|
15213
15212
|
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
15214
15213
|
/* @__PURE__ */ a("div", { children: [
|
|
15215
15214
|
Dt && !I && /* @__PURE__ */ e(
|
|
15216
|
-
|
|
15215
|
+
gu,
|
|
15217
15216
|
{
|
|
15218
15217
|
onClick: Ae,
|
|
15219
15218
|
placeholders: Hf
|
|
15220
15219
|
}
|
|
15221
15220
|
),
|
|
15222
15221
|
/* @__PURE__ */ e("div", { children: Dt && I && /* @__PURE__ */ e(
|
|
15223
|
-
|
|
15222
|
+
xu,
|
|
15224
15223
|
{
|
|
15225
15224
|
seedQuestions: I.seedQuestions || [],
|
|
15226
15225
|
handleSeedQuestionClick: Ye
|
|
15227
15226
|
}
|
|
15228
15227
|
) })
|
|
15229
15228
|
] }),
|
|
15230
|
-
/* @__PURE__ */ e(
|
|
15229
|
+
/* @__PURE__ */ e(bu, { assistantType: "editor", className: "mb-3" }),
|
|
15231
15230
|
/* @__PURE__ */ e(
|
|
15232
|
-
|
|
15231
|
+
vu,
|
|
15233
15232
|
{
|
|
15234
15233
|
ref: r,
|
|
15235
15234
|
setInput: ge,
|
|
@@ -15263,7 +15262,7 @@ function si({
|
|
|
15263
15262
|
incomingSelectedEntities: k,
|
|
15264
15263
|
open: v,
|
|
15265
15264
|
onOpenChange: f,
|
|
15266
|
-
dataSource: N ||
|
|
15265
|
+
dataSource: N || yu,
|
|
15267
15266
|
dialogMode: "aiContext",
|
|
15268
15267
|
onSaveSelectedEntities: (fe) => {
|
|
15269
15268
|
A(!0), w({
|
|
@@ -15277,7 +15276,7 @@ function si({
|
|
|
15277
15276
|
}
|
|
15278
15277
|
);
|
|
15279
15278
|
return y && s ? qm(
|
|
15280
|
-
/* @__PURE__ */ e(
|
|
15279
|
+
/* @__PURE__ */ e(Nu, { className: "pointer-events-auto absolute inset-0 z-50 flex bg-background px-6 pb-6 pt-[calc(var(--app-header-height,15px)+1rem)]", children: /* @__PURE__ */ e("div", { className: "flex h-full w-full", children: At }) }),
|
|
15281
15280
|
s
|
|
15282
15281
|
) : At;
|
|
15283
15282
|
}
|
|
@@ -15286,7 +15285,7 @@ function Qf(t, n, s) {
|
|
|
15286
15285
|
const r = n.qualifiedFieldName, d = n.qualifiedEntityName, o = d && n.name ? `${d}.${n.name}` : r;
|
|
15287
15286
|
return t.some((l) => {
|
|
15288
15287
|
if (!(rt(l.dataType || "") === "date")) return !1;
|
|
15289
|
-
const i =
|
|
15288
|
+
const i = Cu(l, s), m = i.split("."), h = m[m.length - 1] || i, v = m.length > 1 ? m.slice(0, -1).join(".") : void 0, f = l.qualifiedTableName || v, u = f ? `${f}.${h}` : void 0;
|
|
15290
15289
|
return r ? u ? u === o || u.endsWith(`.${r}`) : h === n.name : u ? u === o : h === n.name;
|
|
15291
15290
|
});
|
|
15292
15291
|
}
|
|
@@ -15669,7 +15668,7 @@ function Zf({
|
|
|
15669
15668
|
}
|
|
15670
15669
|
),
|
|
15671
15670
|
/* @__PURE__ */ e(
|
|
15672
|
-
|
|
15671
|
+
ji,
|
|
15673
15672
|
{
|
|
15674
15673
|
onClick: () => m("area"),
|
|
15675
15674
|
className: X(
|
|
@@ -15789,7 +15788,7 @@ function ag({
|
|
|
15789
15788
|
t.name,
|
|
15790
15789
|
n,
|
|
15791
15790
|
s
|
|
15792
|
-
], i =
|
|
15791
|
+
], i = Ui({
|
|
15793
15792
|
queryKey: c,
|
|
15794
15793
|
queryFn: async () => {
|
|
15795
15794
|
if (!(l != null && l.connectionId))
|
|
@@ -15998,7 +15997,7 @@ function Mo({
|
|
|
15998
15997
|
onClick: () => g(T),
|
|
15999
15998
|
className: "group flex items-center gap-2 rounded-[5px] border border-border px-2 py-1.5 text-left transition-colors hover:bg-muted focus-visible:border-ring focus-visible:outline-none",
|
|
16000
15999
|
children: [
|
|
16001
|
-
/* @__PURE__ */ e(
|
|
16000
|
+
/* @__PURE__ */ e(wu, { dataType: rt(T.dataType) }),
|
|
16002
16001
|
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
|
|
16003
16002
|
/* @__PURE__ */ e("div", { className: "truncate text-[13px] text-foreground", children: T.label }),
|
|
16004
16003
|
/* @__PURE__ */ a("div", { className: "truncate font-mono text-[10px] text-muted-foreground", children: [
|
|
@@ -16167,7 +16166,7 @@ function sg({
|
|
|
16167
16166
|
handleKpiTrendlineWindowChange: ue,
|
|
16168
16167
|
handleKpiTrendlineGranularityChange: be,
|
|
16169
16168
|
handleMetricTargetValueChange: ge
|
|
16170
|
-
} =
|
|
16169
|
+
} = Gi(u), [ye, Se] = K(!1), [Ce, Be] = K(() => {
|
|
16171
16170
|
var W;
|
|
16172
16171
|
return !!((W = t.parameters) != null && W.windowTransform);
|
|
16173
16172
|
}), [$e, Ke] = K(!1), [ie, Le] = K(!1), [Ge, me] = K(null), Xe = oe(() => {
|
|
@@ -16188,7 +16187,7 @@ function sg({
|
|
|
16188
16187
|
t.qualifiedEntityName,
|
|
16189
16188
|
t.qualifiedFieldName,
|
|
16190
16189
|
A
|
|
16191
|
-
]), tt =
|
|
16190
|
+
]), tt = Su(
|
|
16192
16191
|
Xe.dataType
|
|
16193
16192
|
), [pe, Pe] = K(
|
|
16194
16193
|
t.dateFormat || "YYYY-MM-DD"
|
|
@@ -16210,11 +16209,11 @@ function sg({
|
|
|
16210
16209
|
qe(W), n === "metrics" && D(s, W);
|
|
16211
16210
|
}, He = (W) => {
|
|
16212
16211
|
S(n, s, W);
|
|
16213
|
-
}, ut =
|
|
16212
|
+
}, ut = Tu(t), ze = Hi(t), Lt = ku(t), Ue = t.role === "metric" && Lt, tn = Lt && (ut === "user_calculated" || ut === "inline_expression" && t.fieldScope !== "domain"), Jt = tn ? (Pr = g == null ? void 0 : g.calculatedFields) == null ? void 0 : Pr.find(
|
|
16214
16213
|
(W) => Rm(W, t, {
|
|
16215
16214
|
allowComparableFallback: !0
|
|
16216
16215
|
})
|
|
16217
|
-
) : void 0, kn = tn && (t.fieldScope === "dashboard" || t.fieldScope === void 0 && !!Jt), Pt = ut === "domain_calculated" || t.fieldScope === "domain", In = Pt ?
|
|
16216
|
+
) : void 0, kn = tn && (t.fieldScope === "dashboard" || t.fieldScope === void 0 && !!Jt), Pt = ut === "domain_calculated" || t.fieldScope === "domain", In = Pt ? Iu(t, A) : void 0, Ia = Pt ? "domain" : kn ? "dashboard" : "card", Yt = Pt ? In || t : kn && Jt ? Jt : t, Dn = (W) => {
|
|
16218
16217
|
var te;
|
|
16219
16218
|
if (Ye(W), n === "metrics") {
|
|
16220
16219
|
const ke = {
|
|
@@ -16299,22 +16298,22 @@ function sg({
|
|
|
16299
16298
|
xs
|
|
16300
16299
|
),
|
|
16301
16300
|
[Xt, xs, Ot]
|
|
16302
|
-
), sn = Fa || Mn, H = t, le = ((jr = (qr = H.parameters) == null ? void 0 : qr.windowTransform) == null ? void 0 : jr.function) || "none", ee =
|
|
16301
|
+
), sn = Fa || Mn, H = t, le = ((jr = (qr = H.parameters) == null ? void 0 : qr.windowTransform) == null ? void 0 : jr.function) || "none", ee = Du(H), ve = ee ? le : null, Oe = Au({
|
|
16303
16302
|
cardType: l || "table",
|
|
16304
16303
|
cardConfig: u.config || {},
|
|
16305
16304
|
metric: H,
|
|
16306
16305
|
transformMode: ve || "running_total"
|
|
16307
|
-
}), Me = !!H.comparisonType && H.comparisonType !== "none", it =
|
|
16306
|
+
}), Me = !!H.comparisonType && H.comparisonType !== "none", it = Eu(
|
|
16308
16307
|
Et || []
|
|
16309
16308
|
), dt = ((Ur = (Kr = ($r = H.parameters) == null ? void 0 : $r.windowTransform) == null ? void 0 : Kr.orderBy) == null ? void 0 : Ur.fieldId) || "", zt = ((Qr = (Hr = (Gr = H.parameters) == null ? void 0 : Gr.windowTransform) == null ? void 0 : Hr.orderBy) == null ? void 0 : Qr.direction) || "asc", ha = it.find(
|
|
16310
16309
|
(W) => W.id === dt
|
|
16311
|
-
), ea = ve === "running_total" || ve === "moving_average" || ve === "previous_period_delta", pt = ee && ea && !!ha && rt(ha.dataType || "") !== "date", Ra =
|
|
16310
|
+
), ea = ve === "running_total" || ve === "moving_average" || ve === "previous_period_delta", pt = ee && ea && !!ha && rt(ha.dataType || "") !== "date", Ra = Ou({
|
|
16312
16311
|
cardType: l || "table",
|
|
16313
16312
|
cardConfig: u.config || {},
|
|
16314
16313
|
orderByFieldId: dt || void 0
|
|
16315
16314
|
}), Ns = new Set(
|
|
16316
16315
|
((Jr = (Wr = H.parameters) == null ? void 0 : Wr.windowTransform) == null ? void 0 : Jr.partitionByFieldIds) || Ra
|
|
16317
|
-
), Cs = l === "pivotTable" ||
|
|
16316
|
+
), Cs = l === "pivotTable" || Mu(
|
|
16318
16317
|
l || "table",
|
|
16319
16318
|
u.config || {}
|
|
16320
16319
|
), Er = [
|
|
@@ -16507,7 +16506,7 @@ function sg({
|
|
|
16507
16506
|
className: "h-8 w-full justify-start text-xs",
|
|
16508
16507
|
onClick: () => Le(!0),
|
|
16509
16508
|
children: [
|
|
16510
|
-
/* @__PURE__ */ e(
|
|
16509
|
+
/* @__PURE__ */ e(_i, { className: "mr-2 h-3 w-3" }),
|
|
16511
16510
|
"Edit Formula"
|
|
16512
16511
|
]
|
|
16513
16512
|
}
|
|
@@ -17011,7 +17010,7 @@ function sg({
|
|
|
17011
17010
|
}
|
|
17012
17011
|
),
|
|
17013
17012
|
/* @__PURE__ */ e(
|
|
17014
|
-
|
|
17013
|
+
Qi,
|
|
17015
17014
|
{
|
|
17016
17015
|
dataType: An,
|
|
17017
17016
|
calculated: !!ze
|
|
@@ -17049,7 +17048,7 @@ function sg({
|
|
|
17049
17048
|
"aria-label": "Field configuration",
|
|
17050
17049
|
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",
|
|
17051
17050
|
onClick: (W) => W.stopPropagation(),
|
|
17052
|
-
children: /* @__PURE__ */ e(
|
|
17051
|
+
children: /* @__PURE__ */ e(Fu, { className: "h-3 w-3" })
|
|
17053
17052
|
}
|
|
17054
17053
|
) }),
|
|
17055
17054
|
/* @__PURE__ */ e(
|
|
@@ -17108,7 +17107,7 @@ function sg({
|
|
|
17108
17107
|
}
|
|
17109
17108
|
),
|
|
17110
17109
|
ie && n === "metrics" && Ue && /* @__PURE__ */ e(
|
|
17111
|
-
|
|
17110
|
+
Wi,
|
|
17112
17111
|
{
|
|
17113
17112
|
open: ie,
|
|
17114
17113
|
onOpenChange: Le,
|
|
@@ -17124,7 +17123,7 @@ function sg({
|
|
|
17124
17123
|
card: te,
|
|
17125
17124
|
frame: ke,
|
|
17126
17125
|
actions: xe
|
|
17127
|
-
} = F.getState(), nt = ((Rn = te.config) == null ? void 0 : Rn.metricColumns) || [], ot = ke.calculatedFields || [], { nextActiveFields: vt, nextStoredFields: rn, nextSharedFields: Fn } =
|
|
17126
|
+
} = F.getState(), nt = ((Rn = te.config) == null ? void 0 : Rn.metricColumns) || [], ot = ke.calculatedFields || [], { nextActiveFields: vt, nextStoredFields: rn, nextSharedFields: Fn } = Yi({
|
|
17128
17127
|
activeFields: nt,
|
|
17129
17128
|
storedFields: te.calculatedFields || [],
|
|
17130
17129
|
sharedFields: ot,
|
|
@@ -17152,7 +17151,7 @@ function sg({
|
|
|
17152
17151
|
card: te,
|
|
17153
17152
|
frame: ke,
|
|
17154
17153
|
actions: xe
|
|
17155
|
-
} = F.getState(), nt = t, ot = ((pl = te.config) == null ? void 0 : pl.metricColumns) || [], vt = ke.calculatedFields || [], { nextActiveFields: rn, nextStoredFields: Fn, nextSharedFields: Rn } =
|
|
17154
|
+
} = F.getState(), nt = t, ot = ((pl = te.config) == null ? void 0 : pl.metricColumns) || [], vt = ke.calculatedFields || [], { nextActiveFields: rn, nextStoredFields: Fn, nextSharedFields: Rn } = Ji({
|
|
17156
17155
|
activeFields: ot,
|
|
17157
17156
|
storedFields: te.calculatedFields || [],
|
|
17158
17157
|
sharedFields: vt,
|
|
@@ -17194,7 +17193,7 @@ function rg({ concept: t }) {
|
|
|
17194
17193
|
type: "button",
|
|
17195
17194
|
"aria-label": `What does ${n} mean?`,
|
|
17196
17195
|
className: "inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground/70 transition-colors hover:text-foreground",
|
|
17197
|
-
children: /* @__PURE__ */ e(
|
|
17196
|
+
children: /* @__PURE__ */ e(Ru, { className: "h-3 w-3" })
|
|
17198
17197
|
}
|
|
17199
17198
|
) }),
|
|
17200
17199
|
/* @__PURE__ */ a(
|
|
@@ -17305,7 +17304,7 @@ function on({
|
|
|
17305
17304
|
hasPivotColumns: o = !1,
|
|
17306
17305
|
activeField: l = null
|
|
17307
17306
|
}) {
|
|
17308
|
-
const { isOver: c, setNodeRef: i } =
|
|
17307
|
+
const { isOver: c, setNodeRef: i } = Lu({
|
|
17309
17308
|
id: t
|
|
17310
17309
|
}), { updateSortByColumn: m } = he(), h = F((w) => w.card), v = F((w) => w.card.type), f = n.length > 0, u = oe(() => !l || !c ? !0 : jn(
|
|
17311
17310
|
l,
|
|
@@ -17397,11 +17396,11 @@ function cg({
|
|
|
17397
17396
|
}
|
|
17398
17397
|
), u = ma(h, f) === "multiple";
|
|
17399
17398
|
u && ((Y = h == null ? void 0 : h.customCardPreferences) != null && Y.url);
|
|
17400
|
-
const g =
|
|
17399
|
+
const g = Pu(f == null ? void 0 : f.slots), y = F(
|
|
17401
17400
|
(U) => U.actions.updateCardConfig
|
|
17402
17401
|
), x = F((U) => U.actions.updateCard), w = F((U) => U.actions.updateFrame), A = Fe((U) => U.isVisualEditing), V = Fe((U) => U.selectedSheetId), C = Fe(
|
|
17403
17402
|
(U) => U.actions.updateSheetCalculatedFields
|
|
17404
|
-
), { scopedFields: T } =
|
|
17403
|
+
), { scopedFields: T } = $i(), { userContext: k } = lr(), S = u && (h == null ? void 0 : h.id) === i.id && g ? g : i == null ? void 0 : i.type, N = S === "detailTable", E = t.length > 0 || s.length > 0 || d.length > 0, b = !N && (S !== "kpi" || s.length <= 2), L = !N, D = !N && S !== "kpi", O = S !== "kpi" && E, R = N, p = "Drop sort fields here", M = (k == null ? void 0 : k.type) === "organization", I = [
|
|
17405
17404
|
"pie",
|
|
17406
17405
|
"doughnut",
|
|
17407
17406
|
"polar",
|
|
@@ -17510,7 +17509,7 @@ function cg({
|
|
|
17510
17509
|
)
|
|
17511
17510
|
] }),
|
|
17512
17511
|
/* @__PURE__ */ e(
|
|
17513
|
-
|
|
17512
|
+
Wi,
|
|
17514
17513
|
{
|
|
17515
17514
|
open: l,
|
|
17516
17515
|
onOpenChange: c,
|
|
@@ -17519,7 +17518,7 @@ function cg({
|
|
|
17519
17518
|
allowedFieldTypes: ["metric"],
|
|
17520
17519
|
onSave: (U) => {
|
|
17521
17520
|
if (U.role !== "metric") return;
|
|
17522
|
-
const { nextStoredFields: Q } =
|
|
17521
|
+
const { nextStoredFields: Q } = Yi({
|
|
17523
17522
|
activeFields: s,
|
|
17524
17523
|
storedFields: i.calculatedFields || [],
|
|
17525
17524
|
sharedFields: m.calculatedFields || [],
|
|
@@ -17532,7 +17531,7 @@ function cg({
|
|
|
17532
17531
|
},
|
|
17533
17532
|
onSaveToDashboard: (U) => {
|
|
17534
17533
|
if (U.role !== "metric") return;
|
|
17535
|
-
const Q = m.calculatedFields || [], { nextSharedFields: ue } =
|
|
17534
|
+
const Q = m.calculatedFields || [], { nextSharedFields: ue } = Ji({
|
|
17536
17535
|
activeFields: s,
|
|
17537
17536
|
storedFields: i.calculatedFields || [],
|
|
17538
17537
|
sharedFields: Q,
|
|
@@ -17677,7 +17676,7 @@ function ug({ onEditJoins: t }) {
|
|
|
17677
17676
|
/* @__PURE__ */ a("div", { className: "mb-1 flex items-center justify-between gap-2", children: [
|
|
17678
17677
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
17679
17678
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: c.source.name }),
|
|
17680
|
-
/* @__PURE__ */ e(
|
|
17679
|
+
/* @__PURE__ */ e(Vu, { className: "size-3 text-muted-foreground" }),
|
|
17681
17680
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: c.target.name })
|
|
17682
17681
|
] }),
|
|
17683
17682
|
/* @__PURE__ */ e(
|
|
@@ -17726,7 +17725,7 @@ function ug({ onEditJoins: t }) {
|
|
|
17726
17725
|
size: "sm",
|
|
17727
17726
|
onClick: t,
|
|
17728
17727
|
className: "h-7 gap-1 p-2 text-xs text-blue-700/80 hover:text-blue-900 dark:text-blue-300 dark:hover:text-blue-100",
|
|
17729
|
-
children: /* @__PURE__ */ e(
|
|
17728
|
+
children: /* @__PURE__ */ e(Ki, { className: "size-3.5" })
|
|
17730
17729
|
}
|
|
17731
17730
|
)
|
|
17732
17731
|
] }) });
|
|
@@ -17793,7 +17792,7 @@ function mg({
|
|
|
17793
17792
|
"aria-label": "Hide chart configuration",
|
|
17794
17793
|
onClick: r,
|
|
17795
17794
|
className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
|
|
17796
|
-
children: /* @__PURE__ */ e(
|
|
17795
|
+
children: /* @__PURE__ */ e(Bu, { className: "h-4 w-4", strokeWidth: 1.75 })
|
|
17797
17796
|
}
|
|
17798
17797
|
) })
|
|
17799
17798
|
] }),
|
|
@@ -18204,7 +18203,7 @@ function Ar(t) {
|
|
|
18204
18203
|
groupByColumns: [l],
|
|
18205
18204
|
metricColumns: [c],
|
|
18206
18205
|
sortByColumns: [i]
|
|
18207
|
-
}, h = ((y = n.dataSource) == null ? void 0 : y.connectionId) || n.connectionId, { data: v, isPending: f, error: u } =
|
|
18206
|
+
}, h = ((y = n.dataSource) == null ? void 0 : y.connectionId) || n.connectionId, { data: v, isPending: f, error: u } = Ui({
|
|
18208
18207
|
queryKey: [
|
|
18209
18208
|
"filterValues",
|
|
18210
18209
|
t.entityId,
|
|
@@ -18363,7 +18362,7 @@ function vg({
|
|
|
18363
18362
|
return w;
|
|
18364
18363
|
}, [t, c]), h = (x) => n === "<=" || n === ">" ? Pm(x, l) : Vm(x, l);
|
|
18365
18364
|
return /* @__PURE__ */ e(
|
|
18366
|
-
|
|
18365
|
+
zu,
|
|
18367
18366
|
{
|
|
18368
18367
|
value: c ? i : void 0,
|
|
18369
18368
|
selectionMode: c ? "range" : "single",
|
|
@@ -19018,7 +19017,7 @@ function Dg({
|
|
|
19018
19017
|
updateConditionFields: u
|
|
19019
19018
|
},
|
|
19020
19019
|
L.id
|
|
19021
|
-
), b =
|
|
19020
|
+
), b = Xi(t);
|
|
19022
19021
|
return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
19023
19022
|
/* @__PURE__ */ e(Xn, { children: /* @__PURE__ */ e(nr, { className: "p-4", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
19024
19023
|
c ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center p-4", children: [
|
|
@@ -19119,7 +19118,7 @@ function Eg({
|
|
|
19119
19118
|
), m = (A = l == null ? void 0 : l.config) == null ? void 0 : A.joinPlan, h = De(
|
|
19120
19119
|
(C) => C.entityName === Bm || C.entityName === "calculated_fields" || C.qualifiedEntityName === "calculated_fields",
|
|
19121
19120
|
[]
|
|
19122
|
-
), v = (V = l == null ? void 0 : l.dataSource) == null ? void 0 : V.semanticDomainId, { data: f } =
|
|
19121
|
+
), v = (V = l == null ? void 0 : l.dataSource) == null ? void 0 : V.semanticDomainId, { data: f } = _u(v), u = [
|
|
19123
19122
|
...n,
|
|
19124
19123
|
...s("groupBy"),
|
|
19125
19124
|
...s("pivotBy"),
|
|
@@ -19220,7 +19219,7 @@ function Eg({
|
|
|
19220
19219
|
}
|
|
19221
19220
|
if (B !== D.qualifiedEntityName && !h(D) && D.qualifiedEntityName)
|
|
19222
19221
|
if (v && (f != null && f.joinabilityMap)) {
|
|
19223
|
-
if (
|
|
19222
|
+
if (qu(D, {
|
|
19224
19223
|
joinabilityMap: f.joinabilityMap,
|
|
19225
19224
|
selectedFields: O,
|
|
19226
19225
|
baseEntityName: (L = m == null ? void 0 : m.baseEntity) == null ? void 0 : L.name
|
|
@@ -19234,7 +19233,7 @@ function Eg({
|
|
|
19234
19233
|
As(), o(null);
|
|
19235
19234
|
return;
|
|
19236
19235
|
}
|
|
19237
|
-
if (!
|
|
19236
|
+
if (!ju(
|
|
19238
19237
|
B,
|
|
19239
19238
|
D.qualifiedEntityName,
|
|
19240
19239
|
m
|
|
@@ -19660,7 +19659,7 @@ function Bg({
|
|
|
19660
19659
|
/* @__PURE__ */ e(Fg, {})
|
|
19661
19660
|
] }),
|
|
19662
19661
|
Q && o.type !== "table" && /* @__PURE__ */ e(
|
|
19663
|
-
|
|
19662
|
+
$u,
|
|
19664
19663
|
{
|
|
19665
19664
|
metadata: Q,
|
|
19666
19665
|
variant: "compact"
|
|
@@ -19670,11 +19669,11 @@ function Bg({
|
|
|
19670
19669
|
] }),
|
|
19671
19670
|
/* @__PURE__ */ a("div", { className: "flex grow items-center justify-end gap-1", children: [
|
|
19672
19671
|
/* @__PURE__ */ e(
|
|
19673
|
-
|
|
19672
|
+
Ku,
|
|
19674
19673
|
{
|
|
19675
19674
|
cardId: r.id,
|
|
19676
19675
|
cardFilters: (Le = r.config) == null ? void 0 : Le.filters,
|
|
19677
|
-
cardFilterCount:
|
|
19676
|
+
cardFilterCount: Xi(
|
|
19678
19677
|
((Ge = r.config) == null ? void 0 : Ge.filters) || null
|
|
19679
19678
|
),
|
|
19680
19679
|
onFiltersClick: s,
|
|
@@ -19695,7 +19694,7 @@ function Bg({
|
|
|
19695
19694
|
Se(!0), U();
|
|
19696
19695
|
},
|
|
19697
19696
|
children: /* @__PURE__ */ e(
|
|
19698
|
-
|
|
19697
|
+
Vi,
|
|
19699
19698
|
{
|
|
19700
19699
|
className: X("h-3.5 w-3.5", {
|
|
19701
19700
|
"animate-spin": ye
|
|
@@ -19801,7 +19800,7 @@ function Bg({
|
|
|
19801
19800
|
error: B,
|
|
19802
19801
|
errorSql: j,
|
|
19803
19802
|
onSendFeedback: () => {
|
|
19804
|
-
const me =
|
|
19803
|
+
const me = Uu(
|
|
19805
19804
|
Si.QUERY_GENERATION,
|
|
19806
19805
|
{
|
|
19807
19806
|
cardConfig: o.config,
|
|
@@ -19857,13 +19856,13 @@ function zg({ activeField: t }) {
|
|
|
19857
19856
|
if (Ne(() => {
|
|
19858
19857
|
t && s(!0);
|
|
19859
19858
|
}, [t]), !t) return null;
|
|
19860
|
-
const r = !!
|
|
19859
|
+
const r = !!Hi(t);
|
|
19861
19860
|
return /* @__PURE__ */ a(
|
|
19862
19861
|
"div",
|
|
19863
19862
|
{
|
|
19864
19863
|
className: `flex h-7 max-w-[300px] items-center gap-2 rounded-[5px] border border-border bg-popover px-3 text-[13px] text-foreground/90 shadow-[0_4px_12px_rgba(0,0,0,0.08)] transition-all duration-150 ${n ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
|
|
19865
19864
|
children: [
|
|
19866
|
-
/* @__PURE__ */ e(
|
|
19865
|
+
/* @__PURE__ */ e(Qi, { dataType: t.dataType, calculated: r }),
|
|
19867
19866
|
/* @__PURE__ */ e("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: t.label || t.name })
|
|
19868
19867
|
]
|
|
19869
19868
|
}
|
|
@@ -20059,12 +20058,12 @@ function qg({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
20059
20058
|
"Sort Z → A"
|
|
20060
20059
|
] }),
|
|
20061
20060
|
/* @__PURE__ */ e(Bt, {}),
|
|
20062
|
-
/* @__PURE__ */ a(
|
|
20063
|
-
/* @__PURE__ */ a(
|
|
20061
|
+
/* @__PURE__ */ a(Gu, { children: [
|
|
20062
|
+
/* @__PURE__ */ a(Hu, { children: [
|
|
20064
20063
|
/* @__PURE__ */ e(gr, { className: "mr-2 h-4 w-4" }),
|
|
20065
20064
|
"Summarize"
|
|
20066
20065
|
] }),
|
|
20067
|
-
/* @__PURE__ */ a(
|
|
20066
|
+
/* @__PURE__ */ a(Qu, { children: [
|
|
20068
20067
|
/* @__PURE__ */ e(ct, { onClick: () => M("SUM"), children: "Sum" }),
|
|
20069
20068
|
/* @__PURE__ */ e(ct, { onClick: () => M("AVG"), children: "Average" }),
|
|
20070
20069
|
/* @__PURE__ */ e(ct, { onClick: () => M("COUNT"), children: "Count" }),
|
|
@@ -20348,7 +20347,7 @@ function $g({
|
|
|
20348
20347
|
R
|
|
20349
20348
|
)) })
|
|
20350
20349
|
] }),
|
|
20351
|
-
/* @__PURE__ */ e(
|
|
20350
|
+
/* @__PURE__ */ e(Zi, { children: S && /* @__PURE__ */ e("div", { className: "rounded border border-primary bg-background px-3 py-2 text-sm font-medium shadow-lg", children: S.label || S.name }) })
|
|
20352
20351
|
]
|
|
20353
20352
|
}
|
|
20354
20353
|
) }),
|
|
@@ -20848,7 +20847,7 @@ function Wg() {
|
|
|
20848
20847
|
), N = g, {
|
|
20849
20848
|
getFieldsForContainer: E,
|
|
20850
20849
|
setFieldsForContainer: b
|
|
20851
|
-
} =
|
|
20850
|
+
} = Gi(N), { activeField: L, handleDragStart: D, handleDragEnd: O } = Eg({
|
|
20852
20851
|
activeCardId: u.activeCardId,
|
|
20853
20852
|
sourceFields: T,
|
|
20854
20853
|
getFieldsForContainer: E,
|
|
@@ -20944,18 +20943,18 @@ function Wg() {
|
|
|
20944
20943
|
onOpenChange: r
|
|
20945
20944
|
}
|
|
20946
20945
|
),
|
|
20947
|
-
/* @__PURE__ */ e(
|
|
20946
|
+
/* @__PURE__ */ e(Zi, { dropAnimation: null, children: /* @__PURE__ */ e(zg, { activeField: L || null }) })
|
|
20948
20947
|
]
|
|
20949
20948
|
}
|
|
20950
20949
|
);
|
|
20951
20950
|
}
|
|
20952
20951
|
function Jg({ authToken: t, onSave: n, onClose: s }) {
|
|
20953
|
-
const r = Ee(null), d = F((S) => S.showAIDialog), o = F((S) => S.isDevMode), l = Es((S) => S.setFullscreen), c = Es((S) => S.setPanelOpen), i = Es((S) => S.setContainer), m =
|
|
20952
|
+
const r = Ee(null), d = F((S) => S.showAIDialog), o = F((S) => S.isDevMode), l = Es((S) => S.setFullscreen), c = Es((S) => S.setPanelOpen), i = Es((S) => S.setContainer), m = Wu("editor"), h = Ju(), v = Yu("editor"), f = h === "editor", u = rr(), g = De(
|
|
20954
20953
|
(S) => {
|
|
20955
20954
|
i("editor", S);
|
|
20956
20955
|
},
|
|
20957
20956
|
[i]
|
|
20958
|
-
), { setAuthToken: y } =
|
|
20957
|
+
), { setAuthToken: y } = ao(), { setShowAIDialog: x, setOnSave: w, setOnClose: A } = he(), { setActiveAssistantType: V } = xr();
|
|
20959
20958
|
Ne(() => {
|
|
20960
20959
|
n && w(n), s && A(s);
|
|
20961
20960
|
}, [n, w, s, A]), Ne(() => {
|
|
@@ -21072,7 +21071,7 @@ function Jg({ authToken: t, onSave: n, onClose: s }) {
|
|
|
21072
21071
|
)
|
|
21073
21072
|
] });
|
|
21074
21073
|
}
|
|
21075
|
-
return /* @__PURE__ */ e(ts, { FallbackComponent:
|
|
21074
|
+
return /* @__PURE__ */ e(ts, { FallbackComponent: Xu, children: o ? /* @__PURE__ */ e(
|
|
21076
21075
|
"section",
|
|
21077
21076
|
{
|
|
21078
21077
|
className: "isolate flex h-full grow",
|
|
@@ -21090,17 +21089,17 @@ function Jg({ authToken: t, onSave: n, onClose: s }) {
|
|
|
21090
21089
|
}
|
|
21091
21090
|
) });
|
|
21092
21091
|
}
|
|
21093
|
-
function
|
|
21092
|
+
function ix() {
|
|
21094
21093
|
Fe((u) => u.selectedCardId);
|
|
21095
21094
|
const t = Fe((u) => u.selectedSheetId), n = Fe((u) => u.dashboard), { setIsVisualEditing: s, setSelectedSheetId: r } = Fe(
|
|
21096
21095
|
(u) => u.actions
|
|
21097
21096
|
), d = F((u) => u.editorContext), { clearEditorContext: o } = F((u) => u.actions), l = rr(), c = Fe((u) => u.isVisualEditing), i = Fe((u) => u.actions.updateFrame), m = Fe(
|
|
21098
21097
|
(u) => u.actions.updateDocumentSectionCard
|
|
21099
|
-
), h =
|
|
21098
|
+
), h = Zu();
|
|
21100
21099
|
async function v(u) {
|
|
21101
21100
|
var A, V, C;
|
|
21102
21101
|
if ((d == null ? void 0 : d.type) === "documentSection") {
|
|
21103
|
-
const T =
|
|
21102
|
+
const T = em(
|
|
21104
21103
|
u,
|
|
21105
21104
|
d.cardId
|
|
21106
21105
|
);
|
|
@@ -21108,7 +21107,7 @@ function ox() {
|
|
|
21108
21107
|
st.error("No document section card found");
|
|
21109
21108
|
return;
|
|
21110
21109
|
}
|
|
21111
|
-
if (!
|
|
21110
|
+
if (!tm(T)) {
|
|
21112
21111
|
st.error("Document table sections support Table and Pivot Table");
|
|
21113
21112
|
return;
|
|
21114
21113
|
}
|
|
@@ -21134,7 +21133,7 @@ function ox() {
|
|
|
21134
21133
|
}
|
|
21135
21134
|
)) == null ? void 0 : C.id, x = g ? t : y || null;
|
|
21136
21135
|
if (!x) return;
|
|
21137
|
-
const w =
|
|
21136
|
+
const w = am(n, u.id);
|
|
21138
21137
|
try {
|
|
21139
21138
|
const T = await h(u, {
|
|
21140
21139
|
previousFrame: w
|
|
@@ -21164,5 +21163,5 @@ function ox() {
|
|
|
21164
21163
|
);
|
|
21165
21164
|
}
|
|
21166
21165
|
export {
|
|
21167
|
-
|
|
21166
|
+
ix as default
|
|
21168
21167
|
};
|