react-semaphor 0.1.476 → 0.1.478
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +9 -9
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{analyze-result-contract-OgPk-zGu.cjs → analyze-result-contract-BX_nQmPN.cjs} +1 -1
- package/dist/chunks/{analyze-result-contract-C8s8EUL5.js → analyze-result-contract-DsiAzCYn.js} +1 -1
- package/dist/chunks/{saved-temporal-bucket-format-CHsXUPJI.js → card-config-utils-CyDKaPNT.js} +190 -190
- package/dist/chunks/card-config-utils-D3Xuu0ub.cjs +1 -0
- package/dist/chunks/{common-types-C1IM7gao.cjs → common-types-BCSbPclk.cjs} +1 -1
- package/dist/chunks/{common-types-BLPy5_E0.js → common-types-D3r4PILe.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-ZfuxdRN2.cjs → dashboard-briefing-launcher-7qAW16mO.cjs} +2 -2
- package/dist/chunks/{dashboard-briefing-launcher-eBsB9kr8.js → dashboard-briefing-launcher-DAhtLQPc.js} +134 -134
- package/dist/chunks/{dashboard-controls-BX6p6z8a.js → dashboard-controls-C_CBmEwW.js} +13 -12
- package/dist/chunks/{dashboard-controls-DwjEc7sO.cjs → dashboard-controls-CoVqAeKG.cjs} +10 -10
- package/dist/chunks/{dashboard-input-contract-JFJZgenC.cjs → dashboard-date-comparison-definition-C93wv8Ua.cjs} +1 -1
- package/dist/chunks/{dashboard-input-contract-BrGdGFz0.js → dashboard-date-comparison-definition-KohOqBqR.js} +19 -19
- package/dist/chunks/dashboard-filter-value-compatibility-BAatYtUS.js +1215 -0
- package/dist/chunks/dashboard-filter-value-compatibility-Bco2gN96.cjs +1 -0
- package/dist/chunks/{dashboard-json-BfgitBXc.js → dashboard-json-0w58H39L.js} +7 -7
- package/dist/chunks/dashboard-json-B3XSl7b_.cjs +1 -0
- package/dist/chunks/{edit-dashboard-visual-Cbougpzc.cjs → edit-dashboard-visual-BsLRKeuO.cjs} +6 -6
- package/dist/chunks/{edit-dashboard-visual-D80DLF7C.js → edit-dashboard-visual-BsWEU8xf.js} +277 -277
- package/dist/chunks/{editor-action-buttons-DjsEDQok.js → editor-action-buttons-B3CB5c__.js} +39 -39
- package/dist/chunks/{editor-action-buttons-BDRLfaW-.cjs → editor-action-buttons-DMLDvrJD.cjs} +1 -1
- package/dist/chunks/{index-CneWIz__.cjs → index--0Il-Bpd.cjs} +238 -238
- package/dist/chunks/{format-types-CFHQoIuk.js → index-BS0_dp0l.js} +168 -168
- package/dist/chunks/{index-D9S3j7_z.js → index-BvRREsU9.js} +9 -9
- package/dist/chunks/index-ByQgqT9d.cjs +1 -0
- package/dist/chunks/{index-v2MZLyus.cjs → index-CXeIDdjd.cjs} +1 -1
- package/dist/chunks/{index-Dv5hbC1r.js → index-DgGcVyUs.js} +35550 -35937
- package/dist/chunks/matrix-result-contract-CFPnlcLm.cjs +1 -0
- package/dist/chunks/{matrix-result-contract-BpzhImar.js → matrix-result-contract-DFfUvb1r.js} +3 -3
- package/dist/chunks/{temporal-bucket-CtP7hKLa.js → metric-comparison-CTexJ8V1.js} +705 -705
- package/dist/chunks/metric-comparison-x0lipytf.cjs +1 -0
- package/dist/chunks/pivot-header-presentation-8Ra1RfHg.cjs +4 -0
- package/dist/chunks/{pivot-header-presentation-CaERAWpl.js → pivot-header-presentation-tpb_J900.js} +118 -118
- package/dist/chunks/{pivot-result-identity-CIZXsI53.js → pivot-result-identity-BIeP9v8I.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DRUlTWUq.cjs → pivot-result-identity-BVnhG2rR.cjs} +1 -1
- package/dist/chunks/pivot-result-lifecycle-D_bRCqaB.cjs +1 -0
- package/dist/chunks/{pivot-result-lifecycle-B9FTybxN.js → pivot-result-lifecycle-mjJ1rBvV.js} +7 -7
- package/dist/chunks/{raw-temporal-contract-U8J9RlEH.js → raw-temporal-contract-BuQIB31z.js} +1 -1
- package/dist/chunks/{raw-temporal-contract-D8YuxTAg.cjs → raw-temporal-contract-vnNwLy9R.cjs} +1 -1
- package/dist/chunks/{report-preferences-dialog-BXBlvW79.js → report-preferences-dialog-Bytgubvz.js} +25 -25
- package/dist/chunks/report-preferences-dialog-I0Pbn_Yb.cjs +1 -0
- package/dist/chunks/{report-runtime-context-DNbgCsko.js → report-runtime-context-B_pAmqxl.js} +1 -1
- package/dist/chunks/{report-runtime-context-RFiWq4wK.cjs → report-runtime-context-BfW4qiMJ.cjs} +1 -1
- package/dist/chunks/{source-entity-resolution-BDC-Qngk.cjs → source-entity-resolution-DCAAS-y8.cjs} +1 -1
- package/dist/chunks/{source-entity-resolution-ugN3sZUk.js → source-entity-resolution-WUstJID6.js} +1 -1
- package/dist/chunks/{switch-C8NihGV4.js → switch-BsGTOjuD.js} +12342 -11110
- package/dist/chunks/switch-Cpj3DrCZ.cjs +138 -0
- package/dist/chunks/{temporal-bucket-authoring-DJ9kK2wD.js → temporal-bucket-authoring-CyTCHy1K.js} +3 -3
- package/dist/chunks/temporal-bucket-authoring-DueSgLJU.cjs +1 -0
- package/dist/chunks/{temporal-bucket-contract-CZl5D7FZ.js → temporal-bucket-contract-BeOx0uYe.js} +1 -1
- package/dist/chunks/{temporal-bucket-contract-BD862TAa.cjs → temporal-bucket-contract-Cp-usD9Z.cjs} +1 -1
- package/dist/chunks/{token-types-CoHsSJ4E.cjs → token-types-D9eN35rf.cjs} +1 -1
- package/dist/chunks/{token-types-DfDtCqlw.js → token-types-Dvomvqw0.js} +1 -1
- package/dist/chunks/{update-policy-BGNXFgBU.cjs → update-policy-Buw2LmvX.cjs} +1 -1
- package/dist/chunks/{update-policy-BybMiM61.js → update-policy-MWg0aH3d.js} +1 -1
- package/dist/chunks/{validators-D-T-2HOR.js → validators-D3AarM2T.js} +662 -663
- package/dist/chunks/validators-DqIM0B3C.cjs +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +81 -79
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +1 -1
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +3 -3
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +3 -3
- package/dist/format-utils/index.cjs +3 -3
- package/dist/format-utils/index.js +9 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +177 -176
- package/dist/report-runtime-context/index.cjs +1 -1
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/briefings.d.ts +15 -2
- package/dist/types/dashboard-authoring.d.ts +21 -2
- package/dist/types/dashboard.d.ts +15 -2
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +4 -4
- package/dist/types/main.d.ts +25 -6
- package/dist/types/shared.d.ts +15 -2
- package/dist/types/surfboard.d.ts +15 -2
- package/dist/types/types.d.ts +15 -2
- package/package.json +1 -1
- package/dist/chunks/dashboard-filter-value-compatibility-BCVF9IHg.js +0 -1026
- package/dist/chunks/dashboard-filter-value-compatibility-DLkdeypb.cjs +0 -1
- package/dist/chunks/dashboard-json-CdwYFOsc.cjs +0 -1
- package/dist/chunks/format-types-PSZZ7hG8.cjs +0 -1
- package/dist/chunks/matrix-result-contract-Bhg60NtS.cjs +0 -1
- package/dist/chunks/pivot-header-presentation-CePk1R6g.cjs +0 -4
- package/dist/chunks/pivot-result-lifecycle-CcGt_29N.cjs +0 -1
- package/dist/chunks/report-preferences-dialog-cSMJYqns.cjs +0 -1
- package/dist/chunks/saved-temporal-bucket-format-DNMtD77o.cjs +0 -1
- package/dist/chunks/switch-B1mZx2k9.cjs +0 -138
- package/dist/chunks/temporal-bucket-9Wz9Ds6H.cjs +0 -1
- package/dist/chunks/temporal-bucket-authoring-DSpzgXHc.cjs +0 -1
- package/dist/chunks/validators-DcshgK7w.cjs +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as Wc from "react";
|
|
3
3
|
import Jt, { useState as K, useEffect as Se, useMemo as ce, useRef as Ee, useCallback as Ie, useId as Pi, useContext as fr, Suspense as Jc } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { cW as Li, aG as xn, aH as bn, aI as vn, aJ as yn, aK as Pn, aE as ds, bi as Et, bj as Ht, cX as Vi, cY as rs, aF as it, cZ as Bi, c_ as ls, b3 as Ia, aY as xt, cd as gr, b1 as na, bk as aa, bh as Ot, c$ as us, d0 as Yi, d1 as Xc, d2 as Zc, d3 as ed, d4 as _i, d5 as xr, d6 as td, d7 as nd, d8 as ad, d9 as sd, da as sr, db as is, ay as zn, m as $i, dc as rd, dd as ld, de as zi, df as ji, dg as qi, dh as id, di as od, dj as cd, dk as dd, cK as br, b0 as Ki, b7 as Ui, dl as wn, dm as rr, dn as ud, c5 as Ta, dp as Gi, dq as Ll, dr as Vl, be as Wn, aM as an, aN as gt, ds as md, dt as Hi, du as Qi, bV as lt, dv as zt, dw as hd, dx as Wi, dy as pd, dz as fd, dA as gd, aC as Ji, dB as xd, dC as bd, dD as vd, dE as yd, dF as Nd, dG as Cd, dH as wd, dI as Vs, dJ as Sd, dK as Bl, dL as Td, dM as Yl, dN as kd, bg as Dt, ca as sa, cb as ra, cc as la, dO as Xi, bG as vr, aL as yr, dP as Zi, dQ as Nr, dR as Dd, dS as Md, dT as Cr, dU as Id, dV as Ed, dW as eo, dX as to, dY as no, dZ as Gt, d_ as Ad, d$ as Od, e0 as Fd, e1 as Rd, e2 as ao, e3 as so, G as ro, e4 as wr, e5 as Pd, e6 as Ld, e7 as Vd, e8 as Ea, M as Bd, e9 as Yd, ea as _d, eb as _l, ec as $d, E as vs, e as Sr, ed as zd, ee as Tr, by as jd, ef as $l, I as pt, eg as qd, eh as lo, ei as io, ej as Kd, ek as kr, el as Dr, em as zl, en as qa, eo as Ud, ep as Gd, eq as Hd, er as Qd, es as Wd, et as ms, eu as Jd, ev as Xd, ew as oo, ex as co, ey as Zd, ez as eu, cp as tu, eA as nu, eB as uo, eC as au, eD as su, cq as ys, eE as Ns, bz as On, bA as Pt, eF as Mr, eG as Ln, eH as Vn, eI as Nn, eJ as ea, eK as ru, eL as lu, eM as iu, eN as ou, eO as cu, eP as du, eQ as jl, bo as Xt, bp as Zt, bq as en, eR as uu, eS as mo, eT as mu, eU as hu, eV as ho, eW as pu, eX as fu, eY as gu, eZ as xu, e_ as Bs, e$ as bu, f0 as vu, f1 as Cs, f2 as po, f3 as yu, f4 as Nu, f5 as Cu, f6 as wu, f7 as Su, f8 as Tu, f9 as ku, fa as Du, fb as Mu, fc as lr, fd as Iu, fe as Eu, ff as ql, b2 as ir, a_ as Cn, aO as Au, aP as Ou, aR as Fu, aS as Ru, aT as Pu, aU as Lu, aV as Vu, aW as Bu, aX as Yu, bX as _u, fg as Aa, fh as Oa, fi as Fa, cD as Bn, cf as Ir, cg as $u, fj as zu, fk as ws, fl as ot, fm as ct, fn as dt, fo as ju, fp as qu, fq as fo, fr as go, fs as xo, ft as bo, fu as Ku, fv as Uu, fw as or, fx as Gu, fy as Hu, fz as Qu, fA as Wu, fB as Ju, fC as Xu, fD as Zu, fE as em, fF as tm, fG as nm, fH as am, fI as sm, fJ as En, fK as Ca, fL as rm, fM as Kl, fN as lm, fO as im, fP as Ys, fQ as Ul, fR as om, fS as cm, fT as dm, fU as um, fV as mm, aA as Er, aB as Ra, fW as _s, fX as vo, b5 as hm, fY as hs, fZ as pm, f_ as yo, f$ as No, g0 as fm, g1 as gm, T as xm, g2 as ts, g3 as bm, g4 as Gl, g5 as vm, g6 as ym, g7 as Hl, g8 as Nm, g9 as Cm, ga as wm, gb as Sm, gc as Tm, aQ as Co, gd as km, ge as Dm, gf as Mm, gg as Im, gh as Em, gi as Am, gj as Om, gk as Fm, gl as Rm, gm as wo, gn as Pm, go as Lm, gp as Ss, cE as Ts, gq as So, gr as To, gs as Vm, gt as Bm, gu as ko, gv as Ym, gw as _m, gx as ks, gy as $m, gz as zm, gA as jm, gB as qm, gC as Km, gD as Ql, gE as ta, gF as Do, gG as Um, cs as Gm, gH as Mo, gI as Io, gJ as os, gK as Eo, gL as Ao, gM as Wl, gN as Hm, gO as Qm, gP as cs, gQ as Ar, gR as Wm, gS as ps, g as Pa, h as La, j as Va, i as Ba, k as Ya, l as _a, gT as Jm, gU as $a, gV as pn, gW as cr, gX as dr, gY as za, gZ as Oo, g_ as Xm, g$ as $s, h0 as zs, h1 as Zm, h2 as js, h3 as eh, h4 as Jl, h5 as Xl, h6 as th, cM as nh, h7 as ah, cN as sh, cP as rh, cQ as lh, u as ih, h8 as oh, h9 as ch, ha as dh, hb as uh, ch as mh, ci as hh, cj as ph, bU as Ds, hc as Ms, hd as Zl, he as Fo, cG as qs, hf as fh, hg as gh, hh as xh, F as bh, bv as vh, hi as yh, hj as Nh } from "./index-DgGcVyUs.js";
|
|
5
5
|
import { c as Ze, C as St, X as rt } from "./x-CXDkqdur.js";
|
|
6
|
-
import { E as Ce, B as ee, N as fs, H as Ka, c as G, O as z, _ as se, $ as re, a0 as le, a1 as ie, a2 as q, D as P, Y as Nt, Q as Lt, V as Ct, W as wt, P as Tt, a as At, b as kt, aG as ka, aN as Or, aO as
|
|
7
|
-
import { C as
|
|
8
|
-
import "./validators-
|
|
9
|
-
import "./analyze-result-contract-
|
|
6
|
+
import { E as Ce, B as ee, N as fs, H as Ka, c as G, O as z, _ as se, $ as re, a0 as le, a1 as ie, a2 as q, D as P, Y as Nt, Q as Lt, V as Ct, W as wt, P as Tt, a as At, b as kt, aG as ka, aN as Or, aO as Ro, aD as Fr, aB as Ch, Z as Ye, aP as wh, L as sn, C as Yn, T as ia, F as oa, G as Yt, I as tn, d as rn, u as ve, R as gs, aQ as Sh, aR as Po, aS as Rr, z as Lo, X as _n, M as Pr, S as $n, aT as Th, aU as kh, aV as Vo, ad as Dh, aI as Mh, aW as Ih, aX as Eh, aY as ei, aZ as Ah, a_ as Oh, a$ as Fh, b0 as Rh, b1 as Ph, b2 as ti, b3 as Lh, b4 as ni, b5 as ca, b6 as Vh, a3 as Qe, b7 as Bh, b8 as Lr, b9 as ur, ba as Bo, bb as fn, bc as Yo, bd as Yh, be as _o, bf as _h, bg as $h, bh as Bt, K as $o, bi as mt, bj as zo, r as ai, bk as zh, bl as jh, bm as qh, bn as Kh, bo as Uh, bp as Gh, bq as Hh, br as Qh, bs as Wh, bt as Jh, bu as Xh, bv as si, bw as Zh, bx as ep, by as tp, bz as np, bA as ap, J as Is, av as sp } from "./switch-BsGTOjuD.js";
|
|
7
|
+
import { C as rp, h as da, v as Rn, c as ns, M as lp, b as ip, g as op, d as cp } from "./card-config-utils-CyDKaPNT.js";
|
|
8
|
+
import "./validators-D3AarM2T.js";
|
|
9
|
+
import "./analyze-result-contract-DsiAzCYn.js";
|
|
10
10
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as ja } from "../value-format-preferences/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { u as dp, v as ri, j as up, w as mp, x as hp } from "./dashboard-filter-value-compatibility-BAatYtUS.js";
|
|
12
12
|
import { C as _t, M as jo, a as qo, E as mr, S as Es } from "./search-BHsQIWBV.js";
|
|
13
|
-
import { f as pp, F as fp, g as gp, V as Ko, e as xp, C as bp, h as vp } from "./editor-action-buttons-
|
|
14
|
-
import { g as li, A as yp, c as Np, b as Ks } from "./temporal-bucket-authoring-
|
|
15
|
-
import { f as jn, r as Sn, b as Ua, c as nn, e as Xn, i as Cp, n as wp, h as Uo, j as Go, k as Ho, l as Sp, m as hr, o as Tp, p as kp, q as Dp } from "./index-
|
|
13
|
+
import { f as pp, F as fp, g as gp, V as Ko, e as xp, C as bp, h as vp } from "./editor-action-buttons-B3CB5c__.js";
|
|
14
|
+
import { g as li, A as yp, c as Np, b as Ks } from "./temporal-bucket-authoring-CyTCHy1K.js";
|
|
15
|
+
import { f as jn, r as Sn, b as Ua, c as nn, e as Xn, i as Cp, n as wp, h as Uo, j as Go, k as Ho, l as Sp, m as hr, o as Tp, p as kp, q as Dp } from "./index-BvRREsU9.js";
|
|
16
16
|
import { createPortal as Mp } from "react-dom";
|
|
17
17
|
import "./appearance-runtime-provider-CjmE4gBY.js";
|
|
18
18
|
import { u as Ip } from "./appearance-context-DVXt8qjW.js";
|
|
19
19
|
import "./index-DSKR3nKn.js";
|
|
20
20
|
import "./color-CJvdlFM_.js";
|
|
21
|
-
import { b as Ep, r as Ap } from "./pivot-result-lifecycle-
|
|
22
|
-
import { D as ii } from "./
|
|
21
|
+
import { b as Ep, r as Ap } from "./pivot-result-lifecycle-mjJ1rBvV.js";
|
|
22
|
+
import { D as ii } from "./metric-comparison-CTexJ8V1.js";
|
|
23
23
|
import { P as Op } from "./palette-Cp1hqZtm.js";
|
|
24
|
-
import { a as Fp } from "./common-types-
|
|
24
|
+
import { a as Fp } from "./common-types-D3r4PILe.js";
|
|
25
25
|
/**
|
|
26
26
|
* @license lucide-react v0.453.0 - ISC
|
|
27
27
|
*
|
|
@@ -543,7 +543,7 @@ function nf({
|
|
|
543
543
|
availableDataSources: a
|
|
544
544
|
}) {
|
|
545
545
|
const [s, r] = K(
|
|
546
|
-
() =>
|
|
546
|
+
() => dp(t, a)
|
|
547
547
|
), [c, l] = K(/* @__PURE__ */ new Set()), i = () => {
|
|
548
548
|
const M = s.joins.length > 0 ? Math.max(...s.joins.map((D) => D.sequence)) + 1 : 1, w = {
|
|
549
549
|
id: `join-${Date.now()}`,
|
|
@@ -856,7 +856,7 @@ function of({
|
|
|
856
856
|
onCancel: c
|
|
857
857
|
}) {
|
|
858
858
|
const { columnGroups: l } = Bi(), i = l.filter(
|
|
859
|
-
(L) => L.entityName !==
|
|
859
|
+
(L) => L.entityName !== rp
|
|
860
860
|
), {
|
|
861
861
|
joinPlan: o,
|
|
862
862
|
expandedJoins: d,
|
|
@@ -2472,7 +2472,7 @@ function Sf({
|
|
|
2472
2472
|
body: {
|
|
2473
2473
|
...de,
|
|
2474
2474
|
inlineRunToken: Le || Fe,
|
|
2475
|
-
messages:
|
|
2475
|
+
messages: Ro(Z)
|
|
2476
2476
|
}
|
|
2477
2477
|
};
|
|
2478
2478
|
}
|
|
@@ -2566,7 +2566,7 @@ function Sf({
|
|
|
2566
2566
|
} catch (Fe) {
|
|
2567
2567
|
if (U.current !== oe || !je(de))
|
|
2568
2568
|
return null;
|
|
2569
|
-
const Ae =
|
|
2569
|
+
const Ae = Ch(
|
|
2570
2570
|
Fe,
|
|
2571
2571
|
"Validation service unavailable. You can still replace and run."
|
|
2572
2572
|
);
|
|
@@ -2872,7 +2872,7 @@ function Sf({
|
|
|
2872
2872
|
}
|
|
2873
2873
|
),
|
|
2874
2874
|
/* @__PURE__ */ n(Tt, { open: L, onOpenChange: un, children: [
|
|
2875
|
-
/* @__PURE__ */ e(
|
|
2875
|
+
/* @__PURE__ */ e(wh, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
|
|
2876
2876
|
/* @__PURE__ */ n("div", { className: "absolute right-1 flex items-center gap-1", children: [
|
|
2877
2877
|
ha && /* @__PURE__ */ e(
|
|
2878
2878
|
ee,
|
|
@@ -3417,7 +3417,7 @@ function If({
|
|
|
3417
3417
|
m,
|
|
3418
3418
|
k,
|
|
3419
3419
|
w == null ? void 0 : w.slots
|
|
3420
|
-
) ?? m.type, [N, D, k, m, w == null ? void 0 : w.slots]), x = ce(() => E !== m.type ? { ...m, type: E } : m, [m, E]), R = ce(() => I === 0 ? null :
|
|
3420
|
+
) ?? m.type, [N, D, k, m, w == null ? void 0 : w.slots]), x = ce(() => E !== m.type ? { ...m, type: E } : m, [m, E]), R = ce(() => I === 0 ? null : up(m == null ? void 0 : m.sql), [m == null ? void 0 : m.sql, I]), B = Ee(!0), {
|
|
3421
3421
|
setCardCustomCfg: b,
|
|
3422
3422
|
setQueryResultColumns: V,
|
|
3423
3423
|
setCardSql: A,
|
|
@@ -3776,11 +3776,11 @@ function Ef(t) {
|
|
|
3776
3776
|
), u = ve(
|
|
3777
3777
|
(y) => y.actions.getCard(t)
|
|
3778
3778
|
), m = P((y) => y.editorContext), g = P((y) => y.card), h = (m == null ? void 0 : m.type) === "documentSection" && m.cardId === t ? m : void 0, v = h ? g : u;
|
|
3779
|
-
if (
|
|
3779
|
+
if (Sh({
|
|
3780
3780
|
dashboard: a,
|
|
3781
3781
|
dashboardInputValues: l
|
|
3782
3782
|
}) && v) {
|
|
3783
|
-
const y =
|
|
3783
|
+
const y = Po({
|
|
3784
3784
|
dashboard: a,
|
|
3785
3785
|
sheetId: h ? h.sheetId : c,
|
|
3786
3786
|
sheetKind: h ? "document" : void 0,
|
|
@@ -3809,7 +3809,7 @@ function Ef(t) {
|
|
|
3809
3809
|
return h ? {
|
|
3810
3810
|
cardFilters: [],
|
|
3811
3811
|
cardFilterValues: h.documentFilterValues || []
|
|
3812
|
-
} :
|
|
3812
|
+
} : hd(
|
|
3813
3813
|
s,
|
|
3814
3814
|
r,
|
|
3815
3815
|
c,
|
|
@@ -3865,7 +3865,7 @@ function Rf({
|
|
|
3865
3865
|
const { updateEnableDevModePagination: o, setRunSql: d } = Ce(), u = Jt.useMemo(() => Object.keys(t[0] ?? {}), [t]), m = a.sql && !((B = (R = a.preferences) == null ? void 0 : R.tablePrefs) != null && B.enableDevModePagination) ? (V = (b = a.preferences) == null ? void 0 : b.tablePrefs) == null ? void 0 : V.pageSize : void 0, g = Jt.useMemo(
|
|
3866
3866
|
() => {
|
|
3867
3867
|
var F;
|
|
3868
|
-
return
|
|
3868
|
+
return Wi((F = a.config) == null ? void 0 : F.sortByColumns);
|
|
3869
3869
|
},
|
|
3870
3870
|
[(A = a.config) == null ? void 0 : A.sortByColumns]
|
|
3871
3871
|
), {
|
|
@@ -3876,7 +3876,7 @@ function Rf({
|
|
|
3876
3876
|
pagination: y,
|
|
3877
3877
|
paginationMode: f,
|
|
3878
3878
|
sorting: S
|
|
3879
|
-
} =
|
|
3879
|
+
} = pd({
|
|
3880
3880
|
card: a,
|
|
3881
3881
|
dataLength: t.length,
|
|
3882
3882
|
onPaginationChange: r,
|
|
@@ -3911,7 +3911,7 @@ function Rf({
|
|
|
3911
3911
|
onClick: () => $.getCanSort() && $.toggleSorting($.getIsSorted() === "asc"),
|
|
3912
3912
|
children: [
|
|
3913
3913
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", title: F, children: F }),
|
|
3914
|
-
j === "asc" ? /* @__PURE__ */ e(
|
|
3914
|
+
j === "asc" ? /* @__PURE__ */ e(fd, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : j === "desc" ? /* @__PURE__ */ e(gd, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : $.getCanSort() ? /* @__PURE__ */ e(Ji, { className: "h-3 w-3 shrink-0 opacity-0 transition-opacity group-hover/header:opacity-50" }) : null
|
|
3915
3915
|
]
|
|
3916
3916
|
}
|
|
3917
3917
|
);
|
|
@@ -3933,13 +3933,13 @@ function Rf({
|
|
|
3933
3933
|
};
|
|
3934
3934
|
}),
|
|
3935
3935
|
[p, C, u]
|
|
3936
|
-
), M = Math.max(N.length, 1), w =
|
|
3936
|
+
), M = Math.max(N.length, 1), w = xd({
|
|
3937
3937
|
data: t,
|
|
3938
3938
|
columns: N,
|
|
3939
|
-
getCoreRowModel:
|
|
3940
|
-
getPaginationRowModel: f === "client" ?
|
|
3939
|
+
getCoreRowModel: yd(),
|
|
3940
|
+
getPaginationRowModel: f === "client" ? vd() : void 0,
|
|
3941
3941
|
onSortingChange: O,
|
|
3942
|
-
getSortedRowModel: h ?
|
|
3942
|
+
getSortedRowModel: h ? bd() : void 0,
|
|
3943
3943
|
onPaginationChange: f === "disabled" ? void 0 : v,
|
|
3944
3944
|
manualPagination: f === "server" || f === "disabled",
|
|
3945
3945
|
manualSorting: !h,
|
|
@@ -3948,24 +3948,24 @@ function Rf({
|
|
|
3948
3948
|
sorting: I,
|
|
3949
3949
|
pagination: y
|
|
3950
3950
|
}
|
|
3951
|
-
}), D = f === "server" && s ? s.totalCount : t.length, T =
|
|
3951
|
+
}), D = f === "server" && s ? s.totalCount : t.length, T = Nd(a), k = f !== "disabled" && (f === "server" || T || D > 10), E = f === "server" || D > 10, x = u.length > 0 ? `${u.length * 144}px` : "100%";
|
|
3952
3952
|
return /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 w-full flex-col", children: [
|
|
3953
3953
|
i && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(sn, { className: "h-5 w-5 animate-spin text-muted-foreground" }) }),
|
|
3954
|
-
/* @__PURE__ */ n(
|
|
3954
|
+
/* @__PURE__ */ n(Cd, { className: "relative min-h-0 w-full grow overflow-auto rounded-none border-0 bg-transparent text-foreground", children: [
|
|
3955
3955
|
/* @__PURE__ */ n(
|
|
3956
3956
|
"table",
|
|
3957
3957
|
{
|
|
3958
3958
|
className: "w-full text-sm [border-spacing:0]",
|
|
3959
3959
|
style: { minWidth: x },
|
|
3960
3960
|
children: [
|
|
3961
|
-
/* @__PURE__ */ e(
|
|
3961
|
+
/* @__PURE__ */ e(wd, { className: "sticky top-0 z-10 bg-muted [&_tr]:border-b-0", children: w.getHeaderGroups().map((F) => /* @__PURE__ */ e(
|
|
3962
3962
|
Vs,
|
|
3963
3963
|
{
|
|
3964
3964
|
className: "border-b-0 hover:bg-transparent",
|
|
3965
3965
|
children: F.headers.map((_) => {
|
|
3966
3966
|
const $ = C[_.id] === "number";
|
|
3967
3967
|
return /* @__PURE__ */ e(
|
|
3968
|
-
|
|
3968
|
+
Sd,
|
|
3969
3969
|
{
|
|
3970
3970
|
className: G(
|
|
3971
3971
|
"group/header relative h-auto border-b border-transparent bg-muted/95 px-4 py-2 align-middle text-[10px] font-medium tracking-[0.08em] text-muted-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-border/60",
|
|
@@ -3982,7 +3982,7 @@ function Rf({
|
|
|
3982
3982
|
},
|
|
3983
3983
|
F.id
|
|
3984
3984
|
)) }),
|
|
3985
|
-
/* @__PURE__ */ e(
|
|
3985
|
+
/* @__PURE__ */ e(Td, { children: (L = w.getRowModel().rows) != null && L.length ? w.getRowModel().rows.map((F) => /* @__PURE__ */ e(
|
|
3986
3986
|
Vs,
|
|
3987
3987
|
{
|
|
3988
3988
|
className: "border-b border-border/40 transition-colors",
|
|
@@ -4020,7 +4020,7 @@ function Rf({
|
|
|
4020
4020
|
/* @__PURE__ */ e(Rr, { orientation: "horizontal" })
|
|
4021
4021
|
] }),
|
|
4022
4022
|
/* @__PURE__ */ e("div", { className: "shrink-0 border-t border-border/60 bg-background text-[13px]", children: k ? /* @__PURE__ */ e(
|
|
4023
|
-
|
|
4023
|
+
kd,
|
|
4024
4024
|
{
|
|
4025
4025
|
totalColumns: u.length,
|
|
4026
4026
|
pageCount: f === "server" && s ? s.pageCount : w.getPageCount(),
|
|
@@ -4544,7 +4544,7 @@ function sc({
|
|
|
4544
4544
|
/* @__PURE__ */ e("p", { className: "truncate text-[12px] font-medium text-foreground", children: h.title }),
|
|
4545
4545
|
/* @__PURE__ */ n("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
4546
4546
|
/* @__PURE__ */ e(
|
|
4547
|
-
|
|
4547
|
+
Xi,
|
|
4548
4548
|
{
|
|
4549
4549
|
text: h.json,
|
|
4550
4550
|
className: "h-6 w-6 rounded-control px-0 text-muted-foreground",
|
|
@@ -4821,7 +4821,7 @@ function ic(t, a) {
|
|
|
4821
4821
|
}, []), u = ce(() => {
|
|
4822
4822
|
const m = typeof window < "u" ? window.location.href : "", g = typeof navigator < "u" ? navigator.userAgent : "", p = typeof window < "u" ? `${window.innerWidth}x${window.innerHeight}` : "";
|
|
4823
4823
|
return {
|
|
4824
|
-
category:
|
|
4824
|
+
category: Zi.QUERY_GENERATION,
|
|
4825
4825
|
user: i,
|
|
4826
4826
|
tokenContext: o,
|
|
4827
4827
|
systemState: {
|
|
@@ -4905,7 +4905,7 @@ function oc({
|
|
|
4905
4905
|
) ?? r.type, [f, C, M, r, I == null ? void 0 : I.slots]), D = w ?? r.type, T = ce(
|
|
4906
4906
|
() => D === r.type ? r : { ...r, type: D },
|
|
4907
4907
|
[r, D]
|
|
4908
|
-
), k = T.type === "table" || T.type === "matrixTable" || T.type === "pivotTable" || T.type === "aggregateTable" || T.type === "detailTable", E = ce(() => w !== r.type ? { ...r, type: w } : r, [r, w]), { data: x, isLoading: R, isFetching: B, errorMessage: b, errorSql: V, pagination: A } = Ot(E), L = !!b, F = D === "matrixTable" &&
|
|
4908
|
+
), k = T.type === "table" || T.type === "matrixTable" || T.type === "pivotTable" || T.type === "aggregateTable" || T.type === "detailTable", E = ce(() => w !== r.type ? { ...r, type: w } : r, [r, w]), { data: x, isLoading: R, isFetching: B, errorMessage: b, errorSql: V, pagination: A } = Ot(E), L = !!b, F = D === "matrixTable" && Dd(x), _ = Md({
|
|
4909
4909
|
data: x,
|
|
4910
4910
|
isLoading: R,
|
|
4911
4911
|
isFetching: B
|
|
@@ -4942,13 +4942,13 @@ function oc({
|
|
|
4942
4942
|
_e
|
|
4943
4943
|
]
|
|
4944
4944
|
), Q = ce(
|
|
4945
|
-
() => D === "pivotTable" ?
|
|
4945
|
+
() => D === "pivotTable" ? Id({
|
|
4946
4946
|
data: x,
|
|
4947
4947
|
card: T,
|
|
4948
4948
|
isPending: R || B
|
|
4949
4949
|
}) : { kind: "not_loaded" },
|
|
4950
4950
|
[T, D, x, B, R]
|
|
4951
|
-
), Ne =
|
|
4951
|
+
), Ne = Ed(
|
|
4952
4952
|
T,
|
|
4953
4953
|
Q,
|
|
4954
4954
|
(vt = x == null ? void 0 : x.metadata) == null ? void 0 : vt.comparisonMetadata
|
|
@@ -4978,12 +4978,12 @@ function oc({
|
|
|
4978
4978
|
}
|
|
4979
4979
|
};
|
|
4980
4980
|
ue(ye), fe(ye), r.sql && ((qn = (Qt = r.preferences) == null ? void 0 : Qt.tablePrefs) != null && qn.enableDevModePagination) && p(!0);
|
|
4981
|
-
}, be =
|
|
4981
|
+
}, be = eo(
|
|
4982
4982
|
je,
|
|
4983
4983
|
Re || void 0
|
|
4984
4984
|
), ge = ce(() => {
|
|
4985
4985
|
var te;
|
|
4986
|
-
return !ke || !Re ? null :
|
|
4986
|
+
return !ke || !Re ? null : to({
|
|
4987
4987
|
card: je,
|
|
4988
4988
|
data: Re,
|
|
4989
4989
|
cardType: D,
|
|
@@ -5014,7 +5014,7 @@ function oc({
|
|
|
5014
5014
|
Te
|
|
5015
5015
|
]);
|
|
5016
5016
|
function ne(te) {
|
|
5017
|
-
return /* @__PURE__ */ e(vs, { FallbackComponent: Sr, children: /* @__PURE__ */ e(
|
|
5017
|
+
return /* @__PURE__ */ e(vs, { FallbackComponent: Sr, children: /* @__PURE__ */ e(zd, { card: te }) });
|
|
5018
5018
|
}
|
|
5019
5019
|
function Oe() {
|
|
5020
5020
|
var te;
|
|
@@ -5030,11 +5030,11 @@ function oc({
|
|
|
5030
5030
|
showFeedbackButton: !0
|
|
5031
5031
|
}
|
|
5032
5032
|
) }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
|
|
5033
|
-
/* @__PURE__ */ e(
|
|
5033
|
+
/* @__PURE__ */ e(Pd, { className: "h-8 w-8 text-muted-foreground/40" }),
|
|
5034
5034
|
/* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: "No results to display" })
|
|
5035
5035
|
] });
|
|
5036
5036
|
if ((R || B) && (!(x != null && x.records) || x.records.length === 0) && !F)
|
|
5037
|
-
return D === "table" || D === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
5037
|
+
return D === "table" || D === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(Ld, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Gt, { size: "md", color: "muted", "aria-label": "Loading data" }) });
|
|
5038
5038
|
if (!T.id) return null;
|
|
5039
5039
|
if (D === "custom")
|
|
5040
5040
|
return ne(r);
|
|
@@ -5047,7 +5047,7 @@ function oc({
|
|
|
5047
5047
|
"custom"
|
|
5048
5048
|
].includes(D) && ge)
|
|
5049
5049
|
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: R || B ? /* @__PURE__ */ e(we, {}) : /* @__PURE__ */ e(
|
|
5050
|
-
|
|
5050
|
+
Vd,
|
|
5051
5051
|
{
|
|
5052
5052
|
cfg: ge
|
|
5053
5053
|
}
|
|
@@ -5070,7 +5070,7 @@ function oc({
|
|
|
5070
5070
|
) });
|
|
5071
5071
|
if (D === "matrixTable")
|
|
5072
5072
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
5073
|
-
|
|
5073
|
+
Bd,
|
|
5074
5074
|
{
|
|
5075
5075
|
card: T,
|
|
5076
5076
|
result: x == null ? void 0 : x.matrixResult,
|
|
@@ -5079,7 +5079,7 @@ function oc({
|
|
|
5079
5079
|
) });
|
|
5080
5080
|
if (D === "pivotTable" && Ne)
|
|
5081
5081
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
5082
|
-
|
|
5082
|
+
Yd,
|
|
5083
5083
|
{
|
|
5084
5084
|
card: T,
|
|
5085
5085
|
data: Ne.data,
|
|
@@ -5092,7 +5092,7 @@ function oc({
|
|
|
5092
5092
|
ue(He), fe(He);
|
|
5093
5093
|
},
|
|
5094
5094
|
onAggregationLabelChange: (Me) => {
|
|
5095
|
-
const ye =
|
|
5095
|
+
const ye = _d(
|
|
5096
5096
|
Me,
|
|
5097
5097
|
r.config
|
|
5098
5098
|
), He = { ...r, config: ye };
|
|
@@ -5102,7 +5102,7 @@ function oc({
|
|
|
5102
5102
|
) });
|
|
5103
5103
|
if (D === "aggregateTable")
|
|
5104
5104
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
5105
|
-
|
|
5105
|
+
$d,
|
|
5106
5106
|
{
|
|
5107
5107
|
card: T,
|
|
5108
5108
|
data: (x == null ? void 0 : x.records) || [],
|
|
@@ -5124,7 +5124,7 @@ function oc({
|
|
|
5124
5124
|
) });
|
|
5125
5125
|
}
|
|
5126
5126
|
return /* @__PURE__ */ n(
|
|
5127
|
-
|
|
5127
|
+
no,
|
|
5128
5128
|
{
|
|
5129
5129
|
role: "editor-visual-card",
|
|
5130
5130
|
className: G(
|
|
@@ -5139,7 +5139,7 @@ function oc({
|
|
|
5139
5139
|
children: [
|
|
5140
5140
|
(R || B) && (x == null ? void 0 : x.records) && x.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Gt, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
|
|
5141
5141
|
i && /* @__PURE__ */ n(
|
|
5142
|
-
|
|
5142
|
+
Ad,
|
|
5143
5143
|
{
|
|
5144
5144
|
className: G(
|
|
5145
5145
|
"flex flex-row items-start justify-between gap-4 px-4 pb-3 pt-3"
|
|
@@ -5148,7 +5148,7 @@ function oc({
|
|
|
5148
5148
|
children: [
|
|
5149
5149
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1 space-y-1", children: [
|
|
5150
5150
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
5151
|
-
/* @__PURE__ */ e(
|
|
5151
|
+
/* @__PURE__ */ e(Od, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
|
|
5152
5152
|
Ta,
|
|
5153
5153
|
{
|
|
5154
5154
|
value: r.title,
|
|
@@ -5187,7 +5187,7 @@ function oc({
|
|
|
5187
5187
|
inputClassName: "text-sm"
|
|
5188
5188
|
}
|
|
5189
5189
|
) }),
|
|
5190
|
-
/* @__PURE__ */ e(
|
|
5190
|
+
/* @__PURE__ */ e(Fd, { filter: y })
|
|
5191
5191
|
] })
|
|
5192
5192
|
]
|
|
5193
5193
|
}
|
|
@@ -5198,7 +5198,7 @@ function oc({
|
|
|
5198
5198
|
className: "px-4 pb-2",
|
|
5199
5199
|
style: c.cardGutterStyle,
|
|
5200
5200
|
children: /* @__PURE__ */ e(
|
|
5201
|
-
|
|
5201
|
+
Rd,
|
|
5202
5202
|
{
|
|
5203
5203
|
card: r,
|
|
5204
5204
|
sheetId: g || "",
|
|
@@ -5210,7 +5210,7 @@ function oc({
|
|
|
5210
5210
|
}
|
|
5211
5211
|
),
|
|
5212
5212
|
/* @__PURE__ */ n(
|
|
5213
|
-
|
|
5213
|
+
ao,
|
|
5214
5214
|
{
|
|
5215
5215
|
className: G(
|
|
5216
5216
|
"flex min-h-0 grow flex-col",
|
|
@@ -5219,8 +5219,8 @@ function oc({
|
|
|
5219
5219
|
style: k && !L ? void 0 : c.cardGutterStyle,
|
|
5220
5220
|
children: [
|
|
5221
5221
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 grow basis-0", children: Oe() }),
|
|
5222
|
-
|
|
5223
|
-
|
|
5222
|
+
so(T) && /* @__PURE__ */ e("div", { className: G("pt-3", k && "px-4"), children: /* @__PURE__ */ e(
|
|
5223
|
+
ro,
|
|
5224
5224
|
{
|
|
5225
5225
|
card: T,
|
|
5226
5226
|
mode: "editor",
|
|
@@ -5371,10 +5371,10 @@ function Qf({
|
|
|
5371
5371
|
className: a,
|
|
5372
5372
|
label: s = "Customize Visual"
|
|
5373
5373
|
} = {}) {
|
|
5374
|
-
const [r, c] = K(!1), [l, i] = K(""), [o, d] = K(""), [u, m] = K(""), [g, p] = K(""), h = P((k) => k.card), v = Dt(), O = P((k) => k.card.customCfg), y = O ? JSON.stringify(O, null, 2) : "", f = ce(() => v !== h.type ? { ...h, type: v } : h, [h, v]), { data: S } = Ot(f), { data: I } = Cr(h), C =
|
|
5374
|
+
const [r, c] = K(!1), [l, i] = K(""), [o, d] = K(""), [u, m] = K(""), [g, p] = K(""), h = P((k) => k.card), v = Dt(), O = P((k) => k.card.customCfg), y = O ? JSON.stringify(O, null, 2) : "", f = ce(() => v !== h.type ? { ...h, type: v } : h, [h, v]), { data: S } = Ot(f), { data: I } = Cr(h), C = eo(h, S == null ? void 0 : S.records), { setCardCustomCfg: N, setCustomVisualCode: M } = Ce(), w = () => {
|
|
5375
5375
|
var E, x, R;
|
|
5376
5376
|
if (!((E = S == null ? void 0 : S.records) != null && E.length)) return;
|
|
5377
|
-
const k =
|
|
5377
|
+
const k = to({
|
|
5378
5378
|
card: h,
|
|
5379
5379
|
data: S.records,
|
|
5380
5380
|
cardType: h.type,
|
|
@@ -5389,7 +5389,7 @@ function Qf({
|
|
|
5389
5389
|
});
|
|
5390
5390
|
if (k) {
|
|
5391
5391
|
i(bi(k)), m(((R = h.preferences) == null ? void 0 : R.customVisualCode) || "");
|
|
5392
|
-
const B =
|
|
5392
|
+
const B = qd(k, O);
|
|
5393
5393
|
d(bi(B));
|
|
5394
5394
|
}
|
|
5395
5395
|
}, D = () => {
|
|
@@ -5397,7 +5397,7 @@ function Qf({
|
|
|
5397
5397
|
if (u && M(u), o) {
|
|
5398
5398
|
const k = JSON.parse(
|
|
5399
5399
|
o
|
|
5400
|
-
), E =
|
|
5400
|
+
), E = mp(
|
|
5401
5401
|
JSON.parse(l),
|
|
5402
5402
|
k
|
|
5403
5403
|
);
|
|
@@ -5408,7 +5408,7 @@ function Qf({
|
|
|
5408
5408
|
}
|
|
5409
5409
|
}, T = Object.keys(O || {}).length === 0;
|
|
5410
5410
|
return /* @__PURE__ */ n(xn, { open: r, onOpenChange: c, children: [
|
|
5411
|
-
/* @__PURE__ */ e(
|
|
5411
|
+
/* @__PURE__ */ e(jd, { asChild: !0, children: t === "menu" ? /* @__PURE__ */ n(
|
|
5412
5412
|
ee,
|
|
5413
5413
|
{
|
|
5414
5414
|
variant: "ghost",
|
|
@@ -5482,8 +5482,8 @@ function $r({
|
|
|
5482
5482
|
className: r = "h-6 w-6"
|
|
5483
5483
|
}) {
|
|
5484
5484
|
if (!s && t)
|
|
5485
|
-
return
|
|
5486
|
-
const c =
|
|
5485
|
+
return lo(t, r);
|
|
5486
|
+
const c = io(a);
|
|
5487
5487
|
if (c)
|
|
5488
5488
|
return Jt.cloneElement(c, { className: r });
|
|
5489
5489
|
const l = Jf(a), i = Wf(a);
|
|
@@ -5514,7 +5514,7 @@ function Xf({ isStarred: t, onClick: a, className: s }) {
|
|
|
5514
5514
|
),
|
|
5515
5515
|
"aria-label": t ? "Remove from favorites" : "Add to favorites",
|
|
5516
5516
|
children: /* @__PURE__ */ e(
|
|
5517
|
-
|
|
5517
|
+
Kd,
|
|
5518
5518
|
{
|
|
5519
5519
|
className: G(
|
|
5520
5520
|
"h-3.5 w-3.5 transition-colors",
|
|
@@ -5775,7 +5775,7 @@ function tg({
|
|
|
5775
5775
|
return /* @__PURE__ */ e(E, { className: "h-4 w-4" });
|
|
5776
5776
|
}
|
|
5777
5777
|
if (v === "custom" && O) {
|
|
5778
|
-
const E =
|
|
5778
|
+
const E = io(O);
|
|
5779
5779
|
return E || /* @__PURE__ */ e(
|
|
5780
5780
|
$r,
|
|
5781
5781
|
{
|
|
@@ -5922,23 +5922,23 @@ const Jn = {
|
|
|
5922
5922
|
matrixTable: ms,
|
|
5923
5923
|
bar: Ns,
|
|
5924
5924
|
line: ys,
|
|
5925
|
-
stackedBar:
|
|
5926
|
-
stackedLine:
|
|
5927
|
-
scatter:
|
|
5928
|
-
bubble:
|
|
5929
|
-
pie:
|
|
5930
|
-
doughnut:
|
|
5931
|
-
kpi:
|
|
5932
|
-
treemap:
|
|
5933
|
-
bullet:
|
|
5934
|
-
funnel:
|
|
5935
|
-
tornado:
|
|
5925
|
+
stackedBar: su,
|
|
5926
|
+
stackedLine: au,
|
|
5927
|
+
scatter: uo,
|
|
5928
|
+
bubble: nu,
|
|
5929
|
+
pie: tu,
|
|
5930
|
+
doughnut: eu,
|
|
5931
|
+
kpi: Zd,
|
|
5932
|
+
treemap: co,
|
|
5933
|
+
bullet: oo,
|
|
5934
|
+
funnel: Xd,
|
|
5935
|
+
tornado: Jd,
|
|
5936
5936
|
heatmap: ms,
|
|
5937
|
-
range:
|
|
5938
|
-
radar:
|
|
5939
|
-
polarArea:
|
|
5940
|
-
text:
|
|
5941
|
-
map:
|
|
5937
|
+
range: Wd,
|
|
5938
|
+
radar: Qd,
|
|
5939
|
+
polarArea: Hd,
|
|
5940
|
+
text: Gd,
|
|
5941
|
+
map: Ud
|
|
5942
5942
|
}, Ma = {
|
|
5943
5943
|
table: "Table",
|
|
5944
5944
|
matrixTable: "Matrix Table",
|
|
@@ -6406,13 +6406,13 @@ function jr({
|
|
|
6406
6406
|
var R, B;
|
|
6407
6407
|
const M = N.qualifiedFieldName || N.name;
|
|
6408
6408
|
if (v.find(
|
|
6409
|
-
(b) =>
|
|
6409
|
+
(b) => lu(b, N)
|
|
6410
6410
|
))
|
|
6411
6411
|
return;
|
|
6412
|
-
const D = N.qualifiedFieldName ? N.qualifiedFieldName.split(".").slice(0, -1).join(".") : N.qualifiedEntityName || N.entityName, T =
|
|
6412
|
+
const D = N.qualifiedFieldName ? N.qualifiedFieldName.split(".").slice(0, -1).join(".") : N.qualifiedEntityName || N.entityName, T = iu(N), k = ou(l == null ? void 0 : l.dataSource, {
|
|
6413
6413
|
connectionId: i || ((R = l == null ? void 0 : l.dataSource) == null ? void 0 : R.connectionId),
|
|
6414
6414
|
connectionType: (B = l == null ? void 0 : l.dataSource) == null ? void 0 : B.connectionType
|
|
6415
|
-
}, N), E =
|
|
6415
|
+
}, N), E = cu(l == null ? void 0 : l.dataSource, k, N) || "", x = {
|
|
6416
6416
|
id: Rn(),
|
|
6417
6417
|
column: M,
|
|
6418
6418
|
title: N.label || N.name,
|
|
@@ -6452,7 +6452,7 @@ function jr({
|
|
|
6452
6452
|
const T = w.find((E) => E.id === N);
|
|
6453
6453
|
if (!T)
|
|
6454
6454
|
return;
|
|
6455
|
-
const k =
|
|
6455
|
+
const k = Th(
|
|
6456
6456
|
T,
|
|
6457
6457
|
O
|
|
6458
6458
|
);
|
|
@@ -6530,7 +6530,7 @@ function jr({
|
|
|
6530
6530
|
items: [],
|
|
6531
6531
|
strategy: ea,
|
|
6532
6532
|
children: /* @__PURE__ */ e(
|
|
6533
|
-
|
|
6533
|
+
ru,
|
|
6534
6534
|
{
|
|
6535
6535
|
context: "inline-filter",
|
|
6536
6536
|
onFieldSelect: y,
|
|
@@ -6567,7 +6567,7 @@ function rg({
|
|
|
6567
6567
|
/* @__PURE__ */ e("span", { className: "truncate", title: t.column, children: t.title }),
|
|
6568
6568
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-0.5", children: [
|
|
6569
6569
|
/* @__PURE__ */ e(
|
|
6570
|
-
|
|
6570
|
+
du,
|
|
6571
6571
|
{
|
|
6572
6572
|
filter: t,
|
|
6573
6573
|
variant: "inline",
|
|
@@ -6655,10 +6655,10 @@ function dg({
|
|
|
6655
6655
|
...t.controls || []
|
|
6656
6656
|
], [d, u] = K(
|
|
6657
6657
|
{}
|
|
6658
|
-
), m =
|
|
6658
|
+
), m = hp({
|
|
6659
6659
|
sql: t.sql,
|
|
6660
6660
|
controlBindings: t.controlBindings
|
|
6661
|
-
}), g =
|
|
6661
|
+
}), g = kh(t), p = new Set(
|
|
6662
6662
|
s.map((I) => xs(I.controlId, I.target))
|
|
6663
6663
|
), h = o.some(
|
|
6664
6664
|
(I) => Vo({
|
|
@@ -6752,7 +6752,7 @@ function dg({
|
|
|
6752
6752
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2 rounded-md bg-muted/40 px-2 py-1", children: [
|
|
6753
6753
|
/* @__PURE__ */ e("code", { className: "text-xs", children: C.reference }),
|
|
6754
6754
|
/* @__PURE__ */ e(
|
|
6755
|
-
|
|
6755
|
+
Xi,
|
|
6756
6756
|
{
|
|
6757
6757
|
text: C.reference,
|
|
6758
6758
|
ariaLabel: `Copy ${C.reference}`
|
|
@@ -6777,7 +6777,7 @@ function dg({
|
|
|
6777
6777
|
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((I, C) => {
|
|
6778
6778
|
const N = g[I.target] || [], M = o.find(
|
|
6779
6779
|
(b) => b.id === I.controlId
|
|
6780
|
-
), w = M ?
|
|
6780
|
+
), w = M ? Dh(M) : null, D = (w == null ? void 0 : w.source.kind) === "manual" ? w.source.options : [], T = O(I.target), k = Array.from(
|
|
6781
6781
|
/* @__PURE__ */ new Set([
|
|
6782
6782
|
...D.map((b) => b.value),
|
|
6783
6783
|
...Object.keys(I.mapping)
|
|
@@ -6941,13 +6941,13 @@ function dg({
|
|
|
6941
6941
|
] });
|
|
6942
6942
|
}
|
|
6943
6943
|
function ug(t, a) {
|
|
6944
|
-
const { eligibleTargets: s } =
|
|
6944
|
+
const { eligibleTargets: s } = mo(
|
|
6945
6945
|
t,
|
|
6946
6946
|
a
|
|
6947
|
-
), r =
|
|
6947
|
+
), r = pu(t), c = new Map(
|
|
6948
6948
|
r.map((i) => [i.id, i])
|
|
6949
6949
|
), l = new Map(
|
|
6950
|
-
|
|
6950
|
+
fu(t).map((i) => {
|
|
6951
6951
|
var o, d, u;
|
|
6952
6952
|
return [
|
|
6953
6953
|
i.measureId,
|
|
@@ -6958,7 +6958,7 @@ function ug(t, a) {
|
|
|
6958
6958
|
return s.map((i) => {
|
|
6959
6959
|
var o;
|
|
6960
6960
|
return {
|
|
6961
|
-
key:
|
|
6961
|
+
key: ho(i),
|
|
6962
6962
|
label: i.kind === "metric" ? ((o = c.get(i.metricId)) == null ? void 0 : o.label) || i.metricId : i.kind === "column" ? i.columnKey : l.get(i.measureId) || i.measureId,
|
|
6963
6963
|
target: i
|
|
6964
6964
|
};
|
|
@@ -6974,22 +6974,22 @@ function hg({
|
|
|
6974
6974
|
bindings: r,
|
|
6975
6975
|
onChange: c
|
|
6976
6976
|
}) {
|
|
6977
|
-
const l = [...a, ...t.controls || []], i = l.filter(
|
|
6977
|
+
const l = [...a, ...t.controls || []], i = l.filter(uu), o = ce(
|
|
6978
6978
|
() => ug(t, s),
|
|
6979
6979
|
[t, s]
|
|
6980
6980
|
), d = ce(
|
|
6981
|
-
() =>
|
|
6981
|
+
() => mo(t, s),
|
|
6982
6982
|
[t, s]
|
|
6983
|
-
), u =
|
|
6983
|
+
), u = mu({
|
|
6984
6984
|
bindings: r,
|
|
6985
6985
|
controls: l,
|
|
6986
6986
|
...d
|
|
6987
|
-
}), { preferences: m, resolveBoundCurrency: g } =
|
|
6988
|
-
(I) => I.presentationTarget && y &&
|
|
6987
|
+
}), { preferences: m, resolveBoundCurrency: g } = hu(t, s), [p, h] = K(""), [v, O] = K(""), y = o.find((I) => I.key === v), f = !!(p && y) && !r.some(
|
|
6988
|
+
(I) => I.presentationTarget && y && ho(I.presentationTarget) === y.key
|
|
6989
6989
|
), S = (I) => {
|
|
6990
6990
|
if (!m)
|
|
6991
6991
|
return;
|
|
6992
|
-
const C =
|
|
6992
|
+
const C = gu({
|
|
6993
6993
|
card: t,
|
|
6994
6994
|
target: I,
|
|
6995
6995
|
resultColumnKeys: s,
|
|
@@ -7086,15 +7086,15 @@ function qr({
|
|
|
7086
7086
|
}, [o == null ? void 0 : o.id, l, O]), Se(() => {
|
|
7087
7087
|
!l && O !== null && y(null);
|
|
7088
7088
|
}, [l, O]);
|
|
7089
|
-
const f = ce(() => O ? (d == null ? void 0 : d.cards.find((A) => A.id === O)) || ((o == null ? void 0 : o.id) === O ? o : void 0) : o, [o, d == null ? void 0 : d.cards, O]), S = (f == null ? void 0 : f.controls) || [], I = f ?
|
|
7090
|
-
|
|
7089
|
+
const f = ce(() => O ? (d == null ? void 0 : d.cards.find((A) => A.id === O)) || ((o == null ? void 0 : o.id) === O ? o : void 0) : o, [o, d == null ? void 0 : d.cards, O]), S = (f == null ? void 0 : f.controls) || [], I = f ? Mh(m, { excludeCardId: f.id }) : p.map((A) => A.id), C = ((f == null ? void 0 : f.controlBindings) || []).filter(
|
|
7090
|
+
xu
|
|
7091
7091
|
), N = ((f == null ? void 0 : f.controlBindings) || []).filter(
|
|
7092
7092
|
Bs
|
|
7093
|
-
), M =
|
|
7093
|
+
), M = bu({
|
|
7094
7094
|
card: f,
|
|
7095
7095
|
controls: S
|
|
7096
7096
|
}), w = {
|
|
7097
|
-
choices:
|
|
7097
|
+
choices: Ih(f),
|
|
7098
7098
|
targetMap: Object.fromEntries(
|
|
7099
7099
|
(((b = f == null ? void 0 : f.config) == null ? void 0 : b.groupByColumns) || []).map((A) => [
|
|
7100
7100
|
A.id,
|
|
@@ -7102,7 +7102,7 @@ function qr({
|
|
|
7102
7102
|
])
|
|
7103
7103
|
)
|
|
7104
7104
|
}, D = {
|
|
7105
|
-
choices:
|
|
7105
|
+
choices: Eh(f),
|
|
7106
7106
|
targetMap: Object.fromEntries(
|
|
7107
7107
|
(((V = f == null ? void 0 : f.config) == null ? void 0 : V.metricColumns) || []).map((A) => [
|
|
7108
7108
|
A.id,
|
|
@@ -7128,7 +7128,7 @@ function qr({
|
|
|
7128
7128
|
}) : f, _ = {
|
|
7129
7129
|
...F,
|
|
7130
7130
|
controls: A,
|
|
7131
|
-
controlBindings:
|
|
7131
|
+
controlBindings: Ah(
|
|
7132
7132
|
F.controlBindings,
|
|
7133
7133
|
A
|
|
7134
7134
|
)
|
|
@@ -7140,7 +7140,7 @@ function qr({
|
|
|
7140
7140
|
const L = {
|
|
7141
7141
|
...f,
|
|
7142
7142
|
controlBindings: [
|
|
7143
|
-
...
|
|
7143
|
+
...Oh(
|
|
7144
7144
|
A,
|
|
7145
7145
|
(f.controlBindings || []).filter(
|
|
7146
7146
|
(F) => !Bs(F)
|
|
@@ -7278,7 +7278,7 @@ function pc({
|
|
|
7278
7278
|
var v, O;
|
|
7279
7279
|
return (O = (v = h.card) == null ? void 0 : v.preferences) == null ? void 0 : O.chartOptions;
|
|
7280
7280
|
}
|
|
7281
|
-
), o =
|
|
7281
|
+
), o = vu(i), { setChartGrid: d } = Ce();
|
|
7282
7282
|
function u() {
|
|
7283
7283
|
const h = ["xy", "none", "x", "y"], O = (h.indexOf(o) + 1) % h.length;
|
|
7284
7284
|
d(h[O]);
|
|
@@ -7483,7 +7483,7 @@ function gg({
|
|
|
7483
7483
|
],
|
|
7484
7484
|
...$ === "text" ? {
|
|
7485
7485
|
textVisualOptions: {
|
|
7486
|
-
richContent:
|
|
7486
|
+
richContent: Ph()
|
|
7487
7487
|
}
|
|
7488
7488
|
} : {}
|
|
7489
7489
|
},
|
|
@@ -7545,7 +7545,7 @@ function gg({
|
|
|
7545
7545
|
// Multi-input visual: Icon + Slot Label (non-editable, no eye icon)
|
|
7546
7546
|
/* @__PURE__ */ e(Lt, { delayDuration: 0, children: /* @__PURE__ */ n(Ct, { children: [
|
|
7547
7547
|
/* @__PURE__ */ e(wt, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
7548
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children:
|
|
7548
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: lo(U, "size-3.5") }),
|
|
7549
7549
|
/* @__PURE__ */ e("span", { children: W.label || `Tab ${j + 1}` })
|
|
7550
7550
|
] }) }),
|
|
7551
7551
|
/* @__PURE__ */ e(
|
|
@@ -7569,7 +7569,7 @@ function gg({
|
|
|
7569
7569
|
/* @__PURE__ */ n(we, { children: [
|
|
7570
7570
|
b(r, Y),
|
|
7571
7571
|
/* @__PURE__ */ e(
|
|
7572
|
-
|
|
7572
|
+
Du,
|
|
7573
7573
|
{
|
|
7574
7574
|
enabled: r.activeCardId === Y.id,
|
|
7575
7575
|
text: Y.tabTitle || Y.title,
|
|
@@ -7583,7 +7583,7 @@ function gg({
|
|
|
7583
7583
|
] })
|
|
7584
7584
|
),
|
|
7585
7585
|
!i && r.activeCardId === Y.id && !J && /* @__PURE__ */ e(
|
|
7586
|
-
|
|
7586
|
+
Mu,
|
|
7587
7587
|
{
|
|
7588
7588
|
className: "h-3 w-3 text-muted-foreground hover:text-foreground",
|
|
7589
7589
|
onClick: (fe) => {
|
|
@@ -7636,7 +7636,7 @@ function Fn({
|
|
|
7636
7636
|
alwaysRenderOverride: a = !1
|
|
7637
7637
|
} = {}) {
|
|
7638
7638
|
var st, Ge, ht, bt, vt;
|
|
7639
|
-
const s =
|
|
7639
|
+
const s = po(), r = P((he) => he.frame), c = P((he) => he.card), [l, i] = K(!1), o = ce(
|
|
7640
7640
|
() => jn(r, c),
|
|
7641
7641
|
[r, c]
|
|
7642
7642
|
), d = P((he) => he.isSqlRunning);
|
|
@@ -7651,8 +7651,8 @@ function Fn({
|
|
|
7651
7651
|
initializeModeDrafts: O
|
|
7652
7652
|
} = Ce(), [y, f] = K({}), [S, I] = K(
|
|
7653
7653
|
() => /* @__PURE__ */ new Set()
|
|
7654
|
-
), { authToken: C } = zn(), N =
|
|
7655
|
-
() =>
|
|
7654
|
+
), { authToken: C } = zn(), N = Fh(C == null ? void 0 : C.accessToken), { compiledAppearance: M } = Ip(), w = ce(
|
|
7655
|
+
() => yu(M),
|
|
7656
7656
|
[M]
|
|
7657
7657
|
), {
|
|
7658
7658
|
getCard: D,
|
|
@@ -7722,15 +7722,15 @@ function Fn({
|
|
|
7722
7722
|
),
|
|
7723
7723
|
[A, R == null ? void 0 : R.slots]
|
|
7724
7724
|
), We = ce(
|
|
7725
|
-
() =>
|
|
7726
|
-
|
|
7725
|
+
() => Nu(
|
|
7726
|
+
Cu({
|
|
7727
7727
|
slotOrderedCards: A,
|
|
7728
7728
|
multiInputData: y,
|
|
7729
7729
|
valueFormatPreferences: s
|
|
7730
7730
|
})
|
|
7731
7731
|
),
|
|
7732
7732
|
[y, A, s]
|
|
7733
|
-
), et =
|
|
7733
|
+
), et = Rh(
|
|
7734
7734
|
(he) => he.interactionStates
|
|
7735
7735
|
), at = ve((he) => {
|
|
7736
7736
|
var te;
|
|
@@ -7742,7 +7742,7 @@ function Fn({
|
|
|
7742
7742
|
), Ne = P(
|
|
7743
7743
|
(he) => he.actions.removeCardInlineFilterValue
|
|
7744
7744
|
), Be = ce(
|
|
7745
|
-
() => o ?
|
|
7745
|
+
() => o ? wu({
|
|
7746
7746
|
card: o,
|
|
7747
7747
|
sheetId: Re || "",
|
|
7748
7748
|
inlineFilterValues: je,
|
|
@@ -7757,7 +7757,7 @@ function Fn({
|
|
|
7757
7757
|
Ne
|
|
7758
7758
|
]
|
|
7759
7759
|
), { cardFilters: me, cardFilterValues: be } = ce(
|
|
7760
|
-
() => o ?
|
|
7760
|
+
() => o ? Su({
|
|
7761
7761
|
card: o,
|
|
7762
7762
|
interactionStates: et,
|
|
7763
7763
|
currentDashboardId: at,
|
|
@@ -7798,7 +7798,7 @@ function Fn({
|
|
|
7798
7798
|
R == null ? void 0 : R.slots
|
|
7799
7799
|
);
|
|
7800
7800
|
return /* @__PURE__ */ e(
|
|
7801
|
-
|
|
7801
|
+
Iu,
|
|
7802
7802
|
{
|
|
7803
7803
|
onLoadingStatus: nt,
|
|
7804
7804
|
onDataChange: tt,
|
|
@@ -7824,7 +7824,7 @@ function Fn({
|
|
|
7824
7824
|
x,
|
|
7825
7825
|
{
|
|
7826
7826
|
editing: !0,
|
|
7827
|
-
...
|
|
7827
|
+
...Eu({
|
|
7828
7828
|
configCard: o,
|
|
7829
7829
|
slotOrderedCards: A,
|
|
7830
7830
|
slotTypes: qe,
|
|
@@ -7865,7 +7865,7 @@ function Fn({
|
|
|
7865
7865
|
}
|
|
7866
7866
|
) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ n("div", { className: "w-1/2 space-y-3", children: [
|
|
7867
7867
|
/* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
7868
|
-
|
|
7868
|
+
Tu,
|
|
7869
7869
|
{
|
|
7870
7870
|
card: c,
|
|
7871
7871
|
data: Y == null ? void 0 : Y.records,
|
|
@@ -7874,7 +7874,7 @@ function Fn({
|
|
|
7874
7874
|
comparisonMetadata: (he = Y == null ? void 0 : Y.metadata) == null ? void 0 : he.comparisonMetadata
|
|
7875
7875
|
}
|
|
7876
7876
|
) }),
|
|
7877
|
-
|
|
7877
|
+
so(c) && /* @__PURE__ */ e(ro, { card: c, mode: "editor", records: Y == null ? void 0 : Y.records })
|
|
7878
7878
|
] }) }) : c.type === "text" ? j || W ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Gt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : ze ? /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col overflow-auto px-4 py-0", children: /* @__PURE__ */ e(
|
|
7879
7879
|
As,
|
|
7880
7880
|
{
|
|
@@ -7884,7 +7884,7 @@ function Fn({
|
|
|
7884
7884
|
onDebugWithAssistant: ke,
|
|
7885
7885
|
showFeedbackButton: !1
|
|
7886
7886
|
}
|
|
7887
|
-
) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(
|
|
7887
|
+
) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(ku, { isLoading: d, card: c, data: Y == null ? void 0 : Y.records }) }) : /* @__PURE__ */ e(
|
|
7888
7888
|
vs,
|
|
7889
7889
|
{
|
|
7890
7890
|
FallbackComponent: Sr,
|
|
@@ -7960,7 +7960,7 @@ function fc({
|
|
|
7960
7960
|
() => ti(u),
|
|
7961
7961
|
[u]
|
|
7962
7962
|
), v = ce(
|
|
7963
|
-
() =>
|
|
7963
|
+
() => Lh(h),
|
|
7964
7964
|
[h]
|
|
7965
7965
|
), O = !!d, y = ce(
|
|
7966
7966
|
() => {
|
|
@@ -8071,8 +8071,8 @@ function fc({
|
|
|
8071
8071
|
"Visual Code"
|
|
8072
8072
|
] }),
|
|
8073
8073
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
8074
|
-
/* @__PURE__ */ n(
|
|
8075
|
-
/* @__PURE__ */ e(
|
|
8074
|
+
/* @__PURE__ */ n(Au, { children: [
|
|
8075
|
+
/* @__PURE__ */ e(Ou, { asChild: !0, children: /* @__PURE__ */ n(
|
|
8076
8076
|
ee,
|
|
8077
8077
|
{
|
|
8078
8078
|
type: "button",
|
|
@@ -8086,15 +8086,15 @@ function fc({
|
|
|
8086
8086
|
]
|
|
8087
8087
|
}
|
|
8088
8088
|
) }),
|
|
8089
|
-
/* @__PURE__ */ n(
|
|
8090
|
-
/* @__PURE__ */ n(
|
|
8091
|
-
/* @__PURE__ */ e(
|
|
8092
|
-
/* @__PURE__ */ e(
|
|
8089
|
+
/* @__PURE__ */ n(Fu, { children: [
|
|
8090
|
+
/* @__PURE__ */ n(Ru, { children: [
|
|
8091
|
+
/* @__PURE__ */ e(Pu, { children: "Clear dynamic visual?" }),
|
|
8092
|
+
/* @__PURE__ */ e(Lu, { children: "This removes the saved dynamic renderer and switches the card back to built-in mode. The underlying query and built-in chart type will remain." })
|
|
8093
8093
|
] }),
|
|
8094
|
-
/* @__PURE__ */ n(
|
|
8095
|
-
/* @__PURE__ */ e(
|
|
8094
|
+
/* @__PURE__ */ n(Vu, { children: [
|
|
8095
|
+
/* @__PURE__ */ e(Bu, { children: "Cancel" }),
|
|
8096
8096
|
/* @__PURE__ */ e(
|
|
8097
|
-
|
|
8097
|
+
Yu,
|
|
8098
8098
|
{
|
|
8099
8099
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
8100
8100
|
onClick: x,
|
|
@@ -8205,12 +8205,12 @@ function gc({
|
|
|
8205
8205
|
const a = P((u) => u.card), s = P((u) => u.frame), r = P(
|
|
8206
8206
|
(u) => u.actions.setIsShowingVisual
|
|
8207
8207
|
), { setVisualizationMode: c, setDynamicCardPreferences: l } = Ce(), o = ca(a) === "dynamic";
|
|
8208
|
-
if (s.cards.length !== 1 ||
|
|
8208
|
+
if (s.cards.length !== 1 || Vh(a))
|
|
8209
8209
|
return null;
|
|
8210
8210
|
const d = (u) => {
|
|
8211
8211
|
var m;
|
|
8212
8212
|
u === "dynamic" && !a.dynamicCardPreferences && l(
|
|
8213
|
-
|
|
8213
|
+
Bh(
|
|
8214
8214
|
a.type,
|
|
8215
8215
|
(m = a.preferences) == null ? void 0 : m.displayOptions
|
|
8216
8216
|
)
|
|
@@ -8312,7 +8312,7 @@ function Ws({
|
|
|
8312
8312
|
var be;
|
|
8313
8313
|
const o = Ui(), d = P((ge) => ge.frame), u = P((ge) => ge.card), m = P((ge) => ge.isDevMode), g = P((ge) => ge.editorContext), p = (g == null ? void 0 : g.type) === "documentSection", h = P((ge) => ge.isShowingVisual), v = P(
|
|
8314
8314
|
(ge) => ge.actions.setIsShowingVisual
|
|
8315
|
-
), O = ve((ge) => ge.isVisualEditing), { isConsoleMode: y } =
|
|
8315
|
+
), O = ve((ge) => ge.isVisualEditing), { isConsoleMode: y } = _u(), f = P((ge) => ge.pythonStdOut), S = P((ge) => ge.actions.setRunSql), I = Dt(), C = I === "table" || I === "detailTable" || I === "matrixTable", M = Lr(I) && !!(a != null && a.onOpen), D = ca(u) === "dynamic", [T, k] = K(!1), E = l ?? T, x = i ?? k, {
|
|
8316
8316
|
setFrame: R,
|
|
8317
8317
|
setCard: B,
|
|
8318
8318
|
setActiveTabCardId: b,
|
|
@@ -8643,7 +8643,7 @@ function Ws({
|
|
|
8643
8643
|
onSelect: Q,
|
|
8644
8644
|
className: "gap-2 text-[13px]",
|
|
8645
8645
|
children: [
|
|
8646
|
-
/* @__PURE__ */ e(
|
|
8646
|
+
/* @__PURE__ */ e($u, { className: "h-3.5 w-3.5" }),
|
|
8647
8647
|
"Download CSV"
|
|
8648
8648
|
]
|
|
8649
8649
|
}
|
|
@@ -9029,7 +9029,7 @@ function bc() {
|
|
|
9029
9029
|
var x, R, B;
|
|
9030
9030
|
const t = P(
|
|
9031
9031
|
(b) => b.card.customCardPreferences
|
|
9032
|
-
), { data: a } =
|
|
9032
|
+
), { data: a } = zu(), s = (a == null ? void 0 : a.plugins) || [], r = P((b) => b.card), c = P((b) => b.frame), { setCustomCardPreferences: l } = Ce(), i = ce(
|
|
9033
9033
|
() => jn(c, r),
|
|
9034
9034
|
[c, r]
|
|
9035
9035
|
), o = i == null ? void 0 : i.customCardPreferences, { components: d, manifest: u } = wn(
|
|
@@ -9218,7 +9218,7 @@ function bc() {
|
|
|
9218
9218
|
] })
|
|
9219
9219
|
] }) })
|
|
9220
9220
|
] }),
|
|
9221
|
-
p && I.length > 0 && /* @__PURE__ */ e(
|
|
9221
|
+
p && I.length > 0 && /* @__PURE__ */ e(fo, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(go, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: I.map((b, V) => /* @__PURE__ */ e("li", { children: b.message }, `${b.type}-${V}`)) }) }) }),
|
|
9222
9222
|
m && !p && m.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: k({
|
|
9223
9223
|
settingsSchema: m.settings,
|
|
9224
9224
|
settingsField: "settings",
|
|
@@ -9330,9 +9330,9 @@ function bc() {
|
|
|
9330
9330
|
m.docs.dataSchema && /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
9331
9331
|
/* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
|
|
9332
9332
|
/* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
|
|
9333
|
-
|
|
9333
|
+
ju,
|
|
9334
9334
|
{
|
|
9335
|
-
remarkPlugins: [
|
|
9335
|
+
remarkPlugins: [qu],
|
|
9336
9336
|
components: Cg,
|
|
9337
9337
|
children: m.docs.dataSchema
|
|
9338
9338
|
}
|
|
@@ -10082,7 +10082,7 @@ function Ag(t) {
|
|
|
10082
10082
|
var s;
|
|
10083
10083
|
const a = Yo(
|
|
10084
10084
|
(s = t == null ? void 0 : t.kpiVisualOptions) == null ? void 0 : s.formatOptions
|
|
10085
|
-
) || (t != null && t.formatNumber ?
|
|
10085
|
+
) || (t != null && t.formatNumber ? Yh(t == null ? void 0 : t.formatNumber) : void 0);
|
|
10086
10086
|
return _o(a, { preserveOmittedProperties: !0 }) || {
|
|
10087
10087
|
type: "number",
|
|
10088
10088
|
minimumFractionDigits: 0,
|
|
@@ -10106,7 +10106,7 @@ function Og() {
|
|
|
10106
10106
|
}
|
|
10107
10107
|
), r = P(
|
|
10108
10108
|
(y) => y.actions.setColorRanges
|
|
10109
|
-
), c =
|
|
10109
|
+
), c = xo() ?? ja.locale, l = bo() ?? ja.defaultCurrency, i = !Ku(t) && da(t.config), o = Ag(t.preferences), d = !!Yo(
|
|
10110
10110
|
(h = (p = t.preferences) == null ? void 0 : p.kpiVisualOptions) == null ? void 0 : h.formatOptions
|
|
10111
10111
|
), u = !Eg((v = t.preferences) == null ? void 0 : v.formatNumber) && (d || !!((O = t.preferences) != null && O.formatNumber)), m = (y) => {
|
|
10112
10112
|
const f = P.getState().card.preferences ?? {};
|
|
@@ -10490,7 +10490,7 @@ function Rg({
|
|
|
10490
10490
|
className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
|
|
10491
10491
|
children: [
|
|
10492
10492
|
"View documentation",
|
|
10493
|
-
/* @__PURE__ */ e(
|
|
10493
|
+
/* @__PURE__ */ e(Uu, { className: "h-3 w-3" })
|
|
10494
10494
|
]
|
|
10495
10495
|
}
|
|
10496
10496
|
)
|
|
@@ -10596,7 +10596,7 @@ function Ti({
|
|
|
10596
10596
|
children: [
|
|
10597
10597
|
/* @__PURE__ */ n("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
10598
10598
|
/* @__PURE__ */ e(z, { children: a }),
|
|
10599
|
-
/* @__PURE__ */ e(
|
|
10599
|
+
/* @__PURE__ */ e(_h, { className: "h-4 w-4" })
|
|
10600
10600
|
] }),
|
|
10601
10601
|
/* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
|
|
10602
10602
|
]
|
|
@@ -11209,7 +11209,7 @@ function qg() {
|
|
|
11209
11209
|
return ((f = y.comparison) == null ? void 0 : f.mode) === "explicit";
|
|
11210
11210
|
}
|
|
11211
11211
|
);
|
|
11212
|
-
if (
|
|
11212
|
+
if (!$h.includes(s))
|
|
11213
11213
|
return null;
|
|
11214
11214
|
const o = ((h = t.preferences) == null ? void 0 : h.comparisonPresentation) || {}, d = (y) => a({
|
|
11215
11215
|
...t.preferences,
|
|
@@ -11293,15 +11293,15 @@ function wc({
|
|
|
11293
11293
|
(U) => U.actions.setCardPreferences
|
|
11294
11294
|
), u = P(
|
|
11295
11295
|
(U) => U.actions.updateTableConditionalFormatting
|
|
11296
|
-
), m = (($ = c.config) == null ? void 0 : $.metricColumns) || [], g = t ?? c.type, p = a ?? l, h = c.type === g ? c : { ...c, type: g }, v =
|
|
11296
|
+
), m = (($ = c.config) == null ? void 0 : $.metricColumns) || [], g = t ?? c.type, p = a ?? l, h = c.type === g ? c : { ...c, type: g }, v = Gu(
|
|
11297
11297
|
h,
|
|
11298
11298
|
p
|
|
11299
|
-
), O =
|
|
11299
|
+
), O = Hu(
|
|
11300
11300
|
h,
|
|
11301
11301
|
p
|
|
11302
|
-
), y =
|
|
11302
|
+
), y = Zu(g), f = g === "table", S = g === "table", I = ((j = v[0]) == null ? void 0 : j.value) || "", C = Qu(
|
|
11303
11303
|
(W = i == null ? void 0 : i.tablePrefs) == null ? void 0 : W.conditionalFormatting
|
|
11304
|
-
), N =
|
|
11304
|
+
), N = Wu(o), M = Ju(h), w = Xu(h), [D, T] = K("style");
|
|
11305
11305
|
Se(() => {
|
|
11306
11306
|
if (s === "style") {
|
|
11307
11307
|
T("style");
|
|
@@ -11383,7 +11383,7 @@ function wc({
|
|
|
11383
11383
|
...i,
|
|
11384
11384
|
tablePrefs: {
|
|
11385
11385
|
...o,
|
|
11386
|
-
columnVisibility:
|
|
11386
|
+
columnVisibility: am(
|
|
11387
11387
|
o == null ? void 0 : o.columnVisibility,
|
|
11388
11388
|
U,
|
|
11389
11389
|
J
|
|
@@ -11395,7 +11395,7 @@ function wc({
|
|
|
11395
11395
|
...i,
|
|
11396
11396
|
tablePrefs: {
|
|
11397
11397
|
...o,
|
|
11398
|
-
columnVisibility:
|
|
11398
|
+
columnVisibility: sm()
|
|
11399
11399
|
}
|
|
11400
11400
|
});
|
|
11401
11401
|
}, _ = () => {
|
|
@@ -11463,7 +11463,7 @@ function wc({
|
|
|
11463
11463
|
)
|
|
11464
11464
|
] }),
|
|
11465
11465
|
/* @__PURE__ */ e(tn, { value: "style", className: "mt-0", children: /* @__PURE__ */ e(
|
|
11466
|
-
|
|
11466
|
+
em,
|
|
11467
11467
|
{
|
|
11468
11468
|
style: N,
|
|
11469
11469
|
onDensityChange: B,
|
|
@@ -11480,7 +11480,7 @@ function wc({
|
|
|
11480
11480
|
}
|
|
11481
11481
|
) }),
|
|
11482
11482
|
/* @__PURE__ */ e(tn, { value: "columns", className: "mt-0", children: S ? /* @__PURE__ */ e(
|
|
11483
|
-
|
|
11483
|
+
tm,
|
|
11484
11484
|
{
|
|
11485
11485
|
columns: O,
|
|
11486
11486
|
columnVisibility: o == null ? void 0 : o.columnVisibility,
|
|
@@ -11489,7 +11489,7 @@ function wc({
|
|
|
11489
11489
|
}
|
|
11490
11490
|
) : /* @__PURE__ */ e("p", { className: "py-6 text-center text-[12px] text-muted-foreground", children: "Column visibility is available for table cards." }) }),
|
|
11491
11491
|
/* @__PURE__ */ e(tn, { value: "conditional-formatting", className: "mt-0", children: y ? I ? /* @__PURE__ */ e(
|
|
11492
|
-
|
|
11492
|
+
nm,
|
|
11493
11493
|
{
|
|
11494
11494
|
columnId: I,
|
|
11495
11495
|
availableColumns: v,
|
|
@@ -11788,7 +11788,7 @@ function Jg() {
|
|
|
11788
11788
|
(M = t == null ? void 0 : t.config) == null ? void 0 : M.pivotByColumns,
|
|
11789
11789
|
(w = t == null ? void 0 : t.config) == null ? void 0 : w.metricColumns,
|
|
11790
11790
|
s
|
|
11791
|
-
]), v = ce(() =>
|
|
11791
|
+
]), v = ce(() => rm(), []);
|
|
11792
11792
|
Se(() => {
|
|
11793
11793
|
const b = {};
|
|
11794
11794
|
h.forEach((V, A) => {
|
|
@@ -11873,7 +11873,7 @@ function Jg() {
|
|
|
11873
11873
|
}
|
|
11874
11874
|
) }) }),
|
|
11875
11875
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: h.map((b, V) => {
|
|
11876
|
-
const A =
|
|
11876
|
+
const A = lm(o[b], V), L = !A;
|
|
11877
11877
|
return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
11878
11878
|
/* @__PURE__ */ n(
|
|
11879
11879
|
Tt,
|
|
@@ -12050,7 +12050,7 @@ function jt({
|
|
|
12050
12050
|
}
|
|
12051
12051
|
function Zs({ axis: t, label: a, type: s, config: r, onChange: c, defaultTitle: l, hidePosition: i }) {
|
|
12052
12052
|
var v, O, y, f, S, I, C, N, M, w, D, T, k, E;
|
|
12053
|
-
const o =
|
|
12053
|
+
const o = om({
|
|
12054
12054
|
formatMode: r == null ? void 0 : r.formatMode,
|
|
12055
12055
|
formatOptions: r == null ? void 0 : r.formatOptions
|
|
12056
12056
|
}), d = (x, R) => {
|
|
@@ -12318,7 +12318,7 @@ function Xg() {
|
|
|
12318
12318
|
}), { setCardPreferences: s, updateCardInFrame: r } = Ce(), c = Dt();
|
|
12319
12319
|
if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(c))
|
|
12320
12320
|
return null;
|
|
12321
|
-
const l =
|
|
12321
|
+
const l = im.getAxisInfo(
|
|
12322
12322
|
c,
|
|
12323
12323
|
a
|
|
12324
12324
|
);
|
|
@@ -12397,9 +12397,9 @@ function Zg() {
|
|
|
12397
12397
|
return (O = (v = (h = (p = g.card) == null ? void 0 : p.preferences) == null ? void 0 : h.chartOptions) == null ? void 0 : v.plugins) == null ? void 0 : O.legend;
|
|
12398
12398
|
}
|
|
12399
12399
|
), { setLegendOptions: r } = Ce();
|
|
12400
|
-
if (!t || !
|
|
12400
|
+
if (!t || !cm(a))
|
|
12401
12401
|
return null;
|
|
12402
|
-
const c =
|
|
12402
|
+
const c = dm(a), l = (c == null ? void 0 : c.display) ?? !0, i = (c == null ? void 0 : c.position) ?? "top", o = (c == null ? void 0 : c.align) ?? "center", d = (g, p) => {
|
|
12403
12403
|
const h = {
|
|
12404
12404
|
...s,
|
|
12405
12405
|
[g]: p
|
|
@@ -12467,9 +12467,9 @@ function ex() {
|
|
|
12467
12467
|
var Y;
|
|
12468
12468
|
return (Y = _.card) == null ? void 0 : Y.preferences;
|
|
12469
12469
|
}), { setCardPreferences: c, updateCardInFrame: l } = Ce();
|
|
12470
|
-
if (!t || !
|
|
12470
|
+
if (!t || !um(a))
|
|
12471
12471
|
return null;
|
|
12472
|
-
const i = a === "bullet" ? ((R = r == null ? void 0 : r.bulletConfig) == null ? void 0 : R.orientation) ?? (((B = r == null ? void 0 : r.chartOptions) == null ? void 0 : B.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, o = i != null ? i === "horizontal" : ((b = r == null ? void 0 : r.chartOptions) == null ? void 0 : b.indexAxis) === "y", d = a === "stackedBar" || a === "stackedLine", u = a === "pie" || a === "doughnut" || a === "polarArea" || a === "funnel", m = a === "bubble" || a === "scatter", g = (A = (V = r == null ? void 0 : r.chartOptions) == null ? void 0 : V.plugins) == null ? void 0 : A.datalabels, p = (g == null ? void 0 : g.display) !== !1 && ((g == null ? void 0 : g.anchor) || (g == null ? void 0 : g.align)), h =
|
|
12472
|
+
const i = a === "bullet" ? ((R = r == null ? void 0 : r.bulletConfig) == null ? void 0 : R.orientation) ?? (((B = r == null ? void 0 : r.chartOptions) == null ? void 0 : B.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, o = i != null ? i === "horizontal" : ((b = r == null ? void 0 : r.chartOptions) == null ? void 0 : b.indexAxis) === "y", d = a === "stackedBar" || a === "stackedLine", u = a === "pie" || a === "doughnut" || a === "polarArea" || a === "funnel", m = a === "bubble" || a === "scatter", g = (A = (V = r == null ? void 0 : r.chartOptions) == null ? void 0 : V.plugins) == null ? void 0 : A.datalabels, p = (g == null ? void 0 : g.display) !== !1 && ((g == null ? void 0 : g.anchor) || (g == null ? void 0 : g.align)), h = mm(
|
|
12473
12473
|
a,
|
|
12474
12474
|
t.preferences
|
|
12475
12475
|
), v = s ?? h, O = (h == null ? void 0 : h.enabled) ?? p ?? !1, y = (s == null ? void 0 : s.enabled) !== void 0 ? s.enabled : O, f = (_, Y) => {
|
|
@@ -12758,7 +12758,7 @@ function tx() {
|
|
|
12758
12758
|
};
|
|
12759
12759
|
return /* @__PURE__ */ n(ot, { value: "treemap-color-mode", className: "border-none", children: [
|
|
12760
12760
|
/* @__PURE__ */ e(ct, { className: "flex w-full items-center gap-2 py-3 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
12761
|
-
/* @__PURE__ */ e(
|
|
12761
|
+
/* @__PURE__ */ e(co, { className: "h-4 w-4 text-muted-foreground" }),
|
|
12762
12762
|
/* @__PURE__ */ e("span", { children: "Treemap Colors" })
|
|
12763
12763
|
] }) }),
|
|
12764
12764
|
/* @__PURE__ */ e(dt, { className: "space-y-4 border-t border-border bg-background/50 px-3 py-4 text-sm", children: /* @__PURE__ */ n(
|
|
@@ -12801,7 +12801,7 @@ function tx() {
|
|
|
12801
12801
|
) })
|
|
12802
12802
|
] });
|
|
12803
12803
|
}
|
|
12804
|
-
const nx = Object.keys(
|
|
12804
|
+
const nx = Object.keys(vo);
|
|
12805
12805
|
function ax() {
|
|
12806
12806
|
const t = P((p) => p.card), a = P((p) => {
|
|
12807
12807
|
var h;
|
|
@@ -12843,7 +12843,7 @@ function ax() {
|
|
|
12843
12843
|
className: "space-y-3",
|
|
12844
12844
|
children: [
|
|
12845
12845
|
nx.map((p) => {
|
|
12846
|
-
const h =
|
|
12846
|
+
const h = vo[p];
|
|
12847
12847
|
return /* @__PURE__ */ n(
|
|
12848
12848
|
"div",
|
|
12849
12849
|
{
|
|
@@ -13075,7 +13075,7 @@ function sx() {
|
|
|
13075
13075
|
};
|
|
13076
13076
|
return /* @__PURE__ */ n(ot, { value: "bullet-config", className: "border-b-0", children: [
|
|
13077
13077
|
/* @__PURE__ */ e(ct, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13078
|
-
/* @__PURE__ */ e(
|
|
13078
|
+
/* @__PURE__ */ e(oo, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13079
13079
|
/* @__PURE__ */ e("span", { children: "Bullet Chart" })
|
|
13080
13080
|
] }) }),
|
|
13081
13081
|
/* @__PURE__ */ n(dt, { className: "space-y-6 border-t border-border/50 py-4", children: [
|
|
@@ -13380,7 +13380,7 @@ function rx() {
|
|
|
13380
13380
|
};
|
|
13381
13381
|
return !i && !o ? null : /* @__PURE__ */ n(ot, { value: "bubble-scatter-config", children: [
|
|
13382
13382
|
/* @__PURE__ */ e(ct, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
13383
|
-
/* @__PURE__ */ e(i ?
|
|
13383
|
+
/* @__PURE__ */ e(i ? hm : uo, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
13384
13384
|
/* @__PURE__ */ n("span", { children: [
|
|
13385
13385
|
i ? "Bubble" : "Scatter",
|
|
13386
13386
|
" Configuration"
|
|
@@ -13817,10 +13817,10 @@ function ix() {
|
|
|
13817
13817
|
] }) : null;
|
|
13818
13818
|
}
|
|
13819
13819
|
function Os() {
|
|
13820
|
-
const t = P((i) => i.card), { data: a, comparisonMetadata: s } = Ot(t), { keys: r } = rr((a == null ? void 0 : a.records) || [], s), c = r.slice(1).filter((i) => !
|
|
13820
|
+
const t = P((i) => i.card), { data: a, comparisonMetadata: s } = Ot(t), { keys: r } = rr((a == null ? void 0 : a.records) || [], s), c = r.slice(1).filter((i) => !lp.includes(i));
|
|
13821
13821
|
let l = c;
|
|
13822
13822
|
if (["stackedBar", "stackedLine"].includes(t.type)) {
|
|
13823
|
-
const i =
|
|
13823
|
+
const i = pm({
|
|
13824
13824
|
dataArray: (a == null ? void 0 : a.records) || [],
|
|
13825
13825
|
groupKey: r[0],
|
|
13826
13826
|
pivotKey: r[1],
|
|
@@ -14470,7 +14470,7 @@ function Tx({ metricKey: t, idx: a }) {
|
|
|
14470
14470
|
"border border-border bg-background text-muted-foreground"
|
|
14471
14471
|
),
|
|
14472
14472
|
children: [
|
|
14473
|
-
/* @__PURE__ */ e(
|
|
14473
|
+
/* @__PURE__ */ e(yo, { className: "h-3 w-3" }),
|
|
14474
14474
|
m.label.split(" ")[0]
|
|
14475
14475
|
]
|
|
14476
14476
|
}
|
|
@@ -15191,7 +15191,7 @@ function Gx() {
|
|
|
15191
15191
|
var S, I;
|
|
15192
15192
|
const t = P((C) => C.card), a = P(
|
|
15193
15193
|
(C) => C.actions.updateCardConfig
|
|
15194
|
-
), s = Dt(), { scopedFields: r } =
|
|
15194
|
+
), s = Dt(), { scopedFields: r } = No(), c = ((S = t.config) == null ? void 0 : S.metricColumns) || [], l = ((I = t.config) == null ? void 0 : I.summary) || {}, i = l.breakdownDimensions || [], o = i.length > 0, d = qx.includes(s), u = c.length > 0, m = l.enabled === !0, g = d && u, p = Array.from(
|
|
15195
15195
|
new Map(
|
|
15196
15196
|
r.filter(Kx).map((C) => [An(C), Ux(C)])
|
|
15197
15197
|
).values()
|
|
@@ -15223,7 +15223,7 @@ function Gx() {
|
|
|
15223
15223
|
return /* @__PURE__ */ n(ot, { value: "summary", className: "border-none", children: [
|
|
15224
15224
|
/* @__PURE__ */ n(ct, { className: "flex items-center gap-2 py-2 text-[12px] hover:no-underline [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", children: [
|
|
15225
15225
|
/* @__PURE__ */ n("div", { className: "flex flex-1 items-center gap-2", children: [
|
|
15226
|
-
/* @__PURE__ */ e(
|
|
15226
|
+
/* @__PURE__ */ e(fm, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
15227
15227
|
/* @__PURE__ */ e("span", { children: "Summary" })
|
|
15228
15228
|
] }),
|
|
15229
15229
|
/* @__PURE__ */ e(
|
|
@@ -15461,10 +15461,10 @@ function Jx({
|
|
|
15461
15461
|
}) {
|
|
15462
15462
|
const s = P((i) => i.card), r = s.type;
|
|
15463
15463
|
if (ca(s) === "dynamic")
|
|
15464
|
-
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ n(
|
|
15464
|
+
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ n(fo, { children: [
|
|
15465
15465
|
/* @__PURE__ */ e(_n, { className: "h-4 w-4" }),
|
|
15466
|
-
/* @__PURE__ */ e(
|
|
15467
|
-
/* @__PURE__ */ e(
|
|
15466
|
+
/* @__PURE__ */ e(gm, { children: "Dynamic mode manages presentation" }),
|
|
15467
|
+
/* @__PURE__ */ e(go, { 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." })
|
|
15468
15468
|
] }) });
|
|
15469
15469
|
function l() {
|
|
15470
15470
|
if (Lr(r))
|
|
@@ -15613,7 +15613,7 @@ function Zx(t) {
|
|
|
15613
15613
|
errorMessage: T,
|
|
15614
15614
|
refetch: k,
|
|
15615
15615
|
data: E
|
|
15616
|
-
} = Ot(I), { setTriggerAIRun: x, setCurrentAssitantScope: R, setCardConfig: B } = Ce(), { selectedDatamodelName: b, connectionType: V, selectedDatamodelId: A } =
|
|
15616
|
+
} = Ot(I), { setTriggerAIRun: x, setCurrentAssitantScope: R, setCardConfig: B } = Ce(), { selectedDatamodelName: b, connectionType: V, selectedDatamodelId: A } = xm(), L = (je = $i().data) == null ? void 0 : je.assistantProfileId, F = Ee(ts()), _ = Ee(null), Y = Ee(o), $ = Ee(!1), j = () => {
|
|
15617
15617
|
const Q = _.current;
|
|
15618
15618
|
Q && (_.current = null, F.current = ts(), Q === "clear" && U([]));
|
|
15619
15619
|
}, {
|
|
@@ -15639,7 +15639,7 @@ function Zx(t) {
|
|
|
15639
15639
|
assistantId: "editor-assistant",
|
|
15640
15640
|
assistantProfileId: L,
|
|
15641
15641
|
conversationId: F.current,
|
|
15642
|
-
assistantRequestId:
|
|
15642
|
+
assistantRequestId: bm(),
|
|
15643
15643
|
isDevMode: u,
|
|
15644
15644
|
aiContext: Q.currentAIContext,
|
|
15645
15645
|
reasoningEffort: Q.reasoningEffort,
|
|
@@ -15652,7 +15652,7 @@ function Zx(t) {
|
|
|
15652
15652
|
prepareSendMessagesRequest: ({ messages: Q, body: Ne }) => ({
|
|
15653
15653
|
body: {
|
|
15654
15654
|
...Ne,
|
|
15655
|
-
messages:
|
|
15655
|
+
messages: Ro(Q)
|
|
15656
15656
|
}
|
|
15657
15657
|
})
|
|
15658
15658
|
}),
|
|
@@ -15793,11 +15793,11 @@ function Zx(t) {
|
|
|
15793
15793
|
s("Analyzing...");
|
|
15794
15794
|
}
|
|
15795
15795
|
function We(Q) {
|
|
15796
|
-
const Ne =
|
|
15796
|
+
const Ne = ym(y, Q);
|
|
15797
15797
|
et(Ne);
|
|
15798
15798
|
}
|
|
15799
15799
|
function et(Q) {
|
|
15800
|
-
const Ne =
|
|
15800
|
+
const Ne = Cm(Q);
|
|
15801
15801
|
R(Ne), U((Be) => [
|
|
15802
15802
|
...Be,
|
|
15803
15803
|
{
|
|
@@ -15836,7 +15836,7 @@ function Zx(t) {
|
|
|
15836
15836
|
connectionType: V || "",
|
|
15837
15837
|
datamodelId: A || ""
|
|
15838
15838
|
};
|
|
15839
|
-
if (!
|
|
15839
|
+
if (!Nm(
|
|
15840
15840
|
[...D || [], ...y],
|
|
15841
15841
|
Q
|
|
15842
15842
|
) || y.length === 0) {
|
|
@@ -15850,7 +15850,7 @@ function Zx(t) {
|
|
|
15850
15850
|
et(Be);
|
|
15851
15851
|
}
|
|
15852
15852
|
}
|
|
15853
|
-
const _e = !["ready", "error"].includes(fe), Re =
|
|
15853
|
+
const _e = !["ready", "error"].includes(fe), Re = vm(X);
|
|
15854
15854
|
return {
|
|
15855
15855
|
messages: W,
|
|
15856
15856
|
setMessages: Xe,
|
|
@@ -15886,14 +15886,14 @@ function Oi({
|
|
|
15886
15886
|
onFullscreenChange: a,
|
|
15887
15887
|
fullscreenContainer: s
|
|
15888
15888
|
}) {
|
|
15889
|
-
const r = Ee(null), c = Ee(!1), [l, i] = K(!1), [o, d] = K(
|
|
15889
|
+
const r = Ee(null), c = Ee(!1), [l, i] = K(!1), [o, d] = K(ip), [u, m] = K(!1), [g, p] = K(!1), [h, v] = K(!1), [O, y] = K(0), f = t ?? h, S = zh(), { setCurrentAIContext: I, setHasEditorEntitySelectionOverride: C } = Or(), { clearQueue: N } = jh(), { clearFileAttachments: M } = qh(), w = Kh("editor"), { selectedEntities: D } = Li("editor"), T = P((me) => me.card.id), k = P((me) => me.card.dataSource), E = P(
|
|
15890
15890
|
(me) => {
|
|
15891
15891
|
var be;
|
|
15892
15892
|
return (be = me.card.dataSource) == null ? void 0 : be.selectedEntities;
|
|
15893
15893
|
}
|
|
15894
15894
|
), x = P((me) => me.actions.setCardSql), R = P((me) => me.actions.setRunSql), B = P((me) => me.showAIDialog), b = ve(
|
|
15895
15895
|
(me) => me.handleOpenAssistantProfile
|
|
15896
|
-
), { setShowAIDialog: V, setCardPython: A } = Ce(), { assistantProfile: L } =
|
|
15896
|
+
), { setShowAIDialog: V, setCardPython: A } = Ce(), { assistantProfile: L } = wm(), {
|
|
15897
15897
|
messages: F,
|
|
15898
15898
|
setMessages: _,
|
|
15899
15899
|
sendMessage: Y,
|
|
@@ -15935,13 +15935,13 @@ function Oi({
|
|
|
15935
15935
|
I,
|
|
15936
15936
|
C,
|
|
15937
15937
|
B
|
|
15938
|
-
]),
|
|
15938
|
+
]), Sm({
|
|
15939
15939
|
assistantType: "editor",
|
|
15940
15940
|
status: W,
|
|
15941
15941
|
isLoading: $,
|
|
15942
15942
|
sendMessage: Y
|
|
15943
15943
|
});
|
|
15944
|
-
const { hasActiveTools: tt, activeToolText: nt } =
|
|
15944
|
+
const { hasActiveTools: tt, activeToolText: nt } = Tm(F), Xe = Ie(
|
|
15945
15945
|
(me) => {
|
|
15946
15946
|
a == null || a(me), t === void 0 && v(me);
|
|
15947
15947
|
},
|
|
@@ -16105,7 +16105,7 @@ function Oi({
|
|
|
16105
16105
|
onClick: () => {
|
|
16106
16106
|
_([]), N("editor"), X();
|
|
16107
16107
|
},
|
|
16108
|
-
children: /* @__PURE__ */ e(
|
|
16108
|
+
children: /* @__PURE__ */ e(Co, { className: "h-3.5 w-3.5" })
|
|
16109
16109
|
}
|
|
16110
16110
|
),
|
|
16111
16111
|
/* @__PURE__ */ e(
|
|
@@ -16126,7 +16126,7 @@ function Oi({
|
|
|
16126
16126
|
}
|
|
16127
16127
|
),
|
|
16128
16128
|
/* @__PURE__ */ e(
|
|
16129
|
-
|
|
16129
|
+
km,
|
|
16130
16130
|
{
|
|
16131
16131
|
messages: F,
|
|
16132
16132
|
showTools: o,
|
|
@@ -16145,23 +16145,23 @@ function Oi({
|
|
|
16145
16145
|
/* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
16146
16146
|
/* @__PURE__ */ n("div", { children: [
|
|
16147
16147
|
Ne && !L && /* @__PURE__ */ e(
|
|
16148
|
-
|
|
16148
|
+
Dm,
|
|
16149
16149
|
{
|
|
16150
16150
|
onClick: _e,
|
|
16151
16151
|
placeholders: eb
|
|
16152
16152
|
}
|
|
16153
16153
|
),
|
|
16154
16154
|
/* @__PURE__ */ e("div", { children: Ne && L && /* @__PURE__ */ e(
|
|
16155
|
-
|
|
16155
|
+
Mm,
|
|
16156
16156
|
{
|
|
16157
16157
|
seedQuestions: L.seedQuestions || [],
|
|
16158
16158
|
handleSeedQuestionClick: Re
|
|
16159
16159
|
}
|
|
16160
16160
|
) })
|
|
16161
16161
|
] }),
|
|
16162
|
-
/* @__PURE__ */ e(
|
|
16162
|
+
/* @__PURE__ */ e(Im, { assistantType: "editor", className: "mb-3" }),
|
|
16163
16163
|
/* @__PURE__ */ e(
|
|
16164
|
-
|
|
16164
|
+
Em,
|
|
16165
16165
|
{
|
|
16166
16166
|
ref: r,
|
|
16167
16167
|
setInput: fe,
|
|
@@ -16195,7 +16195,7 @@ function Oi({
|
|
|
16195
16195
|
incomingSelectedEntities: D,
|
|
16196
16196
|
open: g,
|
|
16197
16197
|
onOpenChange: p,
|
|
16198
|
-
dataSource: k ||
|
|
16198
|
+
dataSource: k || Am,
|
|
16199
16199
|
dialogMode: "aiContext",
|
|
16200
16200
|
onSaveSelectedEntities: (me) => {
|
|
16201
16201
|
C(!0), I({
|
|
@@ -16209,7 +16209,7 @@ function Oi({
|
|
|
16209
16209
|
}
|
|
16210
16210
|
);
|
|
16211
16211
|
return f && s ? Mp(
|
|
16212
|
-
/* @__PURE__ */ e(
|
|
16212
|
+
/* @__PURE__ */ e(Om, { 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: Be }) }),
|
|
16213
16213
|
s
|
|
16214
16214
|
) : Be;
|
|
16215
16215
|
}
|
|
@@ -16218,7 +16218,7 @@ function Tc(t, a, s) {
|
|
|
16218
16218
|
const r = a.qualifiedFieldName, c = a.qualifiedEntityName, l = c && a.name ? `${c}.${a.name}` : r;
|
|
16219
16219
|
return t.some((i) => {
|
|
16220
16220
|
if (!(mt(i.dataType || "") === "date")) return !1;
|
|
16221
|
-
const d =
|
|
16221
|
+
const d = Fm(i, s), u = d.split("."), m = u[u.length - 1] || d, g = u.length > 1 ? u.slice(0, -1).join(".") : void 0, p = i.qualifiedTableName || g, h = p ? `${p}.${m}` : void 0;
|
|
16222
16222
|
return r ? h ? h === l || h.endsWith(`.${r}`) : m === a.name : h ? h === l : m === a.name;
|
|
16223
16223
|
});
|
|
16224
16224
|
}
|
|
@@ -16243,7 +16243,7 @@ function tb({
|
|
|
16243
16243
|
inputs: i,
|
|
16244
16244
|
controls: []
|
|
16245
16245
|
};
|
|
16246
|
-
return
|
|
16246
|
+
return Po({
|
|
16247
16247
|
dashboard: o,
|
|
16248
16248
|
sheetId: r,
|
|
16249
16249
|
card: c,
|
|
@@ -16576,7 +16576,7 @@ function rb({ idx: t }) {
|
|
|
16576
16576
|
(d) => d.actions.setCardPreferences
|
|
16577
16577
|
), c = (o = a == null ? void 0 : a.chartOptions) == null ? void 0 : o.indexAxis, l = s == null ? void 0 : s.find((d) => d.idx === t);
|
|
16578
16578
|
function i(d, u) {
|
|
16579
|
-
(d === "end" || d === "start") &&
|
|
16579
|
+
(d === "end" || d === "start") && op(cp());
|
|
16580
16580
|
const m = {
|
|
16581
16581
|
display: d !== "none",
|
|
16582
16582
|
align: d,
|
|
@@ -16607,7 +16607,7 @@ function rb({ idx: t }) {
|
|
|
16607
16607
|
}
|
|
16608
16608
|
}
|
|
16609
16609
|
return /* @__PURE__ */ n(Tt, { children: [
|
|
16610
|
-
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(
|
|
16610
|
+
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(Rm, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
16611
16611
|
/* @__PURE__ */ e(kt, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ n("div", { className: "flex gap-1", children: [
|
|
16612
16612
|
/* @__PURE__ */ e(
|
|
16613
16613
|
"button",
|
|
@@ -16759,7 +16759,7 @@ function ib({
|
|
|
16759
16759
|
}
|
|
16760
16760
|
),
|
|
16761
16761
|
/* @__PURE__ */ e(
|
|
16762
|
-
|
|
16762
|
+
yo,
|
|
16763
16763
|
{
|
|
16764
16764
|
onClick: () => u("area"),
|
|
16765
16765
|
className: G(
|
|
@@ -16885,7 +16885,7 @@ function db({
|
|
|
16885
16885
|
a,
|
|
16886
16886
|
s,
|
|
16887
16887
|
l
|
|
16888
|
-
], u =
|
|
16888
|
+
], u = wo({
|
|
16889
16889
|
queryKey: d,
|
|
16890
16890
|
queryFn: async () => {
|
|
16891
16891
|
if (!(o != null && o.connectionId))
|
|
@@ -16919,7 +16919,7 @@ function db({
|
|
|
16919
16919
|
connection_id: o.connectionId,
|
|
16920
16920
|
cardConfig: m,
|
|
16921
16921
|
cardDataSource: o,
|
|
16922
|
-
cache_config:
|
|
16922
|
+
cache_config: Uh({ card: i }),
|
|
16923
16923
|
calendarContext: l
|
|
16924
16924
|
};
|
|
16925
16925
|
console.log("requestBody", g);
|
|
@@ -17095,7 +17095,7 @@ function kc({
|
|
|
17095
17095
|
onClick: () => v(N),
|
|
17096
17096
|
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",
|
|
17097
17097
|
children: [
|
|
17098
|
-
/* @__PURE__ */ e(
|
|
17098
|
+
/* @__PURE__ */ e(Pm, { dataType: mt(N.dataType) }),
|
|
17099
17099
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: [
|
|
17100
17100
|
/* @__PURE__ */ e("div", { className: "truncate text-[13px] text-foreground", children: N.label }),
|
|
17101
17101
|
/* @__PURE__ */ n("div", { className: "truncate font-mono text-[10px] text-muted-foreground", children: [
|
|
@@ -17225,8 +17225,8 @@ function mb({
|
|
|
17225
17225
|
showTitle: r = !0,
|
|
17226
17226
|
title: c = "NUMBER FORMAT"
|
|
17227
17227
|
}) {
|
|
17228
|
-
const l =
|
|
17229
|
-
|
|
17228
|
+
const l = Lm(s), i = xo(), o = bo(), d = _o(
|
|
17229
|
+
Gh(t, { preserveOmittedProperties: !0 }),
|
|
17230
17230
|
{ preserveOmittedProperties: !0 }
|
|
17231
17231
|
) || {};
|
|
17232
17232
|
return /* @__PURE__ */ e(
|
|
@@ -17235,7 +17235,7 @@ function mb({
|
|
|
17235
17235
|
formatOptions: d,
|
|
17236
17236
|
onFormatOptionsChange: (m) => {
|
|
17237
17237
|
a(
|
|
17238
|
-
|
|
17238
|
+
Hh(m, {
|
|
17239
17239
|
preserveOmittedProperties: !0
|
|
17240
17240
|
})
|
|
17241
17241
|
);
|
|
@@ -17282,7 +17282,7 @@ function fb({
|
|
|
17282
17282
|
) ?? pb, {
|
|
17283
17283
|
scopedFields: N,
|
|
17284
17284
|
valuePickFilterableFields: M
|
|
17285
|
-
} = Ts(), { userContext: w } = vr(), { tokenProps: D } = zn(), T =
|
|
17285
|
+
} = Ts(), { userContext: w } = vr(), { tokenProps: D } = zn(), T = So(w), k = Mr() ?? void 0, E = po() ?? ja, {
|
|
17286
17286
|
updateLabel: x,
|
|
17287
17287
|
handleAggregationChange: R,
|
|
17288
17288
|
handleDetailDateFormatChange: B,
|
|
@@ -17306,7 +17306,7 @@ function fb({
|
|
|
17306
17306
|
handleMetricPercentOfTotalScopeChange: ze,
|
|
17307
17307
|
handleMetricPercentOfTotalOutputChange: tt,
|
|
17308
17308
|
handleMetricTargetValueChange: nt
|
|
17309
|
-
} =
|
|
17309
|
+
} = To(h), [Xe, qe] = K(!1), [We, et] = K(() => {
|
|
17310
17310
|
var H;
|
|
17311
17311
|
return !!((H = t.parameters) != null && H.windowTransform);
|
|
17312
17312
|
}), [at, pe] = K(!1), [_e, Re] = K(!1), [je, Q] = K(null), Ne = ce(() => {
|
|
@@ -17327,10 +17327,10 @@ function fb({
|
|
|
17327
17327
|
t.qualifiedEntityName,
|
|
17328
17328
|
t.qualifiedFieldName,
|
|
17329
17329
|
N
|
|
17330
|
-
]), Be =
|
|
17330
|
+
]), Be = Vm(
|
|
17331
17331
|
Ne.dataType
|
|
17332
17332
|
), me = ce(
|
|
17333
|
-
() =>
|
|
17333
|
+
() => Qh({
|
|
17334
17334
|
fieldId: t.id,
|
|
17335
17335
|
dataType: t.dataType,
|
|
17336
17336
|
granularity: t.granularity,
|
|
@@ -17401,7 +17401,7 @@ function fb({
|
|
|
17401
17401
|
const De = Np(
|
|
17402
17402
|
ge.format,
|
|
17403
17403
|
H
|
|
17404
|
-
), ae =
|
|
17404
|
+
), ae = tp({
|
|
17405
17405
|
fieldId: t.id,
|
|
17406
17406
|
dataType: t.dataType,
|
|
17407
17407
|
granularity: H,
|
|
@@ -17418,11 +17418,11 @@ function fb({
|
|
|
17418
17418
|
he(H), a === "metrics" && F(s, H);
|
|
17419
17419
|
}, ln = (H) => {
|
|
17420
17420
|
x(a, s, H);
|
|
17421
|
-
}, Kn =
|
|
17421
|
+
}, Kn = Bm(t), Ha = ko(t), kn = Ym(t), ua = t.role === "metric" && kn, Dn = kn && (Kn === "user_calculated" || Kn === "inline_expression" && t.fieldScope !== "domain"), Vt = Dn ? Wh({
|
|
17422
17422
|
field: t,
|
|
17423
17423
|
sheetFields: (v == null ? void 0 : v.calculatedFields) || [],
|
|
17424
17424
|
dashboardFields: C
|
|
17425
|
-
}) : void 0, Qa = Dn && (Vt == null ? void 0 : Vt.scope) === "sheet", ma = Dn && (Vt == null ? void 0 : Vt.scope) === "dashboard", on = Kn === "domain_calculated" || t.fieldScope === "domain", ha = on ?
|
|
17425
|
+
}) : void 0, Qa = Dn && (Vt == null ? void 0 : Vt.scope) === "sheet", ma = Dn && (Vt == null ? void 0 : Vt.scope) === "dashboard", on = Kn === "domain_calculated" || t.fieldScope === "domain", ha = on ? _m(t, N) : void 0, qt = on ? "domain" : Qa ? "sheet" : ma ? "dashboard" : "card", cn = on ? ha || t : (Qa || ma) && (Vt != null && Vt.matchedField) ? Vt.matchedField : t, dn = (H) => {
|
|
17426
17426
|
var De;
|
|
17427
17427
|
if (Me(H), a === "metrics") {
|
|
17428
17428
|
const ae = {
|
|
@@ -17459,11 +17459,11 @@ function fb({
|
|
|
17459
17459
|
be,
|
|
17460
17460
|
ge.format,
|
|
17461
17461
|
E
|
|
17462
|
-
) : a === "detailColumns" ? nb(be ?? "day") : [], de = Ge ? "custom" : !be && a === "groupBy" ? void 0 : Z.some((H) => H.value === ne) ? ne : ((rl = Z[0]) == null ? void 0 : rl.value) ?? "YYYY-MM-DD", oe = !!i &&
|
|
17462
|
+
) : a === "detailColumns" ? nb(be ?? "day") : [], de = Ge ? "custom" : !be && a === "groupBy" ? void 0 : Z.some((H) => H.value === ne) ? ne : ((rl = Z[0]) == null ? void 0 : rl.value) ?? "YYYY-MM-DD", oe = !!i && Xh.includes(i), Le = !!i && Zh.includes(i), Fe = ce(
|
|
17463
17463
|
() => un == null ? void 0 : un.find((H) => mt(H.dataType || "") === "date"),
|
|
17464
17464
|
[un]
|
|
17465
17465
|
), Ae = ce(
|
|
17466
|
-
() =>
|
|
17466
|
+
() => Jh({
|
|
17467
17467
|
card: h,
|
|
17468
17468
|
cardConfig: h.config || {},
|
|
17469
17469
|
semanticExecutionPayload: ba
|
|
@@ -17511,22 +17511,22 @@ function fb({
|
|
|
17511
17511
|
y,
|
|
17512
17512
|
k
|
|
17513
17513
|
]
|
|
17514
|
-
), In = yt || Kt, Ke = t, Je = ((il = Ke.comparison) == null ? void 0 : il.mode) === "explicit" ? Ke.comparison.spec : void 0, mn = ((cl = (ol = Ke.parameters) == null ? void 0 : ol.windowTransform) == null ? void 0 : cl.function) || "none", Ft =
|
|
17514
|
+
), In = yt || Kt, Ke = t, Je = ((il = Ke.comparison) == null ? void 0 : il.mode) === "explicit" ? Ke.comparison.spec : void 0, mn = ((cl = (ol = Ke.parameters) == null ? void 0 : ol.windowTransform) == null ? void 0 : cl.function) || "none", Ft = $m(Ke), Rt = Ft ? mn : null, Ps = zm({
|
|
17515
17515
|
cardType: i || "table",
|
|
17516
17516
|
cardConfig: h.config || {},
|
|
17517
17517
|
metric: Ke,
|
|
17518
17518
|
transformMode: Rt || "running_total"
|
|
17519
|
-
}), va = ((dl = Ke.comparison) == null ? void 0 : dl.mode) === "explicit", Wr =
|
|
17519
|
+
}), va = ((dl = Ke.comparison) == null ? void 0 : dl.mode) === "explicit", Wr = jm(
|
|
17520
17520
|
un || []
|
|
17521
17521
|
), Un = ((hl = (ml = (ul = Ke.parameters) == null ? void 0 : ul.windowTransform) == null ? void 0 : ml.orderBy) == null ? void 0 : hl.fieldId) || "", Mc = ((gl = (fl = (pl = Ke.parameters) == null ? void 0 : pl.windowTransform) == null ? void 0 : fl.orderBy) == null ? void 0 : gl.direction) || "asc", Jr = Wr.find(
|
|
17522
17522
|
(H) => H.id === Un
|
|
17523
|
-
), Ls = Rt === "running_total" || Rt === "moving_average" || Rt === "previous_period_delta", Ic = Ft && Ls && !!Jr && mt(Jr.dataType || "") !== "date", Ec =
|
|
17523
|
+
), Ls = Rt === "running_total" || Rt === "moving_average" || Rt === "previous_period_delta", Ic = Ft && Ls && !!Jr && mt(Jr.dataType || "") !== "date", Ec = qm({
|
|
17524
17524
|
cardType: i || "table",
|
|
17525
17525
|
cardConfig: h.config || {},
|
|
17526
17526
|
orderByFieldId: Un || void 0
|
|
17527
17527
|
}), Ac = new Set(
|
|
17528
17528
|
((bl = (xl = Ke.parameters) == null ? void 0 : xl.windowTransform) == null ? void 0 : bl.partitionByFieldIds) || Ec
|
|
17529
|
-
), Oc = i === "pivotTable" ||
|
|
17529
|
+
), Oc = i === "pivotTable" || Km(
|
|
17530
17530
|
i || "table",
|
|
17531
17531
|
h.config || {}
|
|
17532
17532
|
), Xr = [
|
|
@@ -18100,7 +18100,7 @@ function fb({
|
|
|
18100
18100
|
/* @__PURE__ */ n(
|
|
18101
18101
|
se,
|
|
18102
18102
|
{
|
|
18103
|
-
value:
|
|
18103
|
+
value: ep(Ke),
|
|
18104
18104
|
disabled: !!Ke.semanticComparisonPolarity,
|
|
18105
18105
|
onValueChange: (ae) => W(
|
|
18106
18106
|
s,
|
|
@@ -18279,7 +18279,7 @@ function fb({
|
|
|
18279
18279
|
}
|
|
18280
18280
|
),
|
|
18281
18281
|
/* @__PURE__ */ e(
|
|
18282
|
-
|
|
18282
|
+
Do,
|
|
18283
18283
|
{
|
|
18284
18284
|
dataType: Ja,
|
|
18285
18285
|
calculated: !!Ha
|
|
@@ -18307,7 +18307,7 @@ function fb({
|
|
|
18307
18307
|
onClick: (H) => {
|
|
18308
18308
|
H.stopPropagation(), c(r === "asc" ? "desc" : "asc");
|
|
18309
18309
|
},
|
|
18310
|
-
children: r === "asc" ? /* @__PURE__ */ e(
|
|
18310
|
+
children: r === "asc" ? /* @__PURE__ */ e(Um, { className: "h-3 w-3" }) : /* @__PURE__ */ e(Hi, { className: "h-3 w-3" })
|
|
18311
18311
|
}
|
|
18312
18312
|
),
|
|
18313
18313
|
Qc && /* @__PURE__ */ e(At, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -18317,7 +18317,7 @@ function fb({
|
|
|
18317
18317
|
"aria-label": "Field configuration",
|
|
18318
18318
|
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",
|
|
18319
18319
|
onClick: (H) => H.stopPropagation(),
|
|
18320
|
-
children: /* @__PURE__ */ e(
|
|
18320
|
+
children: /* @__PURE__ */ e(Gm, { className: "h-3 w-3" })
|
|
18321
18321
|
}
|
|
18322
18322
|
) }),
|
|
18323
18323
|
/* @__PURE__ */ e(
|
|
@@ -18376,7 +18376,7 @@ function fb({
|
|
|
18376
18376
|
}
|
|
18377
18377
|
),
|
|
18378
18378
|
_e && a === "metrics" && ua && /* @__PURE__ */ e(
|
|
18379
|
-
|
|
18379
|
+
Mo,
|
|
18380
18380
|
{
|
|
18381
18381
|
open: _e,
|
|
18382
18382
|
onOpenChange: Re,
|
|
@@ -18397,7 +18397,7 @@ function fb({
|
|
|
18397
18397
|
nextSortByFields: $t,
|
|
18398
18398
|
nextStoredFields: Wt,
|
|
18399
18399
|
nextSharedFields: hn
|
|
18400
|
-
} =
|
|
18400
|
+
} = Ao({
|
|
18401
18401
|
activeFields: $e,
|
|
18402
18402
|
sortByFields: ft,
|
|
18403
18403
|
storedFields: De.calculatedFields || [],
|
|
@@ -18433,7 +18433,7 @@ function fb({
|
|
|
18433
18433
|
nextStoredFields: hn,
|
|
18434
18434
|
nextSheetFields: Gn,
|
|
18435
18435
|
nextDashboardFields: Ut
|
|
18436
|
-
} =
|
|
18436
|
+
} = Eo({
|
|
18437
18437
|
activeFields: ft,
|
|
18438
18438
|
sortByFields: ut,
|
|
18439
18439
|
storedFields: De.calculatedFields || [],
|
|
@@ -18477,7 +18477,7 @@ function fb({
|
|
|
18477
18477
|
nextStoredFields: hn,
|
|
18478
18478
|
nextSharedFields: Gn,
|
|
18479
18479
|
nextSheetFields: Ut
|
|
18480
|
-
} =
|
|
18480
|
+
} = Io({
|
|
18481
18481
|
activeFields: ft,
|
|
18482
18482
|
sortByFields: ut,
|
|
18483
18483
|
storedFields: De.calculatedFields || [],
|
|
@@ -18522,7 +18522,7 @@ function gb({ concept: t }) {
|
|
|
18522
18522
|
type: "button",
|
|
18523
18523
|
"aria-label": `What does ${a} mean?`,
|
|
18524
18524
|
className: "inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground/70 transition-colors hover:text-foreground",
|
|
18525
|
-
children: /* @__PURE__ */ e(
|
|
18525
|
+
children: /* @__PURE__ */ e(Hm, { className: "h-3 w-3" })
|
|
18526
18526
|
}
|
|
18527
18527
|
) }),
|
|
18528
18528
|
/* @__PURE__ */ n(
|
|
@@ -18633,7 +18633,7 @@ function Sa({
|
|
|
18633
18633
|
hasPivotColumns: l = !1,
|
|
18634
18634
|
activeField: i = null
|
|
18635
18635
|
}) {
|
|
18636
|
-
const { isOver: o, setNodeRef: d } =
|
|
18636
|
+
const { isOver: o, setNodeRef: d } = Qm({
|
|
18637
18637
|
id: t
|
|
18638
18638
|
}), { updateSortByColumn: u } = Ce(), m = P((f) => f.card), g = P((f) => f.card.type), p = a.length > 0, h = ce(() => !i || !o ? !0 : cs(
|
|
18639
18639
|
i,
|
|
@@ -18737,7 +18737,7 @@ function Nb({
|
|
|
18737
18737
|
var ue;
|
|
18738
18738
|
return X.visualEditPendingDashboardCalculatedFields ?? ((ue = X.dashboard) == null ? void 0 : ue.calculatedFields);
|
|
18739
18739
|
}
|
|
18740
|
-
) ?? yb, { scopedFields: D } =
|
|
18740
|
+
) ?? yb, { scopedFields: D } = No(), { userContext: T } = vr(), k = h && (m == null ? void 0 : m.id) === d.id && v ? v : d == null ? void 0 : d.type, E = k === "detailTable", x = t.length > 0 || s.length > 0 || c.length > 0, R = !E && (k !== "kpi" || s.length <= 2), B = !E, b = !E && k !== "kpi", V = k !== "kpi" && x, A = E, L = "Drop sort fields here", F = So(T), _ = [
|
|
18741
18741
|
"pie",
|
|
18742
18742
|
"doughnut",
|
|
18743
18743
|
"polar",
|
|
@@ -18846,7 +18846,7 @@ function Nb({
|
|
|
18846
18846
|
)
|
|
18847
18847
|
] }),
|
|
18848
18848
|
/* @__PURE__ */ e(
|
|
18849
|
-
|
|
18849
|
+
Mo,
|
|
18850
18850
|
{
|
|
18851
18851
|
open: i,
|
|
18852
18852
|
onOpenChange: o,
|
|
@@ -18855,7 +18855,7 @@ function Nb({
|
|
|
18855
18855
|
allowedFieldTypes: ["metric"],
|
|
18856
18856
|
onSave: (X) => {
|
|
18857
18857
|
if (X.role !== "metric") return;
|
|
18858
|
-
const { nextStoredFields: ue } =
|
|
18858
|
+
const { nextStoredFields: ue } = Ao({
|
|
18859
18859
|
activeFields: s,
|
|
18860
18860
|
storedFields: d.calculatedFields || [],
|
|
18861
18861
|
sharedFields: u.calculatedFields || [],
|
|
@@ -18868,7 +18868,7 @@ function Nb({
|
|
|
18868
18868
|
},
|
|
18869
18869
|
onSaveToSheet: (X) => {
|
|
18870
18870
|
if (X.role !== "metric") return;
|
|
18871
|
-
const ue = u.calculatedFields || [], { nextSheetFields: fe } =
|
|
18871
|
+
const ue = u.calculatedFields || [], { nextSheetFields: fe } = Eo({
|
|
18872
18872
|
activeFields: s,
|
|
18873
18873
|
storedFields: d.calculatedFields || [],
|
|
18874
18874
|
sheetFields: ue,
|
|
@@ -18886,7 +18886,7 @@ function Nb({
|
|
|
18886
18886
|
},
|
|
18887
18887
|
onSaveToDashboard: (X) => {
|
|
18888
18888
|
if (X.role !== "metric") return;
|
|
18889
|
-
const { nextSharedFields: ue } =
|
|
18889
|
+
const { nextSharedFields: ue } = Io({
|
|
18890
18890
|
activeFields: s,
|
|
18891
18891
|
storedFields: d.calculatedFields || [],
|
|
18892
18892
|
sharedFields: w,
|
|
@@ -19085,7 +19085,7 @@ function wb({ onEditJoins: t }) {
|
|
|
19085
19085
|
onClick: t,
|
|
19086
19086
|
className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus-visible:border-ring",
|
|
19087
19087
|
"aria-label": "Edit resolved joins",
|
|
19088
|
-
children: /* @__PURE__ */ e(
|
|
19088
|
+
children: /* @__PURE__ */ e(Co, { className: "h-3 w-3", strokeWidth: 1.75 })
|
|
19089
19089
|
}
|
|
19090
19090
|
)
|
|
19091
19091
|
] });
|
|
@@ -19152,7 +19152,7 @@ function Sb({
|
|
|
19152
19152
|
"aria-label": "Hide chart configuration",
|
|
19153
19153
|
onClick: r,
|
|
19154
19154
|
className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
|
|
19155
|
-
children: /* @__PURE__ */ e(
|
|
19155
|
+
children: /* @__PURE__ */ e(Wm, { className: "h-4 w-4", strokeWidth: 1.75 })
|
|
19156
19156
|
}
|
|
19157
19157
|
) })
|
|
19158
19158
|
] }),
|
|
@@ -19488,7 +19488,7 @@ function Mb({
|
|
|
19488
19488
|
".",
|
|
19489
19489
|
t.name
|
|
19490
19490
|
] }) }) : r,
|
|
19491
|
-
/* @__PURE__ */ e(
|
|
19491
|
+
/* @__PURE__ */ e(Ji, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
19492
19492
|
]
|
|
19493
19493
|
}
|
|
19494
19494
|
) }),
|
|
@@ -19568,7 +19568,7 @@ function Gr(t) {
|
|
|
19568
19568
|
groupByColumns: [o],
|
|
19569
19569
|
metricColumns: [d],
|
|
19570
19570
|
sortByColumns: [u]
|
|
19571
|
-
}, g = ((y = a.dataSource) == null ? void 0 : y.connectionId) || a.connectionId, { data: p, isPending: h, error: v } =
|
|
19571
|
+
}, g = ((y = a.dataSource) == null ? void 0 : y.connectionId) || a.connectionId, { data: p, isPending: h, error: v } = wo({
|
|
19572
19572
|
queryKey: [
|
|
19573
19573
|
"filterValues",
|
|
19574
19574
|
t.entityId,
|
|
@@ -19726,9 +19726,9 @@ function Ab({
|
|
|
19726
19726
|
const p = new Date(g);
|
|
19727
19727
|
if (!isNaN(p.getTime()))
|
|
19728
19728
|
return p;
|
|
19729
|
-
}, [t, l]), d = (g) => a === "<=" || a === ">" ?
|
|
19729
|
+
}, [t, l]), d = (g) => a === "<=" || a === ">" ? np(g, c) : ap(g, c);
|
|
19730
19730
|
return /* @__PURE__ */ e(
|
|
19731
|
-
|
|
19731
|
+
Jm,
|
|
19732
19732
|
{
|
|
19733
19733
|
value: l ? i : void 0,
|
|
19734
19734
|
selectionMode: l ? "range" : "single",
|
|
@@ -20385,9 +20385,9 @@ function _b({
|
|
|
20385
20385
|
updateConditionFields: h
|
|
20386
20386
|
},
|
|
20387
20387
|
E.id
|
|
20388
|
-
), k =
|
|
20388
|
+
), k = Oo(t);
|
|
20389
20389
|
return /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
20390
|
-
/* @__PURE__ */ e(
|
|
20390
|
+
/* @__PURE__ */ e(no, { children: /* @__PURE__ */ e(ao, { className: "p-4", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
20391
20391
|
o ? /* @__PURE__ */ n("div", { className: "flex items-center justify-center p-4", children: [
|
|
20392
20392
|
/* @__PURE__ */ e("div", { className: "h-5 w-5 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }),
|
|
20393
20393
|
/* @__PURE__ */ e("span", { className: "ml-2 text-sm text-gray-600", children: "Loading columns..." })
|
|
@@ -20486,7 +20486,7 @@ function zb({
|
|
|
20486
20486
|
), u = (S = i == null ? void 0 : i.config) == null ? void 0 : S.joinPlan, m = Ie(
|
|
20487
20487
|
(C) => C.entityName === Fp || C.entityName === "calculated_fields" || C.qualifiedEntityName === "calculated_fields",
|
|
20488
20488
|
[]
|
|
20489
|
-
), g = (I = i == null ? void 0 : i.dataSource) == null ? void 0 : I.semanticDomainId, { data: p } =
|
|
20489
|
+
), g = (I = i == null ? void 0 : i.dataSource) == null ? void 0 : I.semanticDomainId, { data: p } = Xm(g), h = [
|
|
20490
20490
|
...a,
|
|
20491
20491
|
...s("groupBy"),
|
|
20492
20492
|
...s("pivotBy"),
|
|
@@ -20587,7 +20587,7 @@ function zb({
|
|
|
20587
20587
|
}
|
|
20588
20588
|
if (F !== x.qualifiedEntityName && !m(x) && x.qualifiedEntityName)
|
|
20589
20589
|
if (g && (p != null && p.joinabilityMap)) {
|
|
20590
|
-
if (
|
|
20590
|
+
if (Zm(x, {
|
|
20591
20591
|
joinabilityMap: p.joinabilityMap,
|
|
20592
20592
|
selectedFields: R,
|
|
20593
20593
|
baseEntityName: (E = u == null ? void 0 : u.baseEntity) == null ? void 0 : E.name,
|
|
@@ -20602,7 +20602,7 @@ function zb({
|
|
|
20602
20602
|
js(), l(null);
|
|
20603
20603
|
return;
|
|
20604
20604
|
}
|
|
20605
|
-
if (!
|
|
20605
|
+
if (!eh(
|
|
20606
20606
|
F,
|
|
20607
20607
|
x.qualifiedEntityName,
|
|
20608
20608
|
u
|
|
@@ -20945,7 +20945,7 @@ function Wb({
|
|
|
20945
20945
|
showInfoTab: t
|
|
20946
20946
|
}) {
|
|
20947
20947
|
return /* @__PURE__ */ e(
|
|
20948
|
-
|
|
20948
|
+
th,
|
|
20949
20949
|
{
|
|
20950
20950
|
className: "min-h-[240px]",
|
|
20951
20951
|
description: t ? "See the Error tab for details and troubleshooting options." : "Contact your administrator for help resolving this issue."
|
|
@@ -20957,8 +20957,8 @@ function Jb({
|
|
|
20957
20957
|
effectiveCardType: a = t.type,
|
|
20958
20958
|
queryResultColumns: s
|
|
20959
20959
|
}) {
|
|
20960
|
-
return Lr(a) ? /* @__PURE__ */ n(
|
|
20961
|
-
/* @__PURE__ */ e(
|
|
20960
|
+
return Lr(a) ? /* @__PURE__ */ n(nh, { modal: !1, children: [
|
|
20961
|
+
/* @__PURE__ */ e(ah, { asChild: !0, children: /* @__PURE__ */ e(
|
|
20962
20962
|
pt,
|
|
20963
20963
|
{
|
|
20964
20964
|
tooltip: "Table settings",
|
|
@@ -20971,14 +20971,14 @@ function Jb({
|
|
|
20971
20971
|
}
|
|
20972
20972
|
) }),
|
|
20973
20973
|
/* @__PURE__ */ n(
|
|
20974
|
-
|
|
20974
|
+
sh,
|
|
20975
20975
|
{
|
|
20976
20976
|
side: "right",
|
|
20977
20977
|
hideOverlay: !0,
|
|
20978
20978
|
className: "flex w-[420px] flex-col gap-0 p-0 sm:max-w-[420px]",
|
|
20979
20979
|
children: [
|
|
20980
|
-
/* @__PURE__ */ e(
|
|
20981
|
-
/* @__PURE__ */ e(
|
|
20980
|
+
/* @__PURE__ */ e(rh, { className: "sr-only", children: "Table settings" }),
|
|
20981
|
+
/* @__PURE__ */ e(lh, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
|
|
20982
20982
|
/* @__PURE__ */ n("div", { className: "border-b px-4 py-3", children: [
|
|
20983
20983
|
/* @__PURE__ */ e("div", { className: "text-[13px] font-semibold text-foreground", children: "Table settings" }),
|
|
20984
20984
|
/* @__PURE__ */ e("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: "Settings apply to this table and document exports that reuse it." })
|
|
@@ -21000,7 +21000,7 @@ function Xb({
|
|
|
21000
21000
|
className: t,
|
|
21001
21001
|
visible: a
|
|
21002
21002
|
}) {
|
|
21003
|
-
const s = ve((o) => o.selectedFrameId), r =
|
|
21003
|
+
const s = ve((o) => o.selectedFrameId), r = ih((o) => o.selectedVisual), c = P((o) => o.frame), i = !!!(c != null && c.visualId || r != null && r.id) && !!s;
|
|
21004
21004
|
return !a || i ? null : /* @__PURE__ */ e("div", { className: G("flex", t), children: /* @__PURE__ */ e(
|
|
21005
21005
|
Ko,
|
|
21006
21006
|
{
|
|
@@ -21084,7 +21084,7 @@ function Zb({
|
|
|
21084
21084
|
});
|
|
21085
21085
|
}, qe = ce(() => {
|
|
21086
21086
|
var pe;
|
|
21087
|
-
return
|
|
21087
|
+
return Wi((pe = l.config) == null ? void 0 : pe.sortByColumns);
|
|
21088
21088
|
}, [(We = l.config) == null ? void 0 : We.sortByColumns]);
|
|
21089
21089
|
return /* @__PURE__ */ e(
|
|
21090
21090
|
"div",
|
|
@@ -21111,11 +21111,11 @@ function Zb({
|
|
|
21111
21111
|
hasQueryError: !!_
|
|
21112
21112
|
}
|
|
21113
21113
|
),
|
|
21114
|
-
!
|
|
21114
|
+
!oh(L) && /* @__PURE__ */ e(Kb, {})
|
|
21115
21115
|
] }),
|
|
21116
21116
|
L === "kpi" && /* @__PURE__ */ e(Xb, { visible: !0, className: "self-center" }),
|
|
21117
21117
|
J && l.type !== "table" && /* @__PURE__ */ e(
|
|
21118
|
-
|
|
21118
|
+
ch,
|
|
21119
21119
|
{
|
|
21120
21120
|
metadata: J,
|
|
21121
21121
|
variant: "compact"
|
|
@@ -21125,11 +21125,11 @@ function Zb({
|
|
|
21125
21125
|
] }),
|
|
21126
21126
|
/* @__PURE__ */ n("div", { className: "flex grow items-center justify-end gap-1", children: [
|
|
21127
21127
|
/* @__PURE__ */ e(
|
|
21128
|
-
|
|
21128
|
+
dh,
|
|
21129
21129
|
{
|
|
21130
21130
|
cardId: r.id,
|
|
21131
21131
|
cardFilters: (et = r.config) == null ? void 0 : et.filters,
|
|
21132
|
-
cardFilterCount:
|
|
21132
|
+
cardFilterCount: Oo(
|
|
21133
21133
|
((at = r.config) == null ? void 0 : at.filters) || null
|
|
21134
21134
|
),
|
|
21135
21135
|
onFiltersClick: s,
|
|
@@ -21283,8 +21283,8 @@ function Zb({
|
|
|
21283
21283
|
dashboardFilters: u
|
|
21284
21284
|
} : void 0,
|
|
21285
21285
|
onSendFeedback: () => {
|
|
21286
|
-
const pe =
|
|
21287
|
-
|
|
21286
|
+
const pe = uh(
|
|
21287
|
+
Zi.QUERY_GENERATION,
|
|
21288
21288
|
{
|
|
21289
21289
|
cardConfig: l.config,
|
|
21290
21290
|
dataSource: r.dataSource,
|
|
@@ -21339,13 +21339,13 @@ function ev({ activeField: t }) {
|
|
|
21339
21339
|
if (Se(() => {
|
|
21340
21340
|
t && s(!0);
|
|
21341
21341
|
}, [t]), !t) return null;
|
|
21342
|
-
const r = !!
|
|
21342
|
+
const r = !!ko(t);
|
|
21343
21343
|
return /* @__PURE__ */ n(
|
|
21344
21344
|
"div",
|
|
21345
21345
|
{
|
|
21346
21346
|
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 ${a ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
|
|
21347
21347
|
children: [
|
|
21348
|
-
/* @__PURE__ */ e(
|
|
21348
|
+
/* @__PURE__ */ e(Do, { dataType: t.dataType, calculated: r }),
|
|
21349
21349
|
/* @__PURE__ */ e("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: t.label || t.name })
|
|
21350
21350
|
]
|
|
21351
21351
|
}
|
|
@@ -21541,12 +21541,12 @@ function nv({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
|
|
|
21541
21541
|
"Sort Z → A"
|
|
21542
21542
|
] }),
|
|
21543
21543
|
/* @__PURE__ */ e(Pt, {}),
|
|
21544
|
-
/* @__PURE__ */ n(
|
|
21545
|
-
/* @__PURE__ */ n(
|
|
21544
|
+
/* @__PURE__ */ n(mh, { children: [
|
|
21545
|
+
/* @__PURE__ */ n(hh, { children: [
|
|
21546
21546
|
/* @__PURE__ */ e(Ar, { className: "mr-2 h-4 w-4" }),
|
|
21547
21547
|
"Summarize"
|
|
21548
21548
|
] }),
|
|
21549
|
-
/* @__PURE__ */ n(
|
|
21549
|
+
/* @__PURE__ */ n(ph, { children: [
|
|
21550
21550
|
/* @__PURE__ */ e(lt, { onClick: () => V("SUM"), children: "Sum" }),
|
|
21551
21551
|
/* @__PURE__ */ e(lt, { onClick: () => V("AVG"), children: "Average" }),
|
|
21552
21552
|
/* @__PURE__ */ e(lt, { onClick: () => V("COUNT"), children: "Count" }),
|
|
@@ -21830,7 +21830,7 @@ function sv({
|
|
|
21830
21830
|
B
|
|
21831
21831
|
)) })
|
|
21832
21832
|
] }),
|
|
21833
|
-
/* @__PURE__ */ e(
|
|
21833
|
+
/* @__PURE__ */ e(Fo, { children: w && /* @__PURE__ */ e("div", { className: "rounded border border-primary bg-background px-3 py-2 text-sm font-medium shadow-lg", children: w.label || w.name }) })
|
|
21834
21834
|
]
|
|
21835
21835
|
}
|
|
21836
21836
|
) }),
|
|
@@ -22330,7 +22330,7 @@ function dv() {
|
|
|
22330
22330
|
), D = v, {
|
|
22331
22331
|
getFieldsForContainer: T,
|
|
22332
22332
|
setFieldsForContainer: k
|
|
22333
|
-
} =
|
|
22333
|
+
} = To(D), { activeField: E, handleDragStart: x, handleDragEnd: R } = zb({
|
|
22334
22334
|
activeCardId: h.activeCardId,
|
|
22335
22335
|
sourceFields: N,
|
|
22336
22336
|
getFieldsForContainer: T,
|
|
@@ -22426,13 +22426,13 @@ function dv() {
|
|
|
22426
22426
|
onOpenChange: r
|
|
22427
22427
|
}
|
|
22428
22428
|
),
|
|
22429
|
-
/* @__PURE__ */ e(
|
|
22429
|
+
/* @__PURE__ */ e(Fo, { dropAnimation: null, children: /* @__PURE__ */ e(ev, { activeField: E || null }) })
|
|
22430
22430
|
]
|
|
22431
22431
|
}
|
|
22432
22432
|
);
|
|
22433
22433
|
}
|
|
22434
22434
|
function uv({ authToken: t, onSave: a, onClose: s }) {
|
|
22435
|
-
const r = Ee(null), c = P((w) => w.showAIDialog), l = P((w) => w.isDevMode), i = qs((w) => w.setFullscreen), o = qs((w) => w.setPanelOpen), d = qs((w) => w.setContainer), u =
|
|
22435
|
+
const r = Ee(null), c = P((w) => w.showAIDialog), l = P((w) => w.isDevMode), i = qs((w) => w.setFullscreen), o = qs((w) => w.setPanelOpen), d = qs((w) => w.setContainer), u = fh("editor"), m = gh(), g = xh("editor"), p = m === "editor", h = Nr(), v = Ie(
|
|
22436
22436
|
(w) => {
|
|
22437
22437
|
d("editor", w);
|
|
22438
22438
|
},
|
|
@@ -22554,7 +22554,7 @@ function uv({ authToken: t, onSave: a, onClose: s }) {
|
|
|
22554
22554
|
)
|
|
22555
22555
|
] });
|
|
22556
22556
|
}
|
|
22557
|
-
return /* @__PURE__ */ e(vs, { FallbackComponent:
|
|
22557
|
+
return /* @__PURE__ */ e(vs, { FallbackComponent: bh, children: l ? /* @__PURE__ */ e(
|
|
22558
22558
|
"section",
|
|
22559
22559
|
{
|
|
22560
22560
|
className: "isolate flex h-full grow",
|
|
@@ -22578,11 +22578,11 @@ function Pv() {
|
|
|
22578
22578
|
(h) => h.actions
|
|
22579
22579
|
), c = P((h) => h.editorContext), { clearEditorContext: l } = P((h) => h.actions), i = Nr(), o = ve((h) => h.isVisualEditing), d = ve((h) => h.actions.updateFrame), u = ve(
|
|
22580
22580
|
(h) => h.actions.updateDocumentSectionCard
|
|
22581
|
-
), m =
|
|
22581
|
+
), m = vh();
|
|
22582
22582
|
async function g(h) {
|
|
22583
22583
|
var S, I, C;
|
|
22584
22584
|
if ((c == null ? void 0 : c.type) === "documentSection") {
|
|
22585
|
-
const N =
|
|
22585
|
+
const N = yh(
|
|
22586
22586
|
h,
|
|
22587
22587
|
c.cardId
|
|
22588
22588
|
);
|
|
@@ -22590,7 +22590,7 @@ function Pv() {
|
|
|
22590
22590
|
it.error("No document section card found");
|
|
22591
22591
|
return;
|
|
22592
22592
|
}
|
|
22593
|
-
if (!
|
|
22593
|
+
if (!Nh(N)) {
|
|
22594
22594
|
it.error("Document table sections support Table and Pivot Table");
|
|
22595
22595
|
return;
|
|
22596
22596
|
}
|
|
@@ -22616,7 +22616,7 @@ function Pv() {
|
|
|
22616
22616
|
}
|
|
22617
22617
|
)) == null ? void 0 : C.id, y = v ? t : O || null;
|
|
22618
22618
|
if (!y) return;
|
|
22619
|
-
const f =
|
|
22619
|
+
const f = sp(a, h.id);
|
|
22620
22620
|
try {
|
|
22621
22621
|
const N = await m(h, {
|
|
22622
22622
|
previousFrame: f
|