react-semaphor 0.1.516 → 0.1.517
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +3 -3
- package/dist/chunks/{calculated-field-identity-DzJBs2J8.js → calculated-field-identity-Dy_WpDdo.js} +1 -1
- package/dist/chunks/{card-config-utils-Cxnq2R6z.js → card-config-utils-CAyjC5Tp.js} +2 -2
- package/dist/chunks/{dashboard-briefing-launcher-BCEHJ_eD.js → dashboard-briefing-launcher-D5HGRwtb.js} +7 -7
- package/dist/chunks/{dashboard-briefing-launcher-CjZ4aE34.cjs → dashboard-briefing-launcher-RpT4b0d5.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-DFfit5KH.js → dashboard-controls-C0Aw74JP.js} +9 -9
- package/dist/chunks/{dashboard-controls-f9aJ70Zu.cjs → dashboard-controls-DidqEx0U.cjs} +1 -1
- package/dist/chunks/{dashboard-json-DVtcA02f.js → dashboard-json-B5LLO49G.js} +5 -5
- package/dist/chunks/{dashboard-json-deqQC-UR.cjs → dashboard-json-rY4lTftA.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-lJ6rDH3w.js → edit-dashboard-visual-D3TrgFMg.js} +364 -361
- package/dist/chunks/{edit-dashboard-visual-DK6lSC_p.cjs → edit-dashboard-visual-NABO8NBr.cjs} +3 -3
- package/dist/chunks/{editor-action-buttons-Bnxxa439.js → editor-action-buttons-BfWg6DdZ.js} +4 -4
- package/dist/chunks/{editor-action-buttons-CmDaQbPN.cjs → editor-action-buttons-xQ5aj-0q.cjs} +1 -1
- package/dist/chunks/{field-aggregations-Dl2A3rbV.js → field-aggregations-BQjogiI1.js} +1 -1
- package/dist/chunks/{index-ylOpKRDu.js → index-B0KwXM6P.js} +117 -116
- package/dist/chunks/index-CapO5Uw9.cjs +4 -0
- package/dist/chunks/{index-UNKSfi7s.cjs → index-Dgv9vzT0.cjs} +230 -230
- package/dist/chunks/{index-BVVl2JDK.js → index-DqTelnri.js} +27499 -27198
- package/dist/chunks/{matrix-control-sources-KbZe1gj_.js → matrix-control-sources-B1K7x0SL.js} +2 -2
- package/dist/chunks/matrix-formatter-Qk8xsR05.cjs +1 -0
- package/dist/chunks/{matrix-formatter-CCXNRt3s.js → matrix-formatter-WBgtebUT.js} +8 -8
- package/dist/chunks/numeric-presentation-VhMUHfrJ.js +537 -0
- package/dist/chunks/numeric-presentation-mY6wJMdB.cjs +1 -0
- package/dist/chunks/{pivot-header-presentation-BSZhB1g-.js → pivot-header-presentation-CGtudHo7.js} +4 -4
- package/dist/chunks/{pivot-header-presentation-EoUS5ze5.cjs → pivot-header-presentation-DV2aBB6p.cjs} +2 -2
- package/dist/chunks/{pivot-result-lifecycle-kRhiJkzg.js → pivot-result-lifecycle-BFO354lk.js} +7 -7
- package/dist/chunks/pivot-result-lifecycle-OXAgoIYm.cjs +1 -0
- package/dist/chunks/raw-temporal-7bFbXd2a.js +930 -0
- package/dist/chunks/raw-temporal-CYdOOyR5.cjs +1 -0
- package/dist/chunks/{report-preferences-dialog-CHXPEl7v.js → report-preferences-dialog-BzxqfcF8.js} +3 -3
- package/dist/chunks/{report-preferences-dialog-Cto0vDwI.cjs → report-preferences-dialog-DLnhOXXg.cjs} +1 -1
- package/dist/chunks/{semantic-format-DwqGYx4V.js → semantic-format-Baqp8kD_.js} +1 -1
- package/dist/chunks/semantic-format-Bd7HmLG_.cjs +1 -0
- package/dist/chunks/{switch-DNbWXEOP.cjs → switch-C0520nRt.cjs} +24 -24
- package/dist/chunks/{switch-DNv-hVmt.js → switch-evlnTA4t.js} +3180 -3092
- package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-PcLFSYWX.js} +6 -6
- package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +222 -0
- package/dist/chunks/temporal-input-presentation-BIOSVWCL.cjs +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +6 -6
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.cjs +3 -3
- package/dist/format-utils/index.js +77 -73
- package/dist/index.cjs +1 -1
- package/dist/index.js +10 -10
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/editor/editor-main/dashboard-variable-node.d.ts +7 -3
- package/dist/types/components/editor/editor-main/text-card-rich-editor.d.ts +4 -1
- package/dist/types/lib/charts/chart-availability.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-display.d.ts +11 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-text.d.ts +2 -1
- package/dist/types/lib/dashboard-inputs/text-card-rich-content.d.ts +3 -2
- package/dist/types/lib/dashboard-inputs/text-variable-options.d.ts +5 -4
- package/dist/types/lib/document/document-variables.d.ts +8 -4
- package/dist/types/lib/text-variables/temporal-input-text.d.ts +28 -0
- package/dist/types/lib/text-variables/text-variable-types.d.ts +17 -1
- package/dist/types/lib/types/common-types.d.ts +11 -1
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/temporal-input-presentation.d.ts +46 -0
- package/package.json +1 -1
- package/dist/chunks/index-C8w91oj4.js +0 -328
- package/dist/chunks/index-Cw2ypaFl.cjs +0 -1
- package/dist/chunks/index-DfqMtR9S.cjs +0 -4
- package/dist/chunks/matrix-formatter-BJTO8ky9.cjs +0 -1
- package/dist/chunks/pivot-result-lifecycle-gl9cBfB-.cjs +0 -1
- package/dist/chunks/raw-temporal-BqOfk-xN.js +0 -1137
- package/dist/chunks/raw-temporal-eJXecCyJ.cjs +0 -1
- package/dist/chunks/semantic-format-mVI32OJH.cjs +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as Ne } from "react/jsx-runtime";
|
|
2
2
|
import * as ns from "react";
|
|
3
3
|
import Zt, { useState as K, useEffect as ke, useMemo as se, useRef as Ee, useCallback as Oe, useId as en, useContext as Sr, Suspense as vd } from "react";
|
|
4
|
-
import { cX as jo, aG as pa, aH as fa, aI as Ra, aJ as ga, aK as Pa, aF as ss, bi as Lt, bj as Qt, cY as yd, cZ as Jn, c_ as Ko, c$ as Xn, b3 as rs, aY as It, cd as Tr, b1 as ln, bl as on, bh as Ft, d0 as ls, d1 as Uo, d2 as Nd, d3 as Cd, d4 as Go, d5 as wd, d6 as Sd, d7 as Td, d8 as kd, d9 as Ho, da as kr, db as Md, dc as Dd, dd as Id, de as Ed, df as sr, dg as Zn, az as cn, m as Qo, dh as Ad, di as Od, dj as Wo, dk as Jo, dl as Xo, dm as Fd, dn as Rd, dp as Pd, dq as Ld, cL as Mr, b0 as Zo, b7 as ei, dr as ya, ds as rr, dt as Vd, c7 as Sn, du as ti, dv as jl, dw as Kl, be as Ha, aM as ra, aN as bt, dx as Bd, dy as ai, dz as ni, bW as et, dA as Oa, dB as Yd, dC as si, dD as _d, dE as $d, dF as zd, aD as ri, dG as qd, dH as jd, dI as Kd, dJ as Ud, dK as Gd, dL as Hd, dM as Qd, dN as Vs, dO as Wd, dP as Ul, dQ as Jd, dR as Gl, dS as Xd, bg as At, ca as dn, cb as un, cc as mn, dT as li, bH as Dr, aL as Ir, dU as oi, dV as Er, dW as Ar, dX as Zd, dY as eu, dZ as ii, d_ as ci, d$ as tu, e0 as au, e1 as Gt, e2 as nu, e3 as su, e4 as ru, e5 as lu, e6 as ou, e7 as di, G as ui, e8 as Or, M as iu, e9 as cu, ea as du, eb as uu, ec as Dn, ed as mu, ee as hu, ef as Hl, eg as pu, E as xs, e as Fr, eh as fu, ei as Rr, bz as gu, ej as Ql, I as ft, ek as xu, el as mi, em as hi, en as bu, eo as Pr, ep as Lr, eq as Wl, er as Ln, es as vu, et as yu, eu as Nu, ev as Cu, ew as wu, ex as os, ey as Su, ez as Tu, eA as pi, eB as fi, eC as ku, eD as Mu, cp as Du, eE as Iu, eF as gi, eG as Eu, eH as Au, cq as bs, eI as vs, eJ as Wa, eK as Ou, eL as Vr, eM as La, eN as Va, eO as xa, eP as tn, eQ as Fu, eR as Ru, cw as Jl, bp as ea, bq as ta, br as aa, eS as Pu, eT as xi, eU as Lu, eV as Vu, eW as bi, eX as Bu, eY as Yu, eZ as _u, e_ as $u, e$ as zu, f0 as Bs, f1 as qu, f2 as ju, f3 as ys, f4 as vi, f5 as Ku, f6 as Uu, f7 as Gu, f8 as Hu, f9 as Qu, fa as Wu, fb as Ju, fc as Xu, fd as Zu, fe as em, ff as lr, fg as tm, fh as am, fi as Xl, b2 as or, a_ as ba, aO as nm, aP as sm, aR as rm, aS as lm, aT as om, aU as im, aV as cm, aW as dm, aX as um, bY as mm, fj as Br, fk as yi, fl as In, fm as En, fn as An, cE as la, cf as Yr, bB as Ht, bA as wn, cg as ir, fo as Ni, fp as hm, fq as Ns, fr as ct, fs as dt, ft as ut, fu as pm, fv as fm, fw as Ci, fx as wi, fy as Si, fz as Ti, fA as gm, fB as xm, fC as bm, fD as ki, fE as Zl, fF as Mi, fG as vm, fH as ym, fI as cr, fJ as Nm, fK as Cm, fL as wm, fM as Sm, fN as Tm, fO as km, fP as Mm, fQ as Dm, fR as Im, fS as Em, fT as Am, fU as Om, fV as Fm, fW as Rm, fX as Da, fY as yn, fZ as Pm, f_ as eo, f$ as Lm, g0 as Vm, g1 as Ys, g2 as to, g3 as Bm, g4 as Ym, g5 as _m, g6 as $m, g7 as zm, aB as _r, aC as On, g8 as _s, g9 as Di, b5 as qm, ga as is, gb as jm, gc as Ii, gd as Ei, ge as Km, gf as Ai, gg as Um, T as Gm, gh as Gn, gi as Hm, gj as ao, gk as Qm, gl as Wm, gm as no, gn as Jm, go as Xm, gp as Zm, gq as eh, gr as th, aQ as Oi, gs as ah, gt as nh, gu as sh, gv as rh, gw as lh, gx as oh, gy as ih, gz as Cs, gA as ws, gB as an, gC as ch, gD as Fi, gE as dh, cs as uh, gF as mh, gG as hh, gH as ph, gI as Ri, cF as Ss, gJ as Pi, gK as Li, gL as fh, gM as gh, gN as xh, gO as bh, gP as vh, gQ as yh, gR as Nh, gS as Ch, gT as wh, gU as Sh, gV as Th, gW as kh, gX as $r, gY as Vi, gZ as Bi, g_ as Yi, g$ as es, h0 as _i, h1 as $i, h2 as Mh, h3 as so, h4 as Dh, h5 as Ih, h6 as Eh, h7 as Ah, h8 as ts, h9 as zr, ha as Oh, hb as cs, hc as Fh, hd as Rh, he as Ja, hf as zi, hg as Ph, hh as Fn, hi as da, hj as dr, hk as ur, hl as Rn, hm as qi, hn as $s, ho as Fa, hp as Lh, hq as Vh, hr as ro, hs as lo, V as Bh, cN as Yh, ht as _h, cO as $h, cQ as zh, cR as qh, u as jh, hu as Kh, hv as Uh, hw as Gh, hx as Hh, ch as Qh, ci as Wh, cj as Jh, bV as Ts, hy as ks, hz as oo, g as mr, h as hr, i as pr, j as fr, k as gr, l as xr, hA as ji, cH as zs, hB as Xh, hC as Zh, hD as ep, hE as tp, F as ap, hF as np, bw as sp } from "./index-
|
|
4
|
+
import { cX as jo, aG as pa, aH as fa, aI as Ra, aJ as ga, aK as Pa, aF as ss, bi as Lt, bj as Qt, cY as yd, cZ as Jn, c_ as Ko, c$ as Xn, b3 as rs, aY as It, cd as Tr, b1 as ln, bl as on, bh as Ft, d0 as ls, d1 as Uo, d2 as Nd, d3 as Cd, d4 as Go, d5 as wd, d6 as Sd, d7 as Td, d8 as kd, d9 as Ho, da as kr, db as Md, dc as Dd, dd as Id, de as Ed, df as sr, dg as Zn, az as cn, m as Qo, dh as Ad, di as Od, dj as Wo, dk as Jo, dl as Xo, dm as Fd, dn as Rd, dp as Pd, dq as Ld, cL as Mr, b0 as Zo, b7 as ei, dr as ya, ds as rr, dt as Vd, c7 as Sn, du as ti, dv as jl, dw as Kl, be as Ha, aM as ra, aN as bt, dx as Bd, dy as ai, dz as ni, bW as et, dA as Oa, dB as Yd, dC as si, dD as _d, dE as $d, dF as zd, aD as ri, dG as qd, dH as jd, dI as Kd, dJ as Ud, dK as Gd, dL as Hd, dM as Qd, dN as Vs, dO as Wd, dP as Ul, dQ as Jd, dR as Gl, dS as Xd, bg as At, ca as dn, cb as un, cc as mn, dT as li, bH as Dr, aL as Ir, dU as oi, dV as Er, dW as Ar, dX as Zd, dY as eu, dZ as ii, d_ as ci, d$ as tu, e0 as au, e1 as Gt, e2 as nu, e3 as su, e4 as ru, e5 as lu, e6 as ou, e7 as di, G as ui, e8 as Or, M as iu, e9 as cu, ea as du, eb as uu, ec as Dn, ed as mu, ee as hu, ef as Hl, eg as pu, E as xs, e as Fr, eh as fu, ei as Rr, bz as gu, ej as Ql, I as ft, ek as xu, el as mi, em as hi, en as bu, eo as Pr, ep as Lr, eq as Wl, er as Ln, es as vu, et as yu, eu as Nu, ev as Cu, ew as wu, ex as os, ey as Su, ez as Tu, eA as pi, eB as fi, eC as ku, eD as Mu, cp as Du, eE as Iu, eF as gi, eG as Eu, eH as Au, cq as bs, eI as vs, eJ as Wa, eK as Ou, eL as Vr, eM as La, eN as Va, eO as xa, eP as tn, eQ as Fu, eR as Ru, cw as Jl, bp as ea, bq as ta, br as aa, eS as Pu, eT as xi, eU as Lu, eV as Vu, eW as bi, eX as Bu, eY as Yu, eZ as _u, e_ as $u, e$ as zu, f0 as Bs, f1 as qu, f2 as ju, f3 as ys, f4 as vi, f5 as Ku, f6 as Uu, f7 as Gu, f8 as Hu, f9 as Qu, fa as Wu, fb as Ju, fc as Xu, fd as Zu, fe as em, ff as lr, fg as tm, fh as am, fi as Xl, b2 as or, a_ as ba, aO as nm, aP as sm, aR as rm, aS as lm, aT as om, aU as im, aV as cm, aW as dm, aX as um, bY as mm, fj as Br, fk as yi, fl as In, fm as En, fn as An, cE as la, cf as Yr, bB as Ht, bA as wn, cg as ir, fo as Ni, fp as hm, fq as Ns, fr as ct, fs as dt, ft as ut, fu as pm, fv as fm, fw as Ci, fx as wi, fy as Si, fz as Ti, fA as gm, fB as xm, fC as bm, fD as ki, fE as Zl, fF as Mi, fG as vm, fH as ym, fI as cr, fJ as Nm, fK as Cm, fL as wm, fM as Sm, fN as Tm, fO as km, fP as Mm, fQ as Dm, fR as Im, fS as Em, fT as Am, fU as Om, fV as Fm, fW as Rm, fX as Da, fY as yn, fZ as Pm, f_ as eo, f$ as Lm, g0 as Vm, g1 as Ys, g2 as to, g3 as Bm, g4 as Ym, g5 as _m, g6 as $m, g7 as zm, aB as _r, aC as On, g8 as _s, g9 as Di, b5 as qm, ga as is, gb as jm, gc as Ii, gd as Ei, ge as Km, gf as Ai, gg as Um, T as Gm, gh as Gn, gi as Hm, gj as ao, gk as Qm, gl as Wm, gm as no, gn as Jm, go as Xm, gp as Zm, gq as eh, gr as th, aQ as Oi, gs as ah, gt as nh, gu as sh, gv as rh, gw as lh, gx as oh, gy as ih, gz as Cs, gA as ws, gB as an, gC as ch, gD as Fi, gE as dh, cs as uh, gF as mh, gG as hh, gH as ph, gI as Ri, cF as Ss, gJ as Pi, gK as Li, gL as fh, gM as gh, gN as xh, gO as bh, gP as vh, gQ as yh, gR as Nh, gS as Ch, gT as wh, gU as Sh, gV as Th, gW as kh, gX as $r, gY as Vi, gZ as Bi, g_ as Yi, g$ as es, h0 as _i, h1 as $i, h2 as Mh, h3 as so, h4 as Dh, h5 as Ih, h6 as Eh, h7 as Ah, h8 as ts, h9 as zr, ha as Oh, hb as cs, hc as Fh, hd as Rh, he as Ja, hf as zi, hg as Ph, hh as Fn, hi as da, hj as dr, hk as ur, hl as Rn, hm as qi, hn as $s, ho as Fa, hp as Lh, hq as Vh, hr as ro, hs as lo, V as Bh, cN as Yh, ht as _h, cO as $h, cQ as zh, cR as qh, u as jh, hu as Kh, hv as Uh, hw as Gh, hx as Hh, ch as Qh, ci as Wh, cj as Jh, bV as Ts, hy as ks, hz as oo, g as mr, h as hr, i as pr, j as fr, k as gr, l as xr, hA as ji, cH as zs, hB as Xh, hC as Zh, hD as ep, hE as tp, F as ap, hF as np, bw as sp } from "./index-DqTelnri.js";
|
|
5
5
|
import { c as Xe, C as wt, X as st } from "./x-CXDkqdur.js";
|
|
6
|
-
import { E as we, B as X, N as ds, H as Vn, c as H, a4 as ht, O as q, _ as re, $ as le, a0 as oe, a1 as ie, a2 as U, D as F, Y as kt, Q as Vt, V as Mt, W as Dt, aR as rp, P as St, a as Et, b as Tt, aK as Tn, aS as qr, aT as Ki, aH as Ui, aF as lp, Z as Ye, aU as op, L as va, C as Ba, T as hn, F as pn, G as Yt, I as na, d as _a, u as Te, R as us, aV as ip, aW as cp, aX as jr, z as Gi, X as Ya, M as Kr, S as nn, aY as dp, aZ as up, a_ as mp, a$ as hp, b0 as pp, b1 as fp, b2 as Hi, af as gp, aM as xp, b3 as bp, b4 as vp, b5 as io, b6 as yp, b7 as Np, b8 as Cp, b9 as wp, ba as co, bb as Sp, bc as uo, bd as fn, be as Tp, a3 as Ge, bf as kp, bg as br, bh as Qi, bi as ua, bj as Wi, bk as Mp, bl as Ji, bm as Dp, bn as Ip, bo as Bt, K as Xi, bp as Ct, r as mo, bq as Ep, br as Ap, bs as Op, bt as Fp, bu as Rp, bv as Pp, bw as Lp, bx as Vp, by as Bp, bz as Yp, bA as _p, bB as ho, bC as $p, bD as qs, bE as zp, bF as qp, J as Ms, az as jp } from "./switch-
|
|
7
|
-
import { C as Kp, g as Ur, w as sn, h as gn, s as Zi, v as ha, m as ec, c as Hn, d as Up, M as Gp, e as Hp, f as Qp, j as Wp, k as rn } from "./card-config-utils-
|
|
6
|
+
import { E as we, B as X, N as ds, H as Vn, c as H, a4 as ht, O as q, _ as re, $ as le, a0 as oe, a1 as ie, a2 as U, D as F, Y as kt, Q as Vt, V as Mt, W as Dt, aR as rp, P as St, a as Et, b as Tt, aK as Tn, aS as qr, aT as Ki, aH as Ui, aF as lp, Z as Ye, aU as op, L as va, C as Ba, T as hn, F as pn, G as Yt, I as na, d as _a, u as Te, R as us, aV as ip, aW as cp, aX as jr, z as Gi, X as Ya, M as Kr, S as nn, aY as dp, aZ as up, a_ as mp, a$ as hp, b0 as pp, b1 as fp, b2 as Hi, af as gp, aM as xp, b3 as bp, b4 as vp, b5 as io, b6 as yp, b7 as Np, b8 as Cp, b9 as wp, ba as co, bb as Sp, bc as uo, bd as fn, be as Tp, a3 as Ge, bf as kp, bg as br, bh as Qi, bi as ua, bj as Wi, bk as Mp, bl as Ji, bm as Dp, bn as Ip, bo as Bt, K as Xi, bp as Ct, r as mo, bq as Ep, br as Ap, bs as Op, bt as Fp, bu as Rp, bv as Pp, bw as Lp, bx as Vp, by as Bp, bz as Yp, bA as _p, bB as ho, bC as $p, bD as qs, bE as zp, bF as qp, J as Ms, az as jp } from "./switch-evlnTA4t.js";
|
|
7
|
+
import { C as Kp, g as Ur, w as sn, h as gn, s as Zi, v as ha, m as ec, c as Hn, d as Up, M as Gp, e as Hp, f as Qp, j as Wp, k as rn } from "./card-config-utils-CAyjC5Tp.js";
|
|
8
8
|
import { al as tc, W as Jp, F as po, bc as Xp, S as ms, be as js } from "./validators-CsdOtZI6.js";
|
|
9
9
|
import "./matrix-operation-contract-D32U2CSw.js";
|
|
10
10
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Pn } from "../value-format-preferences/index.js";
|
|
11
|
-
import { C as Zp, E as fo, A as ac, b as ef, g as vr, d as as, B as nc, e as tf } from "./field-aggregations-
|
|
11
|
+
import { C as Zp, E as fo, A as ac, b as ef, g as vr, d as as, B as nc, e as tf } from "./field-aggregations-BQjogiI1.js";
|
|
12
12
|
import { C as _t, M as sc, a as rc, E as hs, S as Gr } from "./selection-reducer-CvCBQbl2.js";
|
|
13
|
-
import { f as af, F as nf, g as sf, V as lc, e as rf, C as lf, h as of } from "./editor-action-buttons-
|
|
14
|
-
import { g as cf, L as df, M as uf, v as mf, w as hf, z as pf, x as ff } from "./calculated-field-identity-
|
|
13
|
+
import { f as af, F as nf, g as sf, V as lc, e as rf, C as lf, h as of } from "./editor-action-buttons-BfWg6DdZ.js";
|
|
14
|
+
import { g as cf, L as df, M as uf, v as mf, w as hf, z as pf, x as ff } from "./calculated-field-identity-Dy_WpDdo.js";
|
|
15
15
|
import "zod";
|
|
16
|
-
import { f as $a, r as Na, b as Bn, c as sa, e as Xa, i as gf, n as xf, h as oc, j as ic, k as cc, l as bf, m as yr, o as vf, p as yf, q as Nf } from "./index-
|
|
16
|
+
import { f as $a, r as Na, b as Bn, c as sa, e as Xa, i as gf, n as xf, h as oc, j as ic, k as cc, l as bf, m as yr, o as vf, p as yf, q as Nf } from "./index-B0KwXM6P.js";
|
|
17
17
|
import { createPortal as Cf } from "react-dom";
|
|
18
18
|
import "./appearance-runtime-provider-CC4HT2Gi.js";
|
|
19
19
|
import { u as wf } from "./appearance-context-VJdrKi7r.js";
|
|
20
20
|
import "./index-CLIro-EG.js";
|
|
21
21
|
import "./matrix-continuation-C4sRcjZU.js";
|
|
22
22
|
import "./color-CJvdlFM_.js";
|
|
23
|
-
import { m as Sf } from "./matrix-control-sources-
|
|
23
|
+
import { m as Sf } from "./matrix-control-sources-B1K7x0SL.js";
|
|
24
24
|
import { c as Tf, a as Ds, g as Hr } from "./matrix-definition-E5gXXSTZ.js";
|
|
25
|
-
import { g as kf, r as Mf } from "./
|
|
25
|
+
import { g as kf, r as Mf } from "./numeric-presentation-VhMUHfrJ.js";
|
|
26
26
|
import { D as go } from "./metric-comparison-BphoJ9bq.js";
|
|
27
|
-
import { m as dc } from "./matrix-formatter-
|
|
28
|
-
import { f as Df } from "./semantic-format-
|
|
27
|
+
import { m as dc } from "./matrix-formatter-WBgtebUT.js";
|
|
28
|
+
import { f as Df } from "./semantic-format-Baqp8kD_.js";
|
|
29
29
|
import { P as If } from "./palette-Cp1hqZtm.js";
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -5595,7 +5595,10 @@ function Tc(t, n) {
|
|
|
5595
5595
|
function kn(t, n) {
|
|
5596
5596
|
return t === "matrixTable" ? !1 : Tc(t, n);
|
|
5597
5597
|
}
|
|
5598
|
-
|
|
5598
|
+
function Hg(t) {
|
|
5599
|
+
return t === "custom" || t === "map";
|
|
5600
|
+
}
|
|
5601
|
+
const Qg = [
|
|
5599
5602
|
{ id: "table", name: "Table" },
|
|
5600
5603
|
{ id: "bar", name: "Bar Chart" },
|
|
5601
5604
|
{ id: "line", name: "Line Chart" },
|
|
@@ -5622,8 +5625,8 @@ const Hg = [
|
|
|
5622
5625
|
{ id: "matrixTable", name: "Matrix Table" }
|
|
5623
5626
|
// { id: 'tableBuilder', name: 'Table Builder' },
|
|
5624
5627
|
];
|
|
5625
|
-
function
|
|
5626
|
-
return
|
|
5628
|
+
function Wg(t) {
|
|
5629
|
+
return Qg.filter(
|
|
5627
5630
|
(n) => Tc(n.id, t)
|
|
5628
5631
|
);
|
|
5629
5632
|
}
|
|
@@ -5639,7 +5642,7 @@ function kc({ onChartSelect: t, onClose: n }) {
|
|
|
5639
5642
|
clearModeDrafts: T,
|
|
5640
5643
|
initializeModeDrafts: w
|
|
5641
5644
|
} = we(), C = se(() => {
|
|
5642
|
-
const S =
|
|
5645
|
+
const S = Wg({ isDevMode: f });
|
|
5643
5646
|
if (!s) return S;
|
|
5644
5647
|
const E = s.toLowerCase();
|
|
5645
5648
|
return S.filter(
|
|
@@ -5655,7 +5658,7 @@ function kc({ onChartSelect: t, onClose: n }) {
|
|
|
5655
5658
|
(I) => I.name.toLowerCase().includes(E)
|
|
5656
5659
|
);
|
|
5657
5660
|
}, [l, s]), D = (S) => {
|
|
5658
|
-
b(null), u({}), p("builtin"), m(S),
|
|
5661
|
+
b(null), u({}), p("builtin"), m(S), Hg(S) && (x(!0), g(void 0)), t == null || t(S), n == null || n();
|
|
5659
5662
|
}, A = (S) => {
|
|
5660
5663
|
b(null), u({}), p("builtin"), g(void 0);
|
|
5661
5664
|
const E = oc(S);
|
|
@@ -5743,7 +5746,7 @@ function kc({ onChartSelect: t, onClose: n }) {
|
|
|
5743
5746
|
] })
|
|
5744
5747
|
] });
|
|
5745
5748
|
}
|
|
5746
|
-
function
|
|
5749
|
+
function Jg({
|
|
5747
5750
|
selectedChart: t,
|
|
5748
5751
|
onChartChange: n
|
|
5749
5752
|
}) {
|
|
@@ -5822,7 +5825,7 @@ function Wg({
|
|
|
5822
5825
|
}
|
|
5823
5826
|
};
|
|
5824
5827
|
}
|
|
5825
|
-
function
|
|
5828
|
+
function Xg({
|
|
5826
5829
|
selectedChart: t,
|
|
5827
5830
|
onChartChange: n,
|
|
5828
5831
|
variant: s = "ghost",
|
|
@@ -5835,7 +5838,7 @@ function Jg({
|
|
|
5835
5838
|
badgeLabel: m,
|
|
5836
5839
|
handleChartSelect: u,
|
|
5837
5840
|
handleClearCustomVisual: x
|
|
5838
|
-
} =
|
|
5841
|
+
} = Jg({ selectedChart: t, onChartChange: n }), h = s === "header";
|
|
5839
5842
|
return /* @__PURE__ */ a("div", { className: H("relative w-full", r), children: [
|
|
5840
5843
|
/* @__PURE__ */ a(St, { open: o, onOpenChange: c, children: [
|
|
5841
5844
|
/* @__PURE__ */ e(Et, { asChild: !0, children: h ? /* @__PURE__ */ a(
|
|
@@ -5973,7 +5976,7 @@ const Qa = {
|
|
|
5973
5976
|
{ id: "kpi" },
|
|
5974
5977
|
{ id: "doughnut" }
|
|
5975
5978
|
], Dc = 6;
|
|
5976
|
-
function
|
|
5979
|
+
function Zg({
|
|
5977
5980
|
selectedChart: t,
|
|
5978
5981
|
onChartChange: n
|
|
5979
5982
|
}) {
|
|
@@ -6209,7 +6212,7 @@ function Ic({
|
|
|
6209
6212
|
] })
|
|
6210
6213
|
] }) });
|
|
6211
6214
|
}
|
|
6212
|
-
function
|
|
6215
|
+
function ex() {
|
|
6213
6216
|
const t = F(
|
|
6214
6217
|
(d) => {
|
|
6215
6218
|
var m, u;
|
|
@@ -6517,7 +6520,7 @@ function tl({
|
|
|
6517
6520
|
b.length > 0 && /* @__PURE__ */ a("div", { className: "border-t px-4 py-3", children: [
|
|
6518
6521
|
/* @__PURE__ */ e("p", { className: "mb-2 text-xs font-medium text-muted-foreground", children: "Active Filters" }),
|
|
6519
6522
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: b.map((C) => /* @__PURE__ */ e(
|
|
6520
|
-
|
|
6523
|
+
tx,
|
|
6521
6524
|
{
|
|
6522
6525
|
filter: C,
|
|
6523
6526
|
onUpdate: (O) => M(C.id, O),
|
|
@@ -6533,7 +6536,7 @@ function tl({
|
|
|
6533
6536
|
}
|
|
6534
6537
|
);
|
|
6535
6538
|
}
|
|
6536
|
-
function
|
|
6539
|
+
function tx({
|
|
6537
6540
|
filter: t,
|
|
6538
6541
|
onUpdate: n,
|
|
6539
6542
|
onRemove: s
|
|
@@ -6572,16 +6575,16 @@ function ex({
|
|
|
6572
6575
|
] })
|
|
6573
6576
|
] });
|
|
6574
6577
|
}
|
|
6575
|
-
const
|
|
6578
|
+
const ax = {
|
|
6576
6579
|
metric_selector: "Displayed metric",
|
|
6577
6580
|
field_selector: "Group by field",
|
|
6578
6581
|
aggregation_selector: "Aggregation",
|
|
6579
6582
|
grain_selector: "Time grain"
|
|
6580
6583
|
};
|
|
6581
|
-
function
|
|
6584
|
+
function nx(t, n) {
|
|
6582
6585
|
return t && typeof t == "object" && "label" in t && typeof t.label == "string" && t.label.trim().length > 0 ? t.label : n || null;
|
|
6583
6586
|
}
|
|
6584
|
-
const
|
|
6587
|
+
const sx = {
|
|
6585
6588
|
metric_selector: "config_metric_selector",
|
|
6586
6589
|
field_selector: "config_field_selector",
|
|
6587
6590
|
aggregation_selector: "config_aggregation",
|
|
@@ -6590,7 +6593,7 @@ const nx = {
|
|
|
6590
6593
|
function ps(t, n) {
|
|
6591
6594
|
return `${t}:${n}`;
|
|
6592
6595
|
}
|
|
6593
|
-
function
|
|
6596
|
+
function rx(t, n, s, r, o) {
|
|
6594
6597
|
const c = new Set(
|
|
6595
6598
|
s.filter(
|
|
6596
6599
|
(l) => l.target !== "sql_param" && l.target !== "presentation_currency"
|
|
@@ -6601,7 +6604,7 @@ function sx(t, n, s, r, o) {
|
|
|
6601
6604
|
control: l,
|
|
6602
6605
|
matrixSpec: r,
|
|
6603
6606
|
resolveDataType: o
|
|
6604
|
-
}).map((h) => h.value), m =
|
|
6607
|
+
}).map((h) => h.value), m = sx[l.type], x = [
|
|
6605
6608
|
...m && d.includes(m) ? [m] : [],
|
|
6606
6609
|
...d.filter((h) => h !== m)
|
|
6607
6610
|
].find(
|
|
@@ -6618,7 +6621,7 @@ function sx(t, n, s, r, o) {
|
|
|
6618
6621
|
mapping: {}
|
|
6619
6622
|
} : null;
|
|
6620
6623
|
}
|
|
6621
|
-
function
|
|
6624
|
+
function lx({
|
|
6622
6625
|
card: t,
|
|
6623
6626
|
dashboardControls: n,
|
|
6624
6627
|
bindings: s,
|
|
@@ -6722,7 +6725,7 @@ function rx({
|
|
|
6722
6725
|
}, D = (k) => {
|
|
6723
6726
|
r(s.filter((y, S) => S !== k));
|
|
6724
6727
|
}, A = () => {
|
|
6725
|
-
const k =
|
|
6728
|
+
const k = rx(t, h, s, d, p);
|
|
6726
6729
|
k && r([...s, k]);
|
|
6727
6730
|
};
|
|
6728
6731
|
if (typeof t.sql == "string" && t.sql.trim().length > 0) {
|
|
@@ -6792,7 +6795,7 @@ function rx({
|
|
|
6792
6795
|
value: B,
|
|
6793
6796
|
label: (j == null ? void 0 : j.label) || B
|
|
6794
6797
|
};
|
|
6795
|
-
}), V = `${k.controlId}-${k.target}-${y}`, _ = f[V] ?? y === 0, z = Object.keys(k.mapping).length, $ = E != null && E.type ?
|
|
6798
|
+
}), V = `${k.controlId}-${k.target}-${y}`, _ = f[V] ?? y === 0, z = Object.keys(k.mapping).length, $ = E != null && E.type ? ax[E.type] || E.type : null;
|
|
6796
6799
|
return /* @__PURE__ */ a(
|
|
6797
6800
|
ea,
|
|
6798
6801
|
{
|
|
@@ -6866,7 +6869,7 @@ function rx({
|
|
|
6866
6869
|
P.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "Add choices to this control first so you can decide what each choice changes in the card." }) : v.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "No matching targets are available for this binding yet." }) : /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
6867
6870
|
/* @__PURE__ */ e(q, { className: "text-xs", children: "Map each choice" }),
|
|
6868
6871
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: P.map((B) => {
|
|
6869
|
-
const j = k.mapping[B.value], Z = k.target === "config_metric_selector" || k.target === "config_field_selector" ? typeof j == "string" ? j : j == null ? void 0 : j.id : typeof j == "string" ? j : void 0, Q = !l && typeof Z == "string" && !v.some((ce) => ce.value === Z), ee =
|
|
6872
|
+
const j = k.mapping[B.value], Z = k.target === "config_metric_selector" || k.target === "config_field_selector" ? typeof j == "string" ? j : j == null ? void 0 : j.id : typeof j == "string" ? j : void 0, Q = !l && typeof Z == "string" && !v.some((ce) => ce.value === Z), ee = nx(
|
|
6870
6873
|
j,
|
|
6871
6874
|
Z
|
|
6872
6875
|
), te = Z && Q ? [
|
|
@@ -6968,7 +6971,7 @@ function rx({
|
|
|
6968
6971
|
] }) : null
|
|
6969
6972
|
] });
|
|
6970
6973
|
}
|
|
6971
|
-
function
|
|
6974
|
+
function ox(t, n, s) {
|
|
6972
6975
|
const { eligibleTargets: r } = xi(
|
|
6973
6976
|
t,
|
|
6974
6977
|
n,
|
|
@@ -6990,10 +6993,10 @@ function lx(t, n, s) {
|
|
|
6990
6993
|
};
|
|
6991
6994
|
});
|
|
6992
6995
|
}
|
|
6993
|
-
function
|
|
6996
|
+
function ix(t) {
|
|
6994
6997
|
return t ? t.kind === "metric" ? t.metricId : t.kind === "column" ? t.columnKey : t.measureId : "invalid target";
|
|
6995
6998
|
}
|
|
6996
|
-
function
|
|
6999
|
+
function cx({
|
|
6997
7000
|
matrixCatalog: t,
|
|
6998
7001
|
card: n,
|
|
6999
7002
|
dashboardControls: s,
|
|
@@ -7002,7 +7005,7 @@ function ix({
|
|
|
7002
7005
|
onChange: c
|
|
7003
7006
|
}) {
|
|
7004
7007
|
const i = [...s, ...n.controls || []], l = i.filter(Pu), d = se(
|
|
7005
|
-
() =>
|
|
7008
|
+
() => ox(n, r, t),
|
|
7006
7009
|
[n, r, t]
|
|
7007
7010
|
), m = se(
|
|
7008
7011
|
() => xi(n, r, t),
|
|
@@ -7041,7 +7044,7 @@ function ix({
|
|
|
7041
7044
|
w.controlId,
|
|
7042
7045
|
" →",
|
|
7043
7046
|
" ",
|
|
7044
|
-
|
|
7047
|
+
ix(w.presentationTarget),
|
|
7045
7048
|
w.presentationTarget ? ` · ${T(w.presentationTarget) ?? "unavailable"}` : null
|
|
7046
7049
|
] }),
|
|
7047
7050
|
/* @__PURE__ */ e(
|
|
@@ -7092,7 +7095,7 @@ function ix({
|
|
|
7092
7095
|
] })
|
|
7093
7096
|
] });
|
|
7094
7097
|
}
|
|
7095
|
-
const
|
|
7098
|
+
const dx = [];
|
|
7096
7099
|
function al({
|
|
7097
7100
|
className: t,
|
|
7098
7101
|
triggerVariant: n = "icon",
|
|
@@ -7108,7 +7111,7 @@ function al({
|
|
|
7108
7111
|
($) => $.queryResultColumns
|
|
7109
7112
|
), u = Te(($) => $.dashboard), h = Te(
|
|
7110
7113
|
($) => $.dashboard.controls
|
|
7111
|
-
) ||
|
|
7114
|
+
) || dx, { setCard: f, updateCardInFrame: b } = we(), [N, p] = K(null);
|
|
7112
7115
|
ke(() => {
|
|
7113
7116
|
c && !N && (l != null && l.id) && p(l.id);
|
|
7114
7117
|
}, [l == null ? void 0 : l.id, c, N]), ke(() => {
|
|
@@ -7268,7 +7271,7 @@ function al({
|
|
|
7268
7271
|
] }),
|
|
7269
7272
|
g ? /* @__PURE__ */ a(Ne, { children: [
|
|
7270
7273
|
/* @__PURE__ */ e(
|
|
7271
|
-
|
|
7274
|
+
lx,
|
|
7272
7275
|
{
|
|
7273
7276
|
card: g,
|
|
7274
7277
|
dashboardControls: h,
|
|
@@ -7283,7 +7286,7 @@ function al({
|
|
|
7283
7286
|
}
|
|
7284
7287
|
),
|
|
7285
7288
|
/* @__PURE__ */ e("div", { className: "border-t pt-4", children: /* @__PURE__ */ e(
|
|
7286
|
-
|
|
7289
|
+
cx,
|
|
7287
7290
|
{
|
|
7288
7291
|
matrixCatalog: w.catalog,
|
|
7289
7292
|
card: g,
|
|
@@ -7344,7 +7347,7 @@ function Ac({
|
|
|
7344
7347
|
"map"
|
|
7345
7348
|
].includes(c.type);
|
|
7346
7349
|
return u || x || s || r || o ? /* @__PURE__ */ a("div", { "data-info": "visual-settings", className: "flex items-center gap-2", children: [
|
|
7347
|
-
u && /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(
|
|
7350
|
+
u && /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(ex, {}) }),
|
|
7348
7351
|
x && /* @__PURE__ */ a(
|
|
7349
7352
|
ft,
|
|
7350
7353
|
{
|
|
@@ -7364,7 +7367,7 @@ function Ac({
|
|
|
7364
7367
|
o && /* @__PURE__ */ e(el, {})
|
|
7365
7368
|
] }) : null;
|
|
7366
7369
|
}
|
|
7367
|
-
function
|
|
7370
|
+
function ux({
|
|
7368
7371
|
errorMessage: t,
|
|
7369
7372
|
errorSql: n,
|
|
7370
7373
|
onOpenInEditor: s,
|
|
@@ -7402,7 +7405,7 @@ function dx({
|
|
|
7402
7405
|
)
|
|
7403
7406
|
] });
|
|
7404
7407
|
}
|
|
7405
|
-
function
|
|
7408
|
+
function mx({
|
|
7406
7409
|
isPreviewMode: t,
|
|
7407
7410
|
onPreviewToggle: n,
|
|
7408
7411
|
configCard: s
|
|
@@ -7889,7 +7892,7 @@ function Aa({
|
|
|
7889
7892
|
isFetching: Q,
|
|
7890
7893
|
isError: ee
|
|
7891
7894
|
}) : o.type === "kpi" ? Z || Q ? /* @__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" }) }) : te ? /* @__PURE__ */ e(
|
|
7892
|
-
|
|
7895
|
+
ux,
|
|
7893
7896
|
{
|
|
7894
7897
|
errorMessage: te,
|
|
7895
7898
|
errorSql: ce || o.sql || o.python,
|
|
@@ -7949,7 +7952,7 @@ function Aa({
|
|
|
7949
7952
|
de.id
|
|
7950
7953
|
)),
|
|
7951
7954
|
/* @__PURE__ */ e(
|
|
7952
|
-
|
|
7955
|
+
mx,
|
|
7953
7956
|
{
|
|
7954
7957
|
isPreviewMode: L,
|
|
7955
7958
|
onPreviewToggle: i,
|
|
@@ -7960,7 +7963,7 @@ function Aa({
|
|
|
7960
7963
|
}
|
|
7961
7964
|
);
|
|
7962
7965
|
}
|
|
7963
|
-
function
|
|
7966
|
+
function hx({
|
|
7964
7967
|
onClick: t,
|
|
7965
7968
|
className: n
|
|
7966
7969
|
}) {
|
|
@@ -8065,7 +8068,7 @@ function Oc({
|
|
|
8065
8068
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Open Customize, paste visual code, and apply it to preview the renderer here." })
|
|
8066
8069
|
] }),
|
|
8067
8070
|
/* @__PURE__ */ e(
|
|
8068
|
-
|
|
8071
|
+
hx,
|
|
8069
8072
|
{
|
|
8070
8073
|
onClick: () => o(!0)
|
|
8071
8074
|
}
|
|
@@ -8848,7 +8851,7 @@ function Qs({
|
|
|
8848
8851
|
defaultSize: 30,
|
|
8849
8852
|
minSize: 10,
|
|
8850
8853
|
className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
|
|
8851
|
-
children: g && /* @__PURE__ */ e(
|
|
8854
|
+
children: g && /* @__PURE__ */ e(px, {})
|
|
8852
8855
|
}
|
|
8853
8856
|
),
|
|
8854
8857
|
/* @__PURE__ */ e(ba, {})
|
|
@@ -8911,7 +8914,7 @@ function Qs({
|
|
|
8911
8914
|
}
|
|
8912
8915
|
);
|
|
8913
8916
|
}
|
|
8914
|
-
function
|
|
8917
|
+
function px() {
|
|
8915
8918
|
const t = F((s) => s.pythonStdOut);
|
|
8916
8919
|
if (!t) return null;
|
|
8917
8920
|
const n = t.replace(/\n/g, "<br>");
|
|
@@ -8993,7 +8996,7 @@ function ma({
|
|
|
8993
8996
|
}
|
|
8994
8997
|
);
|
|
8995
8998
|
}
|
|
8996
|
-
function
|
|
8999
|
+
function fx(t, n) {
|
|
8997
9000
|
return yr(t, n) || null;
|
|
8998
9001
|
}
|
|
8999
9002
|
function Nn(t) {
|
|
@@ -9007,7 +9010,7 @@ function Nn(t) {
|
|
|
9007
9010
|
const s = t.match(/^(\d+)\+$/);
|
|
9008
9011
|
return s ? `Tabs ${Number(s[1]) + 1}+` : `Tab ${t}`;
|
|
9009
9012
|
}
|
|
9010
|
-
function
|
|
9013
|
+
function gx(t) {
|
|
9011
9014
|
return t ? Array.isArray(t) ? t : [t] : [];
|
|
9012
9015
|
}
|
|
9013
9016
|
function Ws(t) {
|
|
@@ -9018,7 +9021,7 @@ function Ws(t) {
|
|
|
9018
9021
|
const n = !!((o = t.sql) != null && o.trim()), s = gn(t.config);
|
|
9019
9022
|
return n || s;
|
|
9020
9023
|
}
|
|
9021
|
-
function
|
|
9024
|
+
function xx({
|
|
9022
9025
|
slots: t,
|
|
9023
9026
|
cards: n,
|
|
9024
9027
|
minInputs: s
|
|
@@ -9075,16 +9078,16 @@ function gx({
|
|
|
9075
9078
|
}
|
|
9076
9079
|
}), n.forEach((c, i) => {
|
|
9077
9080
|
if (!c) return;
|
|
9078
|
-
const l =
|
|
9081
|
+
const l = fx(t, i);
|
|
9079
9082
|
if (!l || !l.expectedType) return;
|
|
9080
|
-
const d =
|
|
9083
|
+
const d = gx(l.expectedType);
|
|
9081
9084
|
d.length !== 0 && (d.includes(c.type) || r.push({
|
|
9082
9085
|
type: "wrong-type",
|
|
9083
9086
|
message: `${Nn(i)} ("${l.label}") expects ${d.join(", ")}, but is configured as ${c.type}.`
|
|
9084
9087
|
}));
|
|
9085
9088
|
})), r;
|
|
9086
9089
|
}
|
|
9087
|
-
const
|
|
9090
|
+
const bx = {
|
|
9088
9091
|
table: ({ children: t }) => /* @__PURE__ */ e("table", { className: "my-3 w-full border-collapse overflow-hidden rounded-md border border-border text-sm", children: t }),
|
|
9089
9092
|
thead: ({ children: t }) => /* @__PURE__ */ e("thead", { className: "bg-muted", children: t }),
|
|
9090
9093
|
th: ({ children: t }) => /* @__PURE__ */ e("th", { className: "border border-border px-3 py-2 text-left font-medium", children: t }),
|
|
@@ -9131,7 +9134,7 @@ function Pc() {
|
|
|
9131
9134
|
}),
|
|
9132
9135
|
[g, u == null ? void 0 : u.slots]
|
|
9133
9136
|
), T = se(
|
|
9134
|
-
() =>
|
|
9137
|
+
() => xx({
|
|
9135
9138
|
slots: u == null ? void 0 : u.slots,
|
|
9136
9139
|
cards: M,
|
|
9137
9140
|
minInputs: b
|
|
@@ -9400,7 +9403,7 @@ function Pc() {
|
|
|
9400
9403
|
pm,
|
|
9401
9404
|
{
|
|
9402
9405
|
remarkPlugins: [fm],
|
|
9403
|
-
components:
|
|
9406
|
+
components: bx,
|
|
9404
9407
|
children: u.docs.dataSchema
|
|
9405
9408
|
}
|
|
9406
9409
|
) })
|
|
@@ -9469,7 +9472,7 @@ function Lc(t, n, s) {
|
|
|
9469
9472
|
fs(n)
|
|
9470
9473
|
) : r;
|
|
9471
9474
|
}
|
|
9472
|
-
function
|
|
9475
|
+
function vx(t, n) {
|
|
9473
9476
|
return {
|
|
9474
9477
|
...t,
|
|
9475
9478
|
decimalPlaces: void 0,
|
|
@@ -9487,7 +9490,7 @@ function Io(t) {
|
|
|
9487
9490
|
maximumFractionDigits: t.maximumFractionDigits ?? n
|
|
9488
9491
|
};
|
|
9489
9492
|
}
|
|
9490
|
-
function
|
|
9493
|
+
function yx(t, n) {
|
|
9491
9494
|
const s = t.type || "auto";
|
|
9492
9495
|
return s === "auto" ? t : s === "duration" ? {
|
|
9493
9496
|
type: "duration",
|
|
@@ -9513,7 +9516,7 @@ function Vc(t, n) {
|
|
|
9513
9516
|
maximumFractionDigits: n
|
|
9514
9517
|
};
|
|
9515
9518
|
}
|
|
9516
|
-
const Ga = "__report_default__",
|
|
9519
|
+
const Ga = "__report_default__", Nx = [
|
|
9517
9520
|
"auto",
|
|
9518
9521
|
"number",
|
|
9519
9522
|
"currency",
|
|
@@ -9597,12 +9600,12 @@ const Ga = "__report_default__", yx = [
|
|
|
9597
9600
|
{ value: "minute", label: "Minutes" },
|
|
9598
9601
|
{ value: "hour", label: "Hours" },
|
|
9599
9602
|
{ value: "day", label: "Days" }
|
|
9600
|
-
],
|
|
9603
|
+
], Cx = [
|
|
9601
9604
|
{ value: "compact", label: "Compact (6min 32s)" },
|
|
9602
9605
|
{ value: "digital", label: "Digital (6:32)" },
|
|
9603
9606
|
{ value: "long", label: "Long (6 minutes 32 seconds)" }
|
|
9604
|
-
],
|
|
9605
|
-
function
|
|
9607
|
+
], wx = (t) => t.charAt(0).toUpperCase() + t.slice(1);
|
|
9608
|
+
function Sx(t, n) {
|
|
9606
9609
|
try {
|
|
9607
9610
|
return Mf(
|
|
9608
9611
|
t,
|
|
@@ -9623,7 +9626,7 @@ function Yn({
|
|
|
9623
9626
|
showLocaleOverride: l = !0
|
|
9624
9627
|
}) {
|
|
9625
9628
|
var S, E;
|
|
9626
|
-
const d = t.type || "auto", m =
|
|
9629
|
+
const d = t.type || "auto", m = yx(t, {
|
|
9627
9630
|
preserveSparseCurrency: !!c
|
|
9628
9631
|
}), u = (I) => {
|
|
9629
9632
|
I.stopPropagation();
|
|
@@ -9632,7 +9635,7 @@ function Yn({
|
|
|
9632
9635
|
...m,
|
|
9633
9636
|
[I]: R
|
|
9634
9637
|
});
|
|
9635
|
-
}, h = m.decimalPlaces ?? m.maximumFractionDigits ?? m.minimumFractionDigits, f = t.currency ?? (c == null ? void 0 : c.currency) ?? "USD", b = t.locale ?? (c == null ? void 0 : c.locale) ?? "en-US", N = d === "currency" ?
|
|
9638
|
+
}, h = m.decimalPlaces ?? m.maximumFractionDigits ?? m.minimumFractionDigits, f = t.currency ?? (c == null ? void 0 : c.currency) ?? "USD", b = t.locale ?? (c == null ? void 0 : c.locale) ?? "en-US", N = d === "currency" ? Sx(
|
|
9636
9639
|
b,
|
|
9637
9640
|
f
|
|
9638
9641
|
) : void 0, p = h ?? N ?? fs(d), g = d === "currency" && m.decimalPlaces === void 0 && m.minimumFractionDigits === void 0 && m.maximumFractionDigits === void 0, [M, T] = K(
|
|
@@ -9650,7 +9653,7 @@ function Yn({
|
|
|
9650
9653
|
n(
|
|
9651
9654
|
c && I === "currency" && t.type !== "currency" ? Io(R) : R
|
|
9652
9655
|
);
|
|
9653
|
-
}, D = (I) => c && d === "currency" ?
|
|
9656
|
+
}, D = (I) => c && d === "currency" ? vx(
|
|
9654
9657
|
m,
|
|
9655
9658
|
I
|
|
9656
9659
|
) : Vc(m, I), A = ((S = Eo.find(
|
|
@@ -9681,7 +9684,7 @@ function Yn({
|
|
|
9681
9684
|
children: /* @__PURE__ */ e(oe, {})
|
|
9682
9685
|
}
|
|
9683
9686
|
),
|
|
9684
|
-
/* @__PURE__ */ e(ie, { children:
|
|
9687
|
+
/* @__PURE__ */ e(ie, { children: Nx.filter((I) => i || I !== "auto").map((I) => /* @__PURE__ */ e(U, { value: I, className: "text-xs", children: I === "auto" ? "Auto (Default)" : wx(I) }, I)) })
|
|
9685
9688
|
]
|
|
9686
9689
|
}
|
|
9687
9690
|
)
|
|
@@ -9975,7 +9978,7 @@ function Yn({
|
|
|
9975
9978
|
children: /* @__PURE__ */ e(oe, {})
|
|
9976
9979
|
}
|
|
9977
9980
|
),
|
|
9978
|
-
/* @__PURE__ */ e(ie, { children:
|
|
9981
|
+
/* @__PURE__ */ e(ie, { children: Cx.map((I) => /* @__PURE__ */ e(
|
|
9979
9982
|
U,
|
|
9980
9983
|
{
|
|
9981
9984
|
value: I.value,
|
|
@@ -10142,11 +10145,11 @@ function Oo({
|
|
|
10142
10145
|
] }, l))
|
|
10143
10146
|
] });
|
|
10144
10147
|
}
|
|
10145
|
-
const
|
|
10146
|
-
function
|
|
10148
|
+
const Tx = [];
|
|
10149
|
+
function kx(t) {
|
|
10147
10150
|
return (t == null ? void 0 : t.enabled) === !1 || typeof (t == null ? void 0 : t.enabled) == "string" && t.enabled.trim().toLowerCase() === "false";
|
|
10148
10151
|
}
|
|
10149
|
-
function
|
|
10152
|
+
function Mx(t) {
|
|
10150
10153
|
var s;
|
|
10151
10154
|
const n = Wi(
|
|
10152
10155
|
(s = t == null ? void 0 : t.kpiVisualOptions) == null ? void 0 : s.formatOptions
|
|
@@ -10163,20 +10166,20 @@ function Fo(t) {
|
|
|
10163
10166
|
colorRanges: t == null ? void 0 : t.colorRanges
|
|
10164
10167
|
};
|
|
10165
10168
|
}
|
|
10166
|
-
function
|
|
10169
|
+
function Dx() {
|
|
10167
10170
|
var h, f, b, N;
|
|
10168
10171
|
const t = F((p) => p.card), n = F(
|
|
10169
10172
|
(p) => p.actions.setCardPreferences
|
|
10170
10173
|
), s = F(
|
|
10171
10174
|
(p) => {
|
|
10172
10175
|
var g, M;
|
|
10173
|
-
return ((M = (g = p.card.preferences) == null ? void 0 : g.formatNumber) == null ? void 0 : M.colorRanges) ??
|
|
10176
|
+
return ((M = (g = p.card.preferences) == null ? void 0 : g.formatNumber) == null ? void 0 : M.colorRanges) ?? Tx;
|
|
10174
10177
|
}
|
|
10175
10178
|
), r = F(
|
|
10176
10179
|
(p) => p.actions.setColorRanges
|
|
10177
|
-
), o = Si() ?? Pn.locale, c = Ti() ?? Pn.defaultCurrency, i = !gm(t) && gn(t.config), l =
|
|
10180
|
+
), o = Si() ?? Pn.locale, c = Ti() ?? Pn.defaultCurrency, i = !gm(t) && gn(t.config), l = Mx(t.preferences), d = !!Wi(
|
|
10178
10181
|
(f = (h = t.preferences) == null ? void 0 : h.kpiVisualOptions) == null ? void 0 : f.formatOptions
|
|
10179
|
-
), m = !
|
|
10182
|
+
), m = !kx((b = t.preferences) == null ? void 0 : b.formatNumber) && (d || !!((N = t.preferences) != null && N.formatNumber)), u = (p) => {
|
|
10180
10183
|
const g = F.getState().card.preferences ?? {};
|
|
10181
10184
|
n({
|
|
10182
10185
|
...g,
|
|
@@ -10244,7 +10247,7 @@ function Mx() {
|
|
|
10244
10247
|
] })
|
|
10245
10248
|
] });
|
|
10246
10249
|
}
|
|
10247
|
-
const
|
|
10250
|
+
const Ix = {
|
|
10248
10251
|
combo: {
|
|
10249
10252
|
label: "Combo Chart",
|
|
10250
10253
|
query: "SELECT x-axis, metric-1, metric-2, ... FROM table",
|
|
@@ -10510,9 +10513,9 @@ const Dx = {
|
|
|
10510
10513
|
}
|
|
10511
10514
|
};
|
|
10512
10515
|
function Bc(t) {
|
|
10513
|
-
return
|
|
10516
|
+
return Ix[t];
|
|
10514
10517
|
}
|
|
10515
|
-
function
|
|
10518
|
+
function Ex({
|
|
10516
10519
|
chartType: t,
|
|
10517
10520
|
showDocsLink: n = !0
|
|
10518
10521
|
}) {
|
|
@@ -10564,7 +10567,7 @@ function Ix({
|
|
|
10564
10567
|
)
|
|
10565
10568
|
] }) : null;
|
|
10566
10569
|
}
|
|
10567
|
-
function
|
|
10570
|
+
function Ax({
|
|
10568
10571
|
chartType: t
|
|
10569
10572
|
}) {
|
|
10570
10573
|
return Bc(t) ? /* @__PURE__ */ a(In, { openDelay: 200, children: [
|
|
@@ -10583,7 +10586,7 @@ function Ex({
|
|
|
10583
10586
|
side: "left",
|
|
10584
10587
|
align: "start",
|
|
10585
10588
|
sideOffset: 8,
|
|
10586
|
-
children: /* @__PURE__ */ e(
|
|
10589
|
+
children: /* @__PURE__ */ e(Ex, { chartType: t })
|
|
10587
10590
|
}
|
|
10588
10591
|
)
|
|
10589
10592
|
] }) : null;
|
|
@@ -10594,10 +10597,10 @@ function nl({
|
|
|
10594
10597
|
}) {
|
|
10595
10598
|
return /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
10596
10599
|
/* @__PURE__ */ e("h3", { className: "text-xs font-medium", children: n }),
|
|
10597
|
-
/* @__PURE__ */ e(
|
|
10600
|
+
/* @__PURE__ */ e(Ax, { chartType: t })
|
|
10598
10601
|
] });
|
|
10599
10602
|
}
|
|
10600
|
-
function
|
|
10603
|
+
function Ox() {
|
|
10601
10604
|
const t = F(
|
|
10602
10605
|
(o) => !gn(o.card.config)
|
|
10603
10606
|
), n = F(
|
|
@@ -10619,7 +10622,7 @@ function Ax() {
|
|
|
10619
10622
|
};
|
|
10620
10623
|
return /* @__PURE__ */ a("div", { className: "space-y-6 px-6 py-4", children: [
|
|
10621
10624
|
/* @__PURE__ */ e(nl, { chartType: "kpi" }),
|
|
10622
|
-
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(
|
|
10625
|
+
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(Dx, {}) }),
|
|
10623
10626
|
t && /* @__PURE__ */ a("section", { className: "space-y-1.5", children: [
|
|
10624
10627
|
/* @__PURE__ */ e(q, { htmlFor: "query-kpi-favorable-direction", className: "text-xs", children: "Favorable direction" }),
|
|
10625
10628
|
/* @__PURE__ */ a(
|
|
@@ -10671,7 +10674,7 @@ function Ro({
|
|
|
10671
10674
|
}
|
|
10672
10675
|
);
|
|
10673
10676
|
}
|
|
10674
|
-
function
|
|
10677
|
+
function Fx() {
|
|
10675
10678
|
const [t, n] = K([]), s = F((m) => m.card.preferences), { setFilterOnClickColumnIndex: r, setCardPreferences: o } = F(
|
|
10676
10679
|
(m) => m.actions
|
|
10677
10680
|
), c = F(
|
|
@@ -10785,7 +10788,7 @@ function Ox() {
|
|
|
10785
10788
|
);
|
|
10786
10789
|
}) });
|
|
10787
10790
|
}
|
|
10788
|
-
const
|
|
10791
|
+
const Rx = [
|
|
10789
10792
|
{
|
|
10790
10793
|
label: "Mercator",
|
|
10791
10794
|
value: "mercator"
|
|
@@ -10842,7 +10845,7 @@ const Fx = [
|
|
|
10842
10845
|
label: "Natural Earth 1",
|
|
10843
10846
|
value: "naturalEarth1"
|
|
10844
10847
|
}
|
|
10845
|
-
],
|
|
10848
|
+
], Px = [
|
|
10846
10849
|
"blues",
|
|
10847
10850
|
"brBG",
|
|
10848
10851
|
"buGn",
|
|
@@ -10881,11 +10884,11 @@ const Fx = [
|
|
|
10881
10884
|
"ylGnBu",
|
|
10882
10885
|
"ylOrBr",
|
|
10883
10886
|
"ylOrRd"
|
|
10884
|
-
],
|
|
10887
|
+
], Lx = Px.map((t) => ({
|
|
10885
10888
|
label: t,
|
|
10886
10889
|
value: t
|
|
10887
10890
|
}));
|
|
10888
|
-
function
|
|
10891
|
+
function Vx() {
|
|
10889
10892
|
var d, m, u, x, h, f, b, N, p, g, M, T, w, C, O, D, A, k;
|
|
10890
10893
|
const t = F((y) => y.card), n = (m = (d = t == null ? void 0 : t.preferences) == null ? void 0 : d.mapVisualOptions) == null ? void 0 : m.topoJsonUrl, [s, r] = K(
|
|
10891
10894
|
((x = (u = t == null ? void 0 : t.preferences) == null ? void 0 : u.mapVisualOptions) == null ? void 0 : x.customTopoJsonUrl) || ""
|
|
@@ -10977,7 +10980,7 @@ function Lx() {
|
|
|
10977
10980
|
ma,
|
|
10978
10981
|
{
|
|
10979
10982
|
className: "h-9",
|
|
10980
|
-
options:
|
|
10983
|
+
options: Rx,
|
|
10981
10984
|
value: ((N = (b = t.preferences) == null ? void 0 : b.mapVisualOptions) == null ? void 0 : N.projection) || "",
|
|
10982
10985
|
label: "Projection",
|
|
10983
10986
|
onValueChange: (y) => {
|
|
@@ -10999,7 +11002,7 @@ function Lx() {
|
|
|
10999
11002
|
ma,
|
|
11000
11003
|
{
|
|
11001
11004
|
className: "h-9",
|
|
11002
|
-
options:
|
|
11005
|
+
options: Lx,
|
|
11003
11006
|
value: ((g = (p = t.preferences) == null ? void 0 : p.mapVisualOptions) == null ? void 0 : g.colorScale) || "",
|
|
11004
11007
|
label: "Select Color Scale",
|
|
11005
11008
|
onValueChange: (y) => {
|
|
@@ -11086,7 +11089,7 @@ function Lx() {
|
|
|
11086
11089
|
)
|
|
11087
11090
|
] }) }),
|
|
11088
11091
|
/* @__PURE__ */ e(ds, { className: "my-4" }),
|
|
11089
|
-
/* @__PURE__ */ e(
|
|
11092
|
+
/* @__PURE__ */ e(Fx, {})
|
|
11090
11093
|
] });
|
|
11091
11094
|
}
|
|
11092
11095
|
function yt({
|
|
@@ -11162,7 +11165,7 @@ function gs({
|
|
|
11162
11165
|
/* @__PURE__ */ e(Ge, { id: r, size: "xs", checked: n, onCheckedChange: s })
|
|
11163
11166
|
] });
|
|
11164
11167
|
}
|
|
11165
|
-
function
|
|
11168
|
+
function Bx({
|
|
11166
11169
|
label: t,
|
|
11167
11170
|
disabled: n,
|
|
11168
11171
|
onClick: s,
|
|
@@ -11260,7 +11263,7 @@ function Cr({
|
|
|
11260
11263
|
}
|
|
11261
11264
|
);
|
|
11262
11265
|
}
|
|
11263
|
-
function
|
|
11266
|
+
function Yx(t) {
|
|
11264
11267
|
switch (t == null ? void 0 : t.type) {
|
|
11265
11268
|
case "date":
|
|
11266
11269
|
case "datetime":
|
|
@@ -11287,7 +11290,7 @@ function Yc(t, n, s) {
|
|
|
11287
11290
|
...r ? [[ms(s), s]] : []
|
|
11288
11291
|
]);
|
|
11289
11292
|
}
|
|
11290
|
-
function
|
|
11293
|
+
function _x({
|
|
11291
11294
|
axis: t,
|
|
11292
11295
|
level: n,
|
|
11293
11296
|
value: s,
|
|
@@ -11461,7 +11464,7 @@ function Yx({
|
|
|
11461
11464
|
] })
|
|
11462
11465
|
] });
|
|
11463
11466
|
}
|
|
11464
|
-
function
|
|
11467
|
+
function $x({
|
|
11465
11468
|
value: t,
|
|
11466
11469
|
change: n,
|
|
11467
11470
|
scopeSelection: s
|
|
@@ -11608,7 +11611,7 @@ function _x({
|
|
|
11608
11611
|
})
|
|
11609
11612
|
] }) : /* @__PURE__ */ e("p", { role: "status", className: "text-xs text-muted-foreground", children: "No metrics available" });
|
|
11610
11613
|
}
|
|
11611
|
-
function
|
|
11614
|
+
function zx({
|
|
11612
11615
|
section: t,
|
|
11613
11616
|
value: n,
|
|
11614
11617
|
availableFields: s,
|
|
@@ -11647,7 +11650,7 @@ function $x({
|
|
|
11647
11650
|
{
|
|
11648
11651
|
showLocaleOverride: !1,
|
|
11649
11652
|
cardType: "matrixTable",
|
|
11650
|
-
value:
|
|
11653
|
+
value: Yx(g),
|
|
11651
11654
|
onChange: (M) => f(p, N, M)
|
|
11652
11655
|
}
|
|
11653
11656
|
);
|
|
@@ -11658,7 +11661,7 @@ function $x({
|
|
|
11658
11661
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
11659
11662
|
/* @__PURE__ */ e("strong", { children: "Updated references" }),
|
|
11660
11663
|
/* @__PURE__ */ e(
|
|
11661
|
-
|
|
11664
|
+
Bx,
|
|
11662
11665
|
{
|
|
11663
11666
|
label: "Dismiss cleanup notices",
|
|
11664
11667
|
onClick: () => l([]),
|
|
@@ -11787,7 +11790,7 @@ function $x({
|
|
|
11787
11790
|
}
|
|
11788
11791
|
),
|
|
11789
11792
|
/* @__PURE__ */ e(
|
|
11790
|
-
|
|
11793
|
+
_x,
|
|
11791
11794
|
{
|
|
11792
11795
|
axis: N,
|
|
11793
11796
|
level: p,
|
|
@@ -11970,7 +11973,7 @@ function $x({
|
|
|
11970
11973
|
children: [
|
|
11971
11974
|
/* @__PURE__ */ e("h2", { className: "text-xs font-semibold", children: "Conditional formatting" }),
|
|
11972
11975
|
/* @__PURE__ */ e(
|
|
11973
|
-
|
|
11976
|
+
$x,
|
|
11974
11977
|
{
|
|
11975
11978
|
value: n,
|
|
11976
11979
|
change: x,
|
|
@@ -11985,7 +11988,7 @@ function $x({
|
|
|
11985
11988
|
function wr({ fieldId: t, section: n = "table" }) {
|
|
11986
11989
|
const s = F((l) => l.card), r = F((l) => l.actions.updateCard), o = F((l) => l.matrixSelection), c = vm(s), i = Up(s);
|
|
11987
11990
|
return i.status === "invalid" ? /* @__PURE__ */ e("div", { role: "alert", className: "p-3 text-xs text-destructive", children: "Invalid Matrix configuration. Repair or reset the card definition." }) : i.status === "absent" ? /* @__PURE__ */ e("div", { className: "p-3 text-xs text-muted-foreground", children: "No fields selected" }) : /* @__PURE__ */ e(
|
|
11988
|
-
|
|
11991
|
+
zx,
|
|
11989
11992
|
{
|
|
11990
11993
|
value: i.config,
|
|
11991
11994
|
section: t ? { kind: "field", id: t } : { kind: n },
|
|
@@ -12004,13 +12007,13 @@ function wr({ fieldId: t, section: n = "table" }) {
|
|
|
12004
12007
|
}
|
|
12005
12008
|
);
|
|
12006
12009
|
}
|
|
12007
|
-
const
|
|
12010
|
+
const qx = {
|
|
12008
12011
|
green: "#16a34a",
|
|
12009
12012
|
red: "#dc2626",
|
|
12010
12013
|
neutral: "#6b7280"
|
|
12011
12014
|
};
|
|
12012
|
-
function
|
|
12013
|
-
return t && (
|
|
12015
|
+
function jx(t) {
|
|
12016
|
+
return t && (qx[t] ?? t);
|
|
12014
12017
|
}
|
|
12015
12018
|
function _c({
|
|
12016
12019
|
value: t,
|
|
@@ -12129,7 +12132,7 @@ function _c({
|
|
|
12129
12132
|
/* @__PURE__ */ e(
|
|
12130
12133
|
cr,
|
|
12131
12134
|
{
|
|
12132
|
-
value:
|
|
12135
|
+
value: jx(r[o] || i),
|
|
12133
12136
|
onChange: (l) => n({
|
|
12134
12137
|
colors: { ...r, [o]: l || i }
|
|
12135
12138
|
}),
|
|
@@ -12184,7 +12187,7 @@ function _c({
|
|
|
12184
12187
|
)
|
|
12185
12188
|
] });
|
|
12186
12189
|
}
|
|
12187
|
-
function
|
|
12190
|
+
function Kx() {
|
|
12188
12191
|
var x, h, f, b, N;
|
|
12189
12192
|
const t = F((p) => p.card), { setCardPreferences: n } = we(), s = At(), r = ((x = t.config) == null ? void 0 : x.metricColumns) || [], o = r.length === 2 && (((h = t.config) == null ? void 0 : h.groupByColumns) || []).length === 0, c = r.some(
|
|
12190
12193
|
(p) => {
|
|
@@ -12496,7 +12499,7 @@ function $c({
|
|
|
12496
12499
|
}
|
|
12497
12500
|
) });
|
|
12498
12501
|
}
|
|
12499
|
-
function
|
|
12502
|
+
function Ux() {
|
|
12500
12503
|
var o;
|
|
12501
12504
|
const t = F((c) => c.card.preferences), { setCardPreferences: n } = F((c) => c.actions), s = (o = t == null ? void 0 : t.textVisualOptions) != null && o.isDynamicText ? "dynamic" : "static";
|
|
12502
12505
|
function r(c) {
|
|
@@ -12513,14 +12516,14 @@ function Kx() {
|
|
|
12513
12516
|
/* @__PURE__ */ e(Yt, { value: "dynamic", children: "Dynamic" })
|
|
12514
12517
|
] }) });
|
|
12515
12518
|
}
|
|
12516
|
-
function
|
|
12519
|
+
function Gx() {
|
|
12517
12520
|
return /* @__PURE__ */ a("div", { className: "space-y-2 px-6 py-4", children: [
|
|
12518
12521
|
/* @__PURE__ */ e("div", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Text mode" }),
|
|
12519
|
-
/* @__PURE__ */ e(
|
|
12522
|
+
/* @__PURE__ */ e(Ux, {}),
|
|
12520
12523
|
/* @__PURE__ */ e("p", { className: "pt-1 text-[12px] leading-[1.55] text-muted-foreground", children: "Static text is authored inline. Dynamic text reads from the first cell of the card's query." })
|
|
12521
12524
|
] });
|
|
12522
12525
|
}
|
|
12523
|
-
function
|
|
12526
|
+
function Hx({ color: t, onColorChange: n, onClose: s }) {
|
|
12524
12527
|
const [r, o] = K(0), [c, i] = K(100), [l, d] = K(50), [m, u] = K(t);
|
|
12525
12528
|
ke(() => {
|
|
12526
12529
|
const p = Lo(t);
|
|
@@ -12535,7 +12538,7 @@ function Gx({ color: t, onColorChange: n, onClose: s }) {
|
|
|
12535
12538
|
const g = p.currentTarget.getBoundingClientRect(), M = Math.max(0, Math.min(1, (p.clientX - g.left) / g.width)), T = Math.max(0, Math.min(1, (p.clientY - g.top) / g.height)), w = M * 100, C = (1 - T) * 100;
|
|
12536
12539
|
i(w), d(C), f(r, w, C);
|
|
12537
12540
|
}, f = (p, g, M) => {
|
|
12538
|
-
const T =
|
|
12541
|
+
const T = Wx(p, g, M), w = Qx(T.r, T.g, T.b);
|
|
12539
12542
|
u(w);
|
|
12540
12543
|
}, b = (p) => {
|
|
12541
12544
|
if (u(p), /^#[0-9A-Fa-f]{6}$/.test(p)) {
|
|
@@ -12655,7 +12658,7 @@ function Lo(t) {
|
|
|
12655
12658
|
b: parseInt(n[3], 16)
|
|
12656
12659
|
} : null;
|
|
12657
12660
|
}
|
|
12658
|
-
function
|
|
12661
|
+
function Qx(t, n, s) {
|
|
12659
12662
|
return "#" + ((1 << 24) + (t << 16) + (n << 8) + s).toString(16).slice(1);
|
|
12660
12663
|
}
|
|
12661
12664
|
function Vo(t, n, s) {
|
|
@@ -12683,7 +12686,7 @@ function Vo(t, n, s) {
|
|
|
12683
12686
|
l: Math.round(l * 100)
|
|
12684
12687
|
};
|
|
12685
12688
|
}
|
|
12686
|
-
function
|
|
12689
|
+
function Wx(t, n, s) {
|
|
12687
12690
|
t /= 360, n /= 100, s /= 100;
|
|
12688
12691
|
let r, o, c;
|
|
12689
12692
|
if (n === 0)
|
|
@@ -12698,7 +12701,7 @@ function Qx(t, n, s) {
|
|
|
12698
12701
|
b: Math.round(c * 255)
|
|
12699
12702
|
};
|
|
12700
12703
|
}
|
|
12701
|
-
const
|
|
12704
|
+
const Jx = [
|
|
12702
12705
|
"#000000",
|
|
12703
12706
|
// black
|
|
12704
12707
|
"#ffffff",
|
|
@@ -12730,7 +12733,7 @@ const Wx = [
|
|
|
12730
12733
|
"#fbbf24"
|
|
12731
12734
|
// yellow-400
|
|
12732
12735
|
];
|
|
12733
|
-
function
|
|
12736
|
+
function Xx() {
|
|
12734
12737
|
var C, O, D, A, k, y, S, E, I, R;
|
|
12735
12738
|
const t = F((v) => v.card), n = F((v) => {
|
|
12736
12739
|
var Y;
|
|
@@ -12906,7 +12909,7 @@ function Jx() {
|
|
|
12906
12909
|
] }),
|
|
12907
12910
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
12908
12911
|
/* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground", children: "Popular Colors" }),
|
|
12909
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children:
|
|
12912
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: Jx.map((V, _) => /* @__PURE__ */ e(
|
|
12910
12913
|
"button",
|
|
12911
12914
|
{
|
|
12912
12915
|
className: H(
|
|
@@ -12967,7 +12970,7 @@ function Jx() {
|
|
|
12967
12970
|
}
|
|
12968
12971
|
),
|
|
12969
12972
|
/* @__PURE__ */ e("div", { className: "relative rounded-lg bg-white shadow-lg", children: /* @__PURE__ */ e(
|
|
12970
|
-
|
|
12973
|
+
Hx,
|
|
12971
12974
|
{
|
|
12972
12975
|
color: x.color,
|
|
12973
12976
|
onColorChange: (v) => {
|
|
@@ -13305,7 +13308,7 @@ function Zs(t, n, s) {
|
|
|
13305
13308
|
}
|
|
13306
13309
|
return "";
|
|
13307
13310
|
}
|
|
13308
|
-
function
|
|
13311
|
+
function Zx() {
|
|
13309
13312
|
const t = F((d) => d.card), n = F((d) => {
|
|
13310
13313
|
var m;
|
|
13311
13314
|
return (m = d.card) == null ? void 0 : m.preferences;
|
|
@@ -13384,7 +13387,7 @@ function Xx() {
|
|
|
13384
13387
|
] }) })
|
|
13385
13388
|
] });
|
|
13386
13389
|
}
|
|
13387
|
-
function
|
|
13390
|
+
function eb() {
|
|
13388
13391
|
const t = F((x) => x.card), n = At(), s = F(
|
|
13389
13392
|
(x) => {
|
|
13390
13393
|
var h, f, b, N;
|
|
@@ -13450,7 +13453,7 @@ function Zx() {
|
|
|
13450
13453
|
] }) })
|
|
13451
13454
|
] });
|
|
13452
13455
|
}
|
|
13453
|
-
function
|
|
13456
|
+
function tb() {
|
|
13454
13457
|
var I, R, v, Y, L, P, V;
|
|
13455
13458
|
const t = F((_) => _.card), n = At(), s = F(
|
|
13456
13459
|
(_) => {
|
|
@@ -13729,7 +13732,7 @@ function eb() {
|
|
|
13729
13732
|
] }) })
|
|
13730
13733
|
] });
|
|
13731
13734
|
}
|
|
13732
|
-
function
|
|
13735
|
+
function ab() {
|
|
13733
13736
|
var c;
|
|
13734
13737
|
const t = F((i) => {
|
|
13735
13738
|
var l;
|
|
@@ -13795,8 +13798,8 @@ function tb() {
|
|
|
13795
13798
|
) })
|
|
13796
13799
|
] });
|
|
13797
13800
|
}
|
|
13798
|
-
const
|
|
13799
|
-
function
|
|
13801
|
+
const nb = Object.keys(Di);
|
|
13802
|
+
function sb() {
|
|
13800
13803
|
const t = F((h) => h.card), n = F((h) => {
|
|
13801
13804
|
var f;
|
|
13802
13805
|
return (f = h.card) == null ? void 0 : f.preferences;
|
|
@@ -13836,7 +13839,7 @@ function nb() {
|
|
|
13836
13839
|
onValueChange: (h) => m(h ?? "blue"),
|
|
13837
13840
|
className: "space-y-3",
|
|
13838
13841
|
children: [
|
|
13839
|
-
|
|
13842
|
+
nb.map((h) => {
|
|
13840
13843
|
const f = Di[h];
|
|
13841
13844
|
return /* @__PURE__ */ a(
|
|
13842
13845
|
"div",
|
|
@@ -13928,7 +13931,7 @@ function Yo(t) {
|
|
|
13928
13931
|
const n = { ...t };
|
|
13929
13932
|
return n.targetMetricKey || delete n.targetMetricKey, n.comparativeMetricKey || delete n.comparativeMetricKey, !n.targetValue && n.targetValue !== 0 && delete n.targetValue, (!n.rangeKeys || Object.keys(n.rangeKeys).length === 0) && delete n.rangeKeys, (!n.ranges || Object.keys(n.ranges).length === 0) && delete n.ranges, (!n.rangeLabels || Object.keys(n.rangeLabels).length === 0) && delete n.rangeLabels, n;
|
|
13930
13933
|
}
|
|
13931
|
-
function
|
|
13934
|
+
function rb() {
|
|
13932
13935
|
var I, R;
|
|
13933
13936
|
const t = F((v) => v.card.preferences), n = F((v) => v.card), s = F((v) => v.isDevMode), { setCardPreferences: r, setChartOrientation: o } = we(), c = se(
|
|
13934
13937
|
() => (t == null ? void 0 : t.bulletConfig) || {},
|
|
@@ -14304,7 +14307,7 @@ function _o(t) {
|
|
|
14304
14307
|
if (n.xMetricKey || delete n.xMetricKey, n.yMetricKey || delete n.yMetricKey, n.radiusMetricKey || delete n.radiusMetricKey, n.labelKey || delete n.labelKey, n.groupKey || delete n.groupKey, n.enableGrouping === void 0 && delete n.enableGrouping, n.radiusScale || delete n.radiusScale, n.fixedRadius === void 0 && delete n.fixedRadius, n.minRadius === void 0 && delete n.minRadius, n.maxRadius === void 0 && delete n.maxRadius, Object.keys(n).length !== 0)
|
|
14305
14308
|
return n;
|
|
14306
14309
|
}
|
|
14307
|
-
function
|
|
14310
|
+
function lb() {
|
|
14308
14311
|
var C, O, D, A, k, y, S, E, I, R, v, Y;
|
|
14309
14312
|
const t = F((L) => L.card.preferences), n = F((L) => L.card), s = At(), r = F((L) => L.isDevMode), { setCardPreferences: o, updateCardInFrame: c } = we(), i = s === "bubble", l = s === "scatter", d = se(
|
|
14310
14313
|
() => (t == null ? void 0 : t.bubbleScatterConfig) || {},
|
|
@@ -14688,7 +14691,7 @@ function rb() {
|
|
|
14688
14691
|
] })
|
|
14689
14692
|
] });
|
|
14690
14693
|
}
|
|
14691
|
-
const
|
|
14694
|
+
const ob = [
|
|
14692
14695
|
{
|
|
14693
14696
|
value: "percentOfTotal",
|
|
14694
14697
|
label: "% of Total",
|
|
@@ -14700,7 +14703,7 @@ const lb = [
|
|
|
14700
14703
|
description: "First stage = 100%, others relative to first stage"
|
|
14701
14704
|
}
|
|
14702
14705
|
];
|
|
14703
|
-
function
|
|
14706
|
+
function ib() {
|
|
14704
14707
|
const t = F((h) => h.card), n = F((h) => {
|
|
14705
14708
|
var f;
|
|
14706
14709
|
return (f = h.card) == null ? void 0 : f.preferences;
|
|
@@ -14734,7 +14737,7 @@ function ob() {
|
|
|
14734
14737
|
value: c,
|
|
14735
14738
|
onValueChange: (h) => m(h),
|
|
14736
14739
|
className: "space-y-2",
|
|
14737
|
-
children:
|
|
14740
|
+
children: ob.map((h) => /* @__PURE__ */ a(
|
|
14738
14741
|
"div",
|
|
14739
14742
|
{
|
|
14740
14743
|
className: "flex items-start gap-2 rounded-md border border-border px-3 py-2",
|
|
@@ -14829,7 +14832,7 @@ function Es() {
|
|
|
14829
14832
|
defaultMetricKeys: o
|
|
14830
14833
|
};
|
|
14831
14834
|
}
|
|
14832
|
-
const
|
|
14835
|
+
const cb = [
|
|
14833
14836
|
{ value: "USD", label: "USD - US Dollar" },
|
|
14834
14837
|
{ value: "EUR", label: "EUR - Euro" },
|
|
14835
14838
|
{ value: "GBP", label: "GBP - British Pound" },
|
|
@@ -14838,7 +14841,7 @@ const ib = [
|
|
|
14838
14841
|
{ value: "INR", label: "INR - Indian Rupee" },
|
|
14839
14842
|
{ value: "CAD", label: "CAD - Canadian Dollar" },
|
|
14840
14843
|
{ value: "AUD", label: "AUD - Australian Dollar" }
|
|
14841
|
-
],
|
|
14844
|
+
], db = [
|
|
14842
14845
|
{ value: "en-US", label: "English (US)" },
|
|
14843
14846
|
{ value: "en-GB", label: "English (UK)" },
|
|
14844
14847
|
{ value: "de-DE", label: "German" },
|
|
@@ -14847,7 +14850,7 @@ const ib = [
|
|
|
14847
14850
|
{ value: "it-IT", label: "Italian" },
|
|
14848
14851
|
{ value: "pt-BR", label: "Portuguese (Brazil)" },
|
|
14849
14852
|
{ value: "zh-CN", label: "Chinese (Simplified)" }
|
|
14850
|
-
],
|
|
14853
|
+
], ub = ["center", "start", "end"], mb = ["center", "start", "end", "top", "bottom"];
|
|
14851
14854
|
function As({
|
|
14852
14855
|
config: t,
|
|
14853
14856
|
onChange: n,
|
|
@@ -14907,7 +14910,7 @@ function As({
|
|
|
14907
14910
|
onValueChange: (w) => d("anchor", w),
|
|
14908
14911
|
children: [
|
|
14909
14912
|
/* @__PURE__ */ e(le, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
14910
|
-
/* @__PURE__ */ e(ie, { children:
|
|
14913
|
+
/* @__PURE__ */ e(ie, { children: ub.map((w) => /* @__PURE__ */ e(U, { value: w, className: "text-xs", children: Bt(w) }, w)) })
|
|
14911
14914
|
]
|
|
14912
14915
|
}
|
|
14913
14916
|
)
|
|
@@ -14921,7 +14924,7 @@ function As({
|
|
|
14921
14924
|
onValueChange: (w) => d("align", w),
|
|
14922
14925
|
children: [
|
|
14923
14926
|
/* @__PURE__ */ e(le, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
14924
|
-
/* @__PURE__ */ e(ie, { children:
|
|
14927
|
+
/* @__PURE__ */ e(ie, { children: mb.map((w) => /* @__PURE__ */ e(U, { value: w, className: "text-xs", children: Bt(w) }, w)) })
|
|
14925
14928
|
]
|
|
14926
14929
|
}
|
|
14927
14930
|
)
|
|
@@ -14966,7 +14969,7 @@ function As({
|
|
|
14966
14969
|
onValueChange: (w) => u("currency", w),
|
|
14967
14970
|
children: [
|
|
14968
14971
|
/* @__PURE__ */ e(le, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
14969
|
-
/* @__PURE__ */ e(ie, { children:
|
|
14972
|
+
/* @__PURE__ */ e(ie, { children: cb.map((w) => /* @__PURE__ */ e(
|
|
14970
14973
|
U,
|
|
14971
14974
|
{
|
|
14972
14975
|
value: w.value,
|
|
@@ -14999,7 +15002,7 @@ function As({
|
|
|
14999
15002
|
onValueChange: (w) => u("locale", w),
|
|
15000
15003
|
children: [
|
|
15001
15004
|
/* @__PURE__ */ e(le, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15002
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15005
|
+
/* @__PURE__ */ e(ie, { children: db.map((w) => /* @__PURE__ */ e(
|
|
15003
15006
|
U,
|
|
15004
15007
|
{
|
|
15005
15008
|
value: w.value,
|
|
@@ -15085,10 +15088,10 @@ function As({
|
|
|
15085
15088
|
] })
|
|
15086
15089
|
] });
|
|
15087
15090
|
}
|
|
15088
|
-
const
|
|
15091
|
+
const hb = [
|
|
15089
15092
|
{ type: "bar", icon: vs, label: "Bar" },
|
|
15090
15093
|
{ type: "line", icon: bs, label: "Line" }
|
|
15091
|
-
],
|
|
15094
|
+
], pb = [0, 1, 2, 3, 4, 5, 6, 8, 10], fb = [
|
|
15092
15095
|
{ value: "circle", label: "Circle ●" },
|
|
15093
15096
|
{ value: "rect", label: "Square ■" },
|
|
15094
15097
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -15099,13 +15102,13 @@ const mb = [
|
|
|
15099
15102
|
{ value: "star", label: "Star ★" },
|
|
15100
15103
|
{ value: "dash", label: "Dash —" },
|
|
15101
15104
|
{ value: "line", label: "Line │" }
|
|
15102
|
-
],
|
|
15105
|
+
], gb = [
|
|
15103
15106
|
{ value: "solid", label: "Solid ───" },
|
|
15104
15107
|
{ value: "dashed", label: "Dashed - - -" },
|
|
15105
15108
|
{ value: "dotted", label: "Dotted ···" },
|
|
15106
15109
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
15107
15110
|
];
|
|
15108
|
-
function
|
|
15111
|
+
function xb() {
|
|
15109
15112
|
return F((n) => {
|
|
15110
15113
|
var s;
|
|
15111
15114
|
return (s = n.card) == null ? void 0 : s.type;
|
|
@@ -15114,14 +15117,14 @@ function gb() {
|
|
|
15114
15117
|
/* @__PURE__ */ e(Ln, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15115
15118
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15116
15119
|
] }) }),
|
|
15117
|
-
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
15120
|
+
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(bb, {}) })
|
|
15118
15121
|
] });
|
|
15119
15122
|
}
|
|
15120
|
-
function
|
|
15123
|
+
function bb() {
|
|
15121
15124
|
const { transformedMetricKeys: t } = Es();
|
|
15122
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(
|
|
15125
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(vb, { metricKey: n, idx: s }, n)) });
|
|
15123
15126
|
}
|
|
15124
|
-
function
|
|
15127
|
+
function vb({ metricKey: t, idx: n }) {
|
|
15125
15128
|
var g;
|
|
15126
15129
|
const [s, r] = K(!1), o = F((M) => {
|
|
15127
15130
|
var T;
|
|
@@ -15218,7 +15221,7 @@ function bb({ metricKey: t, idx: n }) {
|
|
|
15218
15221
|
/* @__PURE__ */ a("div", { className: "flex items-end gap-4", children: [
|
|
15219
15222
|
/* @__PURE__ */ a("div", { className: "flex-1 space-y-1.5", children: [
|
|
15220
15223
|
/* @__PURE__ */ e(q, { className: "text-xs text-muted-foreground", children: "Chart Type" }),
|
|
15221
|
-
/* @__PURE__ */ e("div", { className: "flex gap-2", children:
|
|
15224
|
+
/* @__PURE__ */ e("div", { className: "flex gap-2", children: hb.map(({ type: M, icon: T, label: w }) => /* @__PURE__ */ a(
|
|
15222
15225
|
"button",
|
|
15223
15226
|
{
|
|
15224
15227
|
onClick: () => f(M),
|
|
@@ -15264,7 +15267,7 @@ function bb({ metricKey: t, idx: n }) {
|
|
|
15264
15267
|
onValueChange: (M) => h({ lineStyle: M }),
|
|
15265
15268
|
children: [
|
|
15266
15269
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15267
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15270
|
+
/* @__PURE__ */ e(ie, { children: gb.map(({ value: M, label: T }) => /* @__PURE__ */ e(
|
|
15268
15271
|
U,
|
|
15269
15272
|
{
|
|
15270
15273
|
value: M,
|
|
@@ -15286,7 +15289,7 @@ function bb({ metricKey: t, idx: n }) {
|
|
|
15286
15289
|
onValueChange: (M) => h({ pointRadius: Number(M) }),
|
|
15287
15290
|
children: [
|
|
15288
15291
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15289
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15292
|
+
/* @__PURE__ */ e(ie, { children: pb.map((M) => /* @__PURE__ */ e(
|
|
15290
15293
|
U,
|
|
15291
15294
|
{
|
|
15292
15295
|
value: String(M),
|
|
@@ -15308,7 +15311,7 @@ function bb({ metricKey: t, idx: n }) {
|
|
|
15308
15311
|
onValueChange: (M) => h({ pointStyle: M }),
|
|
15309
15312
|
children: [
|
|
15310
15313
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15311
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15314
|
+
/* @__PURE__ */ e(ie, { children: fb.map(({ value: M, label: T }) => /* @__PURE__ */ e(
|
|
15312
15315
|
U,
|
|
15313
15316
|
{
|
|
15314
15317
|
value: M,
|
|
@@ -15356,7 +15359,7 @@ const er = [
|
|
|
15356
15359
|
{ value: "-1", label: "Previous Series", description: "Fill to the series below" },
|
|
15357
15360
|
{ value: "+1", label: "Next Series", description: "Fill to the series above" },
|
|
15358
15361
|
{ value: "false", label: "No Fill (Line)", description: "Show as line without fill" }
|
|
15359
|
-
],
|
|
15362
|
+
], yb = [0, 1, 2, 3, 4, 5, 6, 8, 10], Nb = [
|
|
15360
15363
|
{ value: "circle", label: "Circle ●" },
|
|
15361
15364
|
{ value: "rect", label: "Square ■" },
|
|
15362
15365
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -15367,16 +15370,16 @@ const er = [
|
|
|
15367
15370
|
{ value: "star", label: "Star ★" },
|
|
15368
15371
|
{ value: "dash", label: "Dash —" },
|
|
15369
15372
|
{ value: "line", label: "Line │" }
|
|
15370
|
-
],
|
|
15373
|
+
], Cb = [
|
|
15371
15374
|
{ value: "solid", label: "Solid ───" },
|
|
15372
15375
|
{ value: "dashed", label: "Dashed - - -" },
|
|
15373
15376
|
{ value: "dotted", label: "Dotted ···" },
|
|
15374
15377
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
15375
15378
|
];
|
|
15376
|
-
function
|
|
15379
|
+
function wb(t) {
|
|
15377
15380
|
return t == null ? "origin" : t === !1 ? "false" : t;
|
|
15378
15381
|
}
|
|
15379
|
-
function
|
|
15382
|
+
function Sb() {
|
|
15380
15383
|
const t = F((n) => {
|
|
15381
15384
|
var s;
|
|
15382
15385
|
return (s = n.card) == null ? void 0 : s.type;
|
|
@@ -15386,14 +15389,14 @@ function wb() {
|
|
|
15386
15389
|
/* @__PURE__ */ e(Ln, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15387
15390
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15388
15391
|
] }) }),
|
|
15389
|
-
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
15392
|
+
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(Tb, {}) })
|
|
15390
15393
|
] });
|
|
15391
15394
|
}
|
|
15392
|
-
function
|
|
15395
|
+
function Tb() {
|
|
15393
15396
|
const { transformedMetricKeys: t } = Es();
|
|
15394
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(
|
|
15397
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(kb, { metricKey: n, idx: s }, n)) });
|
|
15395
15398
|
}
|
|
15396
|
-
function
|
|
15399
|
+
function kb({ metricKey: t, idx: n }) {
|
|
15397
15400
|
var N;
|
|
15398
15401
|
const [s, r] = K(!1), o = F((p) => {
|
|
15399
15402
|
var g;
|
|
@@ -15403,7 +15406,7 @@ function Tb({ metricKey: t, idx: n }) {
|
|
|
15403
15406
|
var g, M;
|
|
15404
15407
|
return (M = (g = p.card) == null ? void 0 : g.preferences) == null ? void 0 : M.datasetOptions;
|
|
15405
15408
|
}
|
|
15406
|
-
), i = c == null ? void 0 : c.find((p) => p.idx === n), { setCardPreferences: l } = F((p) => p.actions), d =
|
|
15409
|
+
), i = c == null ? void 0 : c.find((p) => p.idx === n), { setCardPreferences: l } = F((p) => p.actions), d = wb(i == null ? void 0 : i.fill), m = ((N = i == null ? void 0 : i.dataLabels) == null ? void 0 : N.enabled) ?? !1, u = er.find((p) => p.value === d) || er[0];
|
|
15407
15410
|
function x(p) {
|
|
15408
15411
|
const g = {
|
|
15409
15412
|
idx: n,
|
|
@@ -15505,7 +15508,7 @@ function Tb({ metricKey: t, idx: n }) {
|
|
|
15505
15508
|
onValueChange: (p) => x({ lineStyle: p }),
|
|
15506
15509
|
children: [
|
|
15507
15510
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15508
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15511
|
+
/* @__PURE__ */ e(ie, { children: Cb.map(({ value: p, label: g }) => /* @__PURE__ */ e(
|
|
15509
15512
|
U,
|
|
15510
15513
|
{
|
|
15511
15514
|
value: p,
|
|
@@ -15527,7 +15530,7 @@ function Tb({ metricKey: t, idx: n }) {
|
|
|
15527
15530
|
onValueChange: (p) => x({ pointRadius: Number(p) }),
|
|
15528
15531
|
children: [
|
|
15529
15532
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15530
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15533
|
+
/* @__PURE__ */ e(ie, { children: yb.map((p) => /* @__PURE__ */ e(
|
|
15531
15534
|
U,
|
|
15532
15535
|
{
|
|
15533
15536
|
value: String(p),
|
|
@@ -15549,7 +15552,7 @@ function Tb({ metricKey: t, idx: n }) {
|
|
|
15549
15552
|
onValueChange: (p) => x({ pointStyle: p }),
|
|
15550
15553
|
children: [
|
|
15551
15554
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15552
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15555
|
+
/* @__PURE__ */ e(ie, { children: Nb.map(({ value: p, label: g }) => /* @__PURE__ */ e(
|
|
15553
15556
|
U,
|
|
15554
15557
|
{
|
|
15555
15558
|
value: p,
|
|
@@ -15590,7 +15593,7 @@ function Tb({ metricKey: t, idx: n }) {
|
|
|
15590
15593
|
] }) }) })
|
|
15591
15594
|
] }) });
|
|
15592
15595
|
}
|
|
15593
|
-
const
|
|
15596
|
+
const Mb = [0, 1, 2, 3, 4, 5, 6, 8, 10], Db = [
|
|
15594
15597
|
{ value: "circle", label: "Circle ●" },
|
|
15595
15598
|
{ value: "rect", label: "Square ■" },
|
|
15596
15599
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -15607,7 +15610,7 @@ const kb = [0, 1, 2, 3, 4, 5, 6, 8, 10], Mb = [
|
|
|
15607
15610
|
{ value: "dotted", label: "Dotted ···" },
|
|
15608
15611
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
15609
15612
|
];
|
|
15610
|
-
function
|
|
15613
|
+
function Ib() {
|
|
15611
15614
|
return F((n) => {
|
|
15612
15615
|
var s;
|
|
15613
15616
|
return (s = n.card) == null ? void 0 : s.type;
|
|
@@ -15616,14 +15619,14 @@ function Db() {
|
|
|
15616
15619
|
/* @__PURE__ */ e(Ln, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15617
15620
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15618
15621
|
] }) }),
|
|
15619
|
-
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
15622
|
+
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(Eb, {}) })
|
|
15620
15623
|
] });
|
|
15621
15624
|
}
|
|
15622
|
-
function
|
|
15625
|
+
function Eb() {
|
|
15623
15626
|
const { transformedMetricKeys: t } = Es();
|
|
15624
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(
|
|
15627
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(Ab, { metricKey: n, idx: s }, n)) });
|
|
15625
15628
|
}
|
|
15626
|
-
function
|
|
15629
|
+
function Ab({ metricKey: t, idx: n }) {
|
|
15627
15630
|
var p;
|
|
15628
15631
|
const [s, r] = K(!1), o = F((g) => {
|
|
15629
15632
|
var M;
|
|
@@ -15734,7 +15737,7 @@ function Eb({ metricKey: t, idx: n }) {
|
|
|
15734
15737
|
onValueChange: (g) => f({ pointRadius: Number(g) }),
|
|
15735
15738
|
children: [
|
|
15736
15739
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15737
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15740
|
+
/* @__PURE__ */ e(ie, { children: Mb.map((g) => /* @__PURE__ */ e(
|
|
15738
15741
|
U,
|
|
15739
15742
|
{
|
|
15740
15743
|
value: String(g),
|
|
@@ -15756,7 +15759,7 @@ function Eb({ metricKey: t, idx: n }) {
|
|
|
15756
15759
|
onValueChange: (g) => f({ pointStyle: g }),
|
|
15757
15760
|
children: [
|
|
15758
15761
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15759
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15762
|
+
/* @__PURE__ */ e(ie, { children: Db.map(({ value: g, label: M }) => /* @__PURE__ */ e(
|
|
15760
15763
|
U,
|
|
15761
15764
|
{
|
|
15762
15765
|
value: g,
|
|
@@ -15797,8 +15800,8 @@ function Eb({ metricKey: t, idx: n }) {
|
|
|
15797
15800
|
] }) }) })
|
|
15798
15801
|
] }) });
|
|
15799
15802
|
}
|
|
15800
|
-
const
|
|
15801
|
-
function
|
|
15803
|
+
const Ob = [0, 2, 4, 6, 8, 10, 12, 16, 20];
|
|
15804
|
+
function Fb() {
|
|
15802
15805
|
const t = F((n) => {
|
|
15803
15806
|
var s;
|
|
15804
15807
|
return (s = n.card) == null ? void 0 : s.type;
|
|
@@ -15808,14 +15811,14 @@ function Ob() {
|
|
|
15808
15811
|
/* @__PURE__ */ e(Ln, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15809
15812
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15810
15813
|
] }) }),
|
|
15811
|
-
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
15814
|
+
/* @__PURE__ */ e(ut, { className: "pt-2", children: /* @__PURE__ */ e(Rb, {}) })
|
|
15812
15815
|
] });
|
|
15813
15816
|
}
|
|
15814
|
-
function
|
|
15817
|
+
function Rb() {
|
|
15815
15818
|
const { transformedMetricKeys: t } = Es();
|
|
15816
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(
|
|
15819
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(Pb, { metricKey: n, idx: s }, n)) });
|
|
15817
15820
|
}
|
|
15818
|
-
function
|
|
15821
|
+
function Pb({ metricKey: t, idx: n }) {
|
|
15819
15822
|
var b;
|
|
15820
15823
|
const [s, r] = K(!1), o = F((N) => {
|
|
15821
15824
|
var p;
|
|
@@ -15906,7 +15909,7 @@ function Rb({ metricKey: t, idx: n }) {
|
|
|
15906
15909
|
onValueChange: (N) => x({ borderRadius: Number(N) }),
|
|
15907
15910
|
children: [
|
|
15908
15911
|
/* @__PURE__ */ e(le, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15909
|
-
/* @__PURE__ */ e(ie, { children:
|
|
15912
|
+
/* @__PURE__ */ e(ie, { children: Ob.map((N) => /* @__PURE__ */ e(
|
|
15910
15913
|
U,
|
|
15911
15914
|
{
|
|
15912
15915
|
value: String(N),
|
|
@@ -15946,7 +15949,7 @@ function Rb({ metricKey: t, idx: n }) {
|
|
|
15946
15949
|
] }) }) })
|
|
15947
15950
|
] }) });
|
|
15948
15951
|
}
|
|
15949
|
-
const
|
|
15952
|
+
const Lb = [0, 1, 2, 3, 4, 5, 6, 8, 10], Vb = [
|
|
15950
15953
|
{ value: "circle", label: "Circle ●" },
|
|
15951
15954
|
{ value: "rect", label: "Square ■" },
|
|
15952
15955
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -15957,13 +15960,13 @@ const Pb = [0, 1, 2, 3, 4, 5, 6, 8, 10], Lb = [
|
|
|
15957
15960
|
{ value: "star", label: "Star ★" },
|
|
15958
15961
|
{ value: "dash", label: "Dash —" },
|
|
15959
15962
|
{ value: "line", label: "Line │" }
|
|
15960
|
-
],
|
|
15963
|
+
], Bb = [
|
|
15961
15964
|
{ value: "solid", label: "Solid ───" },
|
|
15962
15965
|
{ value: "dashed", label: "Dashed - - -" },
|
|
15963
15966
|
{ value: "dotted", label: "Dotted ···" },
|
|
15964
15967
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
15965
15968
|
];
|
|
15966
|
-
function
|
|
15969
|
+
function Yb() {
|
|
15967
15970
|
const t = F((l) => l.card), n = F((l) => {
|
|
15968
15971
|
var d;
|
|
15969
15972
|
return (d = l.card) == null ? void 0 : d.preferences;
|
|
@@ -15996,7 +15999,7 @@ function Bb() {
|
|
|
15996
15999
|
onValueChange: (l) => i("lineStyle", l),
|
|
15997
16000
|
children: [
|
|
15998
16001
|
/* @__PURE__ */ e(le, { className: "h-8 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
15999
|
-
/* @__PURE__ */ e(ie, { children:
|
|
16002
|
+
/* @__PURE__ */ e(ie, { children: Bb.map(({ value: l, label: d }) => /* @__PURE__ */ e(U, { value: l, className: "text-xs", children: d }, l)) })
|
|
16000
16003
|
]
|
|
16001
16004
|
}
|
|
16002
16005
|
)
|
|
@@ -16010,7 +16013,7 @@ function Bb() {
|
|
|
16010
16013
|
onValueChange: (l) => i("pointRadius", Number(l)),
|
|
16011
16014
|
children: [
|
|
16012
16015
|
/* @__PURE__ */ e(le, { className: "h-8 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
16013
|
-
/* @__PURE__ */ e(ie, { children:
|
|
16016
|
+
/* @__PURE__ */ e(ie, { children: Lb.map((l) => /* @__PURE__ */ e(
|
|
16014
16017
|
U,
|
|
16015
16018
|
{
|
|
16016
16019
|
value: String(l),
|
|
@@ -16032,7 +16035,7 @@ function Bb() {
|
|
|
16032
16035
|
onValueChange: (l) => i("pointStyle", l),
|
|
16033
16036
|
children: [
|
|
16034
16037
|
/* @__PURE__ */ e(le, { className: "h-8 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
16035
|
-
/* @__PURE__ */ e(ie, { children:
|
|
16038
|
+
/* @__PURE__ */ e(ie, { children: Vb.map(({ value: l, label: d }) => /* @__PURE__ */ e(U, { value: l, className: "text-xs", children: d }, l)) })
|
|
16036
16039
|
]
|
|
16037
16040
|
}
|
|
16038
16041
|
)
|
|
@@ -16040,14 +16043,14 @@ function Bb() {
|
|
|
16040
16043
|
] }) })
|
|
16041
16044
|
] });
|
|
16042
16045
|
}
|
|
16043
|
-
const
|
|
16046
|
+
const _b = [0, 2, 4, 6, 8, 10, 12, 16, 20], $b = [
|
|
16044
16047
|
{ value: "0.5", label: "50%" },
|
|
16045
16048
|
{ value: "0.6", label: "60%" },
|
|
16046
16049
|
{ value: "0.7", label: "70%" },
|
|
16047
16050
|
{ value: "0.8", label: "80%" },
|
|
16048
16051
|
{ value: "0.9", label: "90%" },
|
|
16049
16052
|
{ value: "1", label: "100%" }
|
|
16050
|
-
],
|
|
16053
|
+
], zb = [
|
|
16051
16054
|
{ value: "0.5", label: "50%" },
|
|
16052
16055
|
{ value: "0.6", label: "60%" },
|
|
16053
16056
|
{ value: "0.7", label: "70%" },
|
|
@@ -16055,7 +16058,7 @@ const Yb = [0, 2, 4, 6, 8, 10, 12, 16, 20], _b = [
|
|
|
16055
16058
|
{ value: "0.9", label: "90%" },
|
|
16056
16059
|
{ value: "1", label: "100%" }
|
|
16057
16060
|
];
|
|
16058
|
-
function
|
|
16061
|
+
function qb() {
|
|
16059
16062
|
const t = F((l) => l.card), n = F((l) => {
|
|
16060
16063
|
var d;
|
|
16061
16064
|
return (d = l.card) == null ? void 0 : d.preferences;
|
|
@@ -16088,7 +16091,7 @@ function zb() {
|
|
|
16088
16091
|
onValueChange: (l) => i("borderRadius", Number(l)),
|
|
16089
16092
|
children: [
|
|
16090
16093
|
/* @__PURE__ */ e(le, { className: "h-8 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
16091
|
-
/* @__PURE__ */ e(ie, { children:
|
|
16094
|
+
/* @__PURE__ */ e(ie, { children: _b.map((l) => /* @__PURE__ */ e(
|
|
16092
16095
|
U,
|
|
16093
16096
|
{
|
|
16094
16097
|
value: String(l),
|
|
@@ -16110,7 +16113,7 @@ function zb() {
|
|
|
16110
16113
|
onValueChange: (l) => i("barPercentage", Number(l)),
|
|
16111
16114
|
children: [
|
|
16112
16115
|
/* @__PURE__ */ e(le, { className: "h-8 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
16113
|
-
/* @__PURE__ */ e(ie, { children:
|
|
16116
|
+
/* @__PURE__ */ e(ie, { children: $b.map(({ value: l, label: d }) => /* @__PURE__ */ e(U, { value: l, className: "text-xs", children: d }, l)) })
|
|
16114
16117
|
]
|
|
16115
16118
|
}
|
|
16116
16119
|
)
|
|
@@ -16124,7 +16127,7 @@ function zb() {
|
|
|
16124
16127
|
onValueChange: (l) => i("categoryPercentage", Number(l)),
|
|
16125
16128
|
children: [
|
|
16126
16129
|
/* @__PURE__ */ e(le, { className: "h-8 text-xs", children: /* @__PURE__ */ e(oe, {}) }),
|
|
16127
|
-
/* @__PURE__ */ e(ie, { children:
|
|
16130
|
+
/* @__PURE__ */ e(ie, { children: zb.map(({ value: l, label: d }) => /* @__PURE__ */ e(U, { value: l, className: "text-xs", children: d }, l)) })
|
|
16128
16131
|
]
|
|
16129
16132
|
}
|
|
16130
16133
|
)
|
|
@@ -16132,7 +16135,7 @@ function zb() {
|
|
|
16132
16135
|
] }) })
|
|
16133
16136
|
] });
|
|
16134
16137
|
}
|
|
16135
|
-
function
|
|
16138
|
+
function jb() {
|
|
16136
16139
|
const t = F(
|
|
16137
16140
|
(s) => {
|
|
16138
16141
|
var r, o;
|
|
@@ -16165,29 +16168,29 @@ function qb() {
|
|
|
16165
16168
|
] }) })
|
|
16166
16169
|
] });
|
|
16167
16170
|
}
|
|
16168
|
-
const
|
|
16171
|
+
const Kb = ["kpi"], ar = 2;
|
|
16169
16172
|
function Ia(t) {
|
|
16170
16173
|
return typeof t == "string" ? t.trim().toLowerCase() : ((t == null ? void 0 : t.id) || (t == null ? void 0 : t.qualifiedFieldName) || (t == null ? void 0 : t.name) || (t == null ? void 0 : t.label) || "").trim().toLowerCase();
|
|
16171
16174
|
}
|
|
16172
|
-
function
|
|
16175
|
+
function Ub(t) {
|
|
16173
16176
|
if (!(t != null && t.name) || !(t != null && t.dataType) || t.role === "metric")
|
|
16174
16177
|
return !1;
|
|
16175
16178
|
const n = Ct(t.dataType);
|
|
16176
16179
|
return ["date", "string", "boolean"].includes(n);
|
|
16177
16180
|
}
|
|
16178
|
-
function
|
|
16181
|
+
function Gb(t) {
|
|
16179
16182
|
return {
|
|
16180
16183
|
...t,
|
|
16181
16184
|
role: "groupby"
|
|
16182
16185
|
};
|
|
16183
16186
|
}
|
|
16184
|
-
function
|
|
16187
|
+
function Hb() {
|
|
16185
16188
|
var M, T;
|
|
16186
16189
|
const t = F((w) => w.card), n = F(
|
|
16187
16190
|
(w) => w.actions.updateCardConfig
|
|
16188
|
-
), s = At(), { scopedFields: r } = Ei(), o = ((M = t.config) == null ? void 0 : M.metricColumns) || [], c = ((T = t.config) == null ? void 0 : T.summary) || {}, i = c.breakdownDimensions || [], l = i.length > 0, d =
|
|
16191
|
+
), s = At(), { scopedFields: r } = Ei(), o = ((M = t.config) == null ? void 0 : M.metricColumns) || [], c = ((T = t.config) == null ? void 0 : T.summary) || {}, i = c.breakdownDimensions || [], l = i.length > 0, d = Kb.includes(s), m = o.length > 0, u = c.enabled === !0, x = d && m, h = Array.from(
|
|
16189
16192
|
new Map(
|
|
16190
|
-
r.filter(
|
|
16193
|
+
r.filter(Ub).map((w) => [Ia(w), Gb(w)])
|
|
16191
16194
|
).values()
|
|
16192
16195
|
), f = new Set(
|
|
16193
16196
|
h.map((w) => Ia(w))
|
|
@@ -16338,7 +16341,7 @@ function Gb() {
|
|
|
16338
16341
|
) })
|
|
16339
16342
|
] });
|
|
16340
16343
|
}
|
|
16341
|
-
const
|
|
16344
|
+
const Qb = /* @__PURE__ */ new Set([
|
|
16342
16345
|
"area",
|
|
16343
16346
|
"bar",
|
|
16344
16347
|
"bubble",
|
|
@@ -16357,12 +16360,12 @@ const Hb = /* @__PURE__ */ new Set([
|
|
|
16357
16360
|
"stackedLine",
|
|
16358
16361
|
"tornado"
|
|
16359
16362
|
]);
|
|
16360
|
-
function
|
|
16363
|
+
function Wb() {
|
|
16361
16364
|
const t = F((d) => d.card), n = F((d) => {
|
|
16362
16365
|
var m;
|
|
16363
16366
|
return (m = d.card) == null ? void 0 : m.preferences;
|
|
16364
16367
|
}), s = At(), { setCardPreferences: r, updateCardInFrame: o } = we();
|
|
16365
|
-
if (!t || !
|
|
16368
|
+
if (!t || !Qb.has(s || ""))
|
|
16366
16369
|
return null;
|
|
16367
16370
|
const c = n == null ? void 0 : n.tooltipConfig, i = (c == null ? void 0 : c.formatMode) || (c == null ? void 0 : c.mode) || "inherit", l = (d) => {
|
|
16368
16371
|
const m = {
|
|
@@ -16421,35 +16424,35 @@ function zc({ mode: t }) {
|
|
|
16421
16424
|
return (r = s.card) == null ? void 0 : r.type;
|
|
16422
16425
|
});
|
|
16423
16426
|
return Ai(n) ? null : /* @__PURE__ */ a(Ne, { children: [
|
|
16424
|
-
n === "combo" && /* @__PURE__ */ e(
|
|
16425
|
-
(n === "area" || n === "stackedArea") && /* @__PURE__ */ e(
|
|
16426
|
-
n === "line" && /* @__PURE__ */ e(
|
|
16427
|
-
(n === "bar" || n === "horizontalBar" || n === "stackedBar") && /* @__PURE__ */ e(
|
|
16428
|
-
/* @__PURE__ */ e(
|
|
16429
|
-
/* @__PURE__ */ e(
|
|
16430
|
-
/* @__PURE__ */ e(
|
|
16431
|
-
t === "config" && /* @__PURE__ */ e(
|
|
16432
|
-
t === "config" && /* @__PURE__ */ e(
|
|
16433
|
-
/* @__PURE__ */ e(
|
|
16434
|
-
n === "bullet" && /* @__PURE__ */ e(
|
|
16435
|
-
n === "funnel" && /* @__PURE__ */ e(
|
|
16436
|
-
(n === "bubble" || n === "scatter") && /* @__PURE__ */ e(
|
|
16437
|
-
(n === "stackedBar" || n === "stackedLine") && /* @__PURE__ */ e(
|
|
16438
|
-
/* @__PURE__ */ e(Jx, {}),
|
|
16427
|
+
n === "combo" && /* @__PURE__ */ e(xb, {}),
|
|
16428
|
+
(n === "area" || n === "stackedArea") && /* @__PURE__ */ e(Sb, {}),
|
|
16429
|
+
n === "line" && /* @__PURE__ */ e(Ib, {}),
|
|
16430
|
+
(n === "bar" || n === "horizontalBar" || n === "stackedBar") && /* @__PURE__ */ e(Fb, {}),
|
|
16431
|
+
/* @__PURE__ */ e(Yb, {}),
|
|
16432
|
+
/* @__PURE__ */ e(qb, {}),
|
|
16433
|
+
/* @__PURE__ */ e(ab, {}),
|
|
16434
|
+
t === "config" && /* @__PURE__ */ e(Kx, {}),
|
|
16435
|
+
t === "config" && /* @__PURE__ */ e(Hb, {}),
|
|
16436
|
+
/* @__PURE__ */ e(sb, {}),
|
|
16437
|
+
n === "bullet" && /* @__PURE__ */ e(rb, {}),
|
|
16438
|
+
n === "funnel" && /* @__PURE__ */ e(ib, {}),
|
|
16439
|
+
(n === "bubble" || n === "scatter") && /* @__PURE__ */ e(lb, {}),
|
|
16440
|
+
(n === "stackedBar" || n === "stackedLine") && /* @__PURE__ */ e(jb, {}),
|
|
16439
16441
|
/* @__PURE__ */ e(Xx, {}),
|
|
16440
16442
|
/* @__PURE__ */ e(Zx, {}),
|
|
16441
16443
|
/* @__PURE__ */ e(eb, {}),
|
|
16442
|
-
/* @__PURE__ */ e(
|
|
16444
|
+
/* @__PURE__ */ e(tb, {}),
|
|
16445
|
+
/* @__PURE__ */ e(Wb, {})
|
|
16443
16446
|
] });
|
|
16444
16447
|
}
|
|
16445
|
-
function
|
|
16448
|
+
function Jb() {
|
|
16446
16449
|
const t = F((s) => s.card), n = t == null ? void 0 : t.type;
|
|
16447
16450
|
return n ? /* @__PURE__ */ a("div", { className: "space-y-4 px-6 py-4", children: [
|
|
16448
16451
|
/* @__PURE__ */ e(nl, { chartType: n }),
|
|
16449
16452
|
/* @__PURE__ */ e(Ns, { type: "single", collapsible: !0, className: "w-full px-2", children: /* @__PURE__ */ e(zc, { mode: "dev" }) })
|
|
16450
16453
|
] }) : null;
|
|
16451
16454
|
}
|
|
16452
|
-
function
|
|
16455
|
+
function Xb({
|
|
16453
16456
|
focusSection: t,
|
|
16454
16457
|
focusRequestId: n
|
|
16455
16458
|
}) {
|
|
@@ -16472,15 +16475,15 @@ function Jb({
|
|
|
16472
16475
|
);
|
|
16473
16476
|
switch (r) {
|
|
16474
16477
|
case "kpi":
|
|
16475
|
-
return /* @__PURE__ */ e(
|
|
16478
|
+
return /* @__PURE__ */ e(Ox, {});
|
|
16476
16479
|
case "map":
|
|
16477
|
-
return /* @__PURE__ */ e(
|
|
16480
|
+
return /* @__PURE__ */ e(Vx, {});
|
|
16478
16481
|
case "custom":
|
|
16479
16482
|
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(Pc, {}) });
|
|
16480
16483
|
case "text":
|
|
16481
|
-
return /* @__PURE__ */ e(
|
|
16484
|
+
return /* @__PURE__ */ e(Gx, {});
|
|
16482
16485
|
default:
|
|
16483
|
-
return /* @__PURE__ */ e(
|
|
16486
|
+
return /* @__PURE__ */ e(Jb, {});
|
|
16484
16487
|
}
|
|
16485
16488
|
}
|
|
16486
16489
|
return /* @__PURE__ */ a(Vn, { className: "h-full w-full text-sm", children: [
|
|
@@ -16489,7 +16492,7 @@ function Jb({
|
|
|
16489
16492
|
] });
|
|
16490
16493
|
}
|
|
16491
16494
|
const $o = 32;
|
|
16492
|
-
function
|
|
16495
|
+
function Zb() {
|
|
16493
16496
|
const t = Ee(null), n = Ee(null), s = F((g) => g.isShowingVisual), r = F((g) => g.isDevMode), o = F((g) => g.showAIDialog), [c, i] = K(!1), [l, d] = K({ section: null, id: 0 }), m = s && !o, u = m && (!r || c), x = r && m, h = () => i((g) => !g), f = (g) => {
|
|
16494
16497
|
g && d((M) => ({
|
|
16495
16498
|
section: g,
|
|
@@ -16557,7 +16560,7 @@ function Xb() {
|
|
|
16557
16560
|
defaultSize: $o,
|
|
16558
16561
|
maxSize: 45,
|
|
16559
16562
|
children: /* @__PURE__ */ e(
|
|
16560
|
-
|
|
16563
|
+
Xb,
|
|
16561
16564
|
{
|
|
16562
16565
|
focusSection: l.section,
|
|
16563
16566
|
focusRequestId: l.id
|
|
@@ -16578,7 +16581,7 @@ function Xb() {
|
|
|
16578
16581
|
}
|
|
16579
16582
|
);
|
|
16580
16583
|
}
|
|
16581
|
-
function
|
|
16584
|
+
function ev(t) {
|
|
16582
16585
|
var he;
|
|
16583
16586
|
Tn(
|
|
16584
16587
|
(G) => G.currentAIContext
|
|
@@ -16865,7 +16868,7 @@ function Zb(t) {
|
|
|
16865
16868
|
clearError: Ie
|
|
16866
16869
|
};
|
|
16867
16870
|
}
|
|
16868
|
-
const
|
|
16871
|
+
const tv = [
|
|
16869
16872
|
{
|
|
16870
16873
|
title: "Help me write a query for",
|
|
16871
16874
|
subtitle: "orders by month"
|
|
@@ -16897,7 +16900,7 @@ function zo({
|
|
|
16897
16900
|
llmUsage: Z,
|
|
16898
16901
|
errorMessage: Q,
|
|
16899
16902
|
clearError: ee
|
|
16900
|
-
} =
|
|
16903
|
+
} = ev(), [te, ce] = K(""), ve = (pe) => {
|
|
16901
16904
|
ce(pe.target.value);
|
|
16902
16905
|
}, Me = (pe) => {
|
|
16903
16906
|
pe.preventDefault();
|
|
@@ -17142,7 +17145,7 @@ function zo({
|
|
|
17142
17145
|
nh,
|
|
17143
17146
|
{
|
|
17144
17147
|
onClick: Ke,
|
|
17145
|
-
placeholders:
|
|
17148
|
+
placeholders: tv
|
|
17146
17149
|
}
|
|
17147
17150
|
),
|
|
17148
17151
|
/* @__PURE__ */ e("div", { children: ge && P && /* @__PURE__ */ e(
|
|
@@ -17317,7 +17320,7 @@ function qc({
|
|
|
17317
17320
|
u && /* @__PURE__ */ e(Tt, { align: "start", sideOffset: 6, className: "w-[320px] p-0", children: /* @__PURE__ */ e("div", { className: "max-h-[480px] space-y-3 overflow-y-auto p-3", children: u }) })
|
|
17318
17321
|
] });
|
|
17319
17322
|
}
|
|
17320
|
-
function
|
|
17323
|
+
function av(t, n) {
|
|
17321
17324
|
var r;
|
|
17322
17325
|
if (n.status === "blocked" || (r = t.sql) != null && r.trim()) return !1;
|
|
17323
17326
|
const s = new Set(
|
|
@@ -17331,7 +17334,7 @@ function tv(t, n) {
|
|
|
17331
17334
|
);
|
|
17332
17335
|
if (!Rp(o)) return !1;
|
|
17333
17336
|
if (!(s.has(o.filterId) || (c == null ? void 0 : c.kind) === "global-date"))
|
|
17334
|
-
return !!(c &&
|
|
17337
|
+
return !!(c && nv(
|
|
17335
17338
|
[c],
|
|
17336
17339
|
n.resolvedPrimaryDateField,
|
|
17337
17340
|
[o]
|
|
@@ -17346,7 +17349,7 @@ function tv(t, n) {
|
|
|
17346
17349
|
}).status === "eligible");
|
|
17347
17350
|
});
|
|
17348
17351
|
}
|
|
17349
|
-
function
|
|
17352
|
+
function nv(t, n, s) {
|
|
17350
17353
|
if (!n) return !1;
|
|
17351
17354
|
const r = n.qualifiedFieldName, o = n.qualifiedEntityName, c = o && n.name ? `${o}.${n.name}` : r;
|
|
17352
17355
|
return t.some((i) => {
|
|
@@ -17355,7 +17358,7 @@ function av(t, n, s) {
|
|
|
17355
17358
|
return r ? f ? f === c || f.endsWith(`.${r}`) : u === n.name : f ? f === c : u === n.name;
|
|
17356
17359
|
});
|
|
17357
17360
|
}
|
|
17358
|
-
function
|
|
17361
|
+
function sv(t) {
|
|
17359
17362
|
switch (t) {
|
|
17360
17363
|
case "day":
|
|
17361
17364
|
return [
|
|
@@ -17476,7 +17479,7 @@ function nv(t) {
|
|
|
17476
17479
|
];
|
|
17477
17480
|
}
|
|
17478
17481
|
}
|
|
17479
|
-
function
|
|
17482
|
+
function rv({
|
|
17480
17483
|
aliasTemplate: t,
|
|
17481
17484
|
onAliasTemplateChange: n
|
|
17482
17485
|
}) {
|
|
@@ -17536,7 +17539,7 @@ function sv({
|
|
|
17536
17539
|
] })
|
|
17537
17540
|
] });
|
|
17538
17541
|
}
|
|
17539
|
-
function
|
|
17542
|
+
function lv({
|
|
17540
17543
|
valueAliases: t,
|
|
17541
17544
|
onValueAliasesChange: n
|
|
17542
17545
|
}) {
|
|
@@ -17658,7 +17661,7 @@ function rv({
|
|
|
17658
17661
|
] })
|
|
17659
17662
|
] });
|
|
17660
17663
|
}
|
|
17661
|
-
function
|
|
17664
|
+
function ov({ idx: t }) {
|
|
17662
17665
|
var l;
|
|
17663
17666
|
const n = F((d) => {
|
|
17664
17667
|
var m;
|
|
@@ -17761,10 +17764,10 @@ function lv({ idx: t }) {
|
|
|
17761
17764
|
] }) })
|
|
17762
17765
|
] });
|
|
17763
17766
|
}
|
|
17764
|
-
function
|
|
17767
|
+
function iv(t, n = 30) {
|
|
17765
17768
|
return t.length > n ? t.slice(0, n) + "..." : t;
|
|
17766
17769
|
}
|
|
17767
|
-
function
|
|
17770
|
+
function cv({
|
|
17768
17771
|
col: t,
|
|
17769
17772
|
idx: n,
|
|
17770
17773
|
className: s,
|
|
@@ -17813,7 +17816,7 @@ function iv({
|
|
|
17813
17816
|
s
|
|
17814
17817
|
),
|
|
17815
17818
|
children: [
|
|
17816
|
-
o || /* @__PURE__ */ e(sl, { className: "max-w-[100px]", title: t, children:
|
|
17819
|
+
o || /* @__PURE__ */ e(sl, { className: "max-w-[100px]", title: t, children: iv(t) }),
|
|
17817
17820
|
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
17818
17821
|
/* @__PURE__ */ e(
|
|
17819
17822
|
vs,
|
|
@@ -17845,13 +17848,13 @@ function iv({
|
|
|
17845
17848
|
)
|
|
17846
17849
|
}
|
|
17847
17850
|
),
|
|
17848
|
-
/* @__PURE__ */ e(
|
|
17851
|
+
/* @__PURE__ */ e(ov, { idx: n })
|
|
17849
17852
|
] })
|
|
17850
17853
|
]
|
|
17851
17854
|
}
|
|
17852
17855
|
);
|
|
17853
17856
|
}
|
|
17854
|
-
function
|
|
17857
|
+
function dv() {
|
|
17855
17858
|
const t = F((l) => l.card.type), n = F((l) => l.isDevMode), s = F((l) => l.card.preferences), { setCardPreferences: r } = F((l) => l.actions);
|
|
17856
17859
|
function o(l) {
|
|
17857
17860
|
var u;
|
|
@@ -17920,7 +17923,7 @@ function cv() {
|
|
|
17920
17923
|
}
|
|
17921
17924
|
return /* @__PURE__ */ e(Ne, { children: n ? c() : i() });
|
|
17922
17925
|
}
|
|
17923
|
-
function
|
|
17926
|
+
function uv({
|
|
17924
17927
|
column: t
|
|
17925
17928
|
}) {
|
|
17926
17929
|
const n = F((d) => d.card.type), s = F(
|
|
@@ -17932,12 +17935,12 @@ function dv({
|
|
|
17932
17935
|
(d) => d === t.label || d === t.name
|
|
17933
17936
|
), c = o ? r.indexOf(o) : -1;
|
|
17934
17937
|
function i() {
|
|
17935
|
-
return /* @__PURE__ */ e("div", { className: "pr-1", children: o && /* @__PURE__ */ e(
|
|
17938
|
+
return /* @__PURE__ */ e("div", { className: "pr-1", children: o && /* @__PURE__ */ e(cv, { idx: c, col: o, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
|
|
17936
17939
|
}
|
|
17937
17940
|
function l() {
|
|
17938
17941
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
17939
17942
|
/* @__PURE__ */ e(q, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
|
|
17940
|
-
/* @__PURE__ */ e(
|
|
17943
|
+
/* @__PURE__ */ e(dv, {})
|
|
17941
17944
|
] });
|
|
17942
17945
|
}
|
|
17943
17946
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
@@ -17945,7 +17948,7 @@ function dv({
|
|
|
17945
17948
|
["pie", "doughnut"].includes(n) && l()
|
|
17946
17949
|
] });
|
|
17947
17950
|
}
|
|
17948
|
-
function
|
|
17951
|
+
function mv({
|
|
17949
17952
|
field: t,
|
|
17950
17953
|
searchQuery: n = "",
|
|
17951
17954
|
limit: s = 500
|
|
@@ -18037,7 +18040,7 @@ function uv({
|
|
|
18037
18040
|
refetch: m.refetch
|
|
18038
18041
|
};
|
|
18039
18042
|
}
|
|
18040
|
-
const
|
|
18043
|
+
const hv = /* @__PURE__ */ new Set();
|
|
18041
18044
|
function jc({
|
|
18042
18045
|
open: t,
|
|
18043
18046
|
onOpenChange: n,
|
|
@@ -18145,7 +18148,7 @@ function jc({
|
|
|
18145
18148
|
Ri,
|
|
18146
18149
|
{
|
|
18147
18150
|
fields: f,
|
|
18148
|
-
selectedIds:
|
|
18151
|
+
selectedIds: hv,
|
|
18149
18152
|
onSelect: b,
|
|
18150
18153
|
query: m,
|
|
18151
18154
|
onQueryChange: u,
|
|
@@ -18156,7 +18159,7 @@ function jc({
|
|
|
18156
18159
|
emptyMessage: m ? `No fields found matching "${m}"` : s.length > 0 ? "All available fields are already filtered" : void 0
|
|
18157
18160
|
}
|
|
18158
18161
|
) }) : /* @__PURE__ */ e(
|
|
18159
|
-
|
|
18162
|
+
pv,
|
|
18160
18163
|
{
|
|
18161
18164
|
field: x.field,
|
|
18162
18165
|
selectedValues: x.selectedValues,
|
|
@@ -18181,7 +18184,7 @@ function jc({
|
|
|
18181
18184
|
] })
|
|
18182
18185
|
] }) });
|
|
18183
18186
|
}
|
|
18184
|
-
function
|
|
18187
|
+
function pv({
|
|
18185
18188
|
field: t,
|
|
18186
18189
|
selectedValues: n,
|
|
18187
18190
|
onValuesChange: s,
|
|
@@ -18191,7 +18194,7 @@ function hv({
|
|
|
18191
18194
|
values: i,
|
|
18192
18195
|
isLoading: l,
|
|
18193
18196
|
isFetching: d
|
|
18194
|
-
} =
|
|
18197
|
+
} = mv({
|
|
18195
18198
|
field: t,
|
|
18196
18199
|
searchQuery: o,
|
|
18197
18200
|
limit: 500
|
|
@@ -18259,11 +18262,11 @@ function hv({
|
|
|
18259
18262
|
] })
|
|
18260
18263
|
] });
|
|
18261
18264
|
}
|
|
18262
|
-
function
|
|
18265
|
+
function fv(t, n) {
|
|
18263
18266
|
return t === "pivotBy" && (n === "table" || n === "pivotTable");
|
|
18264
18267
|
}
|
|
18265
|
-
const
|
|
18266
|
-
function
|
|
18268
|
+
const gv = [];
|
|
18269
|
+
function xv({
|
|
18267
18270
|
field: t,
|
|
18268
18271
|
zone: n,
|
|
18269
18272
|
index: s,
|
|
@@ -18282,7 +18285,7 @@ function gv({
|
|
|
18282
18285
|
var _e;
|
|
18283
18286
|
return W.visualEditPendingDashboardCalculatedFields ?? ((_e = W.dashboard) == null ? void 0 : _e.calculatedFields);
|
|
18284
18287
|
}
|
|
18285
|
-
) ??
|
|
18288
|
+
) ?? gv, {
|
|
18286
18289
|
scopedFields: N,
|
|
18287
18290
|
valuePickFilterableFields: p,
|
|
18288
18291
|
isLoading: g,
|
|
@@ -18455,7 +18458,7 @@ function gv({
|
|
|
18455
18458
|
ge,
|
|
18456
18459
|
Re.format,
|
|
18457
18460
|
D
|
|
18458
|
-
) : n === "detailColumns" ?
|
|
18461
|
+
) : n === "detailColumns" ? sv(ge ?? "day") : [], Os = He ? "custom" : !ge && n === "groupBy" ? void 0 : vn.some((W) => W.value === pe) ? pe : ((pl = vn[0]) == null ? void 0 : pl.value) ?? "YYYY-MM-DD", jn = !!i && Mh.includes(i), Fs = !!i && Dh.includes(i), ka = se(
|
|
18459
18462
|
() => Xt == null ? void 0 : Xt.find((W) => Ct(W.dataType || "") === "date"),
|
|
18460
18463
|
[Xt]
|
|
18461
18464
|
), Kt = se(
|
|
@@ -18484,7 +18487,7 @@ function gv({
|
|
|
18484
18487
|
}, ae = (be) => be.conditions.some((mt) => Ct(mt.field.dataType || "") === "date" && _e(mt)) ? !0 : be.groups.some((mt) => ae(mt));
|
|
18485
18488
|
return ae(W);
|
|
18486
18489
|
}, [J, xt]), ue = se(
|
|
18487
|
-
() =>
|
|
18490
|
+
() => av(l, yh({
|
|
18488
18491
|
card: l,
|
|
18489
18492
|
cardConfig: Ta.queryRelevantConfig,
|
|
18490
18493
|
input: Ta.filterCompilationInput,
|
|
@@ -18523,7 +18526,7 @@ function gv({
|
|
|
18523
18526
|
ke(() => {
|
|
18524
18527
|
tt && Je(!0);
|
|
18525
18528
|
}, [tt]);
|
|
18526
|
-
const sd = n !== "pivotBy" && n !== "sortBy", rd =
|
|
18529
|
+
const sd = n !== "pivotBy" && n !== "sortBy", rd = fv(
|
|
18527
18530
|
n,
|
|
18528
18531
|
i
|
|
18529
18532
|
), ld = t.memberOrder ?? "auto", od = ia && n === "groupBy" && (!zn || nd), id = !zn && ia && (n === "groupBy" || ja), cd = n === "metrics", dd = !zn && Sa === "number" && (n === "groupBy" || ja) && kh(i), Un = jn && !l.sql && !l.python && n === "metrics", ud = () => {
|
|
@@ -19217,17 +19220,17 @@ function gv({
|
|
|
19217
19220
|
}
|
|
19218
19221
|
)
|
|
19219
19222
|
] }),
|
|
19220
|
-
/* @__PURE__ */ e(
|
|
19223
|
+
/* @__PURE__ */ e(uv, { column: t }),
|
|
19221
19224
|
c && /* @__PURE__ */ a(Ne, { children: [
|
|
19222
19225
|
/* @__PURE__ */ e(
|
|
19223
|
-
|
|
19226
|
+
rv,
|
|
19224
19227
|
{
|
|
19225
19228
|
aliasTemplate: ye,
|
|
19226
19229
|
onAliasTemplateChange: de
|
|
19227
19230
|
}
|
|
19228
19231
|
),
|
|
19229
19232
|
/* @__PURE__ */ e(
|
|
19230
|
-
|
|
19233
|
+
lv,
|
|
19231
19234
|
{
|
|
19232
19235
|
valueAliases: Ue,
|
|
19233
19236
|
onValueAliasesChange: Fe
|
|
@@ -19426,7 +19429,7 @@ function gv({
|
|
|
19426
19429
|
)
|
|
19427
19430
|
] });
|
|
19428
19431
|
}
|
|
19429
|
-
function
|
|
19432
|
+
function bv({
|
|
19430
19433
|
field: t,
|
|
19431
19434
|
onRemove: n
|
|
19432
19435
|
}) {
|
|
@@ -19445,8 +19448,8 @@ function xv({
|
|
|
19445
19448
|
}
|
|
19446
19449
|
);
|
|
19447
19450
|
}
|
|
19448
|
-
function
|
|
19449
|
-
const { title: n, description: s } =
|
|
19451
|
+
function vv({ concept: t }) {
|
|
19452
|
+
const { title: n, description: s } = yv[t];
|
|
19450
19453
|
return /* @__PURE__ */ a(In, { openDelay: 150, closeDelay: 50, children: [
|
|
19451
19454
|
/* @__PURE__ */ e(En, { asChild: !0, children: /* @__PURE__ */ e(
|
|
19452
19455
|
"button",
|
|
@@ -19469,13 +19472,13 @@ function bv({ concept: t }) {
|
|
|
19469
19472
|
/* @__PURE__ */ e("p", { className: "text-[12px] font-semibold text-foreground", children: n }),
|
|
19470
19473
|
/* @__PURE__ */ e("p", { className: "text-[11px] leading-[1.45] text-muted-foreground", children: s })
|
|
19471
19474
|
] }),
|
|
19472
|
-
t !== "detailColumns" && /* @__PURE__ */ e(
|
|
19475
|
+
t !== "detailColumns" && /* @__PURE__ */ e(Nv, { highlight: t })
|
|
19473
19476
|
]
|
|
19474
19477
|
}
|
|
19475
19478
|
)
|
|
19476
19479
|
] });
|
|
19477
19480
|
}
|
|
19478
|
-
const
|
|
19481
|
+
const yv = {
|
|
19479
19482
|
groupBy: {
|
|
19480
19483
|
title: "Rows",
|
|
19481
19484
|
description: "Each unique value becomes a row. Use for the dimensions you want stacked vertically."
|
|
@@ -19493,7 +19496,7 @@ const vv = {
|
|
|
19493
19496
|
description: "Raw column values with no aggregation — the underlying detail rows from the database."
|
|
19494
19497
|
}
|
|
19495
19498
|
};
|
|
19496
|
-
function
|
|
19499
|
+
function Nv({
|
|
19497
19500
|
highlight: t
|
|
19498
19501
|
}) {
|
|
19499
19502
|
const n = t === "pivotBy", s = t === "groupBy", r = t === "metrics", o = "bg-foreground/[0.06] font-medium text-foreground dark:bg-foreground/[0.12]";
|
|
@@ -19549,7 +19552,7 @@ function yv({
|
|
|
19549
19552
|
const qo = [
|
|
19550
19553
|
{ label: "Electronics", values: ["2,300", "1,800", "3,400"] },
|
|
19551
19554
|
{ label: "Clothing", values: ["1,300", "620", "480"] }
|
|
19552
|
-
],
|
|
19555
|
+
], Cv = {
|
|
19553
19556
|
groupBy: ys,
|
|
19554
19557
|
pivotBy: Qr,
|
|
19555
19558
|
metrics: Kf,
|
|
@@ -19580,7 +19583,7 @@ function Cn({
|
|
|
19580
19583
|
};
|
|
19581
19584
|
if (n === "sortBy" && c === !1)
|
|
19582
19585
|
return null;
|
|
19583
|
-
const p = n !== "sortBy" && h !== "kpi", g =
|
|
19586
|
+
const p = n !== "sortBy" && h !== "kpi", g = Cv[n] || It;
|
|
19584
19587
|
return /* @__PURE__ */ a("div", { className: "w-full", role: "group", "aria-label": r, children: [
|
|
19585
19588
|
/* @__PURE__ */ e(q, { className: "mb-1 block text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: r }),
|
|
19586
19589
|
/* @__PURE__ */ e(
|
|
@@ -19604,7 +19607,7 @@ function Cn({
|
|
|
19604
19607
|
children: s.length === 0 ? /* @__PURE__ */ a("div", { className: "flex h-9 items-center justify-center gap-1.5 text-[11px] text-muted-foreground/80", children: [
|
|
19605
19608
|
/* @__PURE__ */ e(g, { className: "h-3 w-3 shrink-0 text-muted-foreground/60" }),
|
|
19606
19609
|
/* @__PURE__ */ e("span", { children: o }),
|
|
19607
|
-
p && /* @__PURE__ */ e(
|
|
19610
|
+
p && /* @__PURE__ */ e(vv, { concept: n })
|
|
19608
19611
|
] }) : /* @__PURE__ */ e(
|
|
19609
19612
|
xa,
|
|
19610
19613
|
{
|
|
@@ -19613,8 +19616,8 @@ function Cn({
|
|
|
19613
19616
|
strategy: tn,
|
|
19614
19617
|
children: /* @__PURE__ */ e("div", { className: "space-y-1", children: s.map((M, T) => {
|
|
19615
19618
|
const C = M.direction;
|
|
19616
|
-
return h === "matrixTable" ? /* @__PURE__ */ e(
|
|
19617
|
-
|
|
19619
|
+
return h === "matrixTable" ? /* @__PURE__ */ e(bv, { field: M, onRemove: () => t(n, T) }, M.id) : /* @__PURE__ */ e(
|
|
19620
|
+
xv,
|
|
19618
19621
|
{
|
|
19619
19622
|
field: M,
|
|
19620
19623
|
zone: n,
|
|
@@ -19633,8 +19636,8 @@ function Cn({
|
|
|
19633
19636
|
)
|
|
19634
19637
|
] });
|
|
19635
19638
|
}
|
|
19636
|
-
const
|
|
19637
|
-
function
|
|
19639
|
+
const wv = [];
|
|
19640
|
+
function Sv({
|
|
19638
19641
|
onRemoveField: t,
|
|
19639
19642
|
onResetFields: n,
|
|
19640
19643
|
groupByFields: s,
|
|
@@ -19674,7 +19677,7 @@ function wv({
|
|
|
19674
19677
|
var ce;
|
|
19675
19678
|
return te.visualEditPendingDashboardCalculatedFields ?? ((ce = te.dashboard) == null ? void 0 : ce.calculatedFields);
|
|
19676
19679
|
}
|
|
19677
|
-
) ??
|
|
19680
|
+
) ?? wv, { scopedFields: k } = Ei(), { userContext: y } = Dr(), S = N && (h == null ? void 0 : h.id) === u.id && p ? p : u == null ? void 0 : u.type, E = S === "detailTable", I = s.length > 0 || o.length > 0 || i.length > 0, R = !E && (S !== "kpi" || o.length <= 2), v = !E, Y = !E && S !== "kpi", L = S !== "kpi" && S !== "matrixTable" && I, P = E, V = "Drop sort fields here", _ = Pi(y), z = [
|
|
19678
19681
|
"pie",
|
|
19679
19682
|
"doughnut",
|
|
19680
19683
|
"polar",
|
|
@@ -19831,7 +19834,7 @@ function wv({
|
|
|
19831
19834
|
)
|
|
19832
19835
|
] });
|
|
19833
19836
|
}
|
|
19834
|
-
function
|
|
19837
|
+
function Tv() {
|
|
19835
19838
|
var M, T, w;
|
|
19836
19839
|
const t = F((C) => {
|
|
19837
19840
|
var O;
|
|
@@ -19924,7 +19927,7 @@ function Sv() {
|
|
|
19924
19927
|
)
|
|
19925
19928
|
] });
|
|
19926
19929
|
}
|
|
19927
|
-
function
|
|
19930
|
+
function kv({ onEditJoins: t }) {
|
|
19928
19931
|
const n = F((d) => d.card), { autoJoinMetadata: s } = Ft(n);
|
|
19929
19932
|
if (!(s != null && s.autoResolved))
|
|
19930
19933
|
return null;
|
|
@@ -20021,7 +20024,7 @@ function Tv({ onEditJoins: t }) {
|
|
|
20021
20024
|
)
|
|
20022
20025
|
] });
|
|
20023
20026
|
}
|
|
20024
|
-
function
|
|
20027
|
+
function Mv({
|
|
20025
20028
|
onRemoveField: t,
|
|
20026
20029
|
onResetFields: n,
|
|
20027
20030
|
selectedChart: s,
|
|
@@ -20066,7 +20069,7 @@ function kv({
|
|
|
20066
20069
|
children: [
|
|
20067
20070
|
!g && /* @__PURE__ */ a("div", { className: "flex items-start", children: [
|
|
20068
20071
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e(
|
|
20069
|
-
|
|
20072
|
+
Zg,
|
|
20070
20073
|
{
|
|
20071
20074
|
selectedChart: s,
|
|
20072
20075
|
onChartChange: r
|
|
@@ -20084,9 +20087,9 @@ function kv({
|
|
|
20084
20087
|
) })
|
|
20085
20088
|
] }),
|
|
20086
20089
|
/* @__PURE__ */ a(Vn, { className: "min-h-0 w-full flex-1 basis-0 border-t border-border [&>[data-radix-scroll-area-viewport]]:overscroll-none [&>[data-radix-scroll-area-viewport]>div]:!block [&>[data-radix-scroll-area-viewport]>div]:w-full", children: [
|
|
20087
|
-
/* @__PURE__ */ e("div", { className: "px-4 pt-4 empty:hidden", children: /* @__PURE__ */ e(
|
|
20090
|
+
/* @__PURE__ */ e("div", { className: "px-4 pt-4 empty:hidden", children: /* @__PURE__ */ e(kv, { onEditJoins: A }) }),
|
|
20088
20091
|
/* @__PURE__ */ e(
|
|
20089
|
-
|
|
20092
|
+
Sv,
|
|
20090
20093
|
{
|
|
20091
20094
|
onRemoveField: t,
|
|
20092
20095
|
onResetFields: n,
|
|
@@ -20099,7 +20102,7 @@ function kv({
|
|
|
20099
20102
|
}
|
|
20100
20103
|
)
|
|
20101
20104
|
] }),
|
|
20102
|
-
/* @__PURE__ */ e(
|
|
20105
|
+
/* @__PURE__ */ e(Tv, {}),
|
|
20103
20106
|
/* @__PURE__ */ e(
|
|
20104
20107
|
pc,
|
|
20105
20108
|
{
|
|
@@ -20133,7 +20136,7 @@ function kv({
|
|
|
20133
20136
|
}
|
|
20134
20137
|
);
|
|
20135
20138
|
}
|
|
20136
|
-
function
|
|
20139
|
+
function Dv({
|
|
20137
20140
|
initialFilters: t,
|
|
20138
20141
|
availableFields: n
|
|
20139
20142
|
} = {}) {
|
|
@@ -20359,7 +20362,7 @@ function Mv({
|
|
|
20359
20362
|
hasAnyFilters: T
|
|
20360
20363
|
};
|
|
20361
20364
|
}
|
|
20362
|
-
function
|
|
20365
|
+
function Iv({
|
|
20363
20366
|
children: t,
|
|
20364
20367
|
className: n,
|
|
20365
20368
|
delayDuration: s
|
|
@@ -20378,7 +20381,7 @@ function Dv({
|
|
|
20378
20381
|
/* @__PURE__ */ e(kt, { children: t })
|
|
20379
20382
|
] }) });
|
|
20380
20383
|
}
|
|
20381
|
-
function
|
|
20384
|
+
function Ev({
|
|
20382
20385
|
value: t,
|
|
20383
20386
|
onValueChange: n,
|
|
20384
20387
|
availableFields: s,
|
|
@@ -20404,7 +20407,7 @@ function Iv({
|
|
|
20404
20407
|
o
|
|
20405
20408
|
),
|
|
20406
20409
|
children: [
|
|
20407
|
-
d ? /* @__PURE__ */ e(
|
|
20410
|
+
d ? /* @__PURE__ */ e(Iv, { className: "w-auto min-w-0 flex-1 text-left text-[12px]", children: d }) : /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: r }),
|
|
20408
20411
|
/* @__PURE__ */ e(ri, { className: "h-3.5 w-3.5 shrink-0 opacity-50" })
|
|
20409
20412
|
]
|
|
20410
20413
|
}
|
|
@@ -20458,7 +20461,7 @@ function Kc(t) {
|
|
|
20458
20461
|
currentSelectionPolicy: "exclude"
|
|
20459
20462
|
});
|
|
20460
20463
|
}
|
|
20461
|
-
function
|
|
20464
|
+
function Av({
|
|
20462
20465
|
field: t,
|
|
20463
20466
|
selected: n,
|
|
20464
20467
|
onChange: s,
|
|
@@ -20555,7 +20558,7 @@ function Ev({
|
|
|
20555
20558
|
)
|
|
20556
20559
|
] }) });
|
|
20557
20560
|
}
|
|
20558
|
-
function
|
|
20561
|
+
function Ov({
|
|
20559
20562
|
field: t,
|
|
20560
20563
|
value: n,
|
|
20561
20564
|
onChange: s,
|
|
@@ -20623,7 +20626,7 @@ function Av({
|
|
|
20623
20626
|
)
|
|
20624
20627
|
] });
|
|
20625
20628
|
}
|
|
20626
|
-
function
|
|
20629
|
+
function Fv({
|
|
20627
20630
|
value: t,
|
|
20628
20631
|
operator: n,
|
|
20629
20632
|
onChange: s,
|
|
@@ -20679,7 +20682,7 @@ const rl = [
|
|
|
20679
20682
|
"endsWith",
|
|
20680
20683
|
"like",
|
|
20681
20684
|
"not like"
|
|
20682
|
-
],
|
|
20685
|
+
], Rv = [
|
|
20683
20686
|
"=",
|
|
20684
20687
|
"!=",
|
|
20685
20688
|
">",
|
|
@@ -20691,7 +20694,7 @@ const rl = [
|
|
|
20691
20694
|
"not in",
|
|
20692
20695
|
"isNull",
|
|
20693
20696
|
"isNotNull"
|
|
20694
|
-
],
|
|
20697
|
+
], Pv = [
|
|
20695
20698
|
"=",
|
|
20696
20699
|
"!=",
|
|
20697
20700
|
...rl,
|
|
@@ -20699,7 +20702,7 @@ const rl = [
|
|
|
20699
20702
|
"not in",
|
|
20700
20703
|
"isNull",
|
|
20701
20704
|
"isNotNull"
|
|
20702
|
-
],
|
|
20705
|
+
], Lv = [
|
|
20703
20706
|
"=",
|
|
20704
20707
|
"!=",
|
|
20705
20708
|
">",
|
|
@@ -20710,7 +20713,7 @@ const rl = [
|
|
|
20710
20713
|
"not in",
|
|
20711
20714
|
"isNull",
|
|
20712
20715
|
"isNotNull"
|
|
20713
|
-
],
|
|
20716
|
+
], Vv = ["=", "!=", "isNull", "isNotNull"], Bv = [
|
|
20714
20717
|
"between",
|
|
20715
20718
|
// Default operator for dates
|
|
20716
20719
|
"=",
|
|
@@ -20721,7 +20724,7 @@ const rl = [
|
|
|
20721
20724
|
">=",
|
|
20722
20725
|
"isNull",
|
|
20723
20726
|
"isNotNull"
|
|
20724
|
-
],
|
|
20727
|
+
], Yv = {
|
|
20725
20728
|
"=": "Equals",
|
|
20726
20729
|
"!=": "Not equals",
|
|
20727
20730
|
">": "Greater than",
|
|
@@ -20741,20 +20744,20 @@ const rl = [
|
|
|
20741
20744
|
"not between": "Not between"
|
|
20742
20745
|
};
|
|
20743
20746
|
function nr(t) {
|
|
20744
|
-
return
|
|
20747
|
+
return Yv[t] || Bt(t);
|
|
20745
20748
|
}
|
|
20746
|
-
function
|
|
20749
|
+
function _v(t) {
|
|
20747
20750
|
switch (t) {
|
|
20748
20751
|
case "string":
|
|
20749
|
-
return Rv;
|
|
20750
|
-
case "number":
|
|
20751
20752
|
return Pv;
|
|
20752
|
-
case "
|
|
20753
|
+
case "number":
|
|
20753
20754
|
return Lv;
|
|
20754
|
-
case "
|
|
20755
|
+
case "boolean":
|
|
20755
20756
|
return Vv;
|
|
20757
|
+
case "date":
|
|
20758
|
+
return Bv;
|
|
20756
20759
|
default:
|
|
20757
|
-
return
|
|
20760
|
+
return Rv;
|
|
20758
20761
|
}
|
|
20759
20762
|
}
|
|
20760
20763
|
const Uc = "w-[68px] shrink-0", ll = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
|
|
@@ -20838,7 +20841,7 @@ function Hc({
|
|
|
20838
20841
|
}
|
|
20839
20842
|
) : /* @__PURE__ */ e("span", { className: H(Uc, "text-center", ll), children: "Where" }),
|
|
20840
20843
|
/* @__PURE__ */ e(
|
|
20841
|
-
|
|
20844
|
+
Ev,
|
|
20842
20845
|
{
|
|
20843
20846
|
value: t.field,
|
|
20844
20847
|
onValueChange: (T) => {
|
|
@@ -20884,12 +20887,12 @@ function Hc({
|
|
|
20884
20887
|
children: /* @__PURE__ */ e(oe, { children: t.operator ? nr(t.operator) : "" })
|
|
20885
20888
|
}
|
|
20886
20889
|
),
|
|
20887
|
-
/* @__PURE__ */ e(ie, { children:
|
|
20890
|
+
/* @__PURE__ */ e(ie, { children: _v(p).map((T) => /* @__PURE__ */ e(U, { value: T, children: nr(T) }, T)) })
|
|
20888
20891
|
]
|
|
20889
20892
|
}
|
|
20890
20893
|
),
|
|
20891
20894
|
g ? /* @__PURE__ */ e("div", { className: "min-w-0 flex-1" }) : p === "string" ? M ? /* @__PURE__ */ e(
|
|
20892
|
-
|
|
20895
|
+
Av,
|
|
20893
20896
|
{
|
|
20894
20897
|
field: t.field,
|
|
20895
20898
|
selected: Array.isArray(t.value) && t.value.every((T) => typeof T == "string") ? t.value : [],
|
|
@@ -20911,7 +20914,7 @@ function Hc({
|
|
|
20911
20914
|
placeholder: `${nr(t.operator)}…`
|
|
20912
20915
|
}
|
|
20913
20916
|
) : /* @__PURE__ */ e(
|
|
20914
|
-
|
|
20917
|
+
Ov,
|
|
20915
20918
|
{
|
|
20916
20919
|
field: t.field,
|
|
20917
20920
|
value: typeof t.value == "string" ? t.value : "",
|
|
@@ -20940,7 +20943,7 @@ function Hc({
|
|
|
20940
20943
|
// - Handles different operators (=, !=, >, <, between, in, etc.)
|
|
20941
20944
|
// - Supports timezone-aware date selection
|
|
20942
20945
|
/* @__PURE__ */ e(
|
|
20943
|
-
|
|
20946
|
+
Fv,
|
|
20944
20947
|
{
|
|
20945
20948
|
value: t.value,
|
|
20946
20949
|
operator: t.operator,
|
|
@@ -21008,7 +21011,7 @@ function Qc({
|
|
|
21008
21011
|
)
|
|
21009
21012
|
] });
|
|
21010
21013
|
}
|
|
21011
|
-
function
|
|
21014
|
+
function $v({
|
|
21012
21015
|
group: t,
|
|
21013
21016
|
depth: n,
|
|
21014
21017
|
parentGroupId: s,
|
|
@@ -21184,7 +21187,7 @@ function _v({
|
|
|
21184
21187
|
}
|
|
21185
21188
|
);
|
|
21186
21189
|
}
|
|
21187
|
-
function
|
|
21190
|
+
function zv({
|
|
21188
21191
|
filters: t,
|
|
21189
21192
|
availableFields: n,
|
|
21190
21193
|
onSave: s,
|
|
@@ -21208,7 +21211,7 @@ function $v({
|
|
|
21208
21211
|
generateSQLPreview: M,
|
|
21209
21212
|
hasAnyFilters: T,
|
|
21210
21213
|
setCurrentFilters: w
|
|
21211
|
-
} =
|
|
21214
|
+
} = Dv({
|
|
21212
21215
|
initialFilters: t,
|
|
21213
21216
|
availableFields: n
|
|
21214
21217
|
}), C = Fn(
|
|
@@ -21313,7 +21316,7 @@ function $v({
|
|
|
21313
21316
|
] }, S.id);
|
|
21314
21317
|
}
|
|
21315
21318
|
return /* @__PURE__ */ e(
|
|
21316
|
-
|
|
21319
|
+
$v,
|
|
21317
21320
|
{
|
|
21318
21321
|
group: S,
|
|
21319
21322
|
depth: E,
|
|
@@ -21391,7 +21394,7 @@ function $v({
|
|
|
21391
21394
|
] })
|
|
21392
21395
|
] });
|
|
21393
21396
|
}
|
|
21394
|
-
function
|
|
21397
|
+
function qv({
|
|
21395
21398
|
cardId: t,
|
|
21396
21399
|
filters: n,
|
|
21397
21400
|
onFiltersChange: s,
|
|
@@ -21416,7 +21419,7 @@ function zv({
|
|
|
21416
21419
|
/* @__PURE__ */ e(Pa, { className: "sr-only", children: "Add filters to the card to limit the data that is displayed." })
|
|
21417
21420
|
] }),
|
|
21418
21421
|
/* @__PURE__ */ e(
|
|
21419
|
-
|
|
21422
|
+
zv,
|
|
21420
21423
|
{
|
|
21421
21424
|
filters: n,
|
|
21422
21425
|
availableFields: o,
|
|
@@ -21434,7 +21437,7 @@ function zv({
|
|
|
21434
21437
|
)
|
|
21435
21438
|
] });
|
|
21436
21439
|
}
|
|
21437
|
-
function
|
|
21440
|
+
function jv({
|
|
21438
21441
|
activeCardId: t,
|
|
21439
21442
|
sourceFields: n,
|
|
21440
21443
|
getFieldsForContainer: s,
|
|
@@ -21674,7 +21677,7 @@ function qv({
|
|
|
21674
21677
|
handleDragEnd: b
|
|
21675
21678
|
};
|
|
21676
21679
|
}
|
|
21677
|
-
function
|
|
21680
|
+
function Kv({
|
|
21678
21681
|
activeView: t,
|
|
21679
21682
|
onViewChange: n,
|
|
21680
21683
|
splitViewEnabled: s,
|
|
@@ -21712,7 +21715,7 @@ function jv({
|
|
|
21712
21715
|
}
|
|
21713
21716
|
);
|
|
21714
21717
|
}
|
|
21715
|
-
const
|
|
21718
|
+
const Uv = [
|
|
21716
21719
|
{ value: "10", label: "Top 10" },
|
|
21717
21720
|
{ value: "20", label: "Top 20" },
|
|
21718
21721
|
{ value: "50", label: "Top 50" },
|
|
@@ -21722,7 +21725,7 @@ const Kv = [
|
|
|
21722
21725
|
{ value: "1000", label: "Top 1000" }
|
|
21723
21726
|
// { value: 'custom', label: 'Custom' },
|
|
21724
21727
|
];
|
|
21725
|
-
function
|
|
21728
|
+
function Gv() {
|
|
21726
21729
|
var d, m;
|
|
21727
21730
|
const t = F((u) => u.card), { updateRowLimit: n } = we(), [s, r] = K(!1), [o, c] = K(""), i = (u) => {
|
|
21728
21731
|
if (u === "custom") {
|
|
@@ -21754,12 +21757,12 @@ function Uv() {
|
|
|
21754
21757
|
/* @__PURE__ */ e(la, { className: "h-3 w-3", strokeWidth: 1.75 }),
|
|
21755
21758
|
/* @__PURE__ */ e(oe, { placeholder: "Select limit" })
|
|
21756
21759
|
] }),
|
|
21757
|
-
/* @__PURE__ */ e(ie, { children:
|
|
21760
|
+
/* @__PURE__ */ e(ie, { children: Uv.map((u) => /* @__PURE__ */ e(U, { value: u.value, children: u.label }, u.value)) })
|
|
21758
21761
|
]
|
|
21759
21762
|
}
|
|
21760
21763
|
) });
|
|
21761
21764
|
}
|
|
21762
|
-
function
|
|
21765
|
+
function Hv({
|
|
21763
21766
|
card: t,
|
|
21764
21767
|
queryData: n,
|
|
21765
21768
|
isLoading: s,
|
|
@@ -21871,7 +21874,7 @@ function Gv({
|
|
|
21871
21874
|
)
|
|
21872
21875
|
] });
|
|
21873
21876
|
}
|
|
21874
|
-
function
|
|
21877
|
+
function Qv(t, n) {
|
|
21875
21878
|
const [s, r] = K(() => {
|
|
21876
21879
|
const o = localStorage.getItem(t);
|
|
21877
21880
|
return o ? JSON.parse(o) : n;
|
|
@@ -21880,11 +21883,11 @@ function Hv(t, n) {
|
|
|
21880
21883
|
localStorage.setItem(t, JSON.stringify(s));
|
|
21881
21884
|
}, [s, t]), [s, r];
|
|
21882
21885
|
}
|
|
21883
|
-
const
|
|
21884
|
-
function
|
|
21885
|
-
return
|
|
21886
|
+
const Wv = "semaphor-split-view-enabled";
|
|
21887
|
+
function Jv() {
|
|
21888
|
+
return Qv(Wv, !0);
|
|
21886
21889
|
}
|
|
21887
|
-
function
|
|
21890
|
+
function Xv({
|
|
21888
21891
|
showInfoTab: t
|
|
21889
21892
|
}) {
|
|
21890
21893
|
return /* @__PURE__ */ e(
|
|
@@ -21895,7 +21898,7 @@ function Jv({
|
|
|
21895
21898
|
}
|
|
21896
21899
|
);
|
|
21897
21900
|
}
|
|
21898
|
-
function
|
|
21901
|
+
function Zv({
|
|
21899
21902
|
card: t,
|
|
21900
21903
|
effectiveCardType: n = t.type,
|
|
21901
21904
|
queryResultColumns: s
|
|
@@ -21939,7 +21942,7 @@ function Xv({
|
|
|
21939
21942
|
)
|
|
21940
21943
|
] }) : null;
|
|
21941
21944
|
}
|
|
21942
|
-
function
|
|
21945
|
+
function ey({
|
|
21943
21946
|
className: t,
|
|
21944
21947
|
visible: n
|
|
21945
21948
|
}) {
|
|
@@ -21952,7 +21955,7 @@ function Zv({
|
|
|
21952
21955
|
}
|
|
21953
21956
|
) });
|
|
21954
21957
|
}
|
|
21955
|
-
function
|
|
21958
|
+
function ty({
|
|
21956
21959
|
// selectedChart,
|
|
21957
21960
|
activeView: t,
|
|
21958
21961
|
onViewChange: n,
|
|
@@ -21972,7 +21975,7 @@ function ey({
|
|
|
21972
21975
|
(he) => he.actions.removeCardInlineFilterValue
|
|
21973
21976
|
), m = Te((he) => he.filterValues), u = Te((he) => he.selectedSheetId), { updateCardConfig: x, setCard: h, updateCardInFrame: f, setShowAIDialog: b } = we(), N = F((he) => he.showAIDialog), p = F((he) => he.isDevMode), g = Te((he) => he.isVisualEditing), [M, T] = K(!1), [w, C] = K(!1), [O, D] = K(!1), [A, k] = K(
|
|
21974
21977
|
null
|
|
21975
|
-
), { config: y } = Sr(Ir).tokenProps, S = (y == null ? void 0 : y.showInfoTab) !== !1, E = (y == null ? void 0 : y.showQueryDebugTools) !== !1, [I, R] =
|
|
21978
|
+
), { config: y } = Sr(Ir).tokenProps, S = (y == null ? void 0 : y.showInfoTab) !== !1, E = (y == null ? void 0 : y.showQueryDebugTools) !== !1, [I, R] = Jv();
|
|
21976
21979
|
F(
|
|
21977
21980
|
(he) => {
|
|
21978
21981
|
var G;
|
|
@@ -22041,14 +22044,14 @@ function ey({
|
|
|
22041
22044
|
/* @__PURE__ */ a("div", { className: "flex h-11 items-center gap-3 border-b border-border px-4", children: [
|
|
22042
22045
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
22043
22046
|
t === "chart" && N && !L && !Y && /* @__PURE__ */ e("div", { className: "w-[200px]", children: /* @__PURE__ */ e(
|
|
22044
|
-
|
|
22047
|
+
Xg,
|
|
22045
22048
|
{
|
|
22046
22049
|
variant: p ? "secondary" : "ghost"
|
|
22047
22050
|
}
|
|
22048
22051
|
) }),
|
|
22049
22052
|
/* @__PURE__ */ a("div", { className: "flex h-11 items-end gap-5 self-stretch", children: [
|
|
22050
22053
|
/* @__PURE__ */ e(
|
|
22051
|
-
|
|
22054
|
+
Kv,
|
|
22052
22055
|
{
|
|
22053
22056
|
activeView: t,
|
|
22054
22057
|
onViewChange: n,
|
|
@@ -22056,9 +22059,9 @@ function ey({
|
|
|
22056
22059
|
hasQueryError: !!_
|
|
22057
22060
|
}
|
|
22058
22061
|
),
|
|
22059
|
-
!Kh(P) && /* @__PURE__ */ e(
|
|
22062
|
+
!Kh(P) && /* @__PURE__ */ e(Gv, {})
|
|
22060
22063
|
] }),
|
|
22061
|
-
P === "kpi" && /* @__PURE__ */ e(
|
|
22064
|
+
P === "kpi" && /* @__PURE__ */ e(ey, { visible: !0, className: "self-center" }),
|
|
22062
22065
|
Q && c.type !== "table" && /* @__PURE__ */ e(
|
|
22063
22066
|
Uh,
|
|
22064
22067
|
{
|
|
@@ -22084,7 +22087,7 @@ function ey({
|
|
|
22084
22087
|
}
|
|
22085
22088
|
),
|
|
22086
22089
|
t === "chart" && /* @__PURE__ */ e(
|
|
22087
|
-
|
|
22090
|
+
Zv,
|
|
22088
22091
|
{
|
|
22089
22092
|
card: r,
|
|
22090
22093
|
effectiveCardType: P,
|
|
@@ -22181,8 +22184,8 @@ function ey({
|
|
|
22181
22184
|
] })
|
|
22182
22185
|
] }),
|
|
22183
22186
|
/* @__PURE__ */ a("div", { className: "flex min-h-0 grow flex-col", children: [
|
|
22184
|
-
t === "chart" ? _ ? /* @__PURE__ */ e(
|
|
22185
|
-
|
|
22187
|
+
t === "chart" ? _ ? /* @__PURE__ */ e(Xv, { showInfoTab: S }) : /* @__PURE__ */ e("div", { className: "flex grow flex-col", children: /* @__PURE__ */ e(
|
|
22188
|
+
Hv,
|
|
22186
22189
|
{
|
|
22187
22190
|
card: r,
|
|
22188
22191
|
queryData: V,
|
|
@@ -22298,7 +22301,7 @@ function ey({
|
|
|
22298
22301
|
}
|
|
22299
22302
|
);
|
|
22300
22303
|
}
|
|
22301
|
-
function
|
|
22304
|
+
function ay({ activeField: t }) {
|
|
22302
22305
|
const [n, s] = K(!0);
|
|
22303
22306
|
if (ke(() => {
|
|
22304
22307
|
t && s(!0);
|
|
@@ -22315,7 +22318,7 @@ function ty({ activeField: t }) {
|
|
|
22315
22318
|
}
|
|
22316
22319
|
);
|
|
22317
22320
|
}
|
|
22318
|
-
const
|
|
22321
|
+
const ny = () => {
|
|
22319
22322
|
const t = console.error;
|
|
22320
22323
|
console.error = (...r) => {
|
|
22321
22324
|
r.length > 0 && typeof r[0] == "string" && r[0].includes(
|
|
@@ -22342,7 +22345,7 @@ const ay = () => {
|
|
|
22342
22345
|
);
|
|
22343
22346
|
};
|
|
22344
22347
|
};
|
|
22345
|
-
function
|
|
22348
|
+
function sy({ column: t, isSelected: n, onSelect: s, availableFields: r, width: o, onWidthChange: c }) {
|
|
22346
22349
|
var V, _;
|
|
22347
22350
|
const i = F((z) => z.card), { updateCardConfig: l, removeGroupByColumn: d, removeMetricColumn: m, updateFilters: u } = we(), [x, h] = K(!1), [f, b] = K(!1), N = Ee(null), p = Oe((z) => {
|
|
22348
22351
|
z.preventDefault(), z.stopPropagation(), b(!0), N.current = {
|
|
@@ -22371,7 +22374,7 @@ function ny({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
22371
22374
|
} = Cs({ id: t.id }), y = {
|
|
22372
22375
|
transform: ws.Transform.toString(D),
|
|
22373
22376
|
transition: A
|
|
22374
|
-
}, S = Ct(t.dataType), E =
|
|
22377
|
+
}, S = Ct(t.dataType), E = ry(S), I = () => {
|
|
22375
22378
|
var B;
|
|
22376
22379
|
const z = ((B = i == null ? void 0 : i.config) == null ? void 0 : B.sortByColumns) || [], $ = z.findIndex((j) => j.name === t.name);
|
|
22377
22380
|
if ($ !== -1) {
|
|
@@ -22575,7 +22578,7 @@ function ny({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
22575
22578
|
}
|
|
22576
22579
|
);
|
|
22577
22580
|
}
|
|
22578
|
-
function
|
|
22581
|
+
function ry(t) {
|
|
22579
22582
|
switch (t) {
|
|
22580
22583
|
case "number":
|
|
22581
22584
|
return ks;
|
|
@@ -22586,7 +22589,7 @@ function sy(t) {
|
|
|
22586
22589
|
return Ms;
|
|
22587
22590
|
}
|
|
22588
22591
|
}
|
|
22589
|
-
function
|
|
22592
|
+
function ly({
|
|
22590
22593
|
selectedColumn: t,
|
|
22591
22594
|
onColumnSelect: n,
|
|
22592
22595
|
isLoading: s = !1,
|
|
@@ -22688,7 +22691,7 @@ function ry({
|
|
|
22688
22691
|
items: f.map((I) => I.id),
|
|
22689
22692
|
strategy: oo,
|
|
22690
22693
|
children: f.map((I) => /* @__PURE__ */ e(
|
|
22691
|
-
|
|
22694
|
+
sy,
|
|
22692
22695
|
{
|
|
22693
22696
|
column: I,
|
|
22694
22697
|
isSelected: (t == null ? void 0 : t.id) === I.id,
|
|
@@ -22775,7 +22778,7 @@ function ry({
|
|
|
22775
22778
|
"border-r border-border px-3 py-2 text-sm",
|
|
22776
22779
|
(t == null ? void 0 : t.id) === v.id && "bg-primary/5"
|
|
22777
22780
|
),
|
|
22778
|
-
children: /* @__PURE__ */ e("span", { className: "block truncate", children:
|
|
22781
|
+
children: /* @__PURE__ */ e("span", { className: "block truncate", children: oy(Y, v) })
|
|
22779
22782
|
},
|
|
22780
22783
|
`${R}-${v.id}`
|
|
22781
22784
|
);
|
|
@@ -22805,7 +22808,7 @@ function ry({
|
|
|
22805
22808
|
] })
|
|
22806
22809
|
] });
|
|
22807
22810
|
}
|
|
22808
|
-
function
|
|
22811
|
+
function oy(t, n) {
|
|
22809
22812
|
if (t == null)
|
|
22810
22813
|
return "—";
|
|
22811
22814
|
if (typeof t == "number")
|
|
@@ -22824,7 +22827,7 @@ function ly(t, n) {
|
|
|
22824
22827
|
}
|
|
22825
22828
|
return String(t);
|
|
22826
22829
|
}
|
|
22827
|
-
function
|
|
22830
|
+
function iy({
|
|
22828
22831
|
entityGroups: t,
|
|
22829
22832
|
isLoading: n = !1
|
|
22830
22833
|
}) {
|
|
@@ -23031,7 +23034,7 @@ function oy({
|
|
|
23031
23034
|
}
|
|
23032
23035
|
) });
|
|
23033
23036
|
}
|
|
23034
|
-
const
|
|
23037
|
+
const cy = [
|
|
23035
23038
|
{ name: "SUM", description: "Sum of values", syntax: "SUM([column])" },
|
|
23036
23039
|
{ name: "AVG", description: "Average of values", syntax: "AVG([column])" },
|
|
23037
23040
|
{ name: "COUNT", description: "Count of rows", syntax: "COUNT([column])" },
|
|
@@ -23048,7 +23051,7 @@ const iy = [
|
|
|
23048
23051
|
{ name: "DATEPART", description: "Extract date part", syntax: "DATEPART(year, [date])" },
|
|
23049
23052
|
{ name: "DATEDIFF", description: "Difference between dates", syntax: "DATEDIFF(day, [date1], [date2])" }
|
|
23050
23053
|
];
|
|
23051
|
-
function
|
|
23054
|
+
function dy({
|
|
23052
23055
|
value: t,
|
|
23053
23056
|
onChange: n,
|
|
23054
23057
|
onSubmit: s,
|
|
@@ -23112,7 +23115,7 @@ function cy({
|
|
|
23112
23115
|
/* @__PURE__ */ e(hr, { placeholder: "Search functions..." }),
|
|
23113
23116
|
/* @__PURE__ */ a(pr, { children: [
|
|
23114
23117
|
/* @__PURE__ */ e(fr, { children: "No functions found." }),
|
|
23115
|
-
/* @__PURE__ */ e(gr, { heading: "Functions", children:
|
|
23118
|
+
/* @__PURE__ */ e(gr, { heading: "Functions", children: cy.map((b) => /* @__PURE__ */ e(
|
|
23116
23119
|
xr,
|
|
23117
23120
|
{
|
|
23118
23121
|
value: b.name,
|
|
@@ -23204,7 +23207,7 @@ function cy({
|
|
|
23204
23207
|
] })
|
|
23205
23208
|
] });
|
|
23206
23209
|
}
|
|
23207
|
-
function
|
|
23210
|
+
function uy({ className: t }) {
|
|
23208
23211
|
var f, b, N, p;
|
|
23209
23212
|
const n = F((g) => g.card), [s, r] = K(null), [o, c] = K(""), {
|
|
23210
23213
|
columns: i = [],
|
|
@@ -23221,7 +23224,7 @@ function dy({ className: t }) {
|
|
|
23221
23224
|
};
|
|
23222
23225
|
return /* @__PURE__ */ a("div", { className: H("flex h-full w-full flex-col", t), children: [
|
|
23223
23226
|
/* @__PURE__ */ e(
|
|
23224
|
-
|
|
23227
|
+
dy,
|
|
23225
23228
|
{
|
|
23226
23229
|
value: o,
|
|
23227
23230
|
onChange: c,
|
|
@@ -23233,7 +23236,7 @@ function dy({ className: t }) {
|
|
|
23233
23236
|
),
|
|
23234
23237
|
/* @__PURE__ */ a("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
23235
23238
|
/* @__PURE__ */ e("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ e(
|
|
23236
|
-
|
|
23239
|
+
ly,
|
|
23237
23240
|
{
|
|
23238
23241
|
selectedColumn: s,
|
|
23239
23242
|
onColumnSelect: u,
|
|
@@ -23243,7 +23246,7 @@ function dy({ className: t }) {
|
|
|
23243
23246
|
}
|
|
23244
23247
|
) }),
|
|
23245
23248
|
/* @__PURE__ */ e(
|
|
23246
|
-
|
|
23249
|
+
iy,
|
|
23247
23250
|
{
|
|
23248
23251
|
entityGroups: l,
|
|
23249
23252
|
isLoading: d
|
|
@@ -23252,11 +23255,11 @@ function dy({ className: t }) {
|
|
|
23252
23255
|
] })
|
|
23253
23256
|
] });
|
|
23254
23257
|
}
|
|
23255
|
-
function
|
|
23258
|
+
function my() {
|
|
23256
23259
|
const [t, n] = K(
|
|
23257
23260
|
"chart"
|
|
23258
23261
|
), [s, r] = K(!1), [o, c] = K(!0), [i, l] = K(!0), d = F((B) => B.showAIDialog), m = Te((B) => B.isVisualEditing), { setCardType: u } = we(), x = F((B) => B.card.type);
|
|
23259
|
-
ke(() =>
|
|
23262
|
+
ke(() => ny(), []);
|
|
23260
23263
|
const h = (B) => {
|
|
23261
23264
|
u(B);
|
|
23262
23265
|
}, f = F((B) => B.frame), b = F((B) => B.card);
|
|
@@ -23279,7 +23282,7 @@ function uy() {
|
|
|
23279
23282
|
moveField: E,
|
|
23280
23283
|
removeField: I,
|
|
23281
23284
|
resetFields: R
|
|
23282
|
-
} = Li(k, O), { activeField: v, handleDragStart: Y, handleDragEnd: L } =
|
|
23285
|
+
} = Li(k, O), { activeField: v, handleDragStart: Y, handleDragEnd: L } = jv({
|
|
23283
23286
|
activeCardId: f.activeCardId,
|
|
23284
23287
|
sourceFields: O,
|
|
23285
23288
|
getFieldsForContainer: y,
|
|
@@ -23312,9 +23315,9 @@ function uy() {
|
|
|
23312
23315
|
onToggleVisibility: () => c(!o)
|
|
23313
23316
|
}
|
|
23314
23317
|
),
|
|
23315
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 transition-all duration-300 ease-in-out", children: x === "tableBuilder" ? /* @__PURE__ */ e(
|
|
23318
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 transition-all duration-300 ease-in-out", children: x === "tableBuilder" ? /* @__PURE__ */ e(uy, { className: "flex-1" }) : /* @__PURE__ */ a(Ne, { children: [
|
|
23316
23319
|
!d && /* @__PURE__ */ e(
|
|
23317
|
-
|
|
23320
|
+
Mv,
|
|
23318
23321
|
{
|
|
23319
23322
|
onRemoveField: I,
|
|
23320
23323
|
onResetFields: R,
|
|
@@ -23331,7 +23334,7 @@ function uy() {
|
|
|
23331
23334
|
}
|
|
23332
23335
|
),
|
|
23333
23336
|
/* @__PURE__ */ e(
|
|
23334
|
-
|
|
23337
|
+
ty,
|
|
23335
23338
|
{
|
|
23336
23339
|
selectedChart: x,
|
|
23337
23340
|
activeView: t,
|
|
@@ -23361,7 +23364,7 @@ function uy() {
|
|
|
23361
23364
|
) })
|
|
23362
23365
|
] }),
|
|
23363
23366
|
k && /* @__PURE__ */ e(
|
|
23364
|
-
|
|
23367
|
+
qv,
|
|
23365
23368
|
{
|
|
23366
23369
|
cardId: k.id,
|
|
23367
23370
|
filters: rn(k) || null,
|
|
@@ -23372,12 +23375,12 @@ function uy() {
|
|
|
23372
23375
|
onOpenChange: r
|
|
23373
23376
|
}
|
|
23374
23377
|
),
|
|
23375
|
-
/* @__PURE__ */ e(ji, { dropAnimation: null, children: /* @__PURE__ */ e(
|
|
23378
|
+
/* @__PURE__ */ e(ji, { dropAnimation: null, children: /* @__PURE__ */ e(ay, { activeField: v || null }) })
|
|
23376
23379
|
]
|
|
23377
23380
|
}
|
|
23378
23381
|
);
|
|
23379
23382
|
}
|
|
23380
|
-
function
|
|
23383
|
+
function hy({ authToken: t, onSave: n, onClose: s }) {
|
|
23381
23384
|
const r = Ee(null), o = F((D) => D.showAIDialog), c = F((D) => D.isDevMode), i = zs((D) => D.setFullscreen), l = zs((D) => D.setPanelOpen), d = zs((D) => D.setContainer), m = Xh("editor"), u = Zh(), x = ep("editor"), h = u === "editor", f = Er(), b = Oe(
|
|
23382
23385
|
(D) => {
|
|
23383
23386
|
d("editor", D);
|
|
@@ -23417,7 +23420,7 @@ function my({ authToken: t, onSave: n, onClose: s }) {
|
|
|
23417
23420
|
),
|
|
23418
23421
|
direction: "horizontal",
|
|
23419
23422
|
children: [
|
|
23420
|
-
/* @__PURE__ */ e(bt, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(
|
|
23423
|
+
/* @__PURE__ */ e(bt, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(Zb, {}) }),
|
|
23421
23424
|
/* @__PURE__ */ e(ba, { disabled: !o }),
|
|
23422
23425
|
/* @__PURE__ */ e(
|
|
23423
23426
|
bt,
|
|
@@ -23465,7 +23468,7 @@ function my({ authToken: t, onSave: n, onClose: s }) {
|
|
|
23465
23468
|
),
|
|
23466
23469
|
direction: "horizontal",
|
|
23467
23470
|
children: [
|
|
23468
|
-
/* @__PURE__ */ e(bt, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(
|
|
23471
|
+
/* @__PURE__ */ e(bt, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(my, {}) }),
|
|
23469
23472
|
/* @__PURE__ */ e(ba, { disabled: !o }),
|
|
23470
23473
|
/* @__PURE__ */ e(
|
|
23471
23474
|
bt,
|
|
@@ -23521,7 +23524,7 @@ function my({ authToken: t, onSave: n, onClose: s }) {
|
|
|
23521
23524
|
) }) })
|
|
23522
23525
|
);
|
|
23523
23526
|
}
|
|
23524
|
-
function
|
|
23527
|
+
function zy() {
|
|
23525
23528
|
Te((f) => f.selectedCardId);
|
|
23526
23529
|
const t = Te((f) => f.selectedSheetId), n = Te((f) => f.dashboard), { setIsVisualEditing: s, setSelectedSheetId: r } = Te(
|
|
23527
23530
|
(f) => f.actions
|
|
@@ -23573,10 +23576,10 @@ function $y() {
|
|
|
23573
23576
|
"max-h-0 overflow-hidden": !d
|
|
23574
23577
|
}),
|
|
23575
23578
|
style: l.dashboardContainerStyle,
|
|
23576
|
-
children: /* @__PURE__ */ e(
|
|
23579
|
+
children: /* @__PURE__ */ e(hy, { onSave: x, onClose: h })
|
|
23577
23580
|
}
|
|
23578
23581
|
);
|
|
23579
23582
|
}
|
|
23580
23583
|
export {
|
|
23581
|
-
|
|
23584
|
+
zy as default
|
|
23582
23585
|
};
|