react-semaphor 0.1.303 → 0.1.305
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/common-types-C6cAQgyh.js +9 -0
- package/dist/chunks/common-types-nBuCd3u2.js +1 -0
- package/dist/chunks/dashboard-controls-BcwXajYv.js +47 -0
- package/dist/chunks/{dashboard-controls-BCJZOzrL.js → dashboard-controls-DjOO0fkG.js} +799 -774
- package/dist/chunks/{dashboard-filter-controls-button-C-e7230k.js → dashboard-filter-controls-button-CR0_duPw.js} +3 -3
- package/dist/chunks/{dashboard-filter-controls-button-Cfbac4Jw.js → dashboard-filter-controls-button-YvRfoUuN.js} +142 -142
- package/dist/chunks/{dashboard-json-BzvLPhGM.js → dashboard-json-BYLaWi0-.js} +2 -2
- package/dist/chunks/{dashboard-json-BM5ywMgp.js → dashboard-json-tOsNVccY.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-ChK3344r.js → dashboard-summary-settings-dialog-CMxi2arh.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-BdxKl1UF.js → dashboard-summary-settings-dialog-DioOegLQ.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-nNaZ2IK1.js → edit-dashboard-visual-331vOmKT.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-D725CWD5.js → edit-dashboard-visual-ClLcFLD_.js} +164 -164
- package/dist/chunks/index-BOGpMmRo.js +1360 -0
- package/dist/chunks/{index-CYWgnME0.js → index-DJFckbGE.js} +42308 -40062
- package/dist/chunks/{palette-B9DJXMGo.js → palette-BqJlrRto.js} +1 -1
- package/dist/chunks/{palette-DGOzbtsn.js → palette-DD-i7bNS.js} +1 -1
- package/dist/chunks/{resource-management-panel-CE0-NcLL.js → resource-management-panel-BS9nfJbb.js} +65 -65
- package/dist/chunks/{resource-management-panel-mJmc5dMT.js → resource-management-panel-CoHy6cOi.js} +1 -1
- package/dist/chunks/{rotate-ccw-Bs7YJn10.js → rotate-ccw-CdGW8Rxm.js} +1 -1
- package/dist/chunks/{rotate-ccw-YsjQwpKm.js → rotate-ccw-X8MbX_hF.js} +1 -1
- package/dist/chunks/{save-Bj1y1rug.js → save-CFBIhbHD.js} +1 -1
- package/dist/chunks/{save-CUrexoNl.js → save-j-clxFtx.js} +1 -1
- package/dist/chunks/{switch-oojO-gal.js → switch-BFhVVwh9.js} +4248 -3243
- package/dist/chunks/switch-BH17qlxH.js +163 -0
- package/dist/chunks/use-create-flow-overlay-state-BSUi4chy.js +16 -0
- package/dist/chunks/{use-create-flow-overlay-state-BHDKxe7I.js → use-create-flow-overlay-state-Lmk-mIkA.js} +318 -316
- package/dist/chunks/{use-visual-utils-DYDXMl5v.js → use-visual-utils-CR9nLyEz.js} +1 -1
- package/dist/chunks/{use-visual-utils-CjFzlR0P.js → use-visual-utils-CikIkKb2.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 +60 -59
- 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 +194 -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/dashboard-controls-CVFoOPti.js +0 -47
- package/dist/chunks/index-BWjB_9uz.js +0 -1356
- package/dist/chunks/switch-CiEX68py.js +0 -163
- package/dist/chunks/use-create-flow-overlay-state-D2I2wNey.js +0 -16
|
@@ -1,14 +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-DJFckbGE.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-CikIkKb2.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-Lmk-mIkA.js";
|
|
8
8
|
import { createPortal as qm } from "react-dom";
|
|
9
9
|
import "./index-CJdxSyQq.js";
|
|
10
|
-
import { R as Zs } from "./rotate-ccw-
|
|
11
|
-
import { P as jm, B as $m } from "./palette-
|
|
10
|
+
import { R as Zs } from "./rotate-ccw-X8MbX_hF.js";
|
|
11
|
+
import { P as jm, B as $m } from "./palette-DD-i7bNS.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v0.453.0 - ISC
|
|
14
14
|
*
|
|
@@ -891,7 +891,7 @@ function hh({
|
|
|
891
891
|
const { setCardConfig: o } = he();
|
|
892
892
|
F((D) => D.card.config);
|
|
893
893
|
const { columnGroups: l } = ci(), c = l.filter(
|
|
894
|
-
(D) => D.entityName !==
|
|
894
|
+
(D) => D.entityName !== nm
|
|
895
895
|
), {
|
|
896
896
|
joinPlan: i,
|
|
897
897
|
expandedJoins: m,
|
|
@@ -1027,7 +1027,7 @@ function hh({
|
|
|
1027
1027
|
variant: "ghost",
|
|
1028
1028
|
size: "sm",
|
|
1029
1029
|
onClick: () => x(D.id),
|
|
1030
|
-
children: p ? /* @__PURE__ */ e(
|
|
1030
|
+
children: p ? /* @__PURE__ */ e(eo, { className: "h-4 w-4" }) : /* @__PURE__ */ e(It, { className: "h-4 w-4" })
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
1033
1033
|
/* @__PURE__ */ e(
|
|
@@ -1947,7 +1947,7 @@ function vh() {
|
|
|
1947
1947
|
});
|
|
1948
1948
|
Ne(() => ro(y), [y]);
|
|
1949
1949
|
function x(w) {
|
|
1950
|
-
g(w),
|
|
1950
|
+
g(w), sm(v.current) || o({});
|
|
1951
1951
|
}
|
|
1952
1952
|
return /* @__PURE__ */ a("div", { className: "relative h-full w-full", children: [
|
|
1953
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" }),
|
|
@@ -2404,7 +2404,7 @@ function Fh({
|
|
|
2404
2404
|
body: {
|
|
2405
2405
|
...le,
|
|
2406
2406
|
inlineRunToken: ve || Oe,
|
|
2407
|
-
messages:
|
|
2407
|
+
messages: to(H)
|
|
2408
2408
|
}
|
|
2409
2409
|
};
|
|
2410
2410
|
}
|
|
@@ -2498,7 +2498,7 @@ function Fh({
|
|
|
2498
2498
|
} catch (Oe) {
|
|
2499
2499
|
if (Q.current !== ee || !Ve(le))
|
|
2500
2500
|
return null;
|
|
2501
|
-
const Me =
|
|
2501
|
+
const Me = rm(
|
|
2502
2502
|
Oe,
|
|
2503
2503
|
"Validation service unavailable. You can still replace and run."
|
|
2504
2504
|
);
|
|
@@ -2785,7 +2785,7 @@ function Fh({
|
|
|
2785
2785
|
}
|
|
2786
2786
|
),
|
|
2787
2787
|
/* @__PURE__ */ a(ft, { open: P, onOpenChange: ys, children: [
|
|
2788
|
-
/* @__PURE__ */ e(
|
|
2788
|
+
/* @__PURE__ */ e(lm, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
|
|
2789
2789
|
/* @__PURE__ */ a("div", { className: "absolute right-1 flex items-center gap-1", children: [
|
|
2790
2790
|
Ea && /* @__PURE__ */ e(
|
|
2791
2791
|
Z,
|
|
@@ -3874,7 +3874,7 @@ function xo({
|
|
|
3874
3874
|
(ce) => ce.actions.setCardInlineFilterValue
|
|
3875
3875
|
), A = F(
|
|
3876
3876
|
(ce) => ce.actions.removeCardInlineFilterValue
|
|
3877
|
-
), { updateFilter: V } =
|
|
3877
|
+
), { updateFilter: V } = ao(), C = h == null ? void 0 : h.find((ce) => ce.id === i.filterId), T = oe(
|
|
3878
3878
|
() => ka(i, r),
|
|
3879
3879
|
[i, r]
|
|
3880
3880
|
), { manifest: k } = ua(
|
|
@@ -5353,7 +5353,7 @@ function kr({
|
|
|
5353
5353
|
(be) => Wc(be, N)
|
|
5354
5354
|
))
|
|
5355
5355
|
return;
|
|
5356
|
-
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, {
|
|
5357
5357
|
connectionId: l || ((Y = o == null ? void 0 : o.dataSource) == null ? void 0 : Y.connectionId),
|
|
5358
5358
|
connectionType: (U = o == null ? void 0 : o.dataSource) == null ? void 0 : U.connectionType
|
|
5359
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 = {
|
|
@@ -5400,7 +5400,7 @@ function kr({
|
|
|
5400
5400
|
const D = b.find((R) => R.id === N);
|
|
5401
5401
|
if (!D)
|
|
5402
5402
|
return;
|
|
5403
|
-
const O =
|
|
5403
|
+
const O = om(
|
|
5404
5404
|
D,
|
|
5405
5405
|
y
|
|
5406
5406
|
);
|
|
@@ -5567,7 +5567,7 @@ function ep(t, n, s) {
|
|
|
5567
5567
|
const r = new Set(
|
|
5568
5568
|
s.filter((o) => o.target !== "sql_param").map((o) => Yn(o.controlId, o.target))
|
|
5569
5569
|
), d = n.map((o) => {
|
|
5570
|
-
const l =
|
|
5570
|
+
const l = no({
|
|
5571
5571
|
card: t,
|
|
5572
5572
|
control: o
|
|
5573
5573
|
}).map((h) => h.value), c = Zh[o.type], m = [
|
|
@@ -5604,10 +5604,10 @@ function tp({
|
|
|
5604
5604
|
), h = td({
|
|
5605
5605
|
sql: t.sql,
|
|
5606
5606
|
controlBindings: t.controlBindings
|
|
5607
|
-
}), v =
|
|
5607
|
+
}), v = cm(t), f = new Set(
|
|
5608
5608
|
s.map((V) => Yn(V.controlId, V.target))
|
|
5609
5609
|
), u = c.some(
|
|
5610
|
-
(V) =>
|
|
5610
|
+
(V) => no({
|
|
5611
5611
|
card: t,
|
|
5612
5612
|
control: V
|
|
5613
5613
|
}).some(
|
|
@@ -5723,7 +5723,7 @@ function tp({
|
|
|
5723
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) => {
|
|
5724
5724
|
const T = v[V.target] || [], k = c.find(
|
|
5725
5725
|
(p) => p.id === V.controlId
|
|
5726
|
-
), 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(
|
|
5727
5727
|
/* @__PURE__ */ new Set([
|
|
5728
5728
|
...N.map((p) => p.value),
|
|
5729
5729
|
...Object.keys(V.mapping)
|
|
@@ -5904,13 +5904,13 @@ function Co({
|
|
|
5904
5904
|
}, [c == null ? void 0 : c.id, o, g]), Ne(() => {
|
|
5905
5905
|
!o && g !== null && y(null);
|
|
5906
5906
|
}, [o, g]);
|
|
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 ?
|
|
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(
|
|
5908
5908
|
(R) => R.target !== "sql_param"
|
|
5909
|
-
), C =
|
|
5909
|
+
), C = ad({
|
|
5910
5910
|
card: x,
|
|
5911
5911
|
controls: w
|
|
5912
5912
|
}), T = {
|
|
5913
|
-
choices:
|
|
5913
|
+
choices: mm(x),
|
|
5914
5914
|
targetMap: Object.fromEntries(
|
|
5915
5915
|
(((D = x == null ? void 0 : x.config) == null ? void 0 : D.groupByColumns) || []).map((R) => [
|
|
5916
5916
|
R.id,
|
|
@@ -5918,7 +5918,7 @@ function Co({
|
|
|
5918
5918
|
])
|
|
5919
5919
|
)
|
|
5920
5920
|
}, k = {
|
|
5921
|
-
choices:
|
|
5921
|
+
choices: hm(x),
|
|
5922
5922
|
targetMap: Object.fromEntries(
|
|
5923
5923
|
(((O = x == null ? void 0 : x.config) == null ? void 0 : O.metricColumns) || []).map((R) => [
|
|
5924
5924
|
R.id,
|
|
@@ -5944,7 +5944,7 @@ function Co({
|
|
|
5944
5944
|
}) : x, I = {
|
|
5945
5945
|
...M,
|
|
5946
5946
|
controls: R,
|
|
5947
|
-
controlBindings:
|
|
5947
|
+
controlBindings: pm(
|
|
5948
5948
|
M.controlBindings,
|
|
5949
5949
|
R
|
|
5950
5950
|
)
|
|
@@ -5955,7 +5955,7 @@ function Co({
|
|
|
5955
5955
|
return;
|
|
5956
5956
|
const p = {
|
|
5957
5957
|
...x,
|
|
5958
|
-
controlBindings:
|
|
5958
|
+
controlBindings: fm(
|
|
5959
5959
|
R,
|
|
5960
5960
|
x.controlBindings
|
|
5961
5961
|
)
|
|
@@ -6062,7 +6062,7 @@ function wo({
|
|
|
6062
6062
|
var g, y;
|
|
6063
6063
|
return (y = (g = u.card) == null ? void 0 : g.preferences) == null ? void 0 : y.chartOptions;
|
|
6064
6064
|
}
|
|
6065
|
-
), c =
|
|
6065
|
+
), c = nd(l), { setChartGrid: i } = he();
|
|
6066
6066
|
function m() {
|
|
6067
6067
|
const u = ["xy", "none", "x", "y"], y = (u.indexOf(c) + 1) % u.length;
|
|
6068
6068
|
i(u[y]);
|
|
@@ -6100,7 +6100,7 @@ function wo({
|
|
|
6100
6100
|
(c === "xy" || !c) && /* @__PURE__ */ e(hr, { className: "h-3.5 w-3.5" }),
|
|
6101
6101
|
c === "x" && /* @__PURE__ */ e(Cr, { className: "h-3.5 w-3.5" }),
|
|
6102
6102
|
c === "y" && /* @__PURE__ */ e(ms, { className: "h-3.5 w-3.5" }),
|
|
6103
|
-
c === "none" && /* @__PURE__ */ e(
|
|
6103
|
+
c === "none" && /* @__PURE__ */ e(sd, { className: "h-3.5 w-3.5" })
|
|
6104
6104
|
]
|
|
6105
6105
|
}
|
|
6106
6106
|
),
|
|
@@ -6112,7 +6112,7 @@ function wo({
|
|
|
6112
6112
|
function np({
|
|
6113
6113
|
visible: t
|
|
6114
6114
|
}) {
|
|
6115
|
-
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;
|
|
6116
6116
|
return !t || o ? null : /* @__PURE__ */ e("div", { className: "mb-2 flex", children: /* @__PURE__ */ e(
|
|
6117
6117
|
io,
|
|
6118
6118
|
{
|
|
@@ -6162,7 +6162,7 @@ function sp({
|
|
|
6162
6162
|
const j = (s == null ? void 0 : s.id) === q;
|
|
6163
6163
|
if (!(S && j ? r.cards.length > 1 : k)) return;
|
|
6164
6164
|
let U = r.cards.filter((ge) => ge.id !== q);
|
|
6165
|
-
x && !S && (U =
|
|
6165
|
+
x && !S && (U = gd(U));
|
|
6166
6166
|
const Q = U[0], ue = {
|
|
6167
6167
|
...r,
|
|
6168
6168
|
cards: U,
|
|
@@ -6219,7 +6219,7 @@ function sp({
|
|
|
6219
6219
|
g.slots,
|
|
6220
6220
|
Q
|
|
6221
6221
|
);
|
|
6222
|
-
ge && (j =
|
|
6222
|
+
ge && (j = xd(ge), Y = ge.label || `Tab ${Q + 1}`, U = ge.description || "");
|
|
6223
6223
|
}
|
|
6224
6224
|
const ue = {
|
|
6225
6225
|
dataSource: q.dataSource,
|
|
@@ -6322,7 +6322,7 @@ function sp({
|
|
|
6322
6322
|
/* @__PURE__ */ a(we, { children: [
|
|
6323
6323
|
p(r, q),
|
|
6324
6324
|
/* @__PURE__ */ e(
|
|
6325
|
-
|
|
6325
|
+
md,
|
|
6326
6326
|
{
|
|
6327
6327
|
enabled: r.activeCardId === q.id,
|
|
6328
6328
|
text: q.tabTitle || q.title,
|
|
@@ -6336,7 +6336,7 @@ function sp({
|
|
|
6336
6336
|
] })
|
|
6337
6337
|
),
|
|
6338
6338
|
!l && r.activeCardId === q.id && !ue && /* @__PURE__ */ e(
|
|
6339
|
-
|
|
6339
|
+
hd,
|
|
6340
6340
|
{
|
|
6341
6341
|
className: "h-3 w-3 text-muted-foreground hover:text-foreground",
|
|
6342
6342
|
onClick: (ye) => {
|
|
@@ -6405,7 +6405,7 @@ function fa({
|
|
|
6405
6405
|
} = he(), [y, x] = K({}), [w, A] = K(
|
|
6406
6406
|
() => /* @__PURE__ */ new Set()
|
|
6407
6407
|
), { authToken: V } = Ta(), C = gm(V == null ? void 0 : V.accessToken), { compiledAppearance: T } = xm(), k = oe(
|
|
6408
|
-
() =>
|
|
6408
|
+
() => ld(T),
|
|
6409
6409
|
[T]
|
|
6410
6410
|
), {
|
|
6411
6411
|
getCard: S,
|
|
@@ -6420,7 +6420,7 @@ function fa({
|
|
|
6420
6420
|
}).map(
|
|
6421
6421
|
(de) => (de == null ? void 0 : de.id) === r.id ? r : de
|
|
6422
6422
|
), [s, l, r]), M = oe(
|
|
6423
|
-
() =>
|
|
6423
|
+
() => Pi(p),
|
|
6424
6424
|
[p]
|
|
6425
6425
|
), I = oe(() => {
|
|
6426
6426
|
const J = p.findIndex(
|
|
@@ -6441,7 +6441,7 @@ function fa({
|
|
|
6441
6441
|
queryConfig: void 0
|
|
6442
6442
|
} : P !== r.type ? { ...r, type: P } : r, [r, P, R]), { data: z, isLoading: q, isFetching: j, isError: Y } = xt(B), U = De(
|
|
6443
6443
|
(J, de) => {
|
|
6444
|
-
const Te =
|
|
6444
|
+
const Te = id(de);
|
|
6445
6445
|
x((Ie) => ({
|
|
6446
6446
|
...Ie,
|
|
6447
6447
|
[J]: Te
|
|
@@ -6468,7 +6468,7 @@ function fa({
|
|
|
6468
6468
|
), Ke = F(
|
|
6469
6469
|
(J) => J.actions.removeCardInlineFilterValue
|
|
6470
6470
|
), ie = oe(
|
|
6471
|
-
() => l ?
|
|
6471
|
+
() => l ? od({
|
|
6472
6472
|
card: l,
|
|
6473
6473
|
sheetId: Ce || "",
|
|
6474
6474
|
inlineFilterValues: Be,
|
|
@@ -6483,7 +6483,7 @@ function fa({
|
|
|
6483
6483
|
Ke
|
|
6484
6484
|
]
|
|
6485
6485
|
), { cardFilters: Le, cardFilterValues: Ge } = oe(
|
|
6486
|
-
() => l ?
|
|
6486
|
+
() => l ? cd({
|
|
6487
6487
|
card: l,
|
|
6488
6488
|
interactionStates: be,
|
|
6489
6489
|
currentDashboardId: ge,
|
|
@@ -6535,7 +6535,7 @@ function fa({
|
|
|
6535
6535
|
D == null ? void 0 : D.slots
|
|
6536
6536
|
);
|
|
6537
6537
|
return /* @__PURE__ */ e(
|
|
6538
|
-
|
|
6538
|
+
pd,
|
|
6539
6539
|
{
|
|
6540
6540
|
onLoadingStatus: Q,
|
|
6541
6541
|
onDataChange: U,
|
|
@@ -6561,7 +6561,7 @@ function fa({
|
|
|
6561
6561
|
L,
|
|
6562
6562
|
{
|
|
6563
6563
|
editing: !0,
|
|
6564
|
-
...
|
|
6564
|
+
...fd({
|
|
6565
6565
|
configCard: l,
|
|
6566
6566
|
slotOrderedCards: M,
|
|
6567
6567
|
slotTypes: de,
|
|
@@ -6594,7 +6594,7 @@ function fa({
|
|
|
6594
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: [
|
|
6595
6595
|
/* @__PURE__ */ e(np, { visible: !0 }),
|
|
6596
6596
|
/* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
6597
|
-
|
|
6597
|
+
dd,
|
|
6598
6598
|
{
|
|
6599
6599
|
card: r,
|
|
6600
6600
|
data: z == null ? void 0 : z.records,
|
|
@@ -6605,7 +6605,7 @@ function fa({
|
|
|
6605
6605
|
) }),
|
|
6606
6606
|
ki(r) && /* @__PURE__ */ e(Ii, { card: r, mode: "editor" })
|
|
6607
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(
|
|
6608
|
-
|
|
6608
|
+
ud,
|
|
6609
6609
|
{
|
|
6610
6610
|
isLoading: c,
|
|
6611
6611
|
card: r,
|
|
@@ -6791,8 +6791,8 @@ function So({
|
|
|
6791
6791
|
"Visual Code"
|
|
6792
6792
|
] }),
|
|
6793
6793
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6794
|
-
/* @__PURE__ */ a(
|
|
6795
|
-
/* @__PURE__ */ e(
|
|
6794
|
+
/* @__PURE__ */ a(bd, { children: [
|
|
6795
|
+
/* @__PURE__ */ e(vd, { asChild: !0, children: /* @__PURE__ */ a(
|
|
6796
6796
|
Z,
|
|
6797
6797
|
{
|
|
6798
6798
|
type: "button",
|
|
@@ -6806,15 +6806,15 @@ function So({
|
|
|
6806
6806
|
]
|
|
6807
6807
|
}
|
|
6808
6808
|
) }),
|
|
6809
|
-
/* @__PURE__ */ a(
|
|
6810
|
-
/* @__PURE__ */ a(
|
|
6811
|
-
/* @__PURE__ */ e(
|
|
6812
|
-
/* @__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." })
|
|
6813
6813
|
] }),
|
|
6814
|
-
/* @__PURE__ */ a(
|
|
6815
|
-
/* @__PURE__ */ e(
|
|
6814
|
+
/* @__PURE__ */ a(Sd, { children: [
|
|
6815
|
+
/* @__PURE__ */ e(Td, { children: "Cancel" }),
|
|
6816
6816
|
/* @__PURE__ */ e(
|
|
6817
|
-
|
|
6817
|
+
kd,
|
|
6818
6818
|
{
|
|
6819
6819
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
6820
6820
|
onClick: D,
|
|
@@ -7276,7 +7276,7 @@ function Ps({
|
|
|
7276
7276
|
var tt;
|
|
7277
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(
|
|
7278
7278
|
(pe) => pe.actions.setIsShowingVisual
|
|
7279
|
-
), 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, {
|
|
7280
7280
|
setFrame: E,
|
|
7281
7281
|
setCard: b,
|
|
7282
7282
|
setActiveTabCardId: L,
|
|
@@ -7301,7 +7301,7 @@ function Ps({
|
|
|
7301
7301
|
const { handleDebugWithAssistant: ge } = go(
|
|
7302
7302
|
j,
|
|
7303
7303
|
Y
|
|
7304
|
-
), 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(
|
|
7305
7305
|
(c == null ? void 0 : c.id) ?? ""
|
|
7306
7306
|
), [Ce, Be] = K(!1);
|
|
7307
7307
|
Ne(() => {
|
|
@@ -7479,7 +7479,7 @@ function Ps({
|
|
|
7479
7479
|
U();
|
|
7480
7480
|
},
|
|
7481
7481
|
children: /* @__PURE__ */ e(
|
|
7482
|
-
|
|
7482
|
+
Vi,
|
|
7483
7483
|
{
|
|
7484
7484
|
className: X("h-3.5 w-3.5", {
|
|
7485
7485
|
"animate-spin": Ce
|
|
@@ -7587,7 +7587,7 @@ function Ps({
|
|
|
7587
7587
|
onSelect: Ge,
|
|
7588
7588
|
className: "gap-2 text-[13px]",
|
|
7589
7589
|
children: [
|
|
7590
|
-
/* @__PURE__ */ e(
|
|
7590
|
+
/* @__PURE__ */ e(Ad, { className: "h-3.5 w-3.5" }),
|
|
7591
7591
|
"Download CSV"
|
|
7592
7592
|
]
|
|
7593
7593
|
}
|
|
@@ -7609,7 +7609,7 @@ function Ps({
|
|
|
7609
7609
|
onSelect: ie,
|
|
7610
7610
|
className: "gap-2 text-[13px]",
|
|
7611
7611
|
children: [
|
|
7612
|
-
/* @__PURE__ */ e(
|
|
7612
|
+
/* @__PURE__ */ e(Ed, { className: "h-3.5 w-3.5" }),
|
|
7613
7613
|
"Copy JSON"
|
|
7614
7614
|
]
|
|
7615
7615
|
}
|
|
@@ -7731,10 +7731,10 @@ function dp() {
|
|
|
7731
7731
|
), o = oe(
|
|
7732
7732
|
() => {
|
|
7733
7733
|
var y, x;
|
|
7734
|
-
return
|
|
7734
|
+
return Od((x = (y = t.preferences) == null ? void 0 : y.tablePrefs) == null ? void 0 : x.pageSize);
|
|
7735
7735
|
},
|
|
7736
7736
|
[(i = (c = t.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : i.pageSize]
|
|
7737
|
-
), l =
|
|
7737
|
+
), l = Md(
|
|
7738
7738
|
(h = (m = t.preferences) == null ? void 0 : m.tablePrefs) == null ? void 0 : h.pageSize
|
|
7739
7739
|
);
|
|
7740
7740
|
return t.type !== "table" && t.type !== "detailTable" ? null : /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
@@ -7959,7 +7959,7 @@ function Io() {
|
|
|
7959
7959
|
var D, O, R;
|
|
7960
7960
|
const t = F(
|
|
7961
7961
|
(p) => p.card.customCardPreferences
|
|
7962
|
-
), { 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(
|
|
7963
7963
|
() => ka(d, r),
|
|
7964
7964
|
[d, r]
|
|
7965
7965
|
), c = l == null ? void 0 : l.customCardPreferences, { components: i, manifest: m } = ua(
|
|
@@ -7977,7 +7977,7 @@ function Io() {
|
|
|
7977
7977
|
}),
|
|
7978
7978
|
[d, l, r, f]
|
|
7979
7979
|
), w = oe(
|
|
7980
|
-
() =>
|
|
7980
|
+
() => Pi(x),
|
|
7981
7981
|
[x]
|
|
7982
7982
|
), A = oe(
|
|
7983
7983
|
() => w.map((p, M) => {
|
|
@@ -8148,7 +8148,7 @@ function Io() {
|
|
|
8148
8148
|
] })
|
|
8149
8149
|
] }) })
|
|
8150
8150
|
] }),
|
|
8151
|
-
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}`)) }) }) }),
|
|
8152
8152
|
h && !f && h.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: b({
|
|
8153
8153
|
settingsSchema: h.settings,
|
|
8154
8154
|
settingsField: "settings",
|
|
@@ -8260,9 +8260,9 @@ function Io() {
|
|
|
8260
8260
|
h.docs.dataSchema && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
8261
8261
|
/* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
|
|
8262
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(
|
|
8263
|
-
|
|
8263
|
+
Rd,
|
|
8264
8264
|
{
|
|
8265
|
-
remarkPlugins: [
|
|
8265
|
+
remarkPlugins: [Ld],
|
|
8266
8266
|
components: pp,
|
|
8267
8267
|
children: h.docs.dataSchema
|
|
8268
8268
|
}
|
|
@@ -8859,7 +8859,7 @@ function bp({
|
|
|
8859
8859
|
className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
|
|
8860
8860
|
children: [
|
|
8861
8861
|
"View documentation",
|
|
8862
|
-
/* @__PURE__ */ e(
|
|
8862
|
+
/* @__PURE__ */ e(Pd, { className: "h-3 w-3" })
|
|
8863
8863
|
]
|
|
8864
8864
|
}
|
|
8865
8865
|
)
|
|
@@ -8918,7 +8918,7 @@ function Ql({
|
|
|
8918
8918
|
children: [
|
|
8919
8919
|
/* @__PURE__ */ a("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
8920
8920
|
/* @__PURE__ */ e(_, { children: n }),
|
|
8921
|
-
/* @__PURE__ */ e(
|
|
8921
|
+
/* @__PURE__ */ e(eo, { className: "h-4 w-4" })
|
|
8922
8922
|
] }),
|
|
8923
8923
|
/* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
|
|
8924
8924
|
]
|
|
@@ -9020,7 +9020,7 @@ function Ao() {
|
|
|
9020
9020
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: ((f = s == null ? void 0 : s.onClickFilter) == null ? void 0 : f.find(
|
|
9021
9021
|
(u) => u.columnIndex === h
|
|
9022
9022
|
)) && /* @__PURE__ */ e(
|
|
9023
|
-
|
|
9023
|
+
_i,
|
|
9024
9024
|
{
|
|
9025
9025
|
onClick: () => {
|
|
9026
9026
|
n((u) => {
|
|
@@ -9996,7 +9996,7 @@ function Ir({
|
|
|
9996
9996
|
function Mp() {
|
|
9997
9997
|
const t = Fe(
|
|
9998
9998
|
(c) => c.dashboard.filters
|
|
9999
|
-
), 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();
|
|
10000
10000
|
function o(c) {
|
|
10001
10001
|
const i = d(c, "frame");
|
|
10002
10002
|
s({ ...n, filterId: i });
|
|
@@ -10011,7 +10011,7 @@ function Mp() {
|
|
|
10011
10011
|
columns: r
|
|
10012
10012
|
}
|
|
10013
10013
|
),
|
|
10014
|
-
l && /* @__PURE__ */ e(
|
|
10014
|
+
l && /* @__PURE__ */ e(Bd, { filter: l })
|
|
10015
10015
|
] });
|
|
10016
10016
|
}
|
|
10017
10017
|
function Fp({
|
|
@@ -10034,7 +10034,7 @@ function Fp({
|
|
|
10034
10034
|
className: "w-full justify-between font-normal",
|
|
10035
10035
|
children: [
|
|
10036
10036
|
d ? ((c = t.find((i) => i.id === d)) == null ? void 0 : c.label) || d : "Select Column...",
|
|
10037
|
-
/* @__PURE__ */ e(
|
|
10037
|
+
/* @__PURE__ */ e(zd, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
10038
10038
|
]
|
|
10039
10039
|
}
|
|
10040
10040
|
) }),
|
|
@@ -10053,7 +10053,7 @@ function Fp({
|
|
|
10053
10053
|
children: [
|
|
10054
10054
|
i.label || i.name,
|
|
10055
10055
|
/* @__PURE__ */ e(
|
|
10056
|
-
|
|
10056
|
+
_d,
|
|
10057
10057
|
{
|
|
10058
10058
|
className: X(
|
|
10059
10059
|
"ml-auto h-4 w-4",
|
|
@@ -10410,7 +10410,7 @@ function _p() {
|
|
|
10410
10410
|
(k = t == null ? void 0 : t.config) == null ? void 0 : k.pivotByColumns,
|
|
10411
10411
|
(S = t == null ? void 0 : t.config) == null ? void 0 : S.metricColumns,
|
|
10412
10412
|
s
|
|
10413
|
-
]), g = oe(() =>
|
|
10413
|
+
]), g = oe(() => qd(), []);
|
|
10414
10414
|
Ne(() => {
|
|
10415
10415
|
const p = {};
|
|
10416
10416
|
u.forEach((M, I) => {
|
|
@@ -10495,7 +10495,7 @@ function _p() {
|
|
|
10495
10495
|
}
|
|
10496
10496
|
) }) }),
|
|
10497
10497
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: u.map((p, M) => {
|
|
10498
|
-
const I =
|
|
10498
|
+
const I = jd(c[p], M), P = !I;
|
|
10499
10499
|
return /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
10500
10500
|
/* @__PURE__ */ a(
|
|
10501
10501
|
ft,
|
|
@@ -10672,7 +10672,7 @@ function Vt({
|
|
|
10672
10672
|
}
|
|
10673
10673
|
function Bs({ axis: t, label: n, type: s, config: r, onChange: d, defaultTitle: o, hidePosition: l }) {
|
|
10674
10674
|
var g, y, x, w, A, V, C, T, k, S, N, E, b, L;
|
|
10675
|
-
const c =
|
|
10675
|
+
const c = Kd({
|
|
10676
10676
|
formatMode: r == null ? void 0 : r.formatMode,
|
|
10677
10677
|
formatOptions: r == null ? void 0 : r.formatOptions
|
|
10678
10678
|
}), i = (D, O) => {
|
|
@@ -10940,7 +10940,7 @@ function qp() {
|
|
|
10940
10940
|
}), { setCardPreferences: s, updateCardInFrame: r } = he(), d = bt();
|
|
10941
10941
|
if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(d))
|
|
10942
10942
|
return null;
|
|
10943
|
-
const o =
|
|
10943
|
+
const o = $d.getAxisInfo(
|
|
10944
10944
|
d,
|
|
10945
10945
|
n
|
|
10946
10946
|
);
|
|
@@ -11019,9 +11019,9 @@ function jp() {
|
|
|
11019
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;
|
|
11020
11020
|
}
|
|
11021
11021
|
), { setLegendOptions: r } = he();
|
|
11022
|
-
if (!t || !
|
|
11022
|
+
if (!t || !Ud(n))
|
|
11023
11023
|
return null;
|
|
11024
|
-
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) => {
|
|
11025
11025
|
const u = {
|
|
11026
11026
|
...s,
|
|
11027
11027
|
[v]: f
|
|
@@ -11089,9 +11089,9 @@ function $p() {
|
|
|
11089
11089
|
var q;
|
|
11090
11090
|
return (q = z.card) == null ? void 0 : q.preferences;
|
|
11091
11091
|
}), { setCardPreferences: d, updateCardInFrame: o } = he();
|
|
11092
|
-
if (!t || !
|
|
11092
|
+
if (!t || !Hd(n))
|
|
11093
11093
|
return null;
|
|
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 =
|
|
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(
|
|
11095
11095
|
n,
|
|
11096
11096
|
t.preferences
|
|
11097
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) => {
|
|
@@ -11791,7 +11791,7 @@ function Up() {
|
|
|
11791
11791
|
) })
|
|
11792
11792
|
] });
|
|
11793
11793
|
}
|
|
11794
|
-
const Gp = Object.keys(
|
|
11794
|
+
const Gp = Object.keys(qi);
|
|
11795
11795
|
function Hp() {
|
|
11796
11796
|
const t = F((f) => f.card), n = F((f) => {
|
|
11797
11797
|
var u;
|
|
@@ -11833,7 +11833,7 @@ function Hp() {
|
|
|
11833
11833
|
className: "space-y-3",
|
|
11834
11834
|
children: [
|
|
11835
11835
|
Gp.map((f) => {
|
|
11836
|
-
const u =
|
|
11836
|
+
const u = qi[f];
|
|
11837
11837
|
return /* @__PURE__ */ a(
|
|
11838
11838
|
"div",
|
|
11839
11839
|
{
|
|
@@ -12362,7 +12362,7 @@ function Wp() {
|
|
|
12362
12362
|
};
|
|
12363
12363
|
return !l && !c ? null : /* @__PURE__ */ a(Qe, { value: "bubble-scatter-config", children: [
|
|
12364
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: [
|
|
12365
|
-
/* @__PURE__ */ e(l ?
|
|
12365
|
+
/* @__PURE__ */ e(l ? Wd : Li, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
12366
12366
|
/* @__PURE__ */ a("span", { children: [
|
|
12367
12367
|
l ? "Bubble" : "Scatter",
|
|
12368
12368
|
" Configuration"
|
|
@@ -12802,7 +12802,7 @@ function ps() {
|
|
|
12802
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));
|
|
12803
12803
|
let d = r;
|
|
12804
12804
|
if (["stackedBar", "stackedLine"].includes(t.type)) {
|
|
12805
|
-
const o =
|
|
12805
|
+
const o = Jd({
|
|
12806
12806
|
dataArray: (n == null ? void 0 : n.records) || [],
|
|
12807
12807
|
groupKey: s[0],
|
|
12808
12808
|
pivotKey: s[1],
|
|
@@ -13452,7 +13452,7 @@ function gf({ metricKey: t, idx: n }) {
|
|
|
13452
13452
|
"border border-border bg-background text-muted-foreground"
|
|
13453
13453
|
),
|
|
13454
13454
|
children: [
|
|
13455
|
-
/* @__PURE__ */ e(
|
|
13455
|
+
/* @__PURE__ */ e(ji, { className: "h-3 w-3" }),
|
|
13456
13456
|
h.label.split(" ")[0]
|
|
13457
13457
|
]
|
|
13458
13458
|
}
|
|
@@ -13681,7 +13681,7 @@ function Nf({ metricKey: t, idx: n }) {
|
|
|
13681
13681
|
"border border-border bg-background text-muted-foreground"
|
|
13682
13682
|
),
|
|
13683
13683
|
children: [
|
|
13684
|
-
/* @__PURE__ */ e(
|
|
13684
|
+
/* @__PURE__ */ e(Yd, { className: "h-3 w-3" }),
|
|
13685
13685
|
f.label.split(" ")[0]
|
|
13686
13686
|
]
|
|
13687
13687
|
}
|
|
@@ -14179,7 +14179,7 @@ function Bf() {
|
|
|
14179
14179
|
var A, V;
|
|
14180
14180
|
const t = F((C) => C.card), n = F(
|
|
14181
14181
|
(C) => C.actions.updateCardConfig
|
|
14182
|
-
), 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(
|
|
14183
14183
|
new Map(
|
|
14184
14184
|
r.filter(Pf).map((C) => [pa(C), Vf(C)])
|
|
14185
14185
|
).values()
|
|
@@ -14207,7 +14207,7 @@ function Bf() {
|
|
|
14207
14207
|
};
|
|
14208
14208
|
return /* @__PURE__ */ a(Qe, { value: "summary", className: "border-none", children: [
|
|
14209
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: [
|
|
14210
|
-
/* @__PURE__ */ e(
|
|
14210
|
+
/* @__PURE__ */ e(Zd, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
14211
14211
|
/* @__PURE__ */ e("span", { children: "Summary" })
|
|
14212
14212
|
] }) }),
|
|
14213
14213
|
/* @__PURE__ */ a(Je, { className: "space-y-4 pb-4 pt-2", children: [
|
|
@@ -14471,10 +14471,10 @@ function $f() {
|
|
|
14471
14471
|
function Kf() {
|
|
14472
14472
|
const t = F((d) => d.card), n = t.type;
|
|
14473
14473
|
if (Za(t) === "dynamic")
|
|
14474
|
-
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ a(
|
|
14474
|
+
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ a(Bi, { children: [
|
|
14475
14475
|
/* @__PURE__ */ e($t, { className: "h-4 w-4" }),
|
|
14476
|
-
/* @__PURE__ */ e(
|
|
14477
|
-
/* @__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." })
|
|
14478
14478
|
] }) });
|
|
14479
14479
|
function r() {
|
|
14480
14480
|
switch (n) {
|
|
@@ -14607,7 +14607,7 @@ function Gf(t) {
|
|
|
14607
14607
|
errorMessage: E,
|
|
14608
14608
|
refetch: b,
|
|
14609
14609
|
data: L
|
|
14610
|
-
} = 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 = () => {
|
|
14611
14611
|
const G = z.current;
|
|
14612
14612
|
G && (z.current = null, B.current = Ln(), G === "clear" && Q([]));
|
|
14613
14613
|
}, {
|
|
@@ -14633,7 +14633,7 @@ function Gf(t) {
|
|
|
14633
14633
|
assistantId: "editor-assistant",
|
|
14634
14634
|
assistantProfileId: P,
|
|
14635
14635
|
conversationId: B.current,
|
|
14636
|
-
assistantRequestId:
|
|
14636
|
+
assistantRequestId: au(),
|
|
14637
14637
|
isDevMode: m,
|
|
14638
14638
|
aiContext: G.currentAIContext,
|
|
14639
14639
|
reasoningEffort: G.reasoningEffort,
|
|
@@ -14646,7 +14646,7 @@ function Gf(t) {
|
|
|
14646
14646
|
prepareSendMessagesRequest: ({ messages: G, body: J }) => ({
|
|
14647
14647
|
body: {
|
|
14648
14648
|
...J,
|
|
14649
|
-
messages:
|
|
14649
|
+
messages: to(G)
|
|
14650
14650
|
}
|
|
14651
14651
|
})
|
|
14652
14652
|
}),
|
|
@@ -14787,11 +14787,11 @@ function Gf(t) {
|
|
|
14787
14787
|
s("Analyzing...");
|
|
14788
14788
|
}
|
|
14789
14789
|
function Ge(G) {
|
|
14790
|
-
const J =
|
|
14790
|
+
const J = su(x, G);
|
|
14791
14791
|
me(J);
|
|
14792
14792
|
}
|
|
14793
14793
|
function me(G) {
|
|
14794
|
-
const J =
|
|
14794
|
+
const J = lu(G);
|
|
14795
14795
|
O(J), Q((de) => [
|
|
14796
14796
|
...de,
|
|
14797
14797
|
{
|
|
@@ -14830,7 +14830,7 @@ function Gf(t) {
|
|
|
14830
14830
|
connectionType: M || "",
|
|
14831
14831
|
datamodelId: I || ""
|
|
14832
14832
|
};
|
|
14833
|
-
if (!
|
|
14833
|
+
if (!ru(
|
|
14834
14834
|
[...N || [], ...x],
|
|
14835
14835
|
G
|
|
14836
14836
|
) || x.length === 0) {
|
|
@@ -14844,7 +14844,7 @@ function Gf(t) {
|
|
|
14844
14844
|
me(de);
|
|
14845
14845
|
}
|
|
14846
14846
|
}
|
|
14847
|
-
const pe = !["ready", "error"].includes(ye), Pe =
|
|
14847
|
+
const pe = !["ready", "error"].includes(ye), Pe = nu(be);
|
|
14848
14848
|
return {
|
|
14849
14849
|
messages: U,
|
|
14850
14850
|
setMessages: ie,
|
|
@@ -14887,7 +14887,7 @@ function si({
|
|
|
14887
14887
|
}
|
|
14888
14888
|
), b = F((fe) => fe.actions.setCardSql), L = F((fe) => fe.actions.setRunSql), D = F((fe) => fe.showAIDialog), O = Fe(
|
|
14889
14889
|
(fe) => fe.handleOpenAssistantProfile
|
|
14890
|
-
), { setShowAIDialog: R, setCardPython: p } = he(), { setDataSource: M } = he(), { assistantProfile: I } =
|
|
14890
|
+
), { setShowAIDialog: R, setCardPython: p } = he(), { setDataSource: M } = he(), { assistantProfile: I } = iu(), {
|
|
14891
14891
|
messages: P,
|
|
14892
14892
|
setMessages: B,
|
|
14893
14893
|
sendMessage: z,
|
|
@@ -14919,7 +14919,7 @@ function si({
|
|
|
14919
14919
|
totalMessageCount: $e,
|
|
14920
14920
|
loadMoreMessages: Ke,
|
|
14921
14921
|
resetMessageWindow: ie
|
|
14922
|
-
} =
|
|
14922
|
+
} = ou(P, {
|
|
14923
14923
|
maxVisibleMessages: 15,
|
|
14924
14924
|
// Reduced from 50 to 15 for better performance
|
|
14925
14925
|
initialLoadCount: 10,
|
|
@@ -14935,7 +14935,7 @@ function si({
|
|
|
14935
14935
|
scrollToBottom: pe,
|
|
14936
14936
|
handleScroll: Pe,
|
|
14937
14937
|
resetNewMessageCount: Ve
|
|
14938
|
-
} =
|
|
14938
|
+
} = cu(Ce, {
|
|
14939
14939
|
threshold: 40,
|
|
14940
14940
|
behavior: "smooth",
|
|
14941
14941
|
isStreaming: q
|
|
@@ -14955,13 +14955,13 @@ function si({
|
|
|
14955
14955
|
w,
|
|
14956
14956
|
A,
|
|
14957
14957
|
D
|
|
14958
|
-
]),
|
|
14958
|
+
]), du({
|
|
14959
14959
|
assistantType: "editor",
|
|
14960
14960
|
status: Y,
|
|
14961
14961
|
isLoading: q,
|
|
14962
14962
|
sendMessage: z
|
|
14963
14963
|
});
|
|
14964
|
-
const { hasActiveTools: G, activeToolText: J } =
|
|
14964
|
+
const { hasActiveTools: G, activeToolText: J } = uu(P), de = De(
|
|
14965
14965
|
(fe) => {
|
|
14966
14966
|
n == null || n(fe), t === void 0 && g(fe);
|
|
14967
14967
|
},
|
|
@@ -15108,7 +15108,7 @@ function si({
|
|
|
15108
15108
|
tooltip: y ? "Exit Fullscreen" : "Expand",
|
|
15109
15109
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
15110
15110
|
onClick: at,
|
|
15111
|
-
children: y ? /* @__PURE__ */ e(
|
|
15111
|
+
children: y ? /* @__PURE__ */ e(mu, { className: "size-4" }) : /* @__PURE__ */ e(hu, { className: "size-4" })
|
|
15112
15112
|
}
|
|
15113
15113
|
),
|
|
15114
15114
|
/* @__PURE__ */ e(
|
|
@@ -15119,7 +15119,7 @@ function si({
|
|
|
15119
15119
|
onClick: () => {
|
|
15120
15120
|
B([]), V("editor"), ue(), ie();
|
|
15121
15121
|
},
|
|
15122
|
-
children: /* @__PURE__ */ e(
|
|
15122
|
+
children: /* @__PURE__ */ e(Ki, { className: "size-4" })
|
|
15123
15123
|
}
|
|
15124
15124
|
),
|
|
15125
15125
|
/* @__PURE__ */ e(
|
|
@@ -15170,7 +15170,7 @@ function si({
|
|
|
15170
15170
|
}
|
|
15171
15171
|
) }),
|
|
15172
15172
|
/* @__PURE__ */ e(
|
|
15173
|
-
|
|
15173
|
+
pu,
|
|
15174
15174
|
{
|
|
15175
15175
|
messages: Ce,
|
|
15176
15176
|
showTools: c,
|
|
@@ -15181,7 +15181,7 @@ function si({
|
|
|
15181
15181
|
}
|
|
15182
15182
|
),
|
|
15183
15183
|
/* @__PURE__ */ e(
|
|
15184
|
-
|
|
15184
|
+
fu,
|
|
15185
15185
|
{
|
|
15186
15186
|
status: Y,
|
|
15187
15187
|
errorMessage: Q,
|
|
@@ -15212,23 +15212,23 @@ function si({
|
|
|
15212
15212
|
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
15213
15213
|
/* @__PURE__ */ a("div", { children: [
|
|
15214
15214
|
Dt && !I && /* @__PURE__ */ e(
|
|
15215
|
-
|
|
15215
|
+
gu,
|
|
15216
15216
|
{
|
|
15217
15217
|
onClick: Ae,
|
|
15218
15218
|
placeholders: Hf
|
|
15219
15219
|
}
|
|
15220
15220
|
),
|
|
15221
15221
|
/* @__PURE__ */ e("div", { children: Dt && I && /* @__PURE__ */ e(
|
|
15222
|
-
|
|
15222
|
+
xu,
|
|
15223
15223
|
{
|
|
15224
15224
|
seedQuestions: I.seedQuestions || [],
|
|
15225
15225
|
handleSeedQuestionClick: Ye
|
|
15226
15226
|
}
|
|
15227
15227
|
) })
|
|
15228
15228
|
] }),
|
|
15229
|
-
/* @__PURE__ */ e(
|
|
15229
|
+
/* @__PURE__ */ e(bu, { assistantType: "editor", className: "mb-3" }),
|
|
15230
15230
|
/* @__PURE__ */ e(
|
|
15231
|
-
|
|
15231
|
+
vu,
|
|
15232
15232
|
{
|
|
15233
15233
|
ref: r,
|
|
15234
15234
|
setInput: ge,
|
|
@@ -15262,7 +15262,7 @@ function si({
|
|
|
15262
15262
|
incomingSelectedEntities: k,
|
|
15263
15263
|
open: v,
|
|
15264
15264
|
onOpenChange: f,
|
|
15265
|
-
dataSource: N ||
|
|
15265
|
+
dataSource: N || yu,
|
|
15266
15266
|
dialogMode: "aiContext",
|
|
15267
15267
|
onSaveSelectedEntities: (fe) => {
|
|
15268
15268
|
A(!0), w({
|
|
@@ -15276,7 +15276,7 @@ function si({
|
|
|
15276
15276
|
}
|
|
15277
15277
|
);
|
|
15278
15278
|
return y && s ? qm(
|
|
15279
|
-
/* @__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 }) }),
|
|
15280
15280
|
s
|
|
15281
15281
|
) : At;
|
|
15282
15282
|
}
|
|
@@ -15285,7 +15285,7 @@ function Qf(t, n, s) {
|
|
|
15285
15285
|
const r = n.qualifiedFieldName, d = n.qualifiedEntityName, o = d && n.name ? `${d}.${n.name}` : r;
|
|
15286
15286
|
return t.some((l) => {
|
|
15287
15287
|
if (!(rt(l.dataType || "") === "date")) return !1;
|
|
15288
|
-
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;
|
|
15289
15289
|
return r ? u ? u === o || u.endsWith(`.${r}`) : h === n.name : u ? u === o : h === n.name;
|
|
15290
15290
|
});
|
|
15291
15291
|
}
|
|
@@ -15668,7 +15668,7 @@ function Zf({
|
|
|
15668
15668
|
}
|
|
15669
15669
|
),
|
|
15670
15670
|
/* @__PURE__ */ e(
|
|
15671
|
-
|
|
15671
|
+
ji,
|
|
15672
15672
|
{
|
|
15673
15673
|
onClick: () => m("area"),
|
|
15674
15674
|
className: X(
|
|
@@ -15788,7 +15788,7 @@ function ag({
|
|
|
15788
15788
|
t.name,
|
|
15789
15789
|
n,
|
|
15790
15790
|
s
|
|
15791
|
-
], i =
|
|
15791
|
+
], i = Ui({
|
|
15792
15792
|
queryKey: c,
|
|
15793
15793
|
queryFn: async () => {
|
|
15794
15794
|
if (!(l != null && l.connectionId))
|
|
@@ -15997,7 +15997,7 @@ function Mo({
|
|
|
15997
15997
|
onClick: () => g(T),
|
|
15998
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",
|
|
15999
15999
|
children: [
|
|
16000
|
-
/* @__PURE__ */ e(
|
|
16000
|
+
/* @__PURE__ */ e(wu, { dataType: rt(T.dataType) }),
|
|
16001
16001
|
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
|
|
16002
16002
|
/* @__PURE__ */ e("div", { className: "truncate text-[13px] text-foreground", children: T.label }),
|
|
16003
16003
|
/* @__PURE__ */ a("div", { className: "truncate font-mono text-[10px] text-muted-foreground", children: [
|
|
@@ -16166,7 +16166,7 @@ function sg({
|
|
|
16166
16166
|
handleKpiTrendlineWindowChange: ue,
|
|
16167
16167
|
handleKpiTrendlineGranularityChange: be,
|
|
16168
16168
|
handleMetricTargetValueChange: ge
|
|
16169
|
-
} =
|
|
16169
|
+
} = Gi(u), [ye, Se] = K(!1), [Ce, Be] = K(() => {
|
|
16170
16170
|
var W;
|
|
16171
16171
|
return !!((W = t.parameters) != null && W.windowTransform);
|
|
16172
16172
|
}), [$e, Ke] = K(!1), [ie, Le] = K(!1), [Ge, me] = K(null), Xe = oe(() => {
|
|
@@ -16187,7 +16187,7 @@ function sg({
|
|
|
16187
16187
|
t.qualifiedEntityName,
|
|
16188
16188
|
t.qualifiedFieldName,
|
|
16189
16189
|
A
|
|
16190
|
-
]), tt =
|
|
16190
|
+
]), tt = Su(
|
|
16191
16191
|
Xe.dataType
|
|
16192
16192
|
), [pe, Pe] = K(
|
|
16193
16193
|
t.dateFormat || "YYYY-MM-DD"
|
|
@@ -16209,11 +16209,11 @@ function sg({
|
|
|
16209
16209
|
qe(W), n === "metrics" && D(s, W);
|
|
16210
16210
|
}, He = (W) => {
|
|
16211
16211
|
S(n, s, W);
|
|
16212
|
-
}, 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(
|
|
16213
16213
|
(W) => Rm(W, t, {
|
|
16214
16214
|
allowComparableFallback: !0
|
|
16215
16215
|
})
|
|
16216
|
-
) : 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) => {
|
|
16217
16217
|
var te;
|
|
16218
16218
|
if (Ye(W), n === "metrics") {
|
|
16219
16219
|
const ke = {
|
|
@@ -16298,22 +16298,22 @@ function sg({
|
|
|
16298
16298
|
xs
|
|
16299
16299
|
),
|
|
16300
16300
|
[Xt, xs, Ot]
|
|
16301
|
-
), 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({
|
|
16302
16302
|
cardType: l || "table",
|
|
16303
16303
|
cardConfig: u.config || {},
|
|
16304
16304
|
metric: H,
|
|
16305
16305
|
transformMode: ve || "running_total"
|
|
16306
|
-
}), Me = !!H.comparisonType && H.comparisonType !== "none", it =
|
|
16306
|
+
}), Me = !!H.comparisonType && H.comparisonType !== "none", it = Eu(
|
|
16307
16307
|
Et || []
|
|
16308
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(
|
|
16309
16309
|
(W) => W.id === dt
|
|
16310
|
-
), 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({
|
|
16311
16311
|
cardType: l || "table",
|
|
16312
16312
|
cardConfig: u.config || {},
|
|
16313
16313
|
orderByFieldId: dt || void 0
|
|
16314
16314
|
}), Ns = new Set(
|
|
16315
16315
|
((Jr = (Wr = H.parameters) == null ? void 0 : Wr.windowTransform) == null ? void 0 : Jr.partitionByFieldIds) || Ra
|
|
16316
|
-
), Cs = l === "pivotTable" ||
|
|
16316
|
+
), Cs = l === "pivotTable" || Mu(
|
|
16317
16317
|
l || "table",
|
|
16318
16318
|
u.config || {}
|
|
16319
16319
|
), Er = [
|
|
@@ -16506,7 +16506,7 @@ function sg({
|
|
|
16506
16506
|
className: "h-8 w-full justify-start text-xs",
|
|
16507
16507
|
onClick: () => Le(!0),
|
|
16508
16508
|
children: [
|
|
16509
|
-
/* @__PURE__ */ e(
|
|
16509
|
+
/* @__PURE__ */ e(_i, { className: "mr-2 h-3 w-3" }),
|
|
16510
16510
|
"Edit Formula"
|
|
16511
16511
|
]
|
|
16512
16512
|
}
|
|
@@ -17010,7 +17010,7 @@ function sg({
|
|
|
17010
17010
|
}
|
|
17011
17011
|
),
|
|
17012
17012
|
/* @__PURE__ */ e(
|
|
17013
|
-
|
|
17013
|
+
Qi,
|
|
17014
17014
|
{
|
|
17015
17015
|
dataType: An,
|
|
17016
17016
|
calculated: !!ze
|
|
@@ -17048,7 +17048,7 @@ function sg({
|
|
|
17048
17048
|
"aria-label": "Field configuration",
|
|
17049
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",
|
|
17050
17050
|
onClick: (W) => W.stopPropagation(),
|
|
17051
|
-
children: /* @__PURE__ */ e(
|
|
17051
|
+
children: /* @__PURE__ */ e(Fu, { className: "h-3 w-3" })
|
|
17052
17052
|
}
|
|
17053
17053
|
) }),
|
|
17054
17054
|
/* @__PURE__ */ e(
|
|
@@ -17107,7 +17107,7 @@ function sg({
|
|
|
17107
17107
|
}
|
|
17108
17108
|
),
|
|
17109
17109
|
ie && n === "metrics" && Ue && /* @__PURE__ */ e(
|
|
17110
|
-
|
|
17110
|
+
Wi,
|
|
17111
17111
|
{
|
|
17112
17112
|
open: ie,
|
|
17113
17113
|
onOpenChange: Le,
|
|
@@ -17123,7 +17123,7 @@ function sg({
|
|
|
17123
17123
|
card: te,
|
|
17124
17124
|
frame: ke,
|
|
17125
17125
|
actions: xe
|
|
17126
|
-
} = 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({
|
|
17127
17127
|
activeFields: nt,
|
|
17128
17128
|
storedFields: te.calculatedFields || [],
|
|
17129
17129
|
sharedFields: ot,
|
|
@@ -17151,7 +17151,7 @@ function sg({
|
|
|
17151
17151
|
card: te,
|
|
17152
17152
|
frame: ke,
|
|
17153
17153
|
actions: xe
|
|
17154
|
-
} = 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({
|
|
17155
17155
|
activeFields: ot,
|
|
17156
17156
|
storedFields: te.calculatedFields || [],
|
|
17157
17157
|
sharedFields: vt,
|
|
@@ -17193,7 +17193,7 @@ function rg({ concept: t }) {
|
|
|
17193
17193
|
type: "button",
|
|
17194
17194
|
"aria-label": `What does ${n} mean?`,
|
|
17195
17195
|
className: "inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground/70 transition-colors hover:text-foreground",
|
|
17196
|
-
children: /* @__PURE__ */ e(
|
|
17196
|
+
children: /* @__PURE__ */ e(Ru, { className: "h-3 w-3" })
|
|
17197
17197
|
}
|
|
17198
17198
|
) }),
|
|
17199
17199
|
/* @__PURE__ */ a(
|
|
@@ -17304,7 +17304,7 @@ function on({
|
|
|
17304
17304
|
hasPivotColumns: o = !1,
|
|
17305
17305
|
activeField: l = null
|
|
17306
17306
|
}) {
|
|
17307
|
-
const { isOver: c, setNodeRef: i } =
|
|
17307
|
+
const { isOver: c, setNodeRef: i } = Lu({
|
|
17308
17308
|
id: t
|
|
17309
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(
|
|
17310
17310
|
l,
|
|
@@ -17396,11 +17396,11 @@ function cg({
|
|
|
17396
17396
|
}
|
|
17397
17397
|
), u = ma(h, f) === "multiple";
|
|
17398
17398
|
u && ((Y = h == null ? void 0 : h.customCardPreferences) != null && Y.url);
|
|
17399
|
-
const g =
|
|
17399
|
+
const g = Pu(f == null ? void 0 : f.slots), y = F(
|
|
17400
17400
|
(U) => U.actions.updateCardConfig
|
|
17401
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(
|
|
17402
17402
|
(U) => U.actions.updateSheetCalculatedFields
|
|
17403
|
-
), { 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 = [
|
|
17404
17404
|
"pie",
|
|
17405
17405
|
"doughnut",
|
|
17406
17406
|
"polar",
|
|
@@ -17509,7 +17509,7 @@ function cg({
|
|
|
17509
17509
|
)
|
|
17510
17510
|
] }),
|
|
17511
17511
|
/* @__PURE__ */ e(
|
|
17512
|
-
|
|
17512
|
+
Wi,
|
|
17513
17513
|
{
|
|
17514
17514
|
open: l,
|
|
17515
17515
|
onOpenChange: c,
|
|
@@ -17518,7 +17518,7 @@ function cg({
|
|
|
17518
17518
|
allowedFieldTypes: ["metric"],
|
|
17519
17519
|
onSave: (U) => {
|
|
17520
17520
|
if (U.role !== "metric") return;
|
|
17521
|
-
const { nextStoredFields: Q } =
|
|
17521
|
+
const { nextStoredFields: Q } = Yi({
|
|
17522
17522
|
activeFields: s,
|
|
17523
17523
|
storedFields: i.calculatedFields || [],
|
|
17524
17524
|
sharedFields: m.calculatedFields || [],
|
|
@@ -17531,7 +17531,7 @@ function cg({
|
|
|
17531
17531
|
},
|
|
17532
17532
|
onSaveToDashboard: (U) => {
|
|
17533
17533
|
if (U.role !== "metric") return;
|
|
17534
|
-
const Q = m.calculatedFields || [], { nextSharedFields: ue } =
|
|
17534
|
+
const Q = m.calculatedFields || [], { nextSharedFields: ue } = Ji({
|
|
17535
17535
|
activeFields: s,
|
|
17536
17536
|
storedFields: i.calculatedFields || [],
|
|
17537
17537
|
sharedFields: Q,
|
|
@@ -17676,7 +17676,7 @@ function ug({ onEditJoins: t }) {
|
|
|
17676
17676
|
/* @__PURE__ */ a("div", { className: "mb-1 flex items-center justify-between gap-2", children: [
|
|
17677
17677
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
17678
17678
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: c.source.name }),
|
|
17679
|
-
/* @__PURE__ */ e(
|
|
17679
|
+
/* @__PURE__ */ e(Vu, { className: "size-3 text-muted-foreground" }),
|
|
17680
17680
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: c.target.name })
|
|
17681
17681
|
] }),
|
|
17682
17682
|
/* @__PURE__ */ e(
|
|
@@ -17725,7 +17725,7 @@ function ug({ onEditJoins: t }) {
|
|
|
17725
17725
|
size: "sm",
|
|
17726
17726
|
onClick: t,
|
|
17727
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",
|
|
17728
|
-
children: /* @__PURE__ */ e(
|
|
17728
|
+
children: /* @__PURE__ */ e(Ki, { className: "size-3.5" })
|
|
17729
17729
|
}
|
|
17730
17730
|
)
|
|
17731
17731
|
] }) });
|
|
@@ -17792,7 +17792,7 @@ function mg({
|
|
|
17792
17792
|
"aria-label": "Hide chart configuration",
|
|
17793
17793
|
onClick: r,
|
|
17794
17794
|
className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
|
|
17795
|
-
children: /* @__PURE__ */ e(
|
|
17795
|
+
children: /* @__PURE__ */ e(Bu, { className: "h-4 w-4", strokeWidth: 1.75 })
|
|
17796
17796
|
}
|
|
17797
17797
|
) })
|
|
17798
17798
|
] }),
|
|
@@ -18203,7 +18203,7 @@ function Ar(t) {
|
|
|
18203
18203
|
groupByColumns: [l],
|
|
18204
18204
|
metricColumns: [c],
|
|
18205
18205
|
sortByColumns: [i]
|
|
18206
|
-
}, 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({
|
|
18207
18207
|
queryKey: [
|
|
18208
18208
|
"filterValues",
|
|
18209
18209
|
t.entityId,
|
|
@@ -18362,7 +18362,7 @@ function vg({
|
|
|
18362
18362
|
return w;
|
|
18363
18363
|
}, [t, c]), h = (x) => n === "<=" || n === ">" ? Pm(x, l) : Vm(x, l);
|
|
18364
18364
|
return /* @__PURE__ */ e(
|
|
18365
|
-
|
|
18365
|
+
zu,
|
|
18366
18366
|
{
|
|
18367
18367
|
value: c ? i : void 0,
|
|
18368
18368
|
selectionMode: c ? "range" : "single",
|
|
@@ -19017,7 +19017,7 @@ function Dg({
|
|
|
19017
19017
|
updateConditionFields: u
|
|
19018
19018
|
},
|
|
19019
19019
|
L.id
|
|
19020
|
-
), b =
|
|
19020
|
+
), b = Xi(t);
|
|
19021
19021
|
return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
19022
19022
|
/* @__PURE__ */ e(Xn, { children: /* @__PURE__ */ e(nr, { className: "p-4", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
19023
19023
|
c ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center p-4", children: [
|
|
@@ -19118,7 +19118,7 @@ function Eg({
|
|
|
19118
19118
|
), m = (A = l == null ? void 0 : l.config) == null ? void 0 : A.joinPlan, h = De(
|
|
19119
19119
|
(C) => C.entityName === Bm || C.entityName === "calculated_fields" || C.qualifiedEntityName === "calculated_fields",
|
|
19120
19120
|
[]
|
|
19121
|
-
), 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 = [
|
|
19122
19122
|
...n,
|
|
19123
19123
|
...s("groupBy"),
|
|
19124
19124
|
...s("pivotBy"),
|
|
@@ -19219,7 +19219,7 @@ function Eg({
|
|
|
19219
19219
|
}
|
|
19220
19220
|
if (B !== D.qualifiedEntityName && !h(D) && D.qualifiedEntityName)
|
|
19221
19221
|
if (v && (f != null && f.joinabilityMap)) {
|
|
19222
|
-
if (
|
|
19222
|
+
if (qu(D, {
|
|
19223
19223
|
joinabilityMap: f.joinabilityMap,
|
|
19224
19224
|
selectedFields: O,
|
|
19225
19225
|
baseEntityName: (L = m == null ? void 0 : m.baseEntity) == null ? void 0 : L.name
|
|
@@ -19233,7 +19233,7 @@ function Eg({
|
|
|
19233
19233
|
As(), o(null);
|
|
19234
19234
|
return;
|
|
19235
19235
|
}
|
|
19236
|
-
if (!
|
|
19236
|
+
if (!ju(
|
|
19237
19237
|
B,
|
|
19238
19238
|
D.qualifiedEntityName,
|
|
19239
19239
|
m
|
|
@@ -19659,7 +19659,7 @@ function Bg({
|
|
|
19659
19659
|
/* @__PURE__ */ e(Fg, {})
|
|
19660
19660
|
] }),
|
|
19661
19661
|
Q && o.type !== "table" && /* @__PURE__ */ e(
|
|
19662
|
-
|
|
19662
|
+
$u,
|
|
19663
19663
|
{
|
|
19664
19664
|
metadata: Q,
|
|
19665
19665
|
variant: "compact"
|
|
@@ -19669,11 +19669,11 @@ function Bg({
|
|
|
19669
19669
|
] }),
|
|
19670
19670
|
/* @__PURE__ */ a("div", { className: "flex grow items-center justify-end gap-1", children: [
|
|
19671
19671
|
/* @__PURE__ */ e(
|
|
19672
|
-
|
|
19672
|
+
Ku,
|
|
19673
19673
|
{
|
|
19674
19674
|
cardId: r.id,
|
|
19675
19675
|
cardFilters: (Le = r.config) == null ? void 0 : Le.filters,
|
|
19676
|
-
cardFilterCount:
|
|
19676
|
+
cardFilterCount: Xi(
|
|
19677
19677
|
((Ge = r.config) == null ? void 0 : Ge.filters) || null
|
|
19678
19678
|
),
|
|
19679
19679
|
onFiltersClick: s,
|
|
@@ -19694,7 +19694,7 @@ function Bg({
|
|
|
19694
19694
|
Se(!0), U();
|
|
19695
19695
|
},
|
|
19696
19696
|
children: /* @__PURE__ */ e(
|
|
19697
|
-
|
|
19697
|
+
Vi,
|
|
19698
19698
|
{
|
|
19699
19699
|
className: X("h-3.5 w-3.5", {
|
|
19700
19700
|
"animate-spin": ye
|
|
@@ -19800,7 +19800,7 @@ function Bg({
|
|
|
19800
19800
|
error: B,
|
|
19801
19801
|
errorSql: j,
|
|
19802
19802
|
onSendFeedback: () => {
|
|
19803
|
-
const me =
|
|
19803
|
+
const me = Uu(
|
|
19804
19804
|
Si.QUERY_GENERATION,
|
|
19805
19805
|
{
|
|
19806
19806
|
cardConfig: o.config,
|
|
@@ -19856,13 +19856,13 @@ function zg({ activeField: t }) {
|
|
|
19856
19856
|
if (Ne(() => {
|
|
19857
19857
|
t && s(!0);
|
|
19858
19858
|
}, [t]), !t) return null;
|
|
19859
|
-
const r = !!
|
|
19859
|
+
const r = !!Hi(t);
|
|
19860
19860
|
return /* @__PURE__ */ a(
|
|
19861
19861
|
"div",
|
|
19862
19862
|
{
|
|
19863
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"}`,
|
|
19864
19864
|
children: [
|
|
19865
|
-
/* @__PURE__ */ e(
|
|
19865
|
+
/* @__PURE__ */ e(Qi, { dataType: t.dataType, calculated: r }),
|
|
19866
19866
|
/* @__PURE__ */ e("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: t.label || t.name })
|
|
19867
19867
|
]
|
|
19868
19868
|
}
|
|
@@ -20058,12 +20058,12 @@ function qg({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
20058
20058
|
"Sort Z → A"
|
|
20059
20059
|
] }),
|
|
20060
20060
|
/* @__PURE__ */ e(Bt, {}),
|
|
20061
|
-
/* @__PURE__ */ a(
|
|
20062
|
-
/* @__PURE__ */ a(
|
|
20061
|
+
/* @__PURE__ */ a(Gu, { children: [
|
|
20062
|
+
/* @__PURE__ */ a(Hu, { children: [
|
|
20063
20063
|
/* @__PURE__ */ e(gr, { className: "mr-2 h-4 w-4" }),
|
|
20064
20064
|
"Summarize"
|
|
20065
20065
|
] }),
|
|
20066
|
-
/* @__PURE__ */ a(
|
|
20066
|
+
/* @__PURE__ */ a(Qu, { children: [
|
|
20067
20067
|
/* @__PURE__ */ e(ct, { onClick: () => M("SUM"), children: "Sum" }),
|
|
20068
20068
|
/* @__PURE__ */ e(ct, { onClick: () => M("AVG"), children: "Average" }),
|
|
20069
20069
|
/* @__PURE__ */ e(ct, { onClick: () => M("COUNT"), children: "Count" }),
|
|
@@ -20347,7 +20347,7 @@ function $g({
|
|
|
20347
20347
|
R
|
|
20348
20348
|
)) })
|
|
20349
20349
|
] }),
|
|
20350
|
-
/* @__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 }) })
|
|
20351
20351
|
]
|
|
20352
20352
|
}
|
|
20353
20353
|
) }),
|
|
@@ -20847,7 +20847,7 @@ function Wg() {
|
|
|
20847
20847
|
), N = g, {
|
|
20848
20848
|
getFieldsForContainer: E,
|
|
20849
20849
|
setFieldsForContainer: b
|
|
20850
|
-
} =
|
|
20850
|
+
} = Gi(N), { activeField: L, handleDragStart: D, handleDragEnd: O } = Eg({
|
|
20851
20851
|
activeCardId: u.activeCardId,
|
|
20852
20852
|
sourceFields: T,
|
|
20853
20853
|
getFieldsForContainer: E,
|
|
@@ -20943,18 +20943,18 @@ function Wg() {
|
|
|
20943
20943
|
onOpenChange: r
|
|
20944
20944
|
}
|
|
20945
20945
|
),
|
|
20946
|
-
/* @__PURE__ */ e(
|
|
20946
|
+
/* @__PURE__ */ e(Zi, { dropAnimation: null, children: /* @__PURE__ */ e(zg, { activeField: L || null }) })
|
|
20947
20947
|
]
|
|
20948
20948
|
}
|
|
20949
20949
|
);
|
|
20950
20950
|
}
|
|
20951
20951
|
function Jg({ authToken: t, onSave: n, onClose: s }) {
|
|
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 =
|
|
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(
|
|
20953
20953
|
(S) => {
|
|
20954
20954
|
i("editor", S);
|
|
20955
20955
|
},
|
|
20956
20956
|
[i]
|
|
20957
|
-
), { setAuthToken: y } =
|
|
20957
|
+
), { setAuthToken: y } = ao(), { setShowAIDialog: x, setOnSave: w, setOnClose: A } = he(), { setActiveAssistantType: V } = xr();
|
|
20958
20958
|
Ne(() => {
|
|
20959
20959
|
n && w(n), s && A(s);
|
|
20960
20960
|
}, [n, w, s, A]), Ne(() => {
|
|
@@ -21071,7 +21071,7 @@ function Jg({ authToken: t, onSave: n, onClose: s }) {
|
|
|
21071
21071
|
)
|
|
21072
21072
|
] });
|
|
21073
21073
|
}
|
|
21074
|
-
return /* @__PURE__ */ e(ts, { FallbackComponent:
|
|
21074
|
+
return /* @__PURE__ */ e(ts, { FallbackComponent: Xu, children: o ? /* @__PURE__ */ e(
|
|
21075
21075
|
"section",
|
|
21076
21076
|
{
|
|
21077
21077
|
className: "isolate flex h-full grow",
|
|
@@ -21095,11 +21095,11 @@ function ix() {
|
|
|
21095
21095
|
(u) => u.actions
|
|
21096
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(
|
|
21097
21097
|
(u) => u.actions.updateDocumentSectionCard
|
|
21098
|
-
), h =
|
|
21098
|
+
), h = Zu();
|
|
21099
21099
|
async function v(u) {
|
|
21100
21100
|
var A, V, C;
|
|
21101
21101
|
if ((d == null ? void 0 : d.type) === "documentSection") {
|
|
21102
|
-
const T =
|
|
21102
|
+
const T = em(
|
|
21103
21103
|
u,
|
|
21104
21104
|
d.cardId
|
|
21105
21105
|
);
|
|
@@ -21107,7 +21107,7 @@ function ix() {
|
|
|
21107
21107
|
st.error("No document section card found");
|
|
21108
21108
|
return;
|
|
21109
21109
|
}
|
|
21110
|
-
if (!
|
|
21110
|
+
if (!tm(T)) {
|
|
21111
21111
|
st.error("Document table sections support Table and Pivot Table");
|
|
21112
21112
|
return;
|
|
21113
21113
|
}
|
|
@@ -21133,7 +21133,7 @@ function ix() {
|
|
|
21133
21133
|
}
|
|
21134
21134
|
)) == null ? void 0 : C.id, x = g ? t : y || null;
|
|
21135
21135
|
if (!x) return;
|
|
21136
|
-
const w =
|
|
21136
|
+
const w = am(n, u.id);
|
|
21137
21137
|
try {
|
|
21138
21138
|
const T = await h(u, {
|
|
21139
21139
|
previousFrame: w
|