react-semaphor 0.1.596 → 0.1.598
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +329 -322
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{aggregate-measure-field-DHlDj0Pc.js → aggregate-measure-field-DtKcEjG5.js} +2 -2
- package/dist/chunks/{assistant-chat-DodZKMI6.js → assistant-chat-DrI442Ld.js} +13 -13
- package/dist/chunks/{bookmark-impact-Dh-wiTs3.js → bookmark-impact-C6uWtNWF.js} +3 -3
- package/dist/chunks/{bookmark-state-Be2W3s6t.js → bookmark-state-BfeKmj5s.js} +4 -4
- package/dist/chunks/{card-filter-builder-BZIj-ib3.js → card-filter-builder-CSKCSpNo.js} +58 -58
- package/dist/chunks/{comparison-window-caption-DmMFtNP5.js → comparison-window-caption-3bum5j00.js} +5 -5
- package/dist/chunks/{dashboard-BCd8aKDN.js → dashboard-PYd63LbL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CE_z5Gh1.js → dashboard-briefing-launcher-C2AuKs10.js} +1157 -1152
- package/dist/chunks/{dashboard-controls-IG2KRX1y.js → dashboard-controls-BSbhyIkY.js} +15 -15
- package/dist/chunks/{dashboard-json-o-XrNqNW.js → dashboard-json-Bd1rxD3y.js} +4 -4
- package/dist/chunks/{dates-B-bKEsiu.js → dates-DHMCf-F7.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-HPTVtWGk.js → edit-dashboard-visual-D_0ZiWev.js} +498 -496
- package/dist/chunks/{filter-line-BpdPq1D2.js → filter-line-BdLyPYjH.js} +5 -5
- package/dist/chunks/{filter-reach-copy-DoXmRmk-.js → filter-reach-copy-Dxn-mTuG.js} +1301 -1222
- package/dist/chunks/{filter-value-text-CDQCIREQ.js → filter-value-text-C6g-nDUW.js} +4 -4
- package/dist/chunks/{index-C0jX5wlM.js → index-BHSDE54O.js} +5 -5
- package/dist/chunks/{layout-grid-DoFIfQGd.js → layout-grid-CYR-LVpl.js} +1 -1
- package/dist/chunks/{list-filter-BeTQxjNy.js → list-filter-B67GsjTw.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CyWOwLmE.js → matrix-analytical-definition-C0IGLTZH.js} +21 -21
- package/dist/chunks/matrix-member-presentation-D5BIYuy5.js +258 -0
- package/dist/chunks/{matrix-operation-contract-CAanJeCj.js → matrix-operation-contract-RckfqkQm.js} +15 -15
- package/dist/chunks/{metric-comparison-BeKnUD08.js → metric-comparison-DsE8wdRh.js} +1 -1
- package/dist/chunks/{paintbrush-KeaU1L1a.js → paintbrush-xDDRjIyF.js} +1 -1
- package/dist/chunks/{palette-BcFJLeXB.js → palette-CbOgFCy2.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dt0E1Wou.js → pivot-result-contract-expectations-Cnq55Uno.js} +44 -44
- package/dist/chunks/{pivot-result-identity-BKUjYO1u.js → pivot-result-identity-b4-ugQhm.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BzdgeDa7.js → raw-temporal-value-B9W38mi3.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CgskMwZJ.js → report-preferences-dialog-DTu3a7ce.js} +13 -13
- package/dist/chunks/{report-runtime-context-g4Zp_TU9.js → report-runtime-context-BvJkcbar.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-DfJshnw8.js → resolve-dashboard-input-context-Bw-DesV2.js} +4771 -4712
- package/dist/chunks/{save-C9CZAk6V.js → save-BgvAsp6X.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DdhPU2Kq.js → saved-dashboard-context-BFh0oOnF.js} +7 -7
- package/dist/chunks/{selection-filter-compiler-BclSpK3P.js → selection-filter-compiler-DHYsq3yM.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-BuasVClR.js → semaphor-ready-indicator-WvgHMnj8.js} +33384 -32853
- package/dist/chunks/{shelf-drop-preview-context-DjOcz0mb.js → shelf-drop-preview-context-D6HgYFJp.js} +5 -5
- package/dist/chunks/{stored-dashboard-D6FtWx_3.js → stored-dashboard-vlG0Knxi.js} +94 -94
- package/dist/chunks/{style-sheet-parts-DM_Mw_sm.js → style-sheet-parts-ClmvtkSC.js} +2 -2
- package/dist/chunks/{table-export-sheet-DBlFMvE8.js → table-export-sheet-Bv6tVuMu.js} +1 -1
- package/dist/chunks/{token-types-BB2ImFx6.js → token-types-eMdcuB6j.js} +1 -1
- package/dist/chunks/{upload-CMTCg47S.js → upload-ClUeK8F0.js} +1 -1
- package/dist/chunks/{validators-BlEWWX9O.js → validators-DwhBEvnh.js} +1074 -1065
- package/dist/chunks/{variable-draft-CxdgKDCx.js → variable-draft-CauoSBN0.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1752 -1684
- package/dist/format-utils/index.js +13 -13
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/shared/unsaved-changes/unsaved-changes-alert.d.ts +2 -1
- package/dist/types/components/sharing-and-management/hooks/paged-list.d.ts +22 -0
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +17 -2
- package/dist/types/index.js +5 -5
- package/dist/types/lib/hooks/use-dashboard-unsaved-changes-check.d.ts +9 -1
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/catalog-field-grounding.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/numeric-range-options.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +45 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-condition-spec.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-range-setting.d.ts +47 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +6 -2
- package/package.json +1 -1
- package/dist/chunks/matrix-member-presentation-Bj2YcHAP.js +0 -169
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as me } from "react/jsx-runtime";
|
|
2
2
|
import ll, { useState as G, useEffect as Ne, useMemo as le, useRef as Ve, useCallback as gt, useId as Ta, useContext as cr, Suspense as Ao } from "react";
|
|
3
|
-
import { F as Mo, P as Ro, a as Po, b as il, u as st, S as bs, c as vs, r as ol, E as Oo, T as Lo, A as _o, d as Vo, e as Ha, f as Bo, g as Ko, h as jo } from "./shelf-drop-preview-context-
|
|
3
|
+
import { F as Mo, P as Ro, a as Po, b as il, u as st, S as bs, c as vs, r as ol, E as Oo, T as Lo, A as _o, d as Vo, e as Ha, f as Bo, g as Ko, h as jo } from "./shelf-drop-preview-context-D6HgYFJp.js";
|
|
4
4
|
import { c as J } from "./pickers-DkqmtnTL.js";
|
|
5
|
-
import { a7 as cl, O as qo, x as ys, m as Ja } from "./validators-
|
|
6
|
-
import "./matrix-operation-contract-
|
|
5
|
+
import { a7 as cl, O as qo, x as ys, m as Ja } from "./validators-DwhBEvnh.js";
|
|
6
|
+
import "./matrix-operation-contract-RckfqkQm.js";
|
|
7
7
|
import { z as $o } from "./analytics-base-schemas-8wz9vqn_.js";
|
|
8
8
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as ha } from "../value-format-preferences/index.js";
|
|
9
|
-
import { cK as zo,
|
|
10
|
-
import { c as je, B as ne, r as Zl, m as un, s as O, y as W, z as X, A as Z, D as ee, E as j, F as _t, X as rt, w as dt, t as xt, u as ut, v as mt, e as Dt, f as Vt, h as It, x as Ae, a8 as ku, L as Ra, C as Wt, T as Ut, k as Gt, l as tt, n as Ct, j as ra, I as Xt, aa as Tu, ab as Eu, q as ei, i as Wa, ac as er, ad as ti, d as Se, R as Is, p as ai, ae as Fu, S as As } from "./style-sheet-parts-
|
|
11
|
-
import { U as Du } from "./upload-
|
|
12
|
-
import {
|
|
13
|
-
import { c as sh, A as lh, g as Rr, a as ih, F as oh, V as pi, I as nt, d as ch, u as dh, C as uh, b as mh } from "./card-filter-builder-
|
|
9
|
+
import { cK as zo, eH as Ea, eo as Fa, cJ as dl, er as Ma, eI as Da, eJ as Uo, an as be, eK as Go, bG as jt, bH as qt, bI as Yt, bJ as $t, bK as zt, bE as Ia, cM as ft, cH as Bt, cF as qa, bF as ot, eL as ul, dB as $a, b_ as Ft, c4 as Lt, dA as ml, eM as ga, bY as nn, am as I, b4 as at, eN as hl, eO as Ho, eP as Jo, eQ as Qo, c9 as dr, eR as Yo, dm as pl, b8 as Zt, dJ as fl, eA as gl, eS as Wo, cv as ur, dH as Xo, cx as Zo, cy as ec, cz as tc, cA as ac, cB as nc, cC as rc, cD as sc, cE as lc, b5 as mr, u as fe, b2 as ea, eT as xl, ch as Qa, eU as bl, b3 as kn, bz as hr, bc as vl, eV as pr, bO as rn, bV as ic, d$ as oc, eW as Wn, cS as ta, cT as aa, cU as na, cX as cc, e1 as fr, eX as gr, eY as sn, eZ as yl, ds as xr, dr as Nl, e_ as dc, e$ as uc, f0 as Rt, f1 as mc, f2 as hc, f3 as pc, f4 as fc, f5 as Cl, a4 as wl, M as gc, eh as xc, f6 as bc, dy as vc, f7 as br, E as ln, e as vr, f8 as Sl, f9 as yc, fa as Ns, fb as Nc, fc as kl, fd as Cc, fe as wc, bZ as Tl, ff as Sc, fg as kc, fh as Tc, fi as Ec, fj as Ya, fk as Fc, fl as Dc, fm as El, fn as Fl, fo as Ic, fp as Ac, dY as Mc, fq as Rc, fr as Dl, fs as Pc, dv as Oc, du as on, ft as cn, cj as yr, ck as Nr, cl as Cr, fu as Lc, fv as _c, dg as Il, dh as Vc, di as Bc, dj as Kc, b1 as jc, fw as qc, fx as $c, fy as zc, fz as Uc, fA as Cs, fB as Gc, fC as Al, fD as Ml, b7 as Rl, b9 as Hc, be as Jc, bf as Qc, ba as Yc, bb as Wc, fE as Xc, fF as Zc, fG as ed, fH as td, fI as ws, bh as ad, bi as nd, fJ as Pl, fK as ca, fL as da, fM as ua, em as pa, co as Ol, c6 as Et, cq as Ss, cr as ks, cs as Xn, fN as Ll, fO as rd, fP as sd, fQ as ld, fR as id, fS as dn, fT as Me, fU as Re, fV as Pe, dE as od, dF as cd, fW as _l, fX as Vl, fY as dd, fZ as wr, f_ as Sr, f$ as ud, g0 as Bl, g1 as Kl, g2 as md, g3 as hd, g4 as Zn, g5 as pd, g6 as fd, g7 as gd, g8 as xd, g9 as bd, ga as vd, gb as Jt, gc as ya, gd as Ts, ge as yd, gf as Tn, gg as Es, gh as Nd, gi as Cd, bA as kr, bB as Aa, gj as En, gk as jl, gl as wd, gm as Sd, gn as kd, go as Td, gp as ql, gq as $l, gr as Ed, gs as Fd, gt as Dd, gu as zl, gv as Id, gw as Ad, gx as Ul, dw as Md, dx as Rd, dG as Pd, dz as Od, c8 as Ld, gy as _d, gz as Vd, gA as Bd, d0 as Kd, gB as jd, gC as qd, cY as Gl, gD as Hl, gE as $d, d5 as zd, gF as Jl, gG as Ud, gH as Gd, gI as Hd, gJ as Jd, gK as Qd, gL as Tr, es as Ql, gM as Yl, gN as za, gO as Wl, gP as Xl, gQ as Fs, gR as Yd, gS as Wd, gT as Xd, gU as Zd, dL as eu, gV as tu, bj as au, gW as Ds, eC as nu, gX as ru, eD as su, eF as lu, eG as iu, o as ou, gY as cu, df as du, gZ as uu, g_ as mu, g$ as hu, h0 as pu, da as fu, db as gu, h1 as xu, h2 as bu, de as vu, ak as yu, dK as Nu, F as Cu, h3 as wu, bu as Su } from "./semaphor-ready-indicator-WvgHMnj8.js";
|
|
10
|
+
import { c as je, B as ne, r as Zl, m as un, s as O, y as W, z as X, A as Z, D as ee, E as j, F as _t, X as rt, w as dt, t as xt, u as ut, v as mt, e as Dt, f as Vt, h as It, x as Ae, a8 as ku, L as Ra, C as Wt, T as Ut, k as Gt, l as tt, n as Ct, j as ra, I as Xt, aa as Tu, ab as Eu, q as ei, i as Wa, ac as er, ad as ti, d as Se, R as Is, p as ai, ae as Fu, S as As } from "./style-sheet-parts-ClmvtkSC.js";
|
|
11
|
+
import { U as Du } from "./upload-ClUeK8F0.js";
|
|
12
|
+
import { iO as Iu, dV as Au, iP as Mu, iQ as Er, iR as fa, iS as Ru, iT as Ms, iU as Pu, iV as Ou, cr as Lu, iW as Rs, U as sa, cU as ni, V as la, X as Pa, Y as Ot, Z as ma, cA as _u, bK as Fr, ft as Vu, iJ as Bu, h6 as Oa, j as Ku, bp as ju, gV as Dr, ge as ri, n as qu, iX as $u, iY as zu, iZ as Uu, i_ as Gu, gS as Kt, hR as Hu, hQ as Ju, i$ as Qu, j0 as si, gs as Yu, dk as Wu, j1 as li, gW as Xu, dK as Zu, dI as Fn, j2 as em, j3 as tm, j4 as am, j5 as nm, $ as rm, W as ii, a0 as sm, j6 as tr, j7 as lm, j8 as im, j9 as om, ja as Ir, gg as cm, fd as Ar, aE as dm, ac as ar, fE as um, hd as mm, ca as oi, bu as hm, b as ci, jb as pm, bt as fm, bC as gm, jc as xm, jd as bm, fH as vm, je as ym, fG as di, jf as Nm, jg as Cm, jh as wm, ji as Ps, jj as Sm, jk as km, jl as Tm, gQ as Nt, jm as Em, jn as Fm, jo as Dm, jp as Im, jq as Am, jr as Mm, js as Os, jt as Ls, ju as Rm, a as ui, ap as Pm, c1 as Om, b$ as Lm, jv as _m, jw as Vm, jx as Bm, jy as Km, f1 as jm, f4 as qm, aD as $m, f0 as Dn, e$ as zm, f2 as Um, e_ as Gm, i4 as Hm, bm as Jm, jz as Qm, jA as _s, bk as Ym, fQ as Wm, fW as Xm, ae as Zm, hh as eh, jB as mi, i6 as th, fu as ah, jC as nh, jD as hi, jE as Mr, e as Xa, gU as rh } from "./resolve-dashboard-input-context-Bw-DesV2.js";
|
|
13
|
+
import { c as sh, A as lh, g as Rr, a as ih, F as oh, V as pi, I as nt, d as ch, u as dh, C as uh, b as mh } from "./card-filter-builder-CSKCSpNo.js";
|
|
14
14
|
import "zod";
|
|
15
|
-
import { aR as hh, aQ as mn, aN as Pr, j as ph, W as fh, aJ as fi } from "./pivot-result-contract-expectations-
|
|
16
|
-
import { aJ as gh, aK as xh, A as bh } from "./bookmark-state-
|
|
15
|
+
import { aR as hh, aQ as mn, aN as Pr, j as ph, W as fh, aJ as fi } from "./pivot-result-contract-expectations-Cnq55Uno.js";
|
|
16
|
+
import { aJ as gh, aK as xh, A as bh } from "./bookmark-state-BfeKmj5s.js";
|
|
17
17
|
import "./schema-C9NPiIru.js";
|
|
18
18
|
import { i as gi } from "./index-CV_Kzou0.js";
|
|
19
19
|
import "./context-CVXTFljo.js";
|
|
20
|
-
import { N as Or,
|
|
21
|
-
import { B as
|
|
20
|
+
import { N as Or, B as vh, ae as yh, af as xi, ag as bi, ah as Lr, ai as _r, ad as Ua, aj as Nh, V as Ch, W as wh, Y as Sh } from "./filter-reach-copy-Dxn-mTuG.js";
|
|
21
|
+
import { B as kh, T as Th, e as Eh, U as Fh, O as vi, V as Dh, P as yi, W as Ih, M as Ah, n as Mh, X as Rh, Y as Ph, Z as Oh, y as Lh } from "./stored-dashboard-vlG0Knxi.js";
|
|
22
22
|
import "react-dom";
|
|
23
|
-
import { L as Vs } from "./list-filter-
|
|
24
|
-
import { r as
|
|
25
|
-
import { u as
|
|
26
|
-
import { P as
|
|
27
|
-
import { D as
|
|
28
|
-
import { P as
|
|
29
|
-
import { K as
|
|
23
|
+
import { L as Vs } from "./list-filter-B67GsjTw.js";
|
|
24
|
+
import { r as _h } from "./export-file-format-C-tJsxsf.js";
|
|
25
|
+
import { u as Vh } from "./appearance-context-BwBp25ZG.js";
|
|
26
|
+
import { P as Bh } from "./paintbrush-xDDRjIyF.js";
|
|
27
|
+
import { D as Kh } from "./metric-comparison-DsE8wdRh.js";
|
|
28
|
+
import { P as jh } from "./palette-CbOgFCy2.js";
|
|
29
|
+
import { K as qh, r as $h, d as zh } from "./dates-DHMCf-F7.js";
|
|
30
30
|
import "./attribution-BvoKvhcj.js";
|
|
31
31
|
/**
|
|
32
32
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -62,7 +62,7 @@ const Ci = je("Blocks", [
|
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
const
|
|
65
|
+
const Uh = je("CircleHelp", [
|
|
66
66
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
67
67
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
68
68
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
@@ -73,7 +73,7 @@ const zh = je("CircleHelp", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const
|
|
76
|
+
const Gh = je("Component", [
|
|
77
77
|
[
|
|
78
78
|
"path",
|
|
79
79
|
{
|
|
@@ -109,7 +109,7 @@ const Uh = je("Component", [
|
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
111
|
*/
|
|
112
|
-
const
|
|
112
|
+
const Hh = je("DatabaseZap", [
|
|
113
113
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
114
114
|
["path", { d: "M3 5V19A9 3 0 0 0 15 21.84", key: "14ibmq" }],
|
|
115
115
|
["path", { d: "M21 5V8", key: "1marbg" }],
|
|
@@ -122,7 +122,7 @@ const Gh = je("DatabaseZap", [
|
|
|
122
122
|
* This source code is licensed under the ISC license.
|
|
123
123
|
* See the LICENSE file in the root directory of this source tree.
|
|
124
124
|
*/
|
|
125
|
-
const
|
|
125
|
+
const Jh = je("FileJson2", [
|
|
126
126
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
127
127
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
128
128
|
[
|
|
@@ -140,7 +140,7 @@ const Hh = je("FileJson2", [
|
|
|
140
140
|
* This source code is licensed under the ISC license.
|
|
141
141
|
* See the LICENSE file in the root directory of this source tree.
|
|
142
142
|
*/
|
|
143
|
-
const
|
|
143
|
+
const Qh = je("Fullscreen", [
|
|
144
144
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
145
145
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
146
146
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
@@ -153,7 +153,7 @@ const Jh = je("Fullscreen", [
|
|
|
153
153
|
* This source code is licensed under the ISC license.
|
|
154
154
|
* See the LICENSE file in the root directory of this source tree.
|
|
155
155
|
*/
|
|
156
|
-
const
|
|
156
|
+
const Yh = je("GitCompareArrows", [
|
|
157
157
|
["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
|
|
158
158
|
["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
|
|
159
159
|
["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
|
|
@@ -167,7 +167,7 @@ const Qh = je("GitCompareArrows", [
|
|
|
167
167
|
* This source code is licensed under the ISC license.
|
|
168
168
|
* See the LICENSE file in the root directory of this source tree.
|
|
169
169
|
*/
|
|
170
|
-
const
|
|
170
|
+
const Wh = je("LayoutList", [
|
|
171
171
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
172
172
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
173
173
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -181,7 +181,7 @@ const Yh = je("LayoutList", [
|
|
|
181
181
|
* This source code is licensed under the ISC license.
|
|
182
182
|
* See the LICENSE file in the root directory of this source tree.
|
|
183
183
|
*/
|
|
184
|
-
const
|
|
184
|
+
const Xh = je("ListEnd", [
|
|
185
185
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
186
186
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
187
187
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -194,7 +194,7 @@ const Wh = je("ListEnd", [
|
|
|
194
194
|
* This source code is licensed under the ISC license.
|
|
195
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
196
|
*/
|
|
197
|
-
const
|
|
197
|
+
const Zh = je("ListStart", [
|
|
198
198
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
199
199
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
200
200
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -207,7 +207,7 @@ const Xh = je("ListStart", [
|
|
|
207
207
|
* This source code is licensed under the ISC license.
|
|
208
208
|
* See the LICENSE file in the root directory of this source tree.
|
|
209
209
|
*/
|
|
210
|
-
const
|
|
210
|
+
const ep = je("ListX", [
|
|
211
211
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
212
212
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
213
213
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -254,7 +254,7 @@ const nr = je("RefreshCcw", [
|
|
|
254
254
|
* This source code is licensed under the ISC license.
|
|
255
255
|
* See the LICENSE file in the root directory of this source tree.
|
|
256
256
|
*/
|
|
257
|
-
const
|
|
257
|
+
const tp = je("SendHorizontal", [
|
|
258
258
|
[
|
|
259
259
|
"path",
|
|
260
260
|
{
|
|
@@ -270,7 +270,7 @@ const ep = je("SendHorizontal", [
|
|
|
270
270
|
* This source code is licensed under the ISC license.
|
|
271
271
|
* See the LICENSE file in the root directory of this source tree.
|
|
272
272
|
*/
|
|
273
|
-
const
|
|
273
|
+
const ap = je("Sigma", [
|
|
274
274
|
[
|
|
275
275
|
"path",
|
|
276
276
|
{
|
|
@@ -285,7 +285,7 @@ const tp = je("Sigma", [
|
|
|
285
285
|
* This source code is licensed under the ISC license.
|
|
286
286
|
* See the LICENSE file in the root directory of this source tree.
|
|
287
287
|
*/
|
|
288
|
-
const
|
|
288
|
+
const np = je("Spline", [
|
|
289
289
|
["circle", { cx: "19", cy: "5", r: "2", key: "mhkx31" }],
|
|
290
290
|
["circle", { cx: "5", cy: "19", r: "2", key: "v8kfzx" }],
|
|
291
291
|
["path", { d: "M5 17A12 12 0 0 1 17 5", key: "1okkup" }]
|
|
@@ -296,7 +296,7 @@ const ap = je("Spline", [
|
|
|
296
296
|
* This source code is licensed under the ISC license.
|
|
297
297
|
* See the LICENSE file in the root directory of this source tree.
|
|
298
298
|
*/
|
|
299
|
-
const
|
|
299
|
+
const rp = je("SquareSplitVertical", [
|
|
300
300
|
["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
|
|
301
301
|
["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
|
|
302
302
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
@@ -307,7 +307,7 @@ const np = je("SquareSplitVertical", [
|
|
|
307
307
|
* This source code is licensed under the ISC license.
|
|
308
308
|
* See the LICENSE file in the root directory of this source tree.
|
|
309
309
|
*/
|
|
310
|
-
const
|
|
310
|
+
const sp = je("Tags", [
|
|
311
311
|
["path", { d: "m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19", key: "1cbfv1" }],
|
|
312
312
|
[
|
|
313
313
|
"path",
|
|
@@ -328,7 +328,7 @@ const wi = je("TrendingUp", [
|
|
|
328
328
|
["polyline", { points: "22 7 13.5 15.5 8.5 10.5 2 17", key: "126l90" }],
|
|
329
329
|
["polyline", { points: "16 7 22 7 22 13", key: "kwv8wd" }]
|
|
330
330
|
]);
|
|
331
|
-
function
|
|
331
|
+
function lp(t, n = {}) {
|
|
332
332
|
const { size: r = "h-4 w-4" } = n, s = r;
|
|
333
333
|
switch (t) {
|
|
334
334
|
case "table":
|
|
@@ -336,7 +336,7 @@ function sp(t, n = {}) {
|
|
|
336
336
|
case "view":
|
|
337
337
|
return /* @__PURE__ */ e(Da, { className: s });
|
|
338
338
|
case "materialized view":
|
|
339
|
-
return /* @__PURE__ */ e(
|
|
339
|
+
return /* @__PURE__ */ e(Hh, { className: s });
|
|
340
340
|
case "model":
|
|
341
341
|
return /* @__PURE__ */ e(Ma, { className: s });
|
|
342
342
|
case "file":
|
|
@@ -351,7 +351,7 @@ function sp(t, n = {}) {
|
|
|
351
351
|
return /* @__PURE__ */ e(zo, { className: s });
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function ip({
|
|
355
355
|
open: t,
|
|
356
356
|
onOpenChange: n
|
|
357
357
|
}) {
|
|
@@ -440,7 +440,7 @@ function lp({
|
|
|
440
440
|
onCheckedChange: () => d(h)
|
|
441
441
|
}
|
|
442
442
|
),
|
|
443
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2 text-muted-foreground", children:
|
|
443
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2 text-muted-foreground", children: lp(h.type) }),
|
|
444
444
|
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
|
|
445
445
|
/* @__PURE__ */ e("div", { className: "truncate font-medium", children: u(h) }),
|
|
446
446
|
/* @__PURE__ */ e("div", { className: "truncate text-sm text-muted-foreground", children: m(h) })
|
|
@@ -475,7 +475,7 @@ function Bs() {
|
|
|
475
475
|
keys: []
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function op({
|
|
479
479
|
initialJoinPlan: t,
|
|
480
480
|
availableDataSources: n
|
|
481
481
|
}) {
|
|
@@ -780,23 +780,23 @@ ${S.joinType} JOIN ${C.name}
|
|
|
780
780
|
))
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
const
|
|
783
|
+
const cp = [
|
|
784
784
|
{ value: "LEFT", label: "Keep rows without a match" },
|
|
785
785
|
{ value: "INNER", label: "Only matching rows" },
|
|
786
786
|
{ value: "RIGHT", label: "Keep all target rows" },
|
|
787
787
|
{ value: "FULL", label: "Keep all rows" }
|
|
788
|
-
],
|
|
788
|
+
], dp = {
|
|
789
789
|
one_to_one: "One to one",
|
|
790
790
|
one_to_many: "One to many",
|
|
791
791
|
many_to_one: "Many to one",
|
|
792
792
|
many_to_many: "Many to many"
|
|
793
|
-
},
|
|
793
|
+
}, up = {
|
|
794
794
|
one_to_one: "1 : 1",
|
|
795
795
|
one_to_many: "1 : N",
|
|
796
796
|
many_to_one: "N : 1",
|
|
797
797
|
many_to_many: "N : N"
|
|
798
|
-
},
|
|
799
|
-
function
|
|
798
|
+
}, mp = ["=", "<", ">", "<=", ">="];
|
|
799
|
+
function hp({
|
|
800
800
|
joinPlan: t,
|
|
801
801
|
availableDataSources: n,
|
|
802
802
|
onSave: r,
|
|
@@ -825,7 +825,7 @@ function mp({
|
|
|
825
825
|
removeJoinKey: V,
|
|
826
826
|
generateSQLPreview: S,
|
|
827
827
|
isValidConfiguration: C
|
|
828
|
-
} =
|
|
828
|
+
} = op({
|
|
829
829
|
initialJoinPlan: t,
|
|
830
830
|
availableDataSources: n
|
|
831
831
|
}), [M, $] = G(/* @__PURE__ */ new Set()), [U, L] = G(!1), b = (E) => {
|
|
@@ -976,7 +976,7 @@ function mp({
|
|
|
976
976
|
onClick: () => y(E.id),
|
|
977
977
|
disabled: E.sequence === 1,
|
|
978
978
|
"aria-label": "Move join earlier",
|
|
979
|
-
children: /* @__PURE__ */ e(
|
|
979
|
+
children: /* @__PURE__ */ e(pp, {})
|
|
980
980
|
}
|
|
981
981
|
),
|
|
982
982
|
/* @__PURE__ */ e(
|
|
@@ -988,7 +988,7 @@ function mp({
|
|
|
988
988
|
onClick: () => k(E.id),
|
|
989
989
|
disabled: E.sequence === o.joins.length,
|
|
990
990
|
"aria-label": "Move join later",
|
|
991
|
-
children: /* @__PURE__ */ e(
|
|
991
|
+
children: /* @__PURE__ */ e(fp, {})
|
|
992
992
|
}
|
|
993
993
|
),
|
|
994
994
|
/* @__PURE__ */ a(
|
|
@@ -1105,7 +1105,7 @@ function mp({
|
|
|
1105
1105
|
}),
|
|
1106
1106
|
children: [
|
|
1107
1107
|
/* @__PURE__ */ e(X, { className: "h-8 text-[12px]", children: /* @__PURE__ */ e(Z, {}) }),
|
|
1108
|
-
/* @__PURE__ */ e(ee, { children:
|
|
1108
|
+
/* @__PURE__ */ e(ee, { children: cp.map((z) => /* @__PURE__ */ e(
|
|
1109
1109
|
j,
|
|
1110
1110
|
{
|
|
1111
1111
|
value: z.value,
|
|
@@ -1131,10 +1131,10 @@ function mp({
|
|
|
1131
1131
|
/* @__PURE__ */ e(X, { "aria-label": `Matches per row: ${E.source.name || "source"} to ${E.target.name || "target"}`, className: "h-8 text-[12px]", children: /* @__PURE__ */ e(Z, {}) }),
|
|
1132
1132
|
/* @__PURE__ */ a(ee, { children: [
|
|
1133
1133
|
/* @__PURE__ */ e(j, { value: "unknown", children: "Detect automatically when possible" }),
|
|
1134
|
-
Object.entries(
|
|
1134
|
+
Object.entries(dp).map(([z, H]) => /* @__PURE__ */ a(j, { value: z, children: [
|
|
1135
1135
|
H,
|
|
1136
1136
|
" (",
|
|
1137
|
-
|
|
1137
|
+
up[z],
|
|
1138
1138
|
")"
|
|
1139
1139
|
] }, z))
|
|
1140
1140
|
] })
|
|
@@ -1147,7 +1147,7 @@ function mp({
|
|
|
1147
1147
|
] })
|
|
1148
1148
|
] }),
|
|
1149
1149
|
E.source.name && E.target.name && R && B && /* @__PURE__ */ e("div", { className: "space-y-2", children: K ? /* @__PURE__ */ e(
|
|
1150
|
-
|
|
1150
|
+
gp,
|
|
1151
1151
|
{
|
|
1152
1152
|
join: E,
|
|
1153
1153
|
getColumnsForEntity: b,
|
|
@@ -1266,7 +1266,7 @@ function mp({
|
|
|
1266
1266
|
] })
|
|
1267
1267
|
] });
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function pp() {
|
|
1270
1270
|
return /* @__PURE__ */ e(
|
|
1271
1271
|
"svg",
|
|
1272
1272
|
{
|
|
@@ -1283,7 +1283,7 @@ function hp() {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
);
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function fp() {
|
|
1287
1287
|
return /* @__PURE__ */ e(
|
|
1288
1288
|
"svg",
|
|
1289
1289
|
{
|
|
@@ -1340,7 +1340,7 @@ function Si({
|
|
|
1340
1340
|
onValueChange: (u) => c(t.id, n, r, "operator", u),
|
|
1341
1341
|
children: [
|
|
1342
1342
|
/* @__PURE__ */ e(X, { className: "h-7 justify-center px-1 font-mono text-[11px]", children: /* @__PURE__ */ e(Z, {}) }),
|
|
1343
|
-
/* @__PURE__ */ e(ee, { children:
|
|
1343
|
+
/* @__PURE__ */ e(ee, { children: mp.map((u) => /* @__PURE__ */ e(j, { value: u, children: u }, u)) })
|
|
1344
1344
|
]
|
|
1345
1345
|
}
|
|
1346
1346
|
) }) : /* @__PURE__ */ e("span", { className: "shrink-0 px-1 font-mono text-[12px] text-muted-foreground", children: "=" }),
|
|
@@ -1378,7 +1378,7 @@ function Si({
|
|
|
1378
1378
|
)
|
|
1379
1379
|
] });
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function gp({
|
|
1382
1382
|
join: t,
|
|
1383
1383
|
getColumnsForEntity: n,
|
|
1384
1384
|
addJoinKey: r,
|
|
@@ -1526,7 +1526,7 @@ function ki({
|
|
|
1526
1526
|
/* @__PURE__ */ e(zt, { className: "text-[12px] text-muted-foreground", children: "Datasets joined together so a card can use fields from all of them." })
|
|
1527
1527
|
] }),
|
|
1528
1528
|
/* @__PURE__ */ e(
|
|
1529
|
-
|
|
1529
|
+
hp,
|
|
1530
1530
|
{
|
|
1531
1531
|
joinPlan: s,
|
|
1532
1532
|
availableDataSources: l,
|
|
@@ -1539,7 +1539,7 @@ function ki({
|
|
|
1539
1539
|
t
|
|
1540
1540
|
] });
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function xp({
|
|
1543
1543
|
joins: t,
|
|
1544
1544
|
baseEntityId: n,
|
|
1545
1545
|
availableDataSources: r,
|
|
@@ -1631,7 +1631,7 @@ function gp({
|
|
|
1631
1631
|
] })
|
|
1632
1632
|
] });
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function bp({
|
|
1635
1635
|
open: t,
|
|
1636
1636
|
onOpenChange: n,
|
|
1637
1637
|
variant: r = "button"
|
|
@@ -1688,7 +1688,7 @@ ${A.joinType} JOIN ${P.name}
|
|
|
1688
1688
|
if (p.length < 2)
|
|
1689
1689
|
return null;
|
|
1690
1690
|
const v = d.joins.length > 0 && /* @__PURE__ */ e(dt, { side: "bottom", className: "ml-4 max-w-md overflow-hidden p-0", children: /* @__PURE__ */ e(
|
|
1691
|
-
|
|
1691
|
+
xp,
|
|
1692
1692
|
{
|
|
1693
1693
|
joins: d.joins,
|
|
1694
1694
|
baseEntityId: d.baseEntity.name,
|
|
@@ -1750,7 +1750,7 @@ ${A.joinType} JOIN ${P.name}
|
|
|
1750
1750
|
)
|
|
1751
1751
|
] });
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function vp() {
|
|
1754
1754
|
var _, T, F, E;
|
|
1755
1755
|
const [t, n] = G(!1), [r, s] = G(!1), [l, c] = G(!1), d = I((R) => R.card.dataSource), i = I((R) => R.card), o = I((R) => R.isDevMode), { updateCardConfig: f, updateDataSource: u } = be(), { autoJoinMetadata: m } = at(i), { semanticDomains: p } = sh(), h = le(
|
|
1756
1756
|
() => new Map(
|
|
@@ -1776,7 +1776,7 @@ function bp() {
|
|
|
1776
1776
|
dataSourceEntities: x
|
|
1777
1777
|
}),
|
|
1778
1778
|
[N, w, x]
|
|
1779
|
-
), D = v === 0 ? "Choose dataset" : v === 1 ?
|
|
1779
|
+
), D = v === 0 ? "Choose dataset" : v === 1 ? yp(x[0], h) : `${v} datasets`, A = Er(i), P = ((_ = A == null ? void 0 : A.joins) == null ? void 0 : _.length) ?? 0, V = Ms(
|
|
1780
1780
|
A,
|
|
1781
1781
|
x
|
|
1782
1782
|
), S = V.length > 0, C = !o && (v > 1 || P > 0), M = !!(m != null && m.autoResolved);
|
|
@@ -1863,7 +1863,7 @@ function bp() {
|
|
|
1863
1863
|
),
|
|
1864
1864
|
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
|
|
1865
1865
|
/* @__PURE__ */ e("p", { className: "truncate text-[13px] text-foreground", children: Vr(R) }),
|
|
1866
|
-
/* @__PURE__ */ e("p", { className: "truncate text-[11px] text-muted-foreground", children:
|
|
1866
|
+
/* @__PURE__ */ e("p", { className: "truncate text-[11px] text-muted-foreground", children: Cp(R, h) }),
|
|
1867
1867
|
ie && q && /* @__PURE__ */ e(
|
|
1868
1868
|
"p",
|
|
1869
1869
|
{
|
|
@@ -1878,7 +1878,7 @@ function bp() {
|
|
|
1878
1878
|
{
|
|
1879
1879
|
type: "button",
|
|
1880
1880
|
onClick: () => U(R),
|
|
1881
|
-
"aria-label": `Remove ${
|
|
1881
|
+
"aria-label": `Remove ${Np(R, h)}`,
|
|
1882
1882
|
className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
|
|
1883
1883
|
children: /* @__PURE__ */ e(rt, { className: "h-3 w-3" })
|
|
1884
1884
|
}
|
|
@@ -1990,21 +1990,21 @@ function bp() {
|
|
|
1990
1990
|
dataSource: k
|
|
1991
1991
|
}
|
|
1992
1992
|
),
|
|
1993
|
-
C && !S && /* @__PURE__ */ e("div", { className: "hidden", children: /* @__PURE__ */ e(
|
|
1993
|
+
C && !S && /* @__PURE__ */ e("div", { className: "hidden", children: /* @__PURE__ */ e(bp, { open: l, onOpenChange: c }) })
|
|
1994
1994
|
] });
|
|
1995
1995
|
}
|
|
1996
1996
|
function Vr(t) {
|
|
1997
1997
|
return "label" in t && t.label ? t.label : t.name || "Dataset";
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
1999
|
+
function yp(t, n) {
|
|
2000
2000
|
const r = Vr(t), s = Rr(t, n);
|
|
2001
2001
|
return s ? `${r} · ${s}` : r;
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2003
|
+
function Np(t, n) {
|
|
2004
2004
|
const r = Vr(t), s = Rr(t, n);
|
|
2005
2005
|
return s ? `${r} from ${s}` : r;
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2007
|
+
function Cp(t, n) {
|
|
2008
2008
|
const r = Rr(t, n);
|
|
2009
2009
|
if (r) return r;
|
|
2010
2010
|
const s = [];
|
|
@@ -2026,10 +2026,10 @@ function Ti({ isVisible: t }) {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
),
|
|
2028
2028
|
children: [
|
|
2029
|
-
/* @__PURE__ */ e("div", { className: "px-4 pt-4", children: /* @__PURE__ */ e(
|
|
2029
|
+
/* @__PURE__ */ e("div", { className: "px-4 pt-4", children: /* @__PURE__ */ e(vp, {}) }),
|
|
2030
2030
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ e(Mo, {}) }),
|
|
2031
2031
|
/* @__PURE__ */ e(
|
|
2032
|
-
|
|
2032
|
+
ip,
|
|
2033
2033
|
{
|
|
2034
2034
|
open: n,
|
|
2035
2035
|
onOpenChange: r
|
|
@@ -2065,12 +2065,12 @@ const rr = ({
|
|
|
2065
2065
|
...r,
|
|
2066
2066
|
children: t && /* @__PURE__ */ e("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ e(pl, { className: "h-2.5 w-2.5" }) })
|
|
2067
2067
|
}
|
|
2068
|
-
),
|
|
2068
|
+
), wp = 3, sr = "Self-heal", Mn = {
|
|
2069
2069
|
grounding: "Analyzing context",
|
|
2070
2070
|
drafting: "Drafting SQL",
|
|
2071
2071
|
validating: "Validating SQL",
|
|
2072
2072
|
repairing: sr
|
|
2073
|
-
}, Na = "Unable to generate a SQL draft right now. Try again.",
|
|
2073
|
+
}, Na = "Unable to generate a SQL draft right now. Try again.", Sp = "Choose a data source for this card before describing a query.", kp = "Validation service unavailable. You can still replace and run.";
|
|
2074
2074
|
function Ca(t, n) {
|
|
2075
2075
|
typeof window > "u" || window.dispatchEvent(
|
|
2076
2076
|
new CustomEvent("semaphor:inline-query-writer", {
|
|
@@ -2095,10 +2095,10 @@ const wa = {
|
|
|
2095
2095
|
validation: null,
|
|
2096
2096
|
errorMessage: ""
|
|
2097
2097
|
};
|
|
2098
|
-
function
|
|
2099
|
-
return t === sr && n > 0 ? `${sr} ${n}/${
|
|
2098
|
+
function Tp(t, n) {
|
|
2099
|
+
return t === sr && n > 0 ? `${sr} ${n}/${wp}` : t;
|
|
2100
2100
|
}
|
|
2101
|
-
async function
|
|
2101
|
+
async function Ep(t, n) {
|
|
2102
2102
|
try {
|
|
2103
2103
|
const r = await t.json();
|
|
2104
2104
|
if (typeof (r == null ? void 0 : r.error) == "string" && r.error.trim())
|
|
@@ -2107,7 +2107,7 @@ async function Tp(t, n) {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
return n;
|
|
2109
2109
|
}
|
|
2110
|
-
async function
|
|
2110
|
+
async function Fp(t, n) {
|
|
2111
2111
|
const r = (d) => {
|
|
2112
2112
|
const i = d.trim();
|
|
2113
2113
|
i && n(JSON.parse(i));
|
|
@@ -2129,7 +2129,7 @@ async function Ep(t, n) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
r(c + l.decode());
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Dp({
|
|
2133
2133
|
currentSql: t,
|
|
2134
2134
|
selectedDatabaseName: n,
|
|
2135
2135
|
selectedSchemaName: r,
|
|
@@ -2235,11 +2235,11 @@ function Fp({
|
|
|
2235
2235
|
if (!Ge()) return;
|
|
2236
2236
|
if (!ge.ok) {
|
|
2237
2237
|
He(
|
|
2238
|
-
await
|
|
2238
|
+
await Ep(ge, Na)
|
|
2239
2239
|
);
|
|
2240
2240
|
return;
|
|
2241
2241
|
}
|
|
2242
|
-
await
|
|
2242
|
+
await Fp(ge, $e), he || He(Na);
|
|
2243
2243
|
} catch {
|
|
2244
2244
|
He(Na);
|
|
2245
2245
|
} finally {
|
|
@@ -2262,7 +2262,7 @@ function Fp({
|
|
|
2262
2262
|
runId: De,
|
|
2263
2263
|
status: "failed",
|
|
2264
2264
|
prompt: we,
|
|
2265
|
-
errorMessage:
|
|
2265
|
+
errorMessage: Sp
|
|
2266
2266
|
});
|
|
2267
2267
|
return;
|
|
2268
2268
|
}
|
|
@@ -2333,7 +2333,7 @@ function Fp({
|
|
|
2333
2333
|
} : {
|
|
2334
2334
|
label: "Validation unavailable",
|
|
2335
2335
|
className: "border-border/60 bg-muted/20 text-muted-foreground",
|
|
2336
|
-
detail:
|
|
2336
|
+
detail: kp
|
|
2337
2337
|
};
|
|
2338
2338
|
return /* @__PURE__ */ a(
|
|
2339
2339
|
"div",
|
|
@@ -2395,7 +2395,7 @@ function Fp({
|
|
|
2395
2395
|
},
|
|
2396
2396
|
"aria-label": U ? "Stop AI generation" : ve,
|
|
2397
2397
|
title: U ? "Stop AI generation" : ve,
|
|
2398
|
-
children: U ? /* @__PURE__ */ e(fl, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(
|
|
2398
|
+
children: U ? /* @__PURE__ */ e(fl, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(tp, { className: "size-3.5" })
|
|
2399
2399
|
}
|
|
2400
2400
|
)
|
|
2401
2401
|
] }),
|
|
@@ -2476,7 +2476,7 @@ function Fp({
|
|
|
2476
2476
|
"rounded-full border px-2 py-0.5 text-[11px]",
|
|
2477
2477
|
Fe ? "border-foreground/30 bg-foreground/10 text-foreground" : Ge ? "border-border/60 bg-muted/20 text-muted-foreground" : "border-border/50 bg-background text-muted-foreground/80"
|
|
2478
2478
|
].join(" "),
|
|
2479
|
-
children:
|
|
2479
|
+
children: Tp(oe, w.attempt)
|
|
2480
2480
|
},
|
|
2481
2481
|
`${oe}-${we}`
|
|
2482
2482
|
);
|
|
@@ -2585,7 +2585,7 @@ function Fp({
|
|
|
2585
2585
|
}
|
|
2586
2586
|
);
|
|
2587
2587
|
}
|
|
2588
|
-
function
|
|
2588
|
+
function Ip({
|
|
2589
2589
|
activeEditor: t,
|
|
2590
2590
|
isRunning: n,
|
|
2591
2591
|
sqlEditor: r,
|
|
@@ -2681,7 +2681,7 @@ function Ks(t, n) {
|
|
|
2681
2681
|
snapshots: {}
|
|
2682
2682
|
}), t.current;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function Ap({
|
|
2685
2685
|
cardId: t,
|
|
2686
2686
|
expandedEditor: n
|
|
2687
2687
|
}) {
|
|
@@ -2750,7 +2750,7 @@ function Fi({
|
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2753
|
+
function Mp({ value: t }) {
|
|
2754
2754
|
const [n, r] = G(!1), s = Ve(null);
|
|
2755
2755
|
Ne(() => () => {
|
|
2756
2756
|
s.current && clearTimeout(s.current);
|
|
@@ -2794,7 +2794,7 @@ function Ap({ value: t }) {
|
|
|
2794
2794
|
}
|
|
2795
2795
|
);
|
|
2796
2796
|
}
|
|
2797
|
-
function
|
|
2797
|
+
function Rp({
|
|
2798
2798
|
hint: t
|
|
2799
2799
|
}) {
|
|
2800
2800
|
const { popoverProps: n, triggerProps: r, contentProps: s } = Fi();
|
|
@@ -2827,7 +2827,7 @@ function Mp({
|
|
|
2827
2827
|
/* @__PURE__ */ e("p", { className: "text-[13px] font-medium", children: "Dashboard filters aren’t applied" }),
|
|
2828
2828
|
/* @__PURE__ */ e("p", { className: "text-[12px] leading-relaxed text-muted-foreground", children: t.description })
|
|
2829
2829
|
] }),
|
|
2830
|
-
/* @__PURE__ */ e(
|
|
2830
|
+
/* @__PURE__ */ e(Mp, { value: t.helper }),
|
|
2831
2831
|
/* @__PURE__ */ e(
|
|
2832
2832
|
"a",
|
|
2833
2833
|
{
|
|
@@ -2843,7 +2843,7 @@ function Mp({
|
|
|
2843
2843
|
)
|
|
2844
2844
|
] });
|
|
2845
2845
|
}
|
|
2846
|
-
function
|
|
2846
|
+
function Pp({
|
|
2847
2847
|
activeEditor: t,
|
|
2848
2848
|
onExpand: n,
|
|
2849
2849
|
trailing: r
|
|
@@ -2884,7 +2884,7 @@ function Rp({
|
|
|
2884
2884
|
] })
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2887
|
+
function Op({ value: t }) {
|
|
2888
2888
|
const [n, r] = G(!1), s = Ve(null);
|
|
2889
2889
|
return Ne(() => () => {
|
|
2890
2890
|
s.current && clearTimeout(s.current);
|
|
@@ -2913,7 +2913,7 @@ function Pp({ value: t }) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function Lp() {
|
|
2917
2917
|
const { popoverProps: t, triggerProps: n, contentProps: r } = Fi();
|
|
2918
2918
|
return /* @__PURE__ */ a(Dt, { ...t, children: [
|
|
2919
2919
|
/* @__PURE__ */ e(Vt, { asChild: !0, children: /* @__PURE__ */ a(
|
|
@@ -2957,7 +2957,7 @@ function Op() {
|
|
|
2957
2957
|
/* @__PURE__ */ a("div", { className: "overflow-hidden rounded-[5px] border border-border/60", children: [
|
|
2958
2958
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between border-b border-border/60 bg-muted/30 px-2 py-0.5", children: [
|
|
2959
2959
|
/* @__PURE__ */ e("span", { className: "text-[11px] text-muted-foreground", children: "Example" }),
|
|
2960
|
-
/* @__PURE__ */ e(
|
|
2960
|
+
/* @__PURE__ */ e(Op, { value: Rs })
|
|
2961
2961
|
] }),
|
|
2962
2962
|
/* @__PURE__ */ e("div", { className: "max-h-40 overflow-auto", children: /* @__PURE__ */ e(
|
|
2963
2963
|
Wt,
|
|
@@ -2978,7 +2978,7 @@ function Op() {
|
|
|
2978
2978
|
)
|
|
2979
2979
|
] });
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2981
|
+
function _p({
|
|
2982
2982
|
open: t,
|
|
2983
2983
|
onOpenChange: n,
|
|
2984
2984
|
onConfirm: r
|
|
@@ -3001,7 +3001,7 @@ function Lp({
|
|
|
3001
3001
|
] })
|
|
3002
3002
|
] }) });
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function Vp(t, n) {
|
|
3005
3005
|
return {
|
|
3006
3006
|
...t,
|
|
3007
3007
|
sql: "",
|
|
@@ -3015,7 +3015,7 @@ function _p(t, n) {
|
|
|
3015
3015
|
type: n ? t.type : Or
|
|
3016
3016
|
};
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3018
|
+
function Bp() {
|
|
3019
3019
|
const { setTempQueryData: t } = be(), n = mr(), r = I((w) => w.tempQueryData), s = I((w) => w.card), l = st(), c = le(() => l !== s.type ? { ...s, type: l } : s, [s, l]), { queryKey: d } = at(c), {
|
|
3020
3020
|
setCardSql: i,
|
|
3021
3021
|
setSqlGen: o,
|
|
@@ -3036,7 +3036,7 @@ function Vp() {
|
|
|
3036
3036
|
queryKey: d,
|
|
3037
3037
|
queryData: w
|
|
3038
3038
|
}), n.setQueryData(d, null), n.removeQueries({ queryKey: d, exact: !0 }), i(""), o({}), p(), h(void 0), f(""), u(""), m({});
|
|
3039
|
-
const g = I.getState().frame, D = I.getState().card, A = sa(g, D), P = ((S = A == null ? void 0 : A.customCardPreferences) == null ? void 0 : S.visualType) === "multiple" || !!((C = A == null ? void 0 : A.customCardPreferences) != null && C.dataInputCardIds) || (((M = A == null ? void 0 : A.customCardPreferences) == null ? void 0 : M.minInputs) || 0) > 1 || ((($ = A == null ? void 0 : A.customCardPreferences) == null ? void 0 : $.maxInputs) || 0) > 1, V =
|
|
3039
|
+
const g = I.getState().frame, D = I.getState().card, A = sa(g, D), P = ((S = A == null ? void 0 : A.customCardPreferences) == null ? void 0 : S.visualType) === "multiple" || !!((C = A == null ? void 0 : A.customCardPreferences) != null && C.dataInputCardIds) || (((M = A == null ? void 0 : A.customCardPreferences) == null ? void 0 : M.minInputs) || 0) > 1 || ((($ = A == null ? void 0 : A.customCardPreferences) == null ? void 0 : $.maxInputs) || 0) > 1, V = Vp(D, P);
|
|
3040
3040
|
k({
|
|
3041
3041
|
...g,
|
|
3042
3042
|
cards: g.cards.map(
|
|
@@ -3047,15 +3047,15 @@ function Vp() {
|
|
|
3047
3047
|
return N;
|
|
3048
3048
|
}
|
|
3049
3049
|
const js = "[&_.code-editor-pre]:!pb-14 [&_.code-editor-textarea]:!pb-14";
|
|
3050
|
-
function
|
|
3050
|
+
function Kp() {
|
|
3051
3051
|
var $e, ge, _e, Xe;
|
|
3052
|
-
const t = mr(), { tokenProps: n } = Zt(), r = ((ge = ($e = n.config) == null ? void 0 : $e.projectFeatures) == null ? void 0 : ge.features.aiWritingHelpers) !== !1, [s, l] = G("sql"), [c, d] = G(!1), [i, o] = G(!1), f =
|
|
3052
|
+
const t = mr(), { tokenProps: n } = Zt(), r = ((ge = ($e = n.config) == null ? void 0 : $e.projectFeatures) == null ? void 0 : ge.features.aiWritingHelpers) !== !1, [s, l] = G("sql"), [c, d] = G(!1), [i, o] = G(!1), f = Bp(), [u, m] = G(!1), [p, h] = G(null), y = I((se) => se.frame), k = I((se) => se.card), {
|
|
3053
3053
|
inlineSqlEditorRef: x,
|
|
3054
3054
|
inlinePythonEditorRef: v,
|
|
3055
3055
|
expandedSqlEditorRef: N,
|
|
3056
3056
|
expandedPythonEditorRef: w,
|
|
3057
3057
|
captureEditorSessions: g
|
|
3058
|
-
} =
|
|
3058
|
+
} = Ap({
|
|
3059
3059
|
cardId: k.id,
|
|
3060
3060
|
expandedEditor: p
|
|
3061
3061
|
});
|
|
@@ -3240,18 +3240,18 @@ function Bp() {
|
|
|
3240
3240
|
className: "flex min-h-0 grow flex-col",
|
|
3241
3241
|
children: [
|
|
3242
3242
|
/* @__PURE__ */ e(
|
|
3243
|
-
|
|
3243
|
+
Pp,
|
|
3244
3244
|
{
|
|
3245
3245
|
activeEditor: s,
|
|
3246
3246
|
onExpand: () => Fe(s),
|
|
3247
3247
|
trailing: /* @__PURE__ */ a(me, { children: [
|
|
3248
3248
|
F ? /* @__PURE__ */ e(
|
|
3249
|
-
|
|
3249
|
+
Rp,
|
|
3250
3250
|
{
|
|
3251
3251
|
hint: F
|
|
3252
3252
|
}
|
|
3253
3253
|
) : null,
|
|
3254
|
-
s === "python" ? /* @__PURE__ */ e(
|
|
3254
|
+
s === "python" ? /* @__PURE__ */ e(Lp, {}) : null
|
|
3255
3255
|
] })
|
|
3256
3256
|
}
|
|
3257
3257
|
),
|
|
@@ -3309,7 +3309,7 @@ function Bp() {
|
|
|
3309
3309
|
className: "pointer-events-none absolute inset-x-4 bottom-3 z-10 flex items-end justify-end gap-2",
|
|
3310
3310
|
children: [
|
|
3311
3311
|
r ? c ? /* @__PURE__ */ e("div", { className: "pointer-events-auto flex min-w-0 max-w-[560px] flex-1", children: /* @__PURE__ */ e(
|
|
3312
|
-
|
|
3312
|
+
Dp,
|
|
3313
3313
|
{
|
|
3314
3314
|
currentSql: k == null ? void 0 : k.sql,
|
|
3315
3315
|
selectedDatabaseName: D,
|
|
@@ -3364,7 +3364,7 @@ function Bp() {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
),
|
|
3366
3366
|
/* @__PURE__ */ e(
|
|
3367
|
-
|
|
3367
|
+
_p,
|
|
3368
3368
|
{
|
|
3369
3369
|
open: i,
|
|
3370
3370
|
onOpenChange: o,
|
|
@@ -3372,7 +3372,7 @@ function Bp() {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
),
|
|
3374
3374
|
/* @__PURE__ */ e(
|
|
3375
|
-
|
|
3375
|
+
Ip,
|
|
3376
3376
|
{
|
|
3377
3377
|
activeEditor: p,
|
|
3378
3378
|
isRunning: he,
|
|
@@ -3400,7 +3400,7 @@ function Bp() {
|
|
|
3400
3400
|
)
|
|
3401
3401
|
);
|
|
3402
3402
|
}
|
|
3403
|
-
function
|
|
3403
|
+
function jp(t) {
|
|
3404
3404
|
const n = fe((h) => h.dashboard), r = fe((h) => h.adHocFilterValues), s = fe((h) => h.selectedSheetId), l = fe(
|
|
3405
3405
|
(h) => h.dashboardInputValues
|
|
3406
3406
|
), c = fe(
|
|
@@ -3429,7 +3429,7 @@ function Kp(t) {
|
|
|
3429
3429
|
cardFilterValues: u.documentFilterValues || []
|
|
3430
3430
|
} : {
|
|
3431
3431
|
cardFilters: [],
|
|
3432
|
-
cardFilterValues:
|
|
3432
|
+
cardFilterValues: kh(
|
|
3433
3433
|
r,
|
|
3434
3434
|
s
|
|
3435
3435
|
)
|
|
@@ -3449,7 +3449,7 @@ const Rn = [
|
|
|
3449
3449
|
{ value: "table", label: "Table" },
|
|
3450
3450
|
{ value: "detailTable", label: "Detail" }
|
|
3451
3451
|
];
|
|
3452
|
-
function
|
|
3452
|
+
function qp({ className: t }) {
|
|
3453
3453
|
const n = I((h) => h.card), r = I((h) => h.frame), s = I((h) => h.editorContext), l = st(), { setCard: c, updateCardInFrame: d } = be(), i = (s == null ? void 0 : s.type) === "documentSection" && !!s.lockedKind, o = (s == null ? void 0 : s.type) === "documentSection" ? Rn.filter((h) => h.value === "table") : Rn, f = Rn.some(
|
|
3454
3454
|
(h) => h.value === l
|
|
3455
3455
|
), u = Oa(n.config, n.type), m = Ku(n, r.cards);
|
|
@@ -3495,7 +3495,7 @@ function jp({ className: t }) {
|
|
|
3495
3495
|
);
|
|
3496
3496
|
}) });
|
|
3497
3497
|
}
|
|
3498
|
-
const
|
|
3498
|
+
const $p = {
|
|
3499
3499
|
async writeTextToClipboard(t) {
|
|
3500
3500
|
return typeof navigator > "u" || !navigator.clipboard ? !1 : (await navigator.clipboard.writeText(t), !0);
|
|
3501
3501
|
}
|
|
@@ -3542,7 +3542,7 @@ function Ai({
|
|
|
3542
3542
|
}
|
|
3543
3543
|
);
|
|
3544
3544
|
}
|
|
3545
|
-
const ja = 50,
|
|
3545
|
+
const ja = 50, zp = {
|
|
3546
3546
|
request: "Query request",
|
|
3547
3547
|
response: "Query response"
|
|
3548
3548
|
};
|
|
@@ -3553,7 +3553,7 @@ function qs(t) {
|
|
|
3553
3553
|
return console.error("Unable to stringify debug payload", n), null;
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function Up(t) {
|
|
3557
3557
|
if (!t || typeof t != "object")
|
|
3558
3558
|
return { value: t };
|
|
3559
3559
|
const n = t.records;
|
|
@@ -3594,16 +3594,16 @@ function Ri({
|
|
|
3594
3594
|
onClose: n,
|
|
3595
3595
|
className: r
|
|
3596
3596
|
}) {
|
|
3597
|
-
const s = t.queryResponse !== void 0, [l, c] = G("request"), d = l === "response" && !s ? "request" : l, i =
|
|
3597
|
+
const s = t.queryResponse !== void 0, [l, c] = G("request"), d = l === "response" && !s ? "request" : l, i = zp[d], o = d === "request" ? t.queryRequest : t.queryResponse, f = le(() => {
|
|
3598
3598
|
if (o === void 0) return null;
|
|
3599
|
-
const m = d === "response" ?
|
|
3599
|
+
const m = d === "response" ? Up(o) : { value: o }, p = qs(m.value);
|
|
3600
3600
|
return p ? { json: p, truncationMessage: m.truncationMessage } : null;
|
|
3601
3601
|
}, [o, d]), u = async () => {
|
|
3602
3602
|
const m = o === void 0 ? null : qs(o);
|
|
3603
3603
|
if (!m)
|
|
3604
3604
|
return ot.error(`No ${i.toLowerCase()} available`), !1;
|
|
3605
3605
|
try {
|
|
3606
|
-
return await
|
|
3606
|
+
return await $p.writeTextToClipboard(m) ? (ot.success(`${i} copied`), !0) : (ot.error("Clipboard is not available"), !1);
|
|
3607
3607
|
} catch (p) {
|
|
3608
3608
|
return console.error("Failed to copy debug payload", p), ot.error(`Unable to copy ${i.toLowerCase()}`), !1;
|
|
3609
3609
|
}
|
|
@@ -3688,8 +3688,8 @@ function Ri({
|
|
|
3688
3688
|
}
|
|
3689
3689
|
);
|
|
3690
3690
|
}
|
|
3691
|
-
const
|
|
3692
|
-
function
|
|
3691
|
+
const Gp = 1200;
|
|
3692
|
+
function Hp(t) {
|
|
3693
3693
|
var s;
|
|
3694
3694
|
const n = t.target;
|
|
3695
3695
|
if (n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement)
|
|
@@ -3719,7 +3719,7 @@ function Pi({
|
|
|
3719
3719
|
}, p = () => {
|
|
3720
3720
|
u.current && clearTimeout(u.current), f(!0), u.current = setTimeout(() => {
|
|
3721
3721
|
f(!1), u.current = void 0;
|
|
3722
|
-
},
|
|
3722
|
+
}, Gp);
|
|
3723
3723
|
}, h = async () => {
|
|
3724
3724
|
try {
|
|
3725
3725
|
let v = !1;
|
|
@@ -3728,7 +3728,7 @@ function Pi({
|
|
|
3728
3728
|
console.error("Failed to copy text", v);
|
|
3729
3729
|
}
|
|
3730
3730
|
}, y = (v) => {
|
|
3731
|
-
c == null || c(v), !(v.defaultPrevented ||
|
|
3731
|
+
c == null || c(v), !(v.defaultPrevented || Hp(v)) && h();
|
|
3732
3732
|
}, k = J(
|
|
3733
3733
|
"group/copy-on-click relative block w-full cursor-pointer rounded-control text-left transition-[background-color,box-shadow] duration-150",
|
|
3734
3734
|
"hover:bg-muted/30 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring motion-reduce:transition-none",
|
|
@@ -3772,9 +3772,9 @@ function Pi({
|
|
|
3772
3772
|
}
|
|
3773
3773
|
) });
|
|
3774
3774
|
}
|
|
3775
|
-
const
|
|
3775
|
+
const Jp = "This visual couldn't load its data.";
|
|
3776
3776
|
function Oi({
|
|
3777
|
-
title: t =
|
|
3777
|
+
title: t = Jp,
|
|
3778
3778
|
hint: n,
|
|
3779
3779
|
detail: r,
|
|
3780
3780
|
defaultDetailsOpen: s = !1,
|
|
@@ -3830,7 +3830,7 @@ function Oi({
|
|
|
3830
3830
|
}
|
|
3831
3831
|
);
|
|
3832
3832
|
}
|
|
3833
|
-
const
|
|
3833
|
+
const Qp = () => {
|
|
3834
3834
|
};
|
|
3835
3835
|
function Li({
|
|
3836
3836
|
sql: t,
|
|
@@ -3873,7 +3873,7 @@ function Li({
|
|
|
3873
3873
|
Wt,
|
|
3874
3874
|
{
|
|
3875
3875
|
value: t,
|
|
3876
|
-
onValueChange:
|
|
3876
|
+
onValueChange: Qp,
|
|
3877
3877
|
language: "sql",
|
|
3878
3878
|
readOnly: !0,
|
|
3879
3879
|
embedded: !0,
|
|
@@ -4001,7 +4001,7 @@ function Vi(t) {
|
|
|
4001
4001
|
handleOpenInEditor: !r && Dr(n.type) ? c : void 0
|
|
4002
4002
|
};
|
|
4003
4003
|
}
|
|
4004
|
-
function
|
|
4004
|
+
function Yp() {
|
|
4005
4005
|
const { authToken: t, tokenProps: n } = Zt(), { currentUser: r } = rn(), s = ic({
|
|
4006
4006
|
mutationFn: async (l) => {
|
|
4007
4007
|
if (!(t != null && t.accessToken))
|
|
@@ -4042,7 +4042,7 @@ function Qp() {
|
|
|
4042
4042
|
reset: s.reset
|
|
4043
4043
|
};
|
|
4044
4044
|
}
|
|
4045
|
-
function
|
|
4045
|
+
function Wp(t, n, r) {
|
|
4046
4046
|
return {
|
|
4047
4047
|
category: t,
|
|
4048
4048
|
userMessage: r,
|
|
@@ -4055,7 +4055,7 @@ function Yp(t, n, r) {
|
|
|
4055
4055
|
}
|
|
4056
4056
|
};
|
|
4057
4057
|
}
|
|
4058
|
-
function
|
|
4058
|
+
function Xp({
|
|
4059
4059
|
code: t,
|
|
4060
4060
|
language: n,
|
|
4061
4061
|
wrapLongLines: r = !1,
|
|
@@ -4105,7 +4105,7 @@ function jr({
|
|
|
4105
4105
|
isError: p,
|
|
4106
4106
|
data: h,
|
|
4107
4107
|
reset: y
|
|
4108
|
-
} =
|
|
4108
|
+
} = Yp(), k = m ? "Feedback Sent" : "Report a Query Issue", x = m ? "Your feedback was sent to the support team." : "Tell us what happened. We’ll include technical details to help support investigate.", v = () => {
|
|
4109
4109
|
const M = {
|
|
4110
4110
|
...r,
|
|
4111
4111
|
userMessage: c.trim() || void 0
|
|
@@ -4223,7 +4223,7 @@ function jr({
|
|
|
4223
4223
|
)
|
|
4224
4224
|
] }),
|
|
4225
4225
|
/* @__PURE__ */ e(na, { className: "mt-2 min-w-0", children: /* @__PURE__ */ e(un, { className: "h-[300px] w-full rounded-card border bg-muted/50 p-4", children: /* @__PURE__ */ e("div", { className: "min-w-0 max-w-full overflow-x-hidden text-xs", children: /* @__PURE__ */ e(
|
|
4226
|
-
|
|
4226
|
+
Xp,
|
|
4227
4227
|
{
|
|
4228
4228
|
code: JSON.stringify(g, null, 2),
|
|
4229
4229
|
language: "json",
|
|
@@ -4335,13 +4335,13 @@ function Bi(t, n) {
|
|
|
4335
4335
|
feedbackPayload: f
|
|
4336
4336
|
};
|
|
4337
4337
|
}
|
|
4338
|
-
const
|
|
4339
|
-
function
|
|
4338
|
+
const Zp = "__editor_sql__", ef = "__editor_python__";
|
|
4339
|
+
function tf(t) {
|
|
4340
4340
|
var r;
|
|
4341
4341
|
const n = qu(t.python || "");
|
|
4342
4342
|
return {
|
|
4343
|
-
sql: (r = t.sql) != null && r.trim() ?
|
|
4344
|
-
python: n.trim() ?
|
|
4343
|
+
sql: (r = t.sql) != null && r.trim() ? Zp : "",
|
|
4344
|
+
python: n.trim() ? ef : ""
|
|
4345
4345
|
};
|
|
4346
4346
|
}
|
|
4347
4347
|
function Ki({
|
|
@@ -4400,7 +4400,7 @@ function Ki({
|
|
|
4400
4400
|
setFeedbackDialogOpen: E,
|
|
4401
4401
|
handleSendFeedback: R,
|
|
4402
4402
|
feedbackPayload: B
|
|
4403
|
-
} = Bi($, U || s.sql || s.python), q = le(() => (S == null ? void 0 : S.records) || [], [S == null ? void 0 : S.records]), { setCard: K, updateCardInFrame: ie } = be(), te = b.id, de = b.config, z = b.interactionConfig, H = b.controls, ae = b.controlBindings, ce = b.customCfg, xe = b.preferences, ue = b.queryConfig, ve =
|
|
4403
|
+
} = Bi($, U || s.sql || s.python), q = le(() => (S == null ? void 0 : S.records) || [], [S == null ? void 0 : S.records]), { setCard: K, updateCardInFrame: ie } = be(), te = b.id, de = b.config, z = b.interactionConfig, H = b.controls, ae = b.controlBindings, ce = b.customCfg, xe = b.preferences, ue = b.queryConfig, ve = tf({
|
|
4404
4404
|
sql: b.sql,
|
|
4405
4405
|
python: b.python
|
|
4406
4406
|
}), Te = ve.sql, Oe = ve.python, ze = S == null ? void 0 : S.records, pe = le(
|
|
@@ -4577,7 +4577,7 @@ function Ki({
|
|
|
4577
4577
|
) }),
|
|
4578
4578
|
/* @__PURE__ */ e(bl, { card: s }),
|
|
4579
4579
|
/* @__PURE__ */ e(pi, {}),
|
|
4580
|
-
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(
|
|
4580
|
+
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(qp, {}) })
|
|
4581
4581
|
] }),
|
|
4582
4582
|
/* @__PURE__ */ e("div", { className: "min-w-0", children: /* @__PURE__ */ e(
|
|
4583
4583
|
Qa,
|
|
@@ -4681,7 +4681,7 @@ const Pn = ({
|
|
|
4681
4681
|
readOnly: s,
|
|
4682
4682
|
embedded: !0
|
|
4683
4683
|
}
|
|
4684
|
-
),
|
|
4684
|
+
), af = () => /* @__PURE__ */ a(Yt, { children: [
|
|
4685
4685
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e($t, { children: "Customize Card" }) }),
|
|
4686
4686
|
/* @__PURE__ */ a(zt, { children: [
|
|
4687
4687
|
"See the configuration options and documentation",
|
|
@@ -4695,7 +4695,7 @@ const Pn = ({
|
|
|
4695
4695
|
}
|
|
4696
4696
|
)
|
|
4697
4697
|
] })
|
|
4698
|
-
] }),
|
|
4698
|
+
] }), nf = ({
|
|
4699
4699
|
// defaultConfig,
|
|
4700
4700
|
customCode: t,
|
|
4701
4701
|
cardCustomCfgString: n,
|
|
@@ -4755,7 +4755,7 @@ const Pn = ({
|
|
|
4755
4755
|
)
|
|
4756
4756
|
}
|
|
4757
4757
|
)
|
|
4758
|
-
] }),
|
|
4758
|
+
] }), rf = ({
|
|
4759
4759
|
error: t,
|
|
4760
4760
|
hasCardCustomConfig: n,
|
|
4761
4761
|
onReset: r,
|
|
@@ -4767,7 +4767,7 @@ const Pn = ({
|
|
|
4767
4767
|
/* @__PURE__ */ e(ne, { onClick: s, variant: "outline", children: "Apply" }),
|
|
4768
4768
|
/* @__PURE__ */ e(ne, { onClick: l, variant: "outline", children: "Close" })
|
|
4769
4769
|
] });
|
|
4770
|
-
function
|
|
4770
|
+
function sf({
|
|
4771
4771
|
triggerVariant: t = "icon",
|
|
4772
4772
|
className: n,
|
|
4773
4773
|
label: r = "Customize Visual"
|
|
@@ -4798,7 +4798,7 @@ function rf({
|
|
|
4798
4798
|
if (f && A(f), i) {
|
|
4799
4799
|
const C = JSON.parse(
|
|
4800
4800
|
i
|
|
4801
|
-
), M =
|
|
4801
|
+
), M = Th(
|
|
4802
4802
|
JSON.parse(c),
|
|
4803
4803
|
C
|
|
4804
4804
|
);
|
|
@@ -4837,11 +4837,11 @@ function rf({
|
|
|
4837
4837
|
}
|
|
4838
4838
|
) }),
|
|
4839
4839
|
/* @__PURE__ */ a(qt, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
|
|
4840
|
-
/* @__PURE__ */ e(
|
|
4840
|
+
/* @__PURE__ */ e(af, {}),
|
|
4841
4841
|
/* @__PURE__ */ a("div", { className: "flex grow gap-2", children: [
|
|
4842
4842
|
/* @__PURE__ */ e(ln, { FallbackComponent: vr, children: /* @__PURE__ */ e(Ki, { className: "w-1/2 rounded shadow-none" }) }),
|
|
4843
4843
|
/* @__PURE__ */ e(
|
|
4844
|
-
|
|
4844
|
+
nf,
|
|
4845
4845
|
{
|
|
4846
4846
|
customCode: f,
|
|
4847
4847
|
cardCustomCfgString: x,
|
|
@@ -4852,7 +4852,7 @@ function rf({
|
|
|
4852
4852
|
)
|
|
4853
4853
|
] }),
|
|
4854
4854
|
/* @__PURE__ */ e(
|
|
4855
|
-
|
|
4855
|
+
rf,
|
|
4856
4856
|
{
|
|
4857
4857
|
error: m,
|
|
4858
4858
|
hasCardCustomConfig: !!k,
|
|
@@ -4866,13 +4866,13 @@ function rf({
|
|
|
4866
4866
|
] })
|
|
4867
4867
|
] });
|
|
4868
4868
|
}
|
|
4869
|
-
function
|
|
4869
|
+
function lf(t) {
|
|
4870
4870
|
let n = 0;
|
|
4871
4871
|
for (let s = 0; s < t.length; s++)
|
|
4872
4872
|
n = t.charCodeAt(s) + ((n << 5) - n);
|
|
4873
4873
|
return `hsl(${Math.abs(n % 360)}, 65%, 45%)`;
|
|
4874
4874
|
}
|
|
4875
|
-
function
|
|
4875
|
+
function of(t) {
|
|
4876
4876
|
const n = t.trim().split(/\s+/);
|
|
4877
4877
|
return n.length > 1 ? (n[0][0] + n[1][0]).toUpperCase() : t.slice(0, 2).toUpperCase();
|
|
4878
4878
|
}
|
|
@@ -4887,7 +4887,7 @@ function ji({
|
|
|
4887
4887
|
const l = Cc(n);
|
|
4888
4888
|
if (l)
|
|
4889
4889
|
return ll.cloneElement(l, { className: s });
|
|
4890
|
-
const c =
|
|
4890
|
+
const c = of(n), d = lf(n);
|
|
4891
4891
|
return /* @__PURE__ */ e(
|
|
4892
4892
|
"div",
|
|
4893
4893
|
{
|
|
@@ -4959,7 +4959,7 @@ const Gs = [
|
|
|
4959
4959
|
{ id: "trend", label: "Trend" },
|
|
4960
4960
|
{ id: "part", label: "Part of a whole" },
|
|
4961
4961
|
{ id: "relationship", label: "Relationship" }
|
|
4962
|
-
],
|
|
4962
|
+
], cf = [
|
|
4963
4963
|
{ id: "table", name: "Table", group: "tables" },
|
|
4964
4964
|
{ id: "matrixTable", name: "Matrix Table", group: "tables" },
|
|
4965
4965
|
{ id: "bar", name: "Bar Chart", group: "comparison" },
|
|
@@ -4985,11 +4985,11 @@ const Gs = [
|
|
|
4985
4985
|
{ id: "text", name: "Text", group: "other" }
|
|
4986
4986
|
], On = 2;
|
|
4987
4987
|
function qi(t) {
|
|
4988
|
-
return
|
|
4988
|
+
return cf.filter(
|
|
4989
4989
|
(n) => $u(n.id, t)
|
|
4990
4990
|
);
|
|
4991
4991
|
}
|
|
4992
|
-
function
|
|
4992
|
+
function df({
|
|
4993
4993
|
selectedChart: t,
|
|
4994
4994
|
onChartSelect: n,
|
|
4995
4995
|
onClose: r
|
|
@@ -5195,15 +5195,15 @@ const Ln = {
|
|
|
5195
5195
|
radar: "Radar",
|
|
5196
5196
|
polarArea: "Polar Area",
|
|
5197
5197
|
text: "Text"
|
|
5198
|
-
},
|
|
5198
|
+
}, uf = [
|
|
5199
5199
|
{ id: "table" },
|
|
5200
5200
|
{ id: "bar" },
|
|
5201
5201
|
{ id: "line" },
|
|
5202
5202
|
{ id: "pie" },
|
|
5203
5203
|
{ id: "kpi" },
|
|
5204
5204
|
{ id: "matrixTable" }
|
|
5205
|
-
],
|
|
5206
|
-
function
|
|
5205
|
+
], mf = 6;
|
|
5206
|
+
function hf({
|
|
5207
5207
|
selectedChart: t,
|
|
5208
5208
|
onChartChange: n
|
|
5209
5209
|
}) {
|
|
@@ -5233,7 +5233,7 @@ function lr({
|
|
|
5233
5233
|
), o = le(() => {
|
|
5234
5234
|
const h = new Set(
|
|
5235
5235
|
qi({ isDevMode: d }).map((k) => k.id)
|
|
5236
|
-
), y =
|
|
5236
|
+
), y = uf.filter(
|
|
5237
5237
|
(k) => h.has(k.id)
|
|
5238
5238
|
).map((k) => ({
|
|
5239
5239
|
id: k.id,
|
|
@@ -5250,7 +5250,7 @@ function lr({
|
|
|
5250
5250
|
label: _n[t] ?? t,
|
|
5251
5251
|
icon: Ln[t],
|
|
5252
5252
|
isCustom: !1
|
|
5253
|
-
}), y.slice(0,
|
|
5253
|
+
}), y.slice(0, mf);
|
|
5254
5254
|
}, [t, i, d]), f = (h) => h.isCustom ? t === "custom" && i === h.id : t === h.id, u = (h) => {
|
|
5255
5255
|
h.isCustom || n(h.id);
|
|
5256
5256
|
}, m = o.some(f), p = m ? "More" : t === "custom" ? i || "Custom" : _n[t] || "More";
|
|
@@ -5325,7 +5325,7 @@ function lr({
|
|
|
5325
5325
|
align: "end",
|
|
5326
5326
|
onOpenAutoFocus: (h) => h.preventDefault(),
|
|
5327
5327
|
children: /* @__PURE__ */ e(
|
|
5328
|
-
|
|
5328
|
+
df,
|
|
5329
5329
|
{
|
|
5330
5330
|
selectedChart: t,
|
|
5331
5331
|
onChartSelect: (h) => {
|
|
@@ -5339,7 +5339,7 @@ function lr({
|
|
|
5339
5339
|
] })
|
|
5340
5340
|
] }) });
|
|
5341
5341
|
}
|
|
5342
|
-
function
|
|
5342
|
+
function pf() {
|
|
5343
5343
|
const t = I(
|
|
5344
5344
|
(o) => {
|
|
5345
5345
|
var f, u;
|
|
@@ -5508,6 +5508,8 @@ function zr({
|
|
|
5508
5508
|
dataSource: c == null ? void 0 : c.dataSource,
|
|
5509
5509
|
connectionId: d
|
|
5510
5510
|
}),
|
|
5511
|
+
// A new number filter starts as a Range (number range filters NR-D4).
|
|
5512
|
+
...vh(D.dataType),
|
|
5511
5513
|
width: 250
|
|
5512
5514
|
// Default width for inline filters
|
|
5513
5515
|
};
|
|
@@ -5620,7 +5622,7 @@ function zr({
|
|
|
5620
5622
|
y.length > 0 && /* @__PURE__ */ a("div", { className: "border-t px-4 py-3", children: [
|
|
5621
5623
|
/* @__PURE__ */ e("p", { className: "mb-2 text-xs font-medium text-muted-foreground", children: "Active Filters" }),
|
|
5622
5624
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: y.map((D) => /* @__PURE__ */ e(
|
|
5623
|
-
|
|
5625
|
+
ff,
|
|
5624
5626
|
{
|
|
5625
5627
|
filter: D,
|
|
5626
5628
|
onUpdate: (A) => N(D.id, A),
|
|
@@ -5636,7 +5638,7 @@ function zr({
|
|
|
5636
5638
|
}
|
|
5637
5639
|
);
|
|
5638
5640
|
}
|
|
5639
|
-
function
|
|
5641
|
+
function ff({
|
|
5640
5642
|
filter: t,
|
|
5641
5643
|
onUpdate: n,
|
|
5642
5644
|
onRemove: r
|
|
@@ -5675,16 +5677,16 @@ function pf({
|
|
|
5675
5677
|
] })
|
|
5676
5678
|
] });
|
|
5677
5679
|
}
|
|
5678
|
-
const
|
|
5680
|
+
const gf = {
|
|
5679
5681
|
metric_selector: "Displayed metric",
|
|
5680
5682
|
field_selector: "Group by field",
|
|
5681
5683
|
aggregation_selector: "Aggregation",
|
|
5682
5684
|
grain_selector: "Time grain"
|
|
5683
5685
|
};
|
|
5684
|
-
function
|
|
5686
|
+
function xf(t, n) {
|
|
5685
5687
|
return t && typeof t == "object" && "label" in t && typeof t.label == "string" && t.label.trim().length > 0 ? t.label : n || null;
|
|
5686
5688
|
}
|
|
5687
|
-
const
|
|
5689
|
+
const bf = {
|
|
5688
5690
|
metric_selector: "config_metric_selector",
|
|
5689
5691
|
field_selector: "config_field_selector",
|
|
5690
5692
|
aggregation_selector: "config_aggregation",
|
|
@@ -5693,7 +5695,7 @@ const xf = {
|
|
|
5693
5695
|
function en(t, n) {
|
|
5694
5696
|
return `${t}:${n}`;
|
|
5695
5697
|
}
|
|
5696
|
-
function
|
|
5698
|
+
function vf(t, n, r, s, l) {
|
|
5697
5699
|
const c = new Set(
|
|
5698
5700
|
r.filter(
|
|
5699
5701
|
(i) => i.target !== "sql_param" && i.target !== "presentation_currency"
|
|
@@ -5704,7 +5706,7 @@ function bf(t, n, r, s, l) {
|
|
|
5704
5706
|
control: i,
|
|
5705
5707
|
matrixSpec: s,
|
|
5706
5708
|
resolveDataType: l
|
|
5707
|
-
}).map((p) => p.value), f =
|
|
5709
|
+
}).map((p) => p.value), f = bf[i.type], m = [
|
|
5708
5710
|
...f && o.includes(f) ? [f] : [],
|
|
5709
5711
|
...o.filter((p) => p !== f)
|
|
5710
5712
|
].find(
|
|
@@ -5721,7 +5723,7 @@ function bf(t, n, r, s, l) {
|
|
|
5721
5723
|
mapping: {}
|
|
5722
5724
|
} : null;
|
|
5723
5725
|
}
|
|
5724
|
-
function
|
|
5726
|
+
function yf({
|
|
5725
5727
|
card: t,
|
|
5726
5728
|
dashboardControls: n,
|
|
5727
5729
|
bindings: r,
|
|
@@ -5748,7 +5750,7 @@ function vf({
|
|
|
5748
5750
|
...t.controls || []
|
|
5749
5751
|
], [h, y] = G(
|
|
5750
5752
|
{}
|
|
5751
|
-
), k =
|
|
5753
|
+
), k = Eh({
|
|
5752
5754
|
sql: t.sql,
|
|
5753
5755
|
controlBindings: t.controlBindings
|
|
5754
5756
|
});
|
|
@@ -5825,7 +5827,7 @@ function vf({
|
|
|
5825
5827
|
}, P = (S) => {
|
|
5826
5828
|
s(r.filter((C, M) => M !== S));
|
|
5827
5829
|
}, V = () => {
|
|
5828
|
-
const S =
|
|
5830
|
+
const S = vf(t, p, r, o, x);
|
|
5829
5831
|
S && s([...r, S]);
|
|
5830
5832
|
};
|
|
5831
5833
|
if (typeof t.sql == "string" && t.sql.trim().length > 0) {
|
|
@@ -5895,7 +5897,7 @@ function vf({
|
|
|
5895
5897
|
value: K,
|
|
5896
5898
|
label: (ie == null ? void 0 : ie.label) || K
|
|
5897
5899
|
};
|
|
5898
|
-
}), E = `${S.controlId}-${S.target}-${C}`, R = h[E] ?? C === 0, B = Object.keys(S.mapping).length, q = $ != null && $.type ?
|
|
5900
|
+
}), E = `${S.controlId}-${S.target}-${C}`, R = h[E] ?? C === 0, B = Object.keys(S.mapping).length, q = $ != null && $.type ? gf[$.type] || $.type : null;
|
|
5899
5901
|
return /* @__PURE__ */ a(
|
|
5900
5902
|
ta,
|
|
5901
5903
|
{
|
|
@@ -5969,7 +5971,7 @@ function vf({
|
|
|
5969
5971
|
F.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." }) : b.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: [
|
|
5970
5972
|
/* @__PURE__ */ e(O, { className: "text-xs", children: "Map each choice" }),
|
|
5971
5973
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: F.map((K) => {
|
|
5972
|
-
const ie = S.mapping[K.value], te = S.target === "config_metric_selector" || S.target === "config_field_selector" ? typeof ie == "string" ? ie : ie == null ? void 0 : ie.id : typeof ie == "string" ? ie : void 0, de = !i && typeof te == "string" && !b.some((ae) => ae.value === te), z =
|
|
5974
|
+
const ie = S.mapping[K.value], te = S.target === "config_metric_selector" || S.target === "config_field_selector" ? typeof ie == "string" ? ie : ie == null ? void 0 : ie.id : typeof ie == "string" ? ie : void 0, de = !i && typeof te == "string" && !b.some((ae) => ae.value === te), z = xf(
|
|
5973
5975
|
ie,
|
|
5974
5976
|
te
|
|
5975
5977
|
), H = te && de ? [
|
|
@@ -6071,15 +6073,15 @@ function vf({
|
|
|
6071
6073
|
] }) : null
|
|
6072
6074
|
] });
|
|
6073
6075
|
}
|
|
6074
|
-
function
|
|
6076
|
+
function Nf(t, n, r) {
|
|
6075
6077
|
const { eligibleTargets: s } = vi(
|
|
6076
6078
|
t,
|
|
6077
6079
|
n,
|
|
6078
6080
|
r
|
|
6079
|
-
), l =
|
|
6081
|
+
), l = Ih(t), c = new Map(
|
|
6080
6082
|
l.map((i) => [i.id, i])
|
|
6081
6083
|
), d = new Map(
|
|
6082
|
-
|
|
6084
|
+
Ah(t, r).map((i) => [
|
|
6083
6085
|
i.measureId,
|
|
6084
6086
|
i.label
|
|
6085
6087
|
])
|
|
@@ -6093,10 +6095,10 @@ function yf(t, n, r) {
|
|
|
6093
6095
|
};
|
|
6094
6096
|
});
|
|
6095
6097
|
}
|
|
6096
|
-
function
|
|
6098
|
+
function Cf(t) {
|
|
6097
6099
|
return t ? t.kind === "metric" ? t.metricId : t.kind === "column" ? t.columnKey : t.measureId : "invalid target";
|
|
6098
6100
|
}
|
|
6099
|
-
function
|
|
6101
|
+
function wf({
|
|
6100
6102
|
matrixCatalog: t,
|
|
6101
6103
|
card: n,
|
|
6102
6104
|
dashboardControls: r,
|
|
@@ -6104,13 +6106,13 @@ function Cf({
|
|
|
6104
6106
|
bindings: l,
|
|
6105
6107
|
onChange: c
|
|
6106
6108
|
}) {
|
|
6107
|
-
const d = [...r, ...n.controls || []], i = d.filter(
|
|
6108
|
-
() =>
|
|
6109
|
+
const d = [...r, ...n.controls || []], i = d.filter(Fh), o = le(
|
|
6110
|
+
() => Nf(n, s, t),
|
|
6109
6111
|
[n, s, t]
|
|
6110
6112
|
), f = le(
|
|
6111
6113
|
() => vi(n, s, t),
|
|
6112
6114
|
[n, s, t]
|
|
6113
|
-
), u =
|
|
6115
|
+
), u = Dh({
|
|
6114
6116
|
bindings: l,
|
|
6115
6117
|
controls: d,
|
|
6116
6118
|
...f
|
|
@@ -6119,7 +6121,7 @@ function Cf({
|
|
|
6119
6121
|
), w = (g) => {
|
|
6120
6122
|
if (!m)
|
|
6121
6123
|
return;
|
|
6122
|
-
const D =
|
|
6124
|
+
const D = yh({
|
|
6123
6125
|
card: n,
|
|
6124
6126
|
target: g,
|
|
6125
6127
|
resultColumnKeys: s,
|
|
@@ -6144,7 +6146,7 @@ function Cf({
|
|
|
6144
6146
|
g.controlId,
|
|
6145
6147
|
" →",
|
|
6146
6148
|
" ",
|
|
6147
|
-
|
|
6149
|
+
Cf(g.presentationTarget),
|
|
6148
6150
|
g.presentationTarget ? ` · ${w(g.presentationTarget) ?? "unavailable"}` : null
|
|
6149
6151
|
] }),
|
|
6150
6152
|
/* @__PURE__ */ e(
|
|
@@ -6195,7 +6197,7 @@ function Cf({
|
|
|
6195
6197
|
] })
|
|
6196
6198
|
] });
|
|
6197
6199
|
}
|
|
6198
|
-
const
|
|
6200
|
+
const Sf = [];
|
|
6199
6201
|
function Ur({
|
|
6200
6202
|
className: t,
|
|
6201
6203
|
triggerVariant: n = "icon",
|
|
@@ -6211,14 +6213,14 @@ function Ur({
|
|
|
6211
6213
|
(q) => q.queryResultColumns
|
|
6212
6214
|
), u = fe((q) => q.dashboard), p = fe(
|
|
6213
6215
|
(q) => q.dashboard.controls
|
|
6214
|
-
) ||
|
|
6216
|
+
) || Sf, { setCard: h, updateCardInFrame: y } = be(), [k, x] = G(null);
|
|
6215
6217
|
Ne(() => {
|
|
6216
6218
|
c && !k && (i != null && i.id) && x(i.id);
|
|
6217
6219
|
}, [i == null ? void 0 : i.id, c, k]), Ne(() => {
|
|
6218
6220
|
!c && k !== null && x(null);
|
|
6219
6221
|
}, [c, k]);
|
|
6220
6222
|
const v = le(() => k ? (o == null ? void 0 : o.cards.find((q) => q.id === k)) || ((i == null ? void 0 : i.id) === k ? i : void 0) : i, [i, o == null ? void 0 : o.cards, k]), N = (v == null ? void 0 : v.type) === "matrixTable" ? (E = v.config) == null ? void 0 : E.matrix : void 0, w = le(
|
|
6221
|
-
() => c && N ?
|
|
6223
|
+
() => c && N ? Mh(N.spec, v == null ? void 0 : v.controlBindings) : [],
|
|
6222
6224
|
[c, N, v == null ? void 0 : v.controlBindings]
|
|
6223
6225
|
), g = zc(w), D = le(() => g.catalog.map((q) => ({
|
|
6224
6226
|
...q.field,
|
|
@@ -6371,7 +6373,7 @@ function Ur({
|
|
|
6371
6373
|
] }),
|
|
6372
6374
|
v ? /* @__PURE__ */ a(me, { children: [
|
|
6373
6375
|
/* @__PURE__ */ e(
|
|
6374
|
-
|
|
6376
|
+
yf,
|
|
6375
6377
|
{
|
|
6376
6378
|
card: v,
|
|
6377
6379
|
dashboardControls: p,
|
|
@@ -6386,7 +6388,7 @@ function Ur({
|
|
|
6386
6388
|
}
|
|
6387
6389
|
),
|
|
6388
6390
|
/* @__PURE__ */ e("div", { className: "border-t pt-4", children: /* @__PURE__ */ e(
|
|
6389
|
-
|
|
6391
|
+
wf,
|
|
6390
6392
|
{
|
|
6391
6393
|
matrixCatalog: g.catalog,
|
|
6392
6394
|
card: v,
|
|
@@ -6444,7 +6446,7 @@ function $i({
|
|
|
6444
6446
|
"text"
|
|
6445
6447
|
].includes(c.type);
|
|
6446
6448
|
return u || m || r || s || l ? /* @__PURE__ */ a("div", { "data-info": "visual-settings", className: "flex items-center gap-2", children: [
|
|
6447
|
-
u && /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e(
|
|
6449
|
+
u && /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e(pf, {}) }),
|
|
6448
6450
|
m && /* @__PURE__ */ a(
|
|
6449
6451
|
nt,
|
|
6450
6452
|
{
|
|
@@ -6464,7 +6466,7 @@ function $i({
|
|
|
6464
6466
|
l && /* @__PURE__ */ e($r, {})
|
|
6465
6467
|
] }) : null;
|
|
6466
6468
|
}
|
|
6467
|
-
function
|
|
6469
|
+
function kf({
|
|
6468
6470
|
errorMessage: t,
|
|
6469
6471
|
errorSql: n,
|
|
6470
6472
|
onOpenInEditor: r
|
|
@@ -6500,7 +6502,7 @@ function Sf({
|
|
|
6500
6502
|
)
|
|
6501
6503
|
] });
|
|
6502
6504
|
}
|
|
6503
|
-
function
|
|
6505
|
+
function Tf({
|
|
6504
6506
|
isPreviewMode: t,
|
|
6505
6507
|
onPreviewToggle: n,
|
|
6506
6508
|
configCard: r
|
|
@@ -6768,7 +6770,7 @@ function ir({
|
|
|
6768
6770
|
I((re) => re.isDevMode);
|
|
6769
6771
|
const { switchCardTab: f, resetAllColumnSettings: u } = be(), m = Object.keys(((he = (He = l.preferences) == null ? void 0 : He.tablePrefs) == null ? void 0 : he.columnSettingsMap) ?? {}).length > 0 || Object.keys((($e = l.preferences) == null ? void 0 : $e.sqlColumns) ?? {}).length > 0, [p, h] = G({}), [y, k] = G(
|
|
6770
6772
|
() => /* @__PURE__ */ new Set()
|
|
6771
|
-
), { authToken: x } = Zt(), v = rm(x == null ? void 0 : x.accessToken), { compiledAppearance: N } =
|
|
6773
|
+
), { authToken: x } = Zt(), v = rm(x == null ? void 0 : x.accessToken), { compiledAppearance: N } = Vh(), w = le(
|
|
6772
6774
|
() => Hc(N),
|
|
6773
6775
|
[N]
|
|
6774
6776
|
), {
|
|
@@ -6974,7 +6976,7 @@ function ir({
|
|
|
6974
6976
|
isFetching: R,
|
|
6975
6977
|
isError: B
|
|
6976
6978
|
}) : l.type === "kpi" ? E || R ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Rt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : q ? /* @__PURE__ */ e(
|
|
6977
|
-
|
|
6979
|
+
kf,
|
|
6978
6980
|
{
|
|
6979
6981
|
errorMessage: q,
|
|
6980
6982
|
errorSql: K || l.sql || l.python,
|
|
@@ -7032,7 +7034,7 @@ function ir({
|
|
|
7032
7034
|
re.id
|
|
7033
7035
|
)),
|
|
7034
7036
|
/* @__PURE__ */ e(
|
|
7035
|
-
|
|
7037
|
+
Tf,
|
|
7036
7038
|
{
|
|
7037
7039
|
isPreviewMode: M,
|
|
7038
7040
|
onPreviewToggle: d,
|
|
@@ -7135,7 +7137,7 @@ function Vn({
|
|
|
7135
7137
|
isCurrentQueryResult: S
|
|
7136
7138
|
} = at(v), C = Ve(P);
|
|
7137
7139
|
C.current = P;
|
|
7138
|
-
const M = le(() => (N == null ? void 0 : N.records) || [], [N == null ? void 0 : N.records]), { cardFilterValues: $ } =
|
|
7140
|
+
const M = le(() => (N == null ? void 0 : N.records) || [], [N == null ? void 0 : N.records]), { cardFilterValues: $ } = jp(
|
|
7139
7141
|
(c == null ? void 0 : c.id) ?? ""
|
|
7140
7142
|
), [U, L] = G(!1), b = Pl(c), [_, T] = G();
|
|
7141
7143
|
Ne(() => {
|
|
@@ -7175,7 +7177,7 @@ function Vn({
|
|
|
7175
7177
|
sd(
|
|
7176
7178
|
ld({
|
|
7177
7179
|
records: E,
|
|
7178
|
-
encoding:
|
|
7180
|
+
encoding: _h({
|
|
7179
7181
|
dashboardDefault: u
|
|
7180
7182
|
})
|
|
7181
7183
|
}),
|
|
@@ -7442,7 +7444,7 @@ function Vn({
|
|
|
7442
7444
|
onSelect: q,
|
|
7443
7445
|
className: "gap-2 text-[13px]",
|
|
7444
7446
|
children: [
|
|
7445
|
-
/* @__PURE__ */ e(
|
|
7447
|
+
/* @__PURE__ */ e(Jh, { className: "h-3.5 w-3.5" }),
|
|
7446
7448
|
"Download JSON"
|
|
7447
7449
|
]
|
|
7448
7450
|
}
|
|
@@ -7463,7 +7465,7 @@ function Vn({
|
|
|
7463
7465
|
/* @__PURE__ */ e(Ss, {}),
|
|
7464
7466
|
/* @__PURE__ */ e(ks, { children: "Customize" }),
|
|
7465
7467
|
!["table", "detailTable", "custom"].includes(c.type) && f && /* @__PURE__ */ e(
|
|
7466
|
-
|
|
7468
|
+
sf,
|
|
7467
7469
|
{
|
|
7468
7470
|
triggerVariant: "menu",
|
|
7469
7471
|
className: "w-full"
|
|
@@ -7493,7 +7495,7 @@ function Vn({
|
|
|
7493
7495
|
},
|
|
7494
7496
|
className: "gap-2 text-[13px]",
|
|
7495
7497
|
children: [
|
|
7496
|
-
/* @__PURE__ */ e(
|
|
7498
|
+
/* @__PURE__ */ e(Bh, { className: "h-3.5 w-3.5" }),
|
|
7497
7499
|
"Table settings"
|
|
7498
7500
|
]
|
|
7499
7501
|
}
|
|
@@ -7523,7 +7525,7 @@ function Vn({
|
|
|
7523
7525
|
}
|
|
7524
7526
|
);
|
|
7525
7527
|
}
|
|
7526
|
-
function
|
|
7528
|
+
function Ef({ onToggleEditor: t, children: n }) {
|
|
7527
7529
|
return /* @__PURE__ */ a("div", { className: "relative isolate shrink-0 border-t border-border bg-muted/30 @container", children: [
|
|
7528
7530
|
/* @__PURE__ */ e(
|
|
7529
7531
|
il,
|
|
@@ -7613,7 +7615,7 @@ function Ga({
|
|
|
7613
7615
|
}
|
|
7614
7616
|
);
|
|
7615
7617
|
}
|
|
7616
|
-
function
|
|
7618
|
+
function Ff(t, n) {
|
|
7617
7619
|
return tr(t, n) || null;
|
|
7618
7620
|
}
|
|
7619
7621
|
function Sa(t) {
|
|
@@ -7627,7 +7629,7 @@ function Sa(t) {
|
|
|
7627
7629
|
const r = t.match(/^(\d+)\+$/);
|
|
7628
7630
|
return r ? `Tabs ${Number(r[1]) + 1}+` : `Tab ${t}`;
|
|
7629
7631
|
}
|
|
7630
|
-
function
|
|
7632
|
+
function Df(t) {
|
|
7631
7633
|
return t ? Array.isArray(t) ? t : [t] : [];
|
|
7632
7634
|
}
|
|
7633
7635
|
function Bn(t) {
|
|
@@ -7638,7 +7640,7 @@ function Bn(t) {
|
|
|
7638
7640
|
const n = !!((l = t.sql) != null && l.trim()), r = Oa(t.config);
|
|
7639
7641
|
return n || r;
|
|
7640
7642
|
}
|
|
7641
|
-
function
|
|
7643
|
+
function If({
|
|
7642
7644
|
slots: t,
|
|
7643
7645
|
cards: n,
|
|
7644
7646
|
minInputs: r
|
|
@@ -7695,16 +7697,16 @@ function Df({
|
|
|
7695
7697
|
}
|
|
7696
7698
|
}), n.forEach((c, d) => {
|
|
7697
7699
|
if (!c) return;
|
|
7698
|
-
const i =
|
|
7700
|
+
const i = Ff(t, d);
|
|
7699
7701
|
if (!i || !i.expectedType) return;
|
|
7700
|
-
const o =
|
|
7702
|
+
const o = Df(i.expectedType);
|
|
7701
7703
|
o.length !== 0 && (o.includes(c.type) || s.push({
|
|
7702
7704
|
type: "wrong-type",
|
|
7703
7705
|
message: `${Sa(d)} ("${i.label}") expects ${o.join(", ")}, but is configured as ${c.type}.`
|
|
7704
7706
|
}));
|
|
7705
7707
|
})), s;
|
|
7706
7708
|
}
|
|
7707
|
-
const
|
|
7709
|
+
const Af = {
|
|
7708
7710
|
table: ({ children: t }) => /* @__PURE__ */ e("table", { className: "my-3 w-full border-collapse overflow-hidden rounded-md border border-border text-sm", children: t }),
|
|
7709
7711
|
thead: ({ children: t }) => /* @__PURE__ */ e("thead", { className: "bg-muted", children: t }),
|
|
7710
7712
|
th: ({ children: t }) => /* @__PURE__ */ e("th", { className: "border border-border px-3 py-2 text-left font-medium", children: t }),
|
|
@@ -7751,7 +7753,7 @@ function Ui() {
|
|
|
7751
7753
|
}),
|
|
7752
7754
|
[v, u == null ? void 0 : u.slots]
|
|
7753
7755
|
), w = le(
|
|
7754
|
-
() =>
|
|
7756
|
+
() => If({
|
|
7755
7757
|
slots: u == null ? void 0 : u.slots,
|
|
7756
7758
|
cards: N,
|
|
7757
7759
|
minInputs: y
|
|
@@ -7966,7 +7968,7 @@ function Ui() {
|
|
|
7966
7968
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && (!p || h) && /* @__PURE__ */ e(me, { children: o && /* @__PURE__ */ e(
|
|
7967
7969
|
Ga,
|
|
7968
7970
|
{
|
|
7969
|
-
icon: /* @__PURE__ */ e(
|
|
7971
|
+
icon: /* @__PURE__ */ e(Gh, { className: "h-3.5 w-3.5" }),
|
|
7970
7972
|
className: "h-9 w-full",
|
|
7971
7973
|
label: "Select Component",
|
|
7972
7974
|
options: (o == null ? void 0 : o.map((b) => ({
|
|
@@ -8020,7 +8022,7 @@ function Ui() {
|
|
|
8020
8022
|
od,
|
|
8021
8023
|
{
|
|
8022
8024
|
remarkPlugins: [cd],
|
|
8023
|
-
components:
|
|
8025
|
+
components: Af,
|
|
8024
8026
|
children: u.docs.dataSchema
|
|
8025
8027
|
}
|
|
8026
8028
|
) })
|
|
@@ -8091,7 +8093,7 @@ function Gi(t, n, r) {
|
|
|
8091
8093
|
tn(n)
|
|
8092
8094
|
) : s;
|
|
8093
8095
|
}
|
|
8094
|
-
function
|
|
8096
|
+
function Mf(t, n) {
|
|
8095
8097
|
return {
|
|
8096
8098
|
...t,
|
|
8097
8099
|
decimalPlaces: void 0,
|
|
@@ -8109,7 +8111,7 @@ function Hs(t) {
|
|
|
8109
8111
|
maximumFractionDigits: t.maximumFractionDigits ?? n
|
|
8110
8112
|
};
|
|
8111
8113
|
}
|
|
8112
|
-
function
|
|
8114
|
+
function Rf(t, n) {
|
|
8113
8115
|
const r = t.type || "auto";
|
|
8114
8116
|
return r === "auto" ? t : r === "duration" ? {
|
|
8115
8117
|
type: "duration",
|
|
@@ -8135,7 +8137,7 @@ function Hi(t, n) {
|
|
|
8135
8137
|
maximumFractionDigits: n
|
|
8136
8138
|
};
|
|
8137
8139
|
}
|
|
8138
|
-
const Kn = "__report_default__",
|
|
8140
|
+
const Kn = "__report_default__", Pf = [
|
|
8139
8141
|
"auto",
|
|
8140
8142
|
"number",
|
|
8141
8143
|
"currency",
|
|
@@ -8145,7 +8147,7 @@ const Kn = "__report_default__", Rf = [
|
|
|
8145
8147
|
"duration"
|
|
8146
8148
|
];
|
|
8147
8149
|
function Ji(t, n) {
|
|
8148
|
-
return
|
|
8150
|
+
return Pf.filter((r) => r !== "auto" && (!t || t.includes(r) || r === n));
|
|
8149
8151
|
}
|
|
8150
8152
|
const Js = [
|
|
8151
8153
|
// 🌐 Global Reserve & Major Currencies
|
|
@@ -8206,12 +8208,12 @@ const Js = [
|
|
|
8206
8208
|
{ value: "minute", label: "Minutes" },
|
|
8207
8209
|
{ value: "hour", label: "Hours" },
|
|
8208
8210
|
{ value: "day", label: "Days" }
|
|
8209
|
-
],
|
|
8211
|
+
], Of = [
|
|
8210
8212
|
{ value: "compact", label: "Compact (6min 32s)" },
|
|
8211
8213
|
{ value: "digital", label: "Digital (6:32)" },
|
|
8212
8214
|
{ value: "long", label: "Long (6 minutes 32 seconds)" }
|
|
8213
|
-
],
|
|
8214
|
-
function
|
|
8215
|
+
], Lf = (t) => t.charAt(0).toUpperCase() + t.slice(1);
|
|
8216
|
+
function _f(t, n) {
|
|
8215
8217
|
try {
|
|
8216
8218
|
return fh(
|
|
8217
8219
|
t,
|
|
@@ -8232,7 +8234,7 @@ function La({
|
|
|
8232
8234
|
drawnTypes: i
|
|
8233
8235
|
}) {
|
|
8234
8236
|
var S;
|
|
8235
|
-
const o = t.type || "auto", f =
|
|
8237
|
+
const o = t.type || "auto", f = Rf(t, {
|
|
8236
8238
|
preserveSparseCurrency: !!c
|
|
8237
8239
|
}), u = (C) => {
|
|
8238
8240
|
C.stopPropagation();
|
|
@@ -8241,7 +8243,7 @@ function La({
|
|
|
8241
8243
|
...f,
|
|
8242
8244
|
[C]: M
|
|
8243
8245
|
});
|
|
8244
|
-
}, p = f.decimalPlaces ?? f.maximumFractionDigits ?? f.minimumFractionDigits, h = t.currency ?? (c == null ? void 0 : c.currency) ?? "USD", y = t.locale ?? (c == null ? void 0 : c.locale) ?? "en-US", k = o === "currency" ?
|
|
8246
|
+
}, p = f.decimalPlaces ?? f.maximumFractionDigits ?? f.minimumFractionDigits, h = t.currency ?? (c == null ? void 0 : c.currency) ?? "USD", y = t.locale ?? (c == null ? void 0 : c.locale) ?? "en-US", k = o === "currency" ? _f(
|
|
8245
8247
|
y,
|
|
8246
8248
|
h
|
|
8247
8249
|
) : void 0, x = p ?? k ?? tn(o), v = o === "currency" && f.decimalPlaces === void 0 && f.minimumFractionDigits === void 0 && f.maximumFractionDigits === void 0, [N, w] = G(
|
|
@@ -8259,7 +8261,7 @@ function La({
|
|
|
8259
8261
|
n(
|
|
8260
8262
|
c && C === "currency" && t.type !== "currency" ? Hs(M) : M
|
|
8261
8263
|
);
|
|
8262
|
-
}, P = (C) => c && o === "currency" ?
|
|
8264
|
+
}, P = (C) => c && o === "currency" ? Mf(
|
|
8263
8265
|
f,
|
|
8264
8266
|
C
|
|
8265
8267
|
) : Hi(f, C), V = ((S = Js.find(
|
|
@@ -8290,7 +8292,7 @@ function La({
|
|
|
8290
8292
|
children: /* @__PURE__ */ e(Z, {})
|
|
8291
8293
|
}
|
|
8292
8294
|
),
|
|
8293
|
-
/* @__PURE__ */ e(ee, { children: [...d ? ["auto"] : [], ...Ji(i, o)].map((C) => /* @__PURE__ */ e(j, { value: C, className: "text-xs", children: C === "auto" ? "Auto (Default)" :
|
|
8295
|
+
/* @__PURE__ */ e(ee, { children: [...d ? ["auto"] : [], ...Ji(i, o)].map((C) => /* @__PURE__ */ e(j, { value: C, className: "text-xs", children: C === "auto" ? "Auto (Default)" : Lf(C) }, C)) })
|
|
8294
8296
|
]
|
|
8295
8297
|
}
|
|
8296
8298
|
)
|
|
@@ -8537,7 +8539,7 @@ function La({
|
|
|
8537
8539
|
children: /* @__PURE__ */ e(Z, {})
|
|
8538
8540
|
}
|
|
8539
8541
|
),
|
|
8540
|
-
/* @__PURE__ */ e(ee, { children:
|
|
8542
|
+
/* @__PURE__ */ e(ee, { children: Of.map((C) => /* @__PURE__ */ e(
|
|
8541
8543
|
j,
|
|
8542
8544
|
{
|
|
8543
8545
|
value: C.value,
|
|
@@ -8634,24 +8636,24 @@ function Gr({ cardId: t }) {
|
|
|
8634
8636
|
"."
|
|
8635
8637
|
] });
|
|
8636
8638
|
}
|
|
8637
|
-
const
|
|
8639
|
+
const Vf = {
|
|
8638
8640
|
type: "number",
|
|
8639
8641
|
minimumFractionDigits: 0,
|
|
8640
8642
|
maximumFractionDigits: 0
|
|
8641
8643
|
};
|
|
8642
|
-
function
|
|
8644
|
+
function Bf(t) {
|
|
8643
8645
|
var n;
|
|
8644
|
-
return xi((n = t == null ? void 0 : t.sqlKpiValue) == null ? void 0 : n.format) ||
|
|
8646
|
+
return xi((n = t == null ? void 0 : t.sqlKpiValue) == null ? void 0 : n.format) || Vf;
|
|
8645
8647
|
}
|
|
8646
8648
|
function Qs(t, n) {
|
|
8647
8649
|
const r = n ? bi(n) : void 0, { format: s, ...l } = t.sqlKpiValue ?? {}, c = r ? { ...l, format: r } : l, { sqlKpiValue: d, ...i } = t;
|
|
8648
8650
|
return Object.keys(c).length ? { ...i, sqlKpiValue: c } : i;
|
|
8649
8651
|
}
|
|
8650
|
-
function
|
|
8652
|
+
function Kf() {
|
|
8651
8653
|
var f, u;
|
|
8652
8654
|
const t = I((m) => m.card), n = I(
|
|
8653
8655
|
(m) => m.actions.setCardPreferences
|
|
8654
|
-
), r = _l() ?? ha.locale, s = Vl() ?? ha.defaultCurrency, l = dd(t) === "config", c =
|
|
8656
|
+
), r = _l() ?? ha.locale, s = Vl() ?? ha.defaultCurrency, l = dd(t) === "config", c = Bf(t.preferences), d = !!((u = (f = t.preferences) == null ? void 0 : f.sqlKpiValue) != null && u.format), i = (m) => {
|
|
8655
8657
|
const p = I.getState().card.preferences ?? {};
|
|
8656
8658
|
n(Qs(p, m));
|
|
8657
8659
|
}, o = (m) => {
|
|
@@ -8713,7 +8715,7 @@ function Ys({ card: t }) {
|
|
|
8713
8715
|
)
|
|
8714
8716
|
] }) : null;
|
|
8715
8717
|
}
|
|
8716
|
-
const
|
|
8718
|
+
const jf = {
|
|
8717
8719
|
combo: {
|
|
8718
8720
|
label: "Combo Chart",
|
|
8719
8721
|
query: "SELECT x-axis, metric-1, metric-2, ... FROM table",
|
|
@@ -8969,9 +8971,9 @@ const Kf = {
|
|
|
8969
8971
|
}
|
|
8970
8972
|
};
|
|
8971
8973
|
function Qi(t) {
|
|
8972
|
-
return
|
|
8974
|
+
return jf[t];
|
|
8973
8975
|
}
|
|
8974
|
-
function
|
|
8976
|
+
function qf({
|
|
8975
8977
|
chartType: t,
|
|
8976
8978
|
showDocsLink: n = !0
|
|
8977
8979
|
}) {
|
|
@@ -9023,7 +9025,7 @@ function jf({
|
|
|
9023
9025
|
)
|
|
9024
9026
|
] }) : null;
|
|
9025
9027
|
}
|
|
9026
|
-
function
|
|
9028
|
+
function $f({
|
|
9027
9029
|
chartType: t
|
|
9028
9030
|
}) {
|
|
9029
9031
|
return Qi(t) ? /* @__PURE__ */ a(ca, { openDelay: 200, children: [
|
|
@@ -9042,7 +9044,7 @@ function qf({
|
|
|
9042
9044
|
side: "left",
|
|
9043
9045
|
align: "start",
|
|
9044
9046
|
sideOffset: 8,
|
|
9045
|
-
children: /* @__PURE__ */ e(
|
|
9047
|
+
children: /* @__PURE__ */ e(qf, { chartType: t })
|
|
9046
9048
|
}
|
|
9047
9049
|
)
|
|
9048
9050
|
] }) : null;
|
|
@@ -9053,16 +9055,16 @@ function Yi({
|
|
|
9053
9055
|
}) {
|
|
9054
9056
|
return /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
9055
9057
|
/* @__PURE__ */ e("h3", { className: "text-xs font-medium", children: n }),
|
|
9056
|
-
/* @__PURE__ */ e(
|
|
9058
|
+
/* @__PURE__ */ e($f, { chartType: t })
|
|
9057
9059
|
] });
|
|
9058
9060
|
}
|
|
9059
|
-
function
|
|
9061
|
+
function zf() {
|
|
9060
9062
|
const t = I(
|
|
9061
9063
|
(l) => !Oa(l.card.config)
|
|
9062
9064
|
), n = I(
|
|
9063
9065
|
(l) => {
|
|
9064
9066
|
var c, d;
|
|
9065
|
-
return ((d = (c = l.card.preferences) == null ? void 0 : c.sqlKpiValue) == null ? void 0 : d.comparisonPolarity) ??
|
|
9067
|
+
return ((d = (c = l.card.preferences) == null ? void 0 : c.sqlKpiValue) == null ? void 0 : d.comparisonPolarity) ?? Kh;
|
|
9066
9068
|
}
|
|
9067
9069
|
), r = I(
|
|
9068
9070
|
(l) => l.actions.setCardPreferences
|
|
@@ -9074,7 +9076,7 @@ function $f() {
|
|
|
9074
9076
|
};
|
|
9075
9077
|
return /* @__PURE__ */ a("div", { className: "space-y-6 px-6 py-4", children: [
|
|
9076
9078
|
/* @__PURE__ */ e(Yi, { chartType: "kpi" }),
|
|
9077
|
-
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(
|
|
9079
|
+
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(Kf, {}) }),
|
|
9078
9080
|
t && /* @__PURE__ */ a("section", { className: "space-y-1.5", children: [
|
|
9079
9081
|
/* @__PURE__ */ e(O, { htmlFor: "query-kpi-favorable-direction", className: "text-xs", children: "Favorable direction" }),
|
|
9080
9082
|
/* @__PURE__ */ a(
|
|
@@ -9178,7 +9180,7 @@ function an({
|
|
|
9178
9180
|
/* @__PURE__ */ e(Se, { id: s, size: "xs", checked: n, onCheckedChange: r })
|
|
9179
9181
|
] });
|
|
9180
9182
|
}
|
|
9181
|
-
function
|
|
9183
|
+
function Uf({
|
|
9182
9184
|
label: t,
|
|
9183
9185
|
disabled: n,
|
|
9184
9186
|
onClick: r,
|
|
@@ -9298,7 +9300,7 @@ function Xi(t, n, r) {
|
|
|
9298
9300
|
...s ? [[Ja(r), r]] : []
|
|
9299
9301
|
]);
|
|
9300
9302
|
}
|
|
9301
|
-
const
|
|
9303
|
+
const Gf = [
|
|
9302
9304
|
{ value: ">", label: "Greater than" },
|
|
9303
9305
|
{ value: ">=", label: "At least" },
|
|
9304
9306
|
{ value: "<", label: "Less than" },
|
|
@@ -9307,8 +9309,8 @@ const Uf = [
|
|
|
9307
9309
|
{ value: "!=", label: "Not equal to" },
|
|
9308
9310
|
{ value: "between", label: "Between" },
|
|
9309
9311
|
{ value: "not between", label: "Not between" }
|
|
9310
|
-
],
|
|
9311
|
-
function
|
|
9312
|
+
], Hf = (t) => t === "between" || t === "not between";
|
|
9313
|
+
function Jf({
|
|
9312
9314
|
value: t,
|
|
9313
9315
|
onChange: n
|
|
9314
9316
|
}) {
|
|
@@ -9347,7 +9349,7 @@ function Hf({
|
|
|
9347
9349
|
}
|
|
9348
9350
|
);
|
|
9349
9351
|
}
|
|
9350
|
-
function
|
|
9352
|
+
function Qf({
|
|
9351
9353
|
axis: t,
|
|
9352
9354
|
level: n,
|
|
9353
9355
|
value: r,
|
|
@@ -9559,18 +9561,18 @@ function Jf({
|
|
|
9559
9561
|
{
|
|
9560
9562
|
label: "Condition",
|
|
9561
9563
|
value: i.operator,
|
|
9562
|
-
options:
|
|
9564
|
+
options: Gf,
|
|
9563
9565
|
onChange: (x) => {
|
|
9564
9566
|
const v = x, N = y ? y[0] : i.value;
|
|
9565
9567
|
h({
|
|
9566
9568
|
operator: v,
|
|
9567
|
-
value:
|
|
9569
|
+
value: Hf(v) ? y ?? [N, N] : N
|
|
9568
9570
|
});
|
|
9569
9571
|
}
|
|
9570
9572
|
}
|
|
9571
9573
|
),
|
|
9572
9574
|
/* @__PURE__ */ e(
|
|
9573
|
-
|
|
9575
|
+
Jf,
|
|
9574
9576
|
{
|
|
9575
9577
|
value: i.value,
|
|
9576
9578
|
onChange: (x) => h({ value: x })
|
|
@@ -9580,7 +9582,7 @@ function Jf({
|
|
|
9580
9582
|
] })
|
|
9581
9583
|
] });
|
|
9582
9584
|
}
|
|
9583
|
-
function
|
|
9585
|
+
function Yf(t, n) {
|
|
9584
9586
|
var s;
|
|
9585
9587
|
return (s = gm({
|
|
9586
9588
|
type: "matrixTable",
|
|
@@ -9588,7 +9590,7 @@ function Qf(t, n) {
|
|
|
9588
9590
|
preferences: { conditionalFormatting: { version: 1, rules: n } }
|
|
9589
9591
|
})[0]) == null ? void 0 : s.message;
|
|
9590
9592
|
}
|
|
9591
|
-
function
|
|
9593
|
+
function Wf({
|
|
9592
9594
|
cardId: t,
|
|
9593
9595
|
value: n,
|
|
9594
9596
|
scopeSelection: r,
|
|
@@ -9599,7 +9601,7 @@ function Yf({
|
|
|
9599
9601
|
t,
|
|
9600
9602
|
s,
|
|
9601
9603
|
l,
|
|
9602
|
-
(m) =>
|
|
9604
|
+
(m) => Yf(n, m)
|
|
9603
9605
|
), d = c.rules, i = (m) => c.onChange(m(d)), o = d.find((m) => !md(m)), f = o ? `${o.name || "the new rule"} is incomplete` : c.issue ?? "", u = n.spec.measures[0];
|
|
9604
9606
|
return u ? /* @__PURE__ */ a("div", { className: "min-w-0 space-y-2", children: [
|
|
9605
9607
|
f && /* @__PURE__ */ a("p", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -9716,7 +9718,7 @@ function Yf({
|
|
|
9716
9718
|
})
|
|
9717
9719
|
] }) : /* @__PURE__ */ e("p", { role: "status", className: "text-xs text-muted-foreground", children: "No metrics available" });
|
|
9718
9720
|
}
|
|
9719
|
-
function
|
|
9721
|
+
function Xf({
|
|
9720
9722
|
cardId: t,
|
|
9721
9723
|
section: n,
|
|
9722
9724
|
value: r,
|
|
@@ -9774,7 +9776,7 @@ function Wf({
|
|
|
9774
9776
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
9775
9777
|
/* @__PURE__ */ e("strong", { children: "Updated references" }),
|
|
9776
9778
|
/* @__PURE__ */ e(
|
|
9777
|
-
|
|
9779
|
+
Uf,
|
|
9778
9780
|
{
|
|
9779
9781
|
label: "Dismiss cleanup notices",
|
|
9780
9782
|
onClick: () => m([]),
|
|
@@ -9877,7 +9879,7 @@ function Wf({
|
|
|
9877
9879
|
}
|
|
9878
9880
|
),
|
|
9879
9881
|
/* @__PURE__ */ e(
|
|
9880
|
-
|
|
9882
|
+
Qf,
|
|
9881
9883
|
{
|
|
9882
9884
|
axis: w,
|
|
9883
9885
|
level: g,
|
|
@@ -10060,7 +10062,7 @@ function Wf({
|
|
|
10060
10062
|
children: [
|
|
10061
10063
|
/* @__PURE__ */ e("h2", { className: "text-xs font-semibold", children: "Conditional formatting" }),
|
|
10062
10064
|
/* @__PURE__ */ e(
|
|
10063
|
-
|
|
10065
|
+
Wf,
|
|
10064
10066
|
{
|
|
10065
10067
|
cardId: t ?? "",
|
|
10066
10068
|
value: r,
|
|
@@ -10079,14 +10081,14 @@ function or({ fieldId: t, section: n = "table" }) {
|
|
|
10079
10081
|
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__ */ a(me, { children: [
|
|
10080
10082
|
n === "conditional-formatting" && !t && /* @__PURE__ */ e("div", { className: "px-3 pt-3", children: /* @__PURE__ */ e(Gr, { cardId: r.id }) }),
|
|
10081
10083
|
/* @__PURE__ */ e(
|
|
10082
|
-
|
|
10084
|
+
Xf,
|
|
10083
10085
|
{
|
|
10084
10086
|
cardId: r.id,
|
|
10085
10087
|
value: i.config,
|
|
10086
10088
|
section: t ? { kind: "field", id: t } : { kind: n },
|
|
10087
10089
|
scopeSelection: (c == null ? void 0 : c.cardId) === r.id ? c.coordinate : void 0,
|
|
10088
10090
|
bindings: r.controlBindings,
|
|
10089
|
-
modelFormats:
|
|
10091
|
+
modelFormats: Rh(i.config.spec, d.catalog),
|
|
10090
10092
|
conditionalRules: Ar(r),
|
|
10091
10093
|
onConditionalRulesChange: l,
|
|
10092
10094
|
availableFields: d.catalog.map((o) => ({
|
|
@@ -10103,13 +10105,13 @@ function or({ fieldId: t, section: n = "table" }) {
|
|
|
10103
10105
|
)
|
|
10104
10106
|
] });
|
|
10105
10107
|
}
|
|
10106
|
-
const
|
|
10108
|
+
const Zf = {
|
|
10107
10109
|
green: "#16a34a",
|
|
10108
10110
|
red: "#dc2626",
|
|
10109
10111
|
neutral: "#6b7280"
|
|
10110
10112
|
};
|
|
10111
|
-
function
|
|
10112
|
-
return t && (
|
|
10113
|
+
function eg(t) {
|
|
10114
|
+
return t && (Zf[t] ?? t);
|
|
10113
10115
|
}
|
|
10114
10116
|
function Zi({
|
|
10115
10117
|
value: t,
|
|
@@ -10229,7 +10231,7 @@ function Zi({
|
|
|
10229
10231
|
/* @__PURE__ */ e(
|
|
10230
10232
|
Zn,
|
|
10231
10233
|
{
|
|
10232
|
-
value:
|
|
10234
|
+
value: eg(s[l] || d),
|
|
10233
10235
|
onChange: (i) => n({
|
|
10234
10236
|
colors: { ...s, [l]: i || d }
|
|
10235
10237
|
}),
|
|
@@ -10284,7 +10286,7 @@ function Zi({
|
|
|
10284
10286
|
)
|
|
10285
10287
|
] });
|
|
10286
10288
|
}
|
|
10287
|
-
function
|
|
10289
|
+
function tg() {
|
|
10288
10290
|
var m, p, h, y, k;
|
|
10289
10291
|
const t = I((x) => x.card), { setCardPreferences: n } = be(), r = st(), s = ((m = t.config) == null ? void 0 : m.metricColumns) || [], l = s.length === 2 && (((p = t.config) == null ? void 0 : p.groupByColumns) || []).length === 0, c = s.some(
|
|
10290
10292
|
(x) => {
|
|
@@ -10299,7 +10301,7 @@ function eg() {
|
|
|
10299
10301
|
), f = r === "kpi" && ((y = t.preferences) == null ? void 0 : y.metricPairComparisonEnabled) === !0, u = c || f;
|
|
10300
10302
|
return /* @__PURE__ */ a(Me, { value: "comparison", className: "border-none", children: [
|
|
10301
10303
|
/* @__PURE__ */ e(Re, { className: "flex items-center gap-2 py-2 text-[12px] hover:no-underline [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
10302
|
-
/* @__PURE__ */ e(
|
|
10304
|
+
/* @__PURE__ */ e(Yh, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
10303
10305
|
/* @__PURE__ */ e("span", { children: "Comparison" })
|
|
10304
10306
|
] }) }),
|
|
10305
10307
|
/* @__PURE__ */ a(Pe, { className: "space-y-4 pb-4 pt-2", children: [
|
|
@@ -10564,7 +10566,7 @@ function eo({
|
|
|
10564
10566
|
) : null
|
|
10565
10567
|
] }),
|
|
10566
10568
|
/* @__PURE__ */ e(Ct, { value: "conditional-formatting", className: "mt-0", children: p === "matrixTable" ? /* @__PURE__ */ e(or, { section: "conditional-formatting" }) : v ? A ? /* @__PURE__ */ e(
|
|
10567
|
-
|
|
10569
|
+
ag,
|
|
10568
10570
|
{
|
|
10569
10571
|
columnId: A,
|
|
10570
10572
|
availableColumns: k
|
|
@@ -10574,7 +10576,7 @@ function eo({
|
|
|
10574
10576
|
}
|
|
10575
10577
|
) });
|
|
10576
10578
|
}
|
|
10577
|
-
function
|
|
10579
|
+
function ag({
|
|
10578
10580
|
columnId: t,
|
|
10579
10581
|
availableColumns: n
|
|
10580
10582
|
}) {
|
|
@@ -10599,7 +10601,7 @@ function tg({
|
|
|
10599
10601
|
)
|
|
10600
10602
|
] });
|
|
10601
10603
|
}
|
|
10602
|
-
function
|
|
10604
|
+
function ng() {
|
|
10603
10605
|
var l;
|
|
10604
10606
|
const t = I((c) => c.card.preferences), { setCardPreferences: n } = I((c) => c.actions), r = (l = t == null ? void 0 : t.textVisualOptions) != null && l.isDynamicText ? "dynamic" : "static";
|
|
10605
10607
|
function s(c) {
|
|
@@ -10616,14 +10618,14 @@ function ag() {
|
|
|
10616
10618
|
/* @__PURE__ */ e(tt, { value: "dynamic", children: "Dynamic" })
|
|
10617
10619
|
] }) });
|
|
10618
10620
|
}
|
|
10619
|
-
function
|
|
10621
|
+
function rg() {
|
|
10620
10622
|
return /* @__PURE__ */ a("div", { className: "space-y-2 px-6 py-4", children: [
|
|
10621
10623
|
/* @__PURE__ */ e("div", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Text mode" }),
|
|
10622
|
-
/* @__PURE__ */ e(
|
|
10624
|
+
/* @__PURE__ */ e(ng, {}),
|
|
10623
10625
|
/* @__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." })
|
|
10624
10626
|
] });
|
|
10625
10627
|
}
|
|
10626
|
-
function
|
|
10628
|
+
function sg({ color: t, onColorChange: n, onClose: r }) {
|
|
10627
10629
|
const [s, l] = G(0), [c, d] = G(100), [i, o] = G(50), [f, u] = G(t);
|
|
10628
10630
|
Ne(() => {
|
|
10629
10631
|
const x = Zs(t);
|
|
@@ -10638,7 +10640,7 @@ function rg({ color: t, onColorChange: n, onClose: r }) {
|
|
|
10638
10640
|
const v = x.currentTarget.getBoundingClientRect(), N = Math.max(0, Math.min(1, (x.clientX - v.left) / v.width)), w = Math.max(0, Math.min(1, (x.clientY - v.top) / v.height)), g = N * 100, D = (1 - w) * 100;
|
|
10639
10641
|
d(g), o(D), h(s, g, D);
|
|
10640
10642
|
}, h = (x, v, N) => {
|
|
10641
|
-
const w =
|
|
10643
|
+
const w = ig(x, v, N), g = lg(w.r, w.g, w.b);
|
|
10642
10644
|
u(g);
|
|
10643
10645
|
}, y = (x) => {
|
|
10644
10646
|
if (u(x), /^#[0-9A-Fa-f]{6}$/.test(x)) {
|
|
@@ -10758,7 +10760,7 @@ function Zs(t) {
|
|
|
10758
10760
|
b: parseInt(n[3], 16)
|
|
10759
10761
|
} : null;
|
|
10760
10762
|
}
|
|
10761
|
-
function
|
|
10763
|
+
function lg(t, n, r) {
|
|
10762
10764
|
return "#" + ((1 << 24) + (t << 16) + (n << 8) + r).toString(16).slice(1);
|
|
10763
10765
|
}
|
|
10764
10766
|
function el(t, n, r) {
|
|
@@ -10786,7 +10788,7 @@ function el(t, n, r) {
|
|
|
10786
10788
|
l: Math.round(i * 100)
|
|
10787
10789
|
};
|
|
10788
10790
|
}
|
|
10789
|
-
function
|
|
10791
|
+
function ig(t, n, r) {
|
|
10790
10792
|
t /= 360, n /= 100, r /= 100;
|
|
10791
10793
|
let s, l, c;
|
|
10792
10794
|
if (n === 0)
|
|
@@ -10801,7 +10803,7 @@ function lg(t, n, r) {
|
|
|
10801
10803
|
b: Math.round(c * 255)
|
|
10802
10804
|
};
|
|
10803
10805
|
}
|
|
10804
|
-
const
|
|
10806
|
+
const og = [
|
|
10805
10807
|
"#000000",
|
|
10806
10808
|
// black
|
|
10807
10809
|
"#ffffff",
|
|
@@ -10833,7 +10835,7 @@ const ig = [
|
|
|
10833
10835
|
"#fbbf24"
|
|
10834
10836
|
// yellow-400
|
|
10835
10837
|
];
|
|
10836
|
-
function
|
|
10838
|
+
function cg() {
|
|
10837
10839
|
var D, A, P, V, S, C, M, $, U, L;
|
|
10838
10840
|
const t = I((b) => b.card), n = I((b) => {
|
|
10839
10841
|
var _;
|
|
@@ -10960,7 +10962,7 @@ function og() {
|
|
|
10960
10962
|
}, g = Object.keys(((L = n == null ? void 0 : n.colorConfig) == null ? void 0 : L.segments) || {}).length > 0;
|
|
10961
10963
|
return /* @__PURE__ */ a(Me, { value: "colors", className: "border-b-0", children: [
|
|
10962
10964
|
/* @__PURE__ */ e(Re, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
10963
|
-
/* @__PURE__ */ e(
|
|
10965
|
+
/* @__PURE__ */ e(jh, { className: "h-4 w-4 text-muted-foreground" }),
|
|
10964
10966
|
/* @__PURE__ */ e("span", { children: "Colors" })
|
|
10965
10967
|
] }) }),
|
|
10966
10968
|
/* @__PURE__ */ e(Pe, { className: "", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -11015,7 +11017,7 @@ function og() {
|
|
|
11015
11017
|
] }),
|
|
11016
11018
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
11017
11019
|
/* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground", children: "Popular Colors" }),
|
|
11018
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children:
|
|
11020
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: og.map((E, R) => /* @__PURE__ */ e(
|
|
11019
11021
|
"button",
|
|
11020
11022
|
{
|
|
11021
11023
|
className: J(
|
|
@@ -11076,7 +11078,7 @@ function og() {
|
|
|
11076
11078
|
}
|
|
11077
11079
|
),
|
|
11078
11080
|
/* @__PURE__ */ e("div", { className: "relative rounded-lg bg-white shadow-lg", children: /* @__PURE__ */ e(
|
|
11079
|
-
|
|
11081
|
+
sg,
|
|
11080
11082
|
{
|
|
11081
11083
|
color: m.color,
|
|
11082
11084
|
onColorChange: (b) => {
|
|
@@ -11402,7 +11404,7 @@ function $n(t, n, r) {
|
|
|
11402
11404
|
}
|
|
11403
11405
|
return "";
|
|
11404
11406
|
}
|
|
11405
|
-
function
|
|
11407
|
+
function dg() {
|
|
11406
11408
|
const t = I((o) => o.card), n = I((o) => {
|
|
11407
11409
|
var f;
|
|
11408
11410
|
return (f = o.card) == null ? void 0 : f.preferences;
|
|
@@ -11478,7 +11480,7 @@ function cg() {
|
|
|
11478
11480
|
] }) })
|
|
11479
11481
|
] });
|
|
11480
11482
|
}
|
|
11481
|
-
function
|
|
11483
|
+
function ug() {
|
|
11482
11484
|
const t = I((m) => m.card), n = st(), r = I(
|
|
11483
11485
|
(m) => {
|
|
11484
11486
|
var p, h, y, k;
|
|
@@ -11496,7 +11498,7 @@ function dg() {
|
|
|
11496
11498
|
}, f = ["top", "bottom", "left", "right"], u = ["start", "center", "end"];
|
|
11497
11499
|
return /* @__PURE__ */ a(Me, { value: "legend", className: "border-b-0", children: [
|
|
11498
11500
|
/* @__PURE__ */ e(Re, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
11499
|
-
/* @__PURE__ */ e(
|
|
11501
|
+
/* @__PURE__ */ e(Wh, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11500
11502
|
/* @__PURE__ */ e("span", { children: "Legend" })
|
|
11501
11503
|
] }) }),
|
|
11502
11504
|
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -11544,7 +11546,7 @@ function dg() {
|
|
|
11544
11546
|
] }) })
|
|
11545
11547
|
] });
|
|
11546
11548
|
}
|
|
11547
|
-
function
|
|
11549
|
+
function mg() {
|
|
11548
11550
|
var U, L, b, _, T;
|
|
11549
11551
|
const t = I((F) => F.card), n = st(), r = I(
|
|
11550
11552
|
(F) => {
|
|
@@ -11616,7 +11618,7 @@ function ug() {
|
|
|
11616
11618
|
};
|
|
11617
11619
|
return /* @__PURE__ */ a(Me, { value: "data-labels", className: "border-b-0", children: [
|
|
11618
11620
|
/* @__PURE__ */ e(Re, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
11619
|
-
/* @__PURE__ */ e(
|
|
11621
|
+
/* @__PURE__ */ e(sp, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11620
11622
|
/* @__PURE__ */ e("span", { children: "Data Labels" })
|
|
11621
11623
|
] }) }),
|
|
11622
11624
|
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -11783,7 +11785,7 @@ function ug() {
|
|
|
11783
11785
|
] }) })
|
|
11784
11786
|
] });
|
|
11785
11787
|
}
|
|
11786
|
-
function
|
|
11788
|
+
function hg() {
|
|
11787
11789
|
var c;
|
|
11788
11790
|
const t = I((d) => {
|
|
11789
11791
|
var i;
|
|
@@ -11849,8 +11851,8 @@ function mg() {
|
|
|
11849
11851
|
) })
|
|
11850
11852
|
] });
|
|
11851
11853
|
}
|
|
11852
|
-
const
|
|
11853
|
-
function
|
|
11854
|
+
const pg = Object.keys(jl);
|
|
11855
|
+
function fg() {
|
|
11854
11856
|
const t = I((p) => p.card), n = I((p) => {
|
|
11855
11857
|
var h;
|
|
11856
11858
|
return (h = p.card) == null ? void 0 : h.preferences;
|
|
@@ -11890,7 +11892,7 @@ function pg() {
|
|
|
11890
11892
|
onValueChange: (p) => f(p ?? "blue"),
|
|
11891
11893
|
className: "space-y-3",
|
|
11892
11894
|
children: [
|
|
11893
|
-
|
|
11895
|
+
pg.map((p) => {
|
|
11894
11896
|
const h = jl[p];
|
|
11895
11897
|
return /* @__PURE__ */ a(
|
|
11896
11898
|
"div",
|
|
@@ -11982,7 +11984,7 @@ function al(t) {
|
|
|
11982
11984
|
const n = { ...t };
|
|
11983
11985
|
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;
|
|
11984
11986
|
}
|
|
11985
|
-
function
|
|
11987
|
+
function gg() {
|
|
11986
11988
|
var U, L;
|
|
11987
11989
|
const t = I((b) => b.card.preferences), n = I((b) => b.card), r = I((b) => b.isDevMode), { setCardPreferences: s, setChartOrientation: l } = be(), c = le(
|
|
11988
11990
|
() => (t == null ? void 0 : t.bulletConfig) || {},
|
|
@@ -12358,7 +12360,7 @@ function nl(t) {
|
|
|
12358
12360
|
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)
|
|
12359
12361
|
return n;
|
|
12360
12362
|
}
|
|
12361
|
-
function
|
|
12363
|
+
function xg() {
|
|
12362
12364
|
var D, A, P, V, S, C, M, $, U, L, b, _;
|
|
12363
12365
|
const t = I((T) => T.card.preferences), n = I((T) => T.card), r = st(), s = I((T) => T.isDevMode), { setCardPreferences: l, updateCardInFrame: c } = be(), d = r === "bubble", i = r === "scatter", o = le(
|
|
12364
12366
|
() => (t == null ? void 0 : t.bubbleScatterConfig) || {},
|
|
@@ -12742,7 +12744,7 @@ function gg() {
|
|
|
12742
12744
|
] })
|
|
12743
12745
|
] });
|
|
12744
12746
|
}
|
|
12745
|
-
const
|
|
12747
|
+
const bg = [
|
|
12746
12748
|
{
|
|
12747
12749
|
value: "percentOfTotal",
|
|
12748
12750
|
label: "% of Total",
|
|
@@ -12754,7 +12756,7 @@ const xg = [
|
|
|
12754
12756
|
description: "First stage = 100%, others relative to first stage"
|
|
12755
12757
|
}
|
|
12756
12758
|
];
|
|
12757
|
-
function
|
|
12759
|
+
function vg() {
|
|
12758
12760
|
const t = I((p) => p.card), n = I((p) => {
|
|
12759
12761
|
var h;
|
|
12760
12762
|
return (h = p.card) == null ? void 0 : h.preferences;
|
|
@@ -12788,7 +12790,7 @@ function bg() {
|
|
|
12788
12790
|
value: c,
|
|
12789
12791
|
onValueChange: (p) => f(p),
|
|
12790
12792
|
className: "space-y-2",
|
|
12791
|
-
children:
|
|
12793
|
+
children: bg.map((p) => /* @__PURE__ */ a(
|
|
12792
12794
|
"div",
|
|
12793
12795
|
{
|
|
12794
12796
|
className: "flex items-start gap-2 rounded-md border border-border px-3 py-2",
|
|
@@ -12889,7 +12891,7 @@ function hn() {
|
|
|
12889
12891
|
defaultMetricKeys: c
|
|
12890
12892
|
};
|
|
12891
12893
|
}
|
|
12892
|
-
const
|
|
12894
|
+
const yg = [
|
|
12893
12895
|
{ value: "USD", label: "USD - US Dollar" },
|
|
12894
12896
|
{ value: "EUR", label: "EUR - Euro" },
|
|
12895
12897
|
{ value: "GBP", label: "GBP - British Pound" },
|
|
@@ -12898,7 +12900,7 @@ const vg = [
|
|
|
12898
12900
|
{ value: "INR", label: "INR - Indian Rupee" },
|
|
12899
12901
|
{ value: "CAD", label: "CAD - Canadian Dollar" },
|
|
12900
12902
|
{ value: "AUD", label: "AUD - Australian Dollar" }
|
|
12901
|
-
],
|
|
12903
|
+
], Ng = [
|
|
12902
12904
|
{ value: "en-US", label: "English (US)" },
|
|
12903
12905
|
{ value: "en-GB", label: "English (UK)" },
|
|
12904
12906
|
{ value: "de-DE", label: "German" },
|
|
@@ -12907,7 +12909,7 @@ const vg = [
|
|
|
12907
12909
|
{ value: "it-IT", label: "Italian" },
|
|
12908
12910
|
{ value: "pt-BR", label: "Portuguese (Brazil)" },
|
|
12909
12911
|
{ value: "zh-CN", label: "Chinese (Simplified)" }
|
|
12910
|
-
],
|
|
12912
|
+
], Cg = ["center", "start", "end"], wg = ["center", "start", "end", "top", "bottom"];
|
|
12911
12913
|
function pn({
|
|
12912
12914
|
config: t,
|
|
12913
12915
|
onChange: n,
|
|
@@ -12967,7 +12969,7 @@ function pn({
|
|
|
12967
12969
|
onValueChange: (g) => o("anchor", g),
|
|
12968
12970
|
children: [
|
|
12969
12971
|
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
12970
|
-
/* @__PURE__ */ e(ee, { children:
|
|
12972
|
+
/* @__PURE__ */ e(ee, { children: Cg.map((g) => /* @__PURE__ */ e(j, { value: g, className: "text-xs", children: Nt(g) }, g)) })
|
|
12971
12973
|
]
|
|
12972
12974
|
}
|
|
12973
12975
|
)
|
|
@@ -12981,7 +12983,7 @@ function pn({
|
|
|
12981
12983
|
onValueChange: (g) => o("align", g),
|
|
12982
12984
|
children: [
|
|
12983
12985
|
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
12984
|
-
/* @__PURE__ */ e(ee, { children:
|
|
12986
|
+
/* @__PURE__ */ e(ee, { children: wg.map((g) => /* @__PURE__ */ e(j, { value: g, className: "text-xs", children: Nt(g) }, g)) })
|
|
12985
12987
|
]
|
|
12986
12988
|
}
|
|
12987
12989
|
)
|
|
@@ -13026,7 +13028,7 @@ function pn({
|
|
|
13026
13028
|
onValueChange: (g) => u("currency", g),
|
|
13027
13029
|
children: [
|
|
13028
13030
|
/* @__PURE__ */ e(X, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13029
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13031
|
+
/* @__PURE__ */ e(ee, { children: yg.map((g) => /* @__PURE__ */ e(
|
|
13030
13032
|
j,
|
|
13031
13033
|
{
|
|
13032
13034
|
value: g.value,
|
|
@@ -13059,7 +13061,7 @@ function pn({
|
|
|
13059
13061
|
onValueChange: (g) => u("locale", g),
|
|
13060
13062
|
children: [
|
|
13061
13063
|
/* @__PURE__ */ e(X, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13062
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13064
|
+
/* @__PURE__ */ e(ee, { children: Ng.map((g) => /* @__PURE__ */ e(
|
|
13063
13065
|
j,
|
|
13064
13066
|
{
|
|
13065
13067
|
value: g.value,
|
|
@@ -13145,10 +13147,10 @@ function pn({
|
|
|
13145
13147
|
] })
|
|
13146
13148
|
] });
|
|
13147
13149
|
}
|
|
13148
|
-
const
|
|
13150
|
+
const Sg = [
|
|
13149
13151
|
{ type: "bar", icon: cn, label: "Bar" },
|
|
13150
13152
|
{ type: "line", icon: on, label: "Line" }
|
|
13151
|
-
],
|
|
13153
|
+
], kg = [0, 1, 2, 3, 4, 5, 6, 8, 10], Tg = [
|
|
13152
13154
|
{ value: "circle", label: "Circle ●" },
|
|
13153
13155
|
{ value: "rect", label: "Square ■" },
|
|
13154
13156
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -13159,13 +13161,13 @@ const wg = [
|
|
|
13159
13161
|
{ value: "star", label: "Star ★" },
|
|
13160
13162
|
{ value: "dash", label: "Dash —" },
|
|
13161
13163
|
{ value: "line", label: "Line │" }
|
|
13162
|
-
],
|
|
13164
|
+
], Eg = [
|
|
13163
13165
|
{ value: "solid", label: "Solid ───" },
|
|
13164
13166
|
{ value: "dashed", label: "Dashed - - -" },
|
|
13165
13167
|
{ value: "dotted", label: "Dotted ···" },
|
|
13166
13168
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
13167
13169
|
];
|
|
13168
|
-
function
|
|
13170
|
+
function Fg() {
|
|
13169
13171
|
return I((n) => {
|
|
13170
13172
|
var r;
|
|
13171
13173
|
return (r = n.card) == null ? void 0 : r.type;
|
|
@@ -13174,14 +13176,14 @@ function Eg() {
|
|
|
13174
13176
|
/* @__PURE__ */ e(Ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13175
13177
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
13176
13178
|
] }) }),
|
|
13177
|
-
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
13179
|
+
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(Dg, {}) })
|
|
13178
13180
|
] });
|
|
13179
13181
|
}
|
|
13180
|
-
function
|
|
13182
|
+
function Dg() {
|
|
13181
13183
|
const { transformedMetricKeys: t } = hn();
|
|
13182
|
-
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, r) => /* @__PURE__ */ e(
|
|
13184
|
+
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, r) => /* @__PURE__ */ e(Ig, { metricKey: n, idx: r }, n)) });
|
|
13183
13185
|
}
|
|
13184
|
-
function
|
|
13186
|
+
function Ig({ metricKey: t, idx: n }) {
|
|
13185
13187
|
var v;
|
|
13186
13188
|
const [r, s] = G(!1), l = I((N) => {
|
|
13187
13189
|
var w;
|
|
@@ -13278,7 +13280,7 @@ function Dg({ metricKey: t, idx: n }) {
|
|
|
13278
13280
|
/* @__PURE__ */ a("div", { className: "flex items-end gap-4", children: [
|
|
13279
13281
|
/* @__PURE__ */ a("div", { className: "flex-1 space-y-1.5", children: [
|
|
13280
13282
|
/* @__PURE__ */ e(O, { className: "text-xs text-muted-foreground", children: "Chart Type" }),
|
|
13281
|
-
/* @__PURE__ */ e("div", { className: "flex gap-2", children:
|
|
13283
|
+
/* @__PURE__ */ e("div", { className: "flex gap-2", children: Sg.map(({ type: N, icon: w, label: g }) => /* @__PURE__ */ a(
|
|
13282
13284
|
"button",
|
|
13283
13285
|
{
|
|
13284
13286
|
onClick: () => h(N),
|
|
@@ -13324,7 +13326,7 @@ function Dg({ metricKey: t, idx: n }) {
|
|
|
13324
13326
|
onValueChange: (N) => p({ lineStyle: N }),
|
|
13325
13327
|
children: [
|
|
13326
13328
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13327
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13329
|
+
/* @__PURE__ */ e(ee, { children: Eg.map(({ value: N, label: w }) => /* @__PURE__ */ e(
|
|
13328
13330
|
j,
|
|
13329
13331
|
{
|
|
13330
13332
|
value: N,
|
|
@@ -13346,7 +13348,7 @@ function Dg({ metricKey: t, idx: n }) {
|
|
|
13346
13348
|
onValueChange: (N) => p({ pointRadius: Number(N) }),
|
|
13347
13349
|
children: [
|
|
13348
13350
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13349
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13351
|
+
/* @__PURE__ */ e(ee, { children: kg.map((N) => /* @__PURE__ */ e(
|
|
13350
13352
|
j,
|
|
13351
13353
|
{
|
|
13352
13354
|
value: String(N),
|
|
@@ -13368,7 +13370,7 @@ function Dg({ metricKey: t, idx: n }) {
|
|
|
13368
13370
|
onValueChange: (N) => p({ pointStyle: N }),
|
|
13369
13371
|
children: [
|
|
13370
13372
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13371
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13373
|
+
/* @__PURE__ */ e(ee, { children: Tg.map(({ value: N, label: w }) => /* @__PURE__ */ e(
|
|
13372
13374
|
j,
|
|
13373
13375
|
{
|
|
13374
13376
|
value: N,
|
|
@@ -13416,7 +13418,7 @@ const zn = [
|
|
|
13416
13418
|
{ value: "-1", label: "Previous Series", description: "Fill to the series below" },
|
|
13417
13419
|
{ value: "+1", label: "Next Series", description: "Fill to the series above" },
|
|
13418
13420
|
{ value: "false", label: "No Fill (Line)", description: "Show as line without fill" }
|
|
13419
|
-
],
|
|
13421
|
+
], Ag = [0, 1, 2, 3, 4, 5, 6, 8, 10], Mg = [
|
|
13420
13422
|
{ value: "circle", label: "Circle ●" },
|
|
13421
13423
|
{ value: "rect", label: "Square ■" },
|
|
13422
13424
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -13427,16 +13429,16 @@ const zn = [
|
|
|
13427
13429
|
{ value: "star", label: "Star ★" },
|
|
13428
13430
|
{ value: "dash", label: "Dash —" },
|
|
13429
13431
|
{ value: "line", label: "Line │" }
|
|
13430
|
-
],
|
|
13432
|
+
], Rg = [
|
|
13431
13433
|
{ value: "solid", label: "Solid ───" },
|
|
13432
13434
|
{ value: "dashed", label: "Dashed - - -" },
|
|
13433
13435
|
{ value: "dotted", label: "Dotted ···" },
|
|
13434
13436
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
13435
13437
|
];
|
|
13436
|
-
function
|
|
13438
|
+
function Pg(t) {
|
|
13437
13439
|
return t == null ? "origin" : t === !1 ? "false" : t;
|
|
13438
13440
|
}
|
|
13439
|
-
function
|
|
13441
|
+
function Og() {
|
|
13440
13442
|
const t = I((n) => {
|
|
13441
13443
|
var r;
|
|
13442
13444
|
return (r = n.card) == null ? void 0 : r.type;
|
|
@@ -13446,14 +13448,14 @@ function Pg() {
|
|
|
13446
13448
|
/* @__PURE__ */ e(Ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13447
13449
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
13448
13450
|
] }) }),
|
|
13449
|
-
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
13451
|
+
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(Lg, {}) })
|
|
13450
13452
|
] });
|
|
13451
13453
|
}
|
|
13452
|
-
function
|
|
13454
|
+
function Lg() {
|
|
13453
13455
|
const { transformedMetricKeys: t } = hn();
|
|
13454
|
-
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, r) => /* @__PURE__ */ e(
|
|
13456
|
+
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, r) => /* @__PURE__ */ e(_g, { metricKey: n, idx: r }, n)) });
|
|
13455
13457
|
}
|
|
13456
|
-
function
|
|
13458
|
+
function _g({ metricKey: t, idx: n }) {
|
|
13457
13459
|
var k;
|
|
13458
13460
|
const [r, s] = G(!1), l = I((x) => {
|
|
13459
13461
|
var v;
|
|
@@ -13463,7 +13465,7 @@ function Lg({ metricKey: t, idx: n }) {
|
|
|
13463
13465
|
var v, N;
|
|
13464
13466
|
return (N = (v = x.card) == null ? void 0 : v.preferences) == null ? void 0 : N.datasetOptions;
|
|
13465
13467
|
}
|
|
13466
|
-
), d = c == null ? void 0 : c.find((x) => x.idx === n), { setCardPreferences: i } = I((x) => x.actions), o =
|
|
13468
|
+
), d = c == null ? void 0 : c.find((x) => x.idx === n), { setCardPreferences: i } = I((x) => x.actions), o = Pg(d == null ? void 0 : d.fill), f = ((k = d == null ? void 0 : d.dataLabels) == null ? void 0 : k.enabled) ?? !1, u = zn.find((x) => x.value === o) || zn[0];
|
|
13467
13469
|
function m(x) {
|
|
13468
13470
|
const v = {
|
|
13469
13471
|
idx: n,
|
|
@@ -13565,7 +13567,7 @@ function Lg({ metricKey: t, idx: n }) {
|
|
|
13565
13567
|
onValueChange: (x) => m({ lineStyle: x }),
|
|
13566
13568
|
children: [
|
|
13567
13569
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13568
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13570
|
+
/* @__PURE__ */ e(ee, { children: Rg.map(({ value: x, label: v }) => /* @__PURE__ */ e(
|
|
13569
13571
|
j,
|
|
13570
13572
|
{
|
|
13571
13573
|
value: x,
|
|
@@ -13587,7 +13589,7 @@ function Lg({ metricKey: t, idx: n }) {
|
|
|
13587
13589
|
onValueChange: (x) => m({ pointRadius: Number(x) }),
|
|
13588
13590
|
children: [
|
|
13589
13591
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13590
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13592
|
+
/* @__PURE__ */ e(ee, { children: Ag.map((x) => /* @__PURE__ */ e(
|
|
13591
13593
|
j,
|
|
13592
13594
|
{
|
|
13593
13595
|
value: String(x),
|
|
@@ -13609,7 +13611,7 @@ function Lg({ metricKey: t, idx: n }) {
|
|
|
13609
13611
|
onValueChange: (x) => m({ pointStyle: x }),
|
|
13610
13612
|
children: [
|
|
13611
13613
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13612
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13614
|
+
/* @__PURE__ */ e(ee, { children: Mg.map(({ value: x, label: v }) => /* @__PURE__ */ e(
|
|
13613
13615
|
j,
|
|
13614
13616
|
{
|
|
13615
13617
|
value: x,
|
|
@@ -13650,7 +13652,7 @@ function Lg({ metricKey: t, idx: n }) {
|
|
|
13650
13652
|
] }) }) })
|
|
13651
13653
|
] }) });
|
|
13652
13654
|
}
|
|
13653
|
-
const
|
|
13655
|
+
const Vg = [0, 1, 2, 3, 4, 5, 6, 8, 10], Bg = [
|
|
13654
13656
|
{ value: "circle", label: "Circle ●" },
|
|
13655
13657
|
{ value: "rect", label: "Square ■" },
|
|
13656
13658
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -13667,7 +13669,7 @@ const _g = [0, 1, 2, 3, 4, 5, 6, 8, 10], Vg = [
|
|
|
13667
13669
|
{ value: "dotted", label: "Dotted ···" },
|
|
13668
13670
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
13669
13671
|
];
|
|
13670
|
-
function
|
|
13672
|
+
function Kg() {
|
|
13671
13673
|
return I((n) => {
|
|
13672
13674
|
var r;
|
|
13673
13675
|
return (r = n.card) == null ? void 0 : r.type;
|
|
@@ -13676,14 +13678,14 @@ function Bg() {
|
|
|
13676
13678
|
/* @__PURE__ */ e(Ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13677
13679
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
13678
13680
|
] }) }),
|
|
13679
|
-
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
13681
|
+
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(jg, {}) })
|
|
13680
13682
|
] });
|
|
13681
13683
|
}
|
|
13682
|
-
function
|
|
13684
|
+
function jg() {
|
|
13683
13685
|
const { transformedMetricKeys: t } = hn();
|
|
13684
|
-
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, r) => /* @__PURE__ */ e(
|
|
13686
|
+
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, r) => /* @__PURE__ */ e(qg, { metricKey: n, idx: r }, n)) });
|
|
13685
13687
|
}
|
|
13686
|
-
function
|
|
13688
|
+
function qg({ metricKey: t, idx: n }) {
|
|
13687
13689
|
var x;
|
|
13688
13690
|
const [r, s] = G(!1), l = I((v) => {
|
|
13689
13691
|
var N;
|
|
@@ -13794,7 +13796,7 @@ function jg({ metricKey: t, idx: n }) {
|
|
|
13794
13796
|
onValueChange: (v) => h({ pointRadius: Number(v) }),
|
|
13795
13797
|
children: [
|
|
13796
13798
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13797
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13799
|
+
/* @__PURE__ */ e(ee, { children: Vg.map((v) => /* @__PURE__ */ e(
|
|
13798
13800
|
j,
|
|
13799
13801
|
{
|
|
13800
13802
|
value: String(v),
|
|
@@ -13816,7 +13818,7 @@ function jg({ metricKey: t, idx: n }) {
|
|
|
13816
13818
|
onValueChange: (v) => h({ pointStyle: v }),
|
|
13817
13819
|
children: [
|
|
13818
13820
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13819
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13821
|
+
/* @__PURE__ */ e(ee, { children: Bg.map(({ value: v, label: N }) => /* @__PURE__ */ e(
|
|
13820
13822
|
j,
|
|
13821
13823
|
{
|
|
13822
13824
|
value: v,
|
|
@@ -13857,8 +13859,8 @@ function jg({ metricKey: t, idx: n }) {
|
|
|
13857
13859
|
] }) }) })
|
|
13858
13860
|
] }) });
|
|
13859
13861
|
}
|
|
13860
|
-
const
|
|
13861
|
-
function
|
|
13862
|
+
const $g = [0, 2, 4, 6, 8, 10, 12, 16, 20];
|
|
13863
|
+
function zg() {
|
|
13862
13864
|
const t = I((n) => {
|
|
13863
13865
|
var r;
|
|
13864
13866
|
return (r = n.card) == null ? void 0 : r.type;
|
|
@@ -13868,14 +13870,14 @@ function $g() {
|
|
|
13868
13870
|
/* @__PURE__ */ e(Ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13869
13871
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
13870
13872
|
] }) }),
|
|
13871
|
-
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
13873
|
+
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ e(Ug, {}) })
|
|
13872
13874
|
] });
|
|
13873
13875
|
}
|
|
13874
|
-
function
|
|
13876
|
+
function Ug() {
|
|
13875
13877
|
const { transformedMetricKeys: t } = hn();
|
|
13876
|
-
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, r) => /* @__PURE__ */ e(
|
|
13878
|
+
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, r) => /* @__PURE__ */ e(Gg, { metricKey: n, idx: r }, n)) });
|
|
13877
13879
|
}
|
|
13878
|
-
function
|
|
13880
|
+
function Gg({ metricKey: t, idx: n }) {
|
|
13879
13881
|
var y;
|
|
13880
13882
|
const [r, s] = G(!1), l = I((k) => {
|
|
13881
13883
|
var x;
|
|
@@ -13966,7 +13968,7 @@ function Ug({ metricKey: t, idx: n }) {
|
|
|
13966
13968
|
onValueChange: (k) => m({ borderRadius: Number(k) }),
|
|
13967
13969
|
children: [
|
|
13968
13970
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13969
|
-
/* @__PURE__ */ e(ee, { children:
|
|
13971
|
+
/* @__PURE__ */ e(ee, { children: $g.map((k) => /* @__PURE__ */ e(
|
|
13970
13972
|
j,
|
|
13971
13973
|
{
|
|
13972
13974
|
value: String(k),
|
|
@@ -14006,7 +14008,7 @@ function Ug({ metricKey: t, idx: n }) {
|
|
|
14006
14008
|
] }) }) })
|
|
14007
14009
|
] }) });
|
|
14008
14010
|
}
|
|
14009
|
-
const
|
|
14011
|
+
const Hg = [0, 1, 2, 3, 4, 5, 6, 8, 10], Jg = [
|
|
14010
14012
|
{ value: "circle", label: "Circle ●" },
|
|
14011
14013
|
{ value: "rect", label: "Square ■" },
|
|
14012
14014
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -14017,13 +14019,13 @@ const Gg = [0, 1, 2, 3, 4, 5, 6, 8, 10], Hg = [
|
|
|
14017
14019
|
{ value: "star", label: "Star ★" },
|
|
14018
14020
|
{ value: "dash", label: "Dash —" },
|
|
14019
14021
|
{ value: "line", label: "Line │" }
|
|
14020
|
-
],
|
|
14022
|
+
], Qg = [
|
|
14021
14023
|
{ value: "solid", label: "Solid ───" },
|
|
14022
14024
|
{ value: "dashed", label: "Dashed - - -" },
|
|
14023
14025
|
{ value: "dotted", label: "Dotted ···" },
|
|
14024
14026
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
14025
14027
|
];
|
|
14026
|
-
function
|
|
14028
|
+
function Yg() {
|
|
14027
14029
|
const t = I((i) => i.card), n = I((i) => {
|
|
14028
14030
|
var o;
|
|
14029
14031
|
return (o = i.card) == null ? void 0 : o.preferences;
|
|
@@ -14042,7 +14044,7 @@ function Qg() {
|
|
|
14042
14044
|
};
|
|
14043
14045
|
return /* @__PURE__ */ a(Me, { value: "line-style", className: "border-b-0", children: [
|
|
14044
14046
|
/* @__PURE__ */ e(Re, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
14045
|
-
/* @__PURE__ */ e(
|
|
14047
|
+
/* @__PURE__ */ e(np, { className: "h-4 w-4 text-muted-foreground" }),
|
|
14046
14048
|
/* @__PURE__ */ e("span", { children: "Line Style" })
|
|
14047
14049
|
] }) }),
|
|
14048
14050
|
/* @__PURE__ */ e(Pe, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -14056,7 +14058,7 @@ function Qg() {
|
|
|
14056
14058
|
onValueChange: (i) => d("lineStyle", i),
|
|
14057
14059
|
children: [
|
|
14058
14060
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14059
|
-
/* @__PURE__ */ e(ee, { children:
|
|
14061
|
+
/* @__PURE__ */ e(ee, { children: Qg.map(({ value: i, label: o }) => /* @__PURE__ */ e(j, { value: i, className: "text-xs", children: o }, i)) })
|
|
14060
14062
|
]
|
|
14061
14063
|
}
|
|
14062
14064
|
)
|
|
@@ -14070,7 +14072,7 @@ function Qg() {
|
|
|
14070
14072
|
onValueChange: (i) => d("pointRadius", Number(i)),
|
|
14071
14073
|
children: [
|
|
14072
14074
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14073
|
-
/* @__PURE__ */ e(ee, { children:
|
|
14075
|
+
/* @__PURE__ */ e(ee, { children: Hg.map((i) => /* @__PURE__ */ e(
|
|
14074
14076
|
j,
|
|
14075
14077
|
{
|
|
14076
14078
|
value: String(i),
|
|
@@ -14092,7 +14094,7 @@ function Qg() {
|
|
|
14092
14094
|
onValueChange: (i) => d("pointStyle", i),
|
|
14093
14095
|
children: [
|
|
14094
14096
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14095
|
-
/* @__PURE__ */ e(ee, { children:
|
|
14097
|
+
/* @__PURE__ */ e(ee, { children: Jg.map(({ value: i, label: o }) => /* @__PURE__ */ e(j, { value: i, className: "text-xs", children: o }, i)) })
|
|
14096
14098
|
]
|
|
14097
14099
|
}
|
|
14098
14100
|
)
|
|
@@ -14100,14 +14102,14 @@ function Qg() {
|
|
|
14100
14102
|
] }) })
|
|
14101
14103
|
] });
|
|
14102
14104
|
}
|
|
14103
|
-
const
|
|
14105
|
+
const Wg = [0, 2, 4, 6, 8, 10, 12, 16, 20], Xg = [
|
|
14104
14106
|
{ value: "0.5", label: "50%" },
|
|
14105
14107
|
{ value: "0.6", label: "60%" },
|
|
14106
14108
|
{ value: "0.7", label: "70%" },
|
|
14107
14109
|
{ value: "0.8", label: "80%" },
|
|
14108
14110
|
{ value: "0.9", label: "90%" },
|
|
14109
14111
|
{ value: "1", label: "100%" }
|
|
14110
|
-
],
|
|
14112
|
+
], Zg = [
|
|
14111
14113
|
{ value: "0.5", label: "50%" },
|
|
14112
14114
|
{ value: "0.6", label: "60%" },
|
|
14113
14115
|
{ value: "0.7", label: "70%" },
|
|
@@ -14115,7 +14117,7 @@ const Yg = [0, 2, 4, 6, 8, 10, 12, 16, 20], Wg = [
|
|
|
14115
14117
|
{ value: "0.9", label: "90%" },
|
|
14116
14118
|
{ value: "1", label: "100%" }
|
|
14117
14119
|
];
|
|
14118
|
-
function
|
|
14120
|
+
function ex() {
|
|
14119
14121
|
const t = I((i) => i.card), n = I((i) => {
|
|
14120
14122
|
var o;
|
|
14121
14123
|
return (o = i.card) == null ? void 0 : o.preferences;
|
|
@@ -14148,7 +14150,7 @@ function Zg() {
|
|
|
14148
14150
|
onValueChange: (i) => d("borderRadius", Number(i)),
|
|
14149
14151
|
children: [
|
|
14150
14152
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14151
|
-
/* @__PURE__ */ e(ee, { children:
|
|
14153
|
+
/* @__PURE__ */ e(ee, { children: Wg.map((i) => /* @__PURE__ */ e(
|
|
14152
14154
|
j,
|
|
14153
14155
|
{
|
|
14154
14156
|
value: String(i),
|
|
@@ -14170,7 +14172,7 @@ function Zg() {
|
|
|
14170
14172
|
onValueChange: (i) => d("barPercentage", Number(i)),
|
|
14171
14173
|
children: [
|
|
14172
14174
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14173
|
-
/* @__PURE__ */ e(ee, { children:
|
|
14175
|
+
/* @__PURE__ */ e(ee, { children: Xg.map(({ value: i, label: o }) => /* @__PURE__ */ e(j, { value: i, className: "text-xs", children: o }, i)) })
|
|
14174
14176
|
]
|
|
14175
14177
|
}
|
|
14176
14178
|
)
|
|
@@ -14184,7 +14186,7 @@ function Zg() {
|
|
|
14184
14186
|
onValueChange: (i) => d("categoryPercentage", Number(i)),
|
|
14185
14187
|
children: [
|
|
14186
14188
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14187
|
-
/* @__PURE__ */ e(ee, { children:
|
|
14189
|
+
/* @__PURE__ */ e(ee, { children: Zg.map(({ value: i, label: o }) => /* @__PURE__ */ e(j, { value: i, className: "text-xs", children: o }, i)) })
|
|
14188
14190
|
]
|
|
14189
14191
|
}
|
|
14190
14192
|
)
|
|
@@ -14192,7 +14194,7 @@ function Zg() {
|
|
|
14192
14194
|
] }) })
|
|
14193
14195
|
] });
|
|
14194
14196
|
}
|
|
14195
|
-
function
|
|
14197
|
+
function tx() {
|
|
14196
14198
|
const t = I(
|
|
14197
14199
|
(r) => {
|
|
14198
14200
|
var s, l;
|
|
@@ -14225,29 +14227,29 @@ function ex() {
|
|
|
14225
14227
|
] }) })
|
|
14226
14228
|
] });
|
|
14227
14229
|
}
|
|
14228
|
-
const
|
|
14230
|
+
const ax = ["kpi"], Gn = 2;
|
|
14229
14231
|
function Qt(t) {
|
|
14230
14232
|
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();
|
|
14231
14233
|
}
|
|
14232
|
-
function
|
|
14234
|
+
function nx(t) {
|
|
14233
14235
|
if (!(t != null && t.name) || !(t != null && t.dataType) || t.role === "metric")
|
|
14234
14236
|
return !1;
|
|
14235
14237
|
const n = ui(t.dataType);
|
|
14236
14238
|
return ["date", "string", "boolean"].includes(n);
|
|
14237
14239
|
}
|
|
14238
|
-
function
|
|
14240
|
+
function rx(t) {
|
|
14239
14241
|
return {
|
|
14240
14242
|
...t,
|
|
14241
14243
|
role: "groupby"
|
|
14242
14244
|
};
|
|
14243
14245
|
}
|
|
14244
|
-
function
|
|
14246
|
+
function sx() {
|
|
14245
14247
|
var N, w;
|
|
14246
14248
|
const t = I((g) => g.card), n = I(
|
|
14247
14249
|
(g) => g.actions.updateCardConfig
|
|
14248
|
-
), r = st(), { scopedFields: s } = $l(), l = ((N = t.config) == null ? void 0 : N.metricColumns) || [], c = ((w = t.config) == null ? void 0 : w.summary) || {}, d = c.breakdownDimensions || [], i = d.length > 0, o =
|
|
14250
|
+
), r = st(), { scopedFields: s } = $l(), l = ((N = t.config) == null ? void 0 : N.metricColumns) || [], c = ((w = t.config) == null ? void 0 : w.summary) || {}, d = c.breakdownDimensions || [], i = d.length > 0, o = ax.includes(r), f = l.length > 0, u = c.enabled === !0, m = o && f, p = Array.from(
|
|
14249
14251
|
new Map(
|
|
14250
|
-
s.filter(
|
|
14252
|
+
s.filter(nx).map((g) => [Qt(g), rx(g)])
|
|
14251
14253
|
).values()
|
|
14252
14254
|
), h = new Set(
|
|
14253
14255
|
p.map((g) => Qt(g))
|
|
@@ -14399,7 +14401,7 @@ function rx() {
|
|
|
14399
14401
|
] })
|
|
14400
14402
|
] });
|
|
14401
14403
|
}
|
|
14402
|
-
const
|
|
14404
|
+
const lx = {
|
|
14403
14405
|
hour: "Hour",
|
|
14404
14406
|
minute: "Minute",
|
|
14405
14407
|
second: "Second",
|
|
@@ -14408,12 +14410,12 @@ const sx = {
|
|
|
14408
14410
|
month: "Month",
|
|
14409
14411
|
quarter: "Quarter",
|
|
14410
14412
|
year: "Year"
|
|
14411
|
-
}, Hn = (t) =>
|
|
14412
|
-
function
|
|
14413
|
+
}, Hn = (t) => lx[t ?? "day"] ?? "Day";
|
|
14414
|
+
function ix() {
|
|
14413
14415
|
const t = I((n) => n.card);
|
|
14414
|
-
return !t || t.type !== "kpi" || Fr(t) ? null : /* @__PURE__ */ e(
|
|
14416
|
+
return !t || t.type !== "kpi" || Fr(t) ? null : /* @__PURE__ */ e(ox, { card: t });
|
|
14415
14417
|
}
|
|
14416
|
-
function
|
|
14418
|
+
function ox({ card: t }) {
|
|
14417
14419
|
var h, y, k, x, v;
|
|
14418
14420
|
const { setCardConfig: n } = be(), { data: r } = at(t), s = r == null ? void 0 : r.metadata, l = Pm(t.config), c = !!(s != null && s.dateContext && !s.dateContext.field && !l), d = ((h = t.config) == null ? void 0 : h.kpiBand) === "trend", i = ((y = t.config) == null ? void 0 : y.kpiTrendGrain) ?? "automatic", o = ((x = (k = s == null ? void 0 : s.dateContext) == null ? void 0 : k.counted) == null ? void 0 : x.status) === "window" ? s.dateContext.counted.window : void 0, f = ((v = s == null ? void 0 : s.trend) == null ? void 0 : v.grainSource) === "automatic" ? s.trend.granularity : void 0, u = (N) => n(_m(t, N).config), m = (N) => n(Vm(t, N === "automatic" ? null : N).config), p = c ? d ? "This KPI counts on no date, so the trend can't show. Turn it off, or drop a date on Trend By." : "This KPI counts on no date. Drop a date on Trend By to show a trend." : d ? l ? "Trend By sets the grain. Remove it to pick one here." : i === "automatic" ? "Follows the period the KPI counts: a different dashboard date changes it." : `Always by ${i}.` : "A line of the value over the period it counts.";
|
|
14419
14421
|
return (
|
|
@@ -14438,7 +14440,7 @@ function ix({ card: t }) {
|
|
|
14438
14440
|
/* @__PURE__ */ e(X, { id: "kpi-trend-grain", className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14439
14441
|
/* @__PURE__ */ a(ee, { children: [
|
|
14440
14442
|
/* @__PURE__ */ e(j, { value: "automatic", className: "text-xs", children: f ? `Automatic · ${Hn(f)}` : "Automatic" }),
|
|
14441
|
-
|
|
14443
|
+
qh.map((N) => {
|
|
14442
14444
|
const w = o ? Om(o, N) > Lm : !1;
|
|
14443
14445
|
return /* @__PURE__ */ a(j, { value: N, className: "text-xs", disabled: w && N !== i, children: [
|
|
14444
14446
|
Hn(N),
|
|
@@ -14453,7 +14455,7 @@ function ix({ card: t }) {
|
|
|
14453
14455
|
] })
|
|
14454
14456
|
);
|
|
14455
14457
|
}
|
|
14456
|
-
const
|
|
14458
|
+
const cx = /* @__PURE__ */ new Set([
|
|
14457
14459
|
"area",
|
|
14458
14460
|
"bar",
|
|
14459
14461
|
"bubble",
|
|
@@ -14472,12 +14474,12 @@ const ox = /* @__PURE__ */ new Set([
|
|
|
14472
14474
|
"stackedLine",
|
|
14473
14475
|
"tornado"
|
|
14474
14476
|
]);
|
|
14475
|
-
function
|
|
14477
|
+
function dx() {
|
|
14476
14478
|
const t = I((u) => u.card), n = I((u) => {
|
|
14477
14479
|
var m;
|
|
14478
14480
|
return (m = u.card) == null ? void 0 : m.preferences;
|
|
14479
14481
|
}), r = st(), { setCardPreferences: s, updateCardInFrame: l } = be(), c = n == null ? void 0 : n.tooltipConfig, [d, i] = G(!!(c != null && c.valueFormat));
|
|
14480
|
-
if (!t || !
|
|
14482
|
+
if (!t || !cx.has(r || ""))
|
|
14481
14483
|
return null;
|
|
14482
14484
|
const o = d || c != null && c.valueFormat ? "override" : "inherit", f = (u) => {
|
|
14483
14485
|
const m = {
|
|
@@ -14531,36 +14533,36 @@ function to({ mode: t }) {
|
|
|
14531
14533
|
return (s = r.card) == null ? void 0 : s.type;
|
|
14532
14534
|
});
|
|
14533
14535
|
return gi(n) ? null : /* @__PURE__ */ a(me, { children: [
|
|
14534
|
-
n === "combo" && /* @__PURE__ */ e(
|
|
14535
|
-
(n === "area" || n === "stackedArea") && /* @__PURE__ */ e(
|
|
14536
|
-
n === "line" && /* @__PURE__ */ e(
|
|
14537
|
-
(n === "bar" || n === "horizontalBar" || n === "stackedBar") && /* @__PURE__ */ e(
|
|
14538
|
-
/* @__PURE__ */ e(
|
|
14539
|
-
/* @__PURE__ */ e(
|
|
14540
|
-
/* @__PURE__ */ e(
|
|
14541
|
-
t === "config" && /* @__PURE__ */ e(
|
|
14542
|
-
t === "config" && /* @__PURE__ */ e(
|
|
14543
|
-
t === "config" && /* @__PURE__ */ e(
|
|
14544
|
-
/* @__PURE__ */ e(
|
|
14545
|
-
n === "bullet" && /* @__PURE__ */ e(
|
|
14546
|
-
n === "funnel" && /* @__PURE__ */ e(
|
|
14547
|
-
(n === "bubble" || n === "scatter") && /* @__PURE__ */ e(
|
|
14548
|
-
(n === "stackedBar" || n === "stackedLine") && /* @__PURE__ */ e(
|
|
14549
|
-
/* @__PURE__ */ e(og, {}),
|
|
14536
|
+
n === "combo" && /* @__PURE__ */ e(Fg, {}),
|
|
14537
|
+
(n === "area" || n === "stackedArea") && /* @__PURE__ */ e(Og, {}),
|
|
14538
|
+
n === "line" && /* @__PURE__ */ e(Kg, {}),
|
|
14539
|
+
(n === "bar" || n === "horizontalBar" || n === "stackedBar") && /* @__PURE__ */ e(zg, {}),
|
|
14540
|
+
/* @__PURE__ */ e(Yg, {}),
|
|
14541
|
+
/* @__PURE__ */ e(ex, {}),
|
|
14542
|
+
/* @__PURE__ */ e(hg, {}),
|
|
14543
|
+
t === "config" && /* @__PURE__ */ e(tg, {}),
|
|
14544
|
+
t === "config" && /* @__PURE__ */ e(sx, {}),
|
|
14545
|
+
t === "config" && /* @__PURE__ */ e(ix, {}),
|
|
14546
|
+
/* @__PURE__ */ e(fg, {}),
|
|
14547
|
+
n === "bullet" && /* @__PURE__ */ e(gg, {}),
|
|
14548
|
+
n === "funnel" && /* @__PURE__ */ e(vg, {}),
|
|
14549
|
+
(n === "bubble" || n === "scatter") && /* @__PURE__ */ e(xg, {}),
|
|
14550
|
+
(n === "stackedBar" || n === "stackedLine") && /* @__PURE__ */ e(tx, {}),
|
|
14550
14551
|
/* @__PURE__ */ e(cg, {}),
|
|
14551
14552
|
/* @__PURE__ */ e(dg, {}),
|
|
14552
14553
|
/* @__PURE__ */ e(ug, {}),
|
|
14553
|
-
/* @__PURE__ */ e(
|
|
14554
|
+
/* @__PURE__ */ e(mg, {}),
|
|
14555
|
+
/* @__PURE__ */ e(dx, {})
|
|
14554
14556
|
] });
|
|
14555
14557
|
}
|
|
14556
|
-
function
|
|
14558
|
+
function ux() {
|
|
14557
14559
|
const t = I((r) => r.card), n = t == null ? void 0 : t.type;
|
|
14558
14560
|
return n ? /* @__PURE__ */ a("div", { className: "space-y-4 px-6 py-4", children: [
|
|
14559
14561
|
/* @__PURE__ */ e(Yi, { chartType: n }),
|
|
14560
14562
|
/* @__PURE__ */ e(dn, { type: "single", collapsible: !0, className: "w-full px-2", children: /* @__PURE__ */ e(to, { mode: "dev" }) })
|
|
14561
14563
|
] }) : null;
|
|
14562
14564
|
}
|
|
14563
|
-
function
|
|
14565
|
+
function mx({
|
|
14564
14566
|
focusSection: t,
|
|
14565
14567
|
focusRequestId: n
|
|
14566
14568
|
}) {
|
|
@@ -14577,13 +14579,13 @@ function ux({
|
|
|
14577
14579
|
);
|
|
14578
14580
|
switch (s) {
|
|
14579
14581
|
case "kpi":
|
|
14580
|
-
return /* @__PURE__ */ e(
|
|
14582
|
+
return /* @__PURE__ */ e(zf, {});
|
|
14581
14583
|
case "custom":
|
|
14582
14584
|
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(Ui, {}) });
|
|
14583
14585
|
case "text":
|
|
14584
|
-
return /* @__PURE__ */ e(
|
|
14586
|
+
return /* @__PURE__ */ e(rg, {});
|
|
14585
14587
|
default:
|
|
14586
|
-
return /* @__PURE__ */ e(
|
|
14588
|
+
return /* @__PURE__ */ e(ux, {});
|
|
14587
14589
|
}
|
|
14588
14590
|
}
|
|
14589
14591
|
return /* @__PURE__ */ a(un, { className: "h-full w-full text-sm", children: [
|
|
@@ -14591,8 +14593,8 @@ function ux({
|
|
|
14591
14593
|
/* @__PURE__ */ e(Fu, { orientation: "horizontal" })
|
|
14592
14594
|
] });
|
|
14593
14595
|
}
|
|
14594
|
-
const
|
|
14595
|
-
function
|
|
14596
|
+
const hx = 32;
|
|
14597
|
+
function px() {
|
|
14596
14598
|
const t = Ve(null), n = I((m) => m.isDevMode), [r, s] = G(!1), [l, c] = G({ section: null, id: 0 }), d = !n || r, i = () => s((m) => !m), o = (m) => {
|
|
14597
14599
|
m && c((p) => ({
|
|
14598
14600
|
section: m,
|
|
@@ -14623,10 +14625,10 @@ function hx() {
|
|
|
14623
14625
|
defaultSize: 50,
|
|
14624
14626
|
collapsible: !0,
|
|
14625
14627
|
collapsedSize: 0,
|
|
14626
|
-
children: /* @__PURE__ */ e("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: /* @__PURE__ */ e(
|
|
14628
|
+
children: /* @__PURE__ */ e("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: /* @__PURE__ */ e(Kp, {}) })
|
|
14627
14629
|
}
|
|
14628
14630
|
),
|
|
14629
|
-
/* @__PURE__ */ e(
|
|
14631
|
+
/* @__PURE__ */ e(Ef, { onToggleEditor: f, children: /* @__PURE__ */ e(
|
|
14630
14632
|
Vn,
|
|
14631
14633
|
{
|
|
14632
14634
|
mode: "toolbar",
|
|
@@ -14646,10 +14648,10 @@ function hx() {
|
|
|
14646
14648
|
oa,
|
|
14647
14649
|
{
|
|
14648
14650
|
className: "flex",
|
|
14649
|
-
defaultSize:
|
|
14651
|
+
defaultSize: hx,
|
|
14650
14652
|
maxSize: 45,
|
|
14651
14653
|
children: /* @__PURE__ */ e(
|
|
14652
|
-
|
|
14654
|
+
mx,
|
|
14653
14655
|
{
|
|
14654
14656
|
focusSection: l.section,
|
|
14655
14657
|
focusRequestId: l.id
|
|
@@ -14789,7 +14791,7 @@ function ao({
|
|
|
14789
14791
|
h && /* @__PURE__ */ e(It, { 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: h }) })
|
|
14790
14792
|
] });
|
|
14791
14793
|
}
|
|
14792
|
-
function
|
|
14794
|
+
function fx({
|
|
14793
14795
|
aliasTemplate: t,
|
|
14794
14796
|
onAliasTemplateChange: n
|
|
14795
14797
|
}) {
|
|
@@ -14849,7 +14851,7 @@ function px({
|
|
|
14849
14851
|
] })
|
|
14850
14852
|
] });
|
|
14851
14853
|
}
|
|
14852
|
-
function
|
|
14854
|
+
function gx({
|
|
14853
14855
|
valueAliases: t,
|
|
14854
14856
|
onValueAliasesChange: n
|
|
14855
14857
|
}) {
|
|
@@ -14971,7 +14973,7 @@ function fx({
|
|
|
14971
14973
|
] })
|
|
14972
14974
|
] });
|
|
14973
14975
|
}
|
|
14974
|
-
function
|
|
14976
|
+
function xx({ idx: t }) {
|
|
14975
14977
|
var i;
|
|
14976
14978
|
const n = I((o) => {
|
|
14977
14979
|
var f;
|
|
@@ -15032,7 +15034,7 @@ function gx({ idx: t }) {
|
|
|
15032
15034
|
onClick: () => d("start", t),
|
|
15033
15035
|
className: "h-7 p-1 text-xs font-normal",
|
|
15034
15036
|
children: /* @__PURE__ */ e(
|
|
15035
|
-
|
|
15037
|
+
Xh,
|
|
15036
15038
|
{
|
|
15037
15039
|
className: J("h-4 w-4", {
|
|
15038
15040
|
"rotate-90": l === "y"
|
|
@@ -15047,7 +15049,7 @@ function gx({ idx: t }) {
|
|
|
15047
15049
|
onClick: () => d("center", t),
|
|
15048
15050
|
className: "h-7 p-1 text-xs font-normal",
|
|
15049
15051
|
children: /* @__PURE__ */ e(
|
|
15050
|
-
|
|
15052
|
+
ep,
|
|
15051
15053
|
{
|
|
15052
15054
|
className: J("h-4 w-4", {
|
|
15053
15055
|
"rotate-90": l === "y"
|
|
@@ -15062,7 +15064,7 @@ function gx({ idx: t }) {
|
|
|
15062
15064
|
onClick: () => d("end", t),
|
|
15063
15065
|
className: "h-7 p-1 text-xs font-normal",
|
|
15064
15066
|
children: /* @__PURE__ */ e(
|
|
15065
|
-
|
|
15067
|
+
Zh,
|
|
15066
15068
|
{
|
|
15067
15069
|
className: J("h-4 w-4", {
|
|
15068
15070
|
"rotate-90": l === "y"
|
|
@@ -15074,10 +15076,10 @@ function gx({ idx: t }) {
|
|
|
15074
15076
|
] }) })
|
|
15075
15077
|
] });
|
|
15076
15078
|
}
|
|
15077
|
-
function
|
|
15079
|
+
function bx(t, n = 30) {
|
|
15078
15080
|
return t.length > n ? t.slice(0, n) + "..." : t;
|
|
15079
15081
|
}
|
|
15080
|
-
function
|
|
15082
|
+
function vx({
|
|
15081
15083
|
col: t,
|
|
15082
15084
|
idx: n,
|
|
15083
15085
|
className: r,
|
|
@@ -15126,7 +15128,7 @@ function bx({
|
|
|
15126
15128
|
r
|
|
15127
15129
|
),
|
|
15128
15130
|
children: [
|
|
15129
|
-
l || /* @__PURE__ */ e(Hr, { className: "max-w-[100px]", title: t, children:
|
|
15131
|
+
l || /* @__PURE__ */ e(Hr, { className: "max-w-[100px]", title: t, children: bx(t) }),
|
|
15130
15132
|
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
15131
15133
|
/* @__PURE__ */ e(
|
|
15132
15134
|
cn,
|
|
@@ -15158,13 +15160,13 @@ function bx({
|
|
|
15158
15160
|
)
|
|
15159
15161
|
}
|
|
15160
15162
|
),
|
|
15161
|
-
/* @__PURE__ */ e(
|
|
15163
|
+
/* @__PURE__ */ e(xx, { idx: n })
|
|
15162
15164
|
] })
|
|
15163
15165
|
]
|
|
15164
15166
|
}
|
|
15165
15167
|
);
|
|
15166
15168
|
}
|
|
15167
|
-
function
|
|
15169
|
+
function yx() {
|
|
15168
15170
|
const t = I((i) => i.card.type), n = I((i) => i.isDevMode), r = I((i) => i.card.preferences), { setCardPreferences: s } = I((i) => i.actions);
|
|
15169
15171
|
function l(i) {
|
|
15170
15172
|
var u;
|
|
@@ -15233,7 +15235,7 @@ function vx() {
|
|
|
15233
15235
|
}
|
|
15234
15236
|
return /* @__PURE__ */ e(me, { children: n ? c() : d() });
|
|
15235
15237
|
}
|
|
15236
|
-
function
|
|
15238
|
+
function Nx({
|
|
15237
15239
|
column: t
|
|
15238
15240
|
}) {
|
|
15239
15241
|
const n = I((o) => o.card.type), r = I(
|
|
@@ -15245,12 +15247,12 @@ function yx({
|
|
|
15245
15247
|
(o) => o === t.label || o === t.name
|
|
15246
15248
|
), c = l ? s.indexOf(l) : -1;
|
|
15247
15249
|
function d() {
|
|
15248
|
-
return /* @__PURE__ */ e("div", { className: "pr-1", children: l && /* @__PURE__ */ e(
|
|
15250
|
+
return /* @__PURE__ */ e("div", { className: "pr-1", children: l && /* @__PURE__ */ e(vx, { idx: c, col: l, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
|
|
15249
15251
|
}
|
|
15250
15252
|
function i() {
|
|
15251
15253
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15252
15254
|
/* @__PURE__ */ e(O, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
|
|
15253
|
-
/* @__PURE__ */ e(
|
|
15255
|
+
/* @__PURE__ */ e(yx, {})
|
|
15254
15256
|
] });
|
|
15255
15257
|
}
|
|
15256
15258
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
@@ -15258,7 +15260,7 @@ function yx({
|
|
|
15258
15260
|
["pie", "doughnut"].includes(n) && i()
|
|
15259
15261
|
] });
|
|
15260
15262
|
}
|
|
15261
|
-
function
|
|
15263
|
+
function Cx({
|
|
15262
15264
|
field: t,
|
|
15263
15265
|
searchQuery: n = "",
|
|
15264
15266
|
limit: r = 500
|
|
@@ -15350,8 +15352,8 @@ function Nx({
|
|
|
15350
15352
|
refetch: f.refetch
|
|
15351
15353
|
};
|
|
15352
15354
|
}
|
|
15353
|
-
const
|
|
15354
|
-
function
|
|
15355
|
+
const wx = /* @__PURE__ */ new Set();
|
|
15356
|
+
function Sx({
|
|
15355
15357
|
open: t,
|
|
15356
15358
|
onOpenChange: n,
|
|
15357
15359
|
availableFields: r,
|
|
@@ -15458,7 +15460,7 @@ function wx({
|
|
|
15458
15460
|
Kd,
|
|
15459
15461
|
{
|
|
15460
15462
|
fields: h,
|
|
15461
|
-
selectedIds:
|
|
15463
|
+
selectedIds: wx,
|
|
15462
15464
|
onSelect: y,
|
|
15463
15465
|
query: f,
|
|
15464
15466
|
onQueryChange: u,
|
|
@@ -15469,7 +15471,7 @@ function wx({
|
|
|
15469
15471
|
emptyMessage: f ? `No fields found matching "${f}"` : r.length > 0 ? "All available fields are already filtered" : void 0
|
|
15470
15472
|
}
|
|
15471
15473
|
) }) : /* @__PURE__ */ e(
|
|
15472
|
-
|
|
15474
|
+
kx,
|
|
15473
15475
|
{
|
|
15474
15476
|
field: m.field,
|
|
15475
15477
|
selectedValues: m.selectedValues,
|
|
@@ -15494,7 +15496,7 @@ function wx({
|
|
|
15494
15496
|
] })
|
|
15495
15497
|
] }) });
|
|
15496
15498
|
}
|
|
15497
|
-
function
|
|
15499
|
+
function kx({
|
|
15498
15500
|
field: t,
|
|
15499
15501
|
selectedValues: n,
|
|
15500
15502
|
onValuesChange: r,
|
|
@@ -15504,7 +15506,7 @@ function Sx({
|
|
|
15504
15506
|
values: d,
|
|
15505
15507
|
isLoading: i,
|
|
15506
15508
|
isFetching: o
|
|
15507
|
-
} =
|
|
15509
|
+
} = Cx({
|
|
15508
15510
|
field: t,
|
|
15509
15511
|
searchQuery: l,
|
|
15510
15512
|
limit: 500
|
|
@@ -15573,7 +15575,7 @@ function Sx({
|
|
|
15573
15575
|
] });
|
|
15574
15576
|
}
|
|
15575
15577
|
const Jn = "auto", Qn = qd;
|
|
15576
|
-
function
|
|
15578
|
+
function Tx({
|
|
15577
15579
|
format: t,
|
|
15578
15580
|
column: n,
|
|
15579
15581
|
dateOnly: r,
|
|
@@ -15694,16 +15696,16 @@ function kx({
|
|
|
15694
15696
|
)
|
|
15695
15697
|
] });
|
|
15696
15698
|
}
|
|
15697
|
-
function
|
|
15699
|
+
function Ex(t, n) {
|
|
15698
15700
|
return t === "pivotBy" && n === "table";
|
|
15699
15701
|
}
|
|
15700
|
-
const
|
|
15702
|
+
const Fx = [], Yn = {
|
|
15701
15703
|
running_total: "Running Total",
|
|
15702
15704
|
moving_average: "Moving Average",
|
|
15703
15705
|
difference_from_previous: "Difference from previous",
|
|
15704
15706
|
percent_of_total: "Percent of Total"
|
|
15705
15707
|
};
|
|
15706
|
-
function
|
|
15708
|
+
function Dx({
|
|
15707
15709
|
field: t,
|
|
15708
15710
|
zone: n,
|
|
15709
15711
|
index: r,
|
|
@@ -15722,7 +15724,7 @@ function Fx({
|
|
|
15722
15724
|
var ke;
|
|
15723
15725
|
return Q.visualEditPendingDashboardCalculatedFields ?? ((ke = Q.dashboard) == null ? void 0 : ke.calculatedFields);
|
|
15724
15726
|
}
|
|
15725
|
-
) ??
|
|
15727
|
+
) ?? Fx, {
|
|
15726
15728
|
scopedFields: k,
|
|
15727
15729
|
valuePickFilterableFields: x,
|
|
15728
15730
|
isLoading: v,
|
|
@@ -15814,7 +15816,7 @@ function Fx({
|
|
|
15814
15816
|
M(n, r, Q);
|
|
15815
15817
|
}, gn = Ud(t);
|
|
15816
15818
|
Gd(t);
|
|
15817
|
-
const Jr = Hd(t), xn = t.role === "metric" && Jr, bn = Jr && (gn === "user_calculated" || gn === "inline_expression" && t.fieldScope !== "domain"), St = bn ?
|
|
15819
|
+
const Jr = Hd(t), xn = t.role === "metric" && Jr, bn = Jr && (gn === "user_calculated" || gn === "inline_expression" && t.fieldScope !== "domain"), St = bn ? Nh({
|
|
15818
15820
|
field: t,
|
|
15819
15821
|
sheetFields: (o == null ? void 0 : o.calculatedFields) || [],
|
|
15820
15822
|
dashboardFields: y
|
|
@@ -15848,11 +15850,11 @@ function Fx({
|
|
|
15848
15850
|
}) : void 0,
|
|
15849
15851
|
[Va, C, S, n]
|
|
15850
15852
|
), ht = le(
|
|
15851
|
-
() =>
|
|
15853
|
+
() => $h(
|
|
15852
15854
|
i,
|
|
15853
|
-
|
|
15855
|
+
Ph(
|
|
15854
15856
|
as,
|
|
15855
|
-
|
|
15857
|
+
Oh(ns, rs, P)
|
|
15856
15858
|
)
|
|
15857
15859
|
),
|
|
15858
15860
|
[i, as, ns, rs, P]
|
|
@@ -15873,7 +15875,7 @@ function Fx({
|
|
|
15873
15875
|
Ne(() => {
|
|
15874
15876
|
ba && qe(!0);
|
|
15875
15877
|
}, [ba]);
|
|
15876
|
-
const go = n !== "pivotBy" && n !== "sortBy", xo =
|
|
15878
|
+
const go = n !== "pivotBy" && n !== "sortBy", xo = Ex(
|
|
15877
15879
|
n,
|
|
15878
15880
|
d
|
|
15879
15881
|
), bo = t.memberOrder ?? "auto", vo = Zr && n === "groupBy", yo = !yn && Zr && (n === "groupBy" || Nn), No = n === "metrics", Co = !yn && vn === "number" && (n === "groupBy" || Nn) && eh(d), Ka = !!(ct && Object.values(ct.comparison).some((Q) => Q.offered)), wo = () => {
|
|
@@ -15974,7 +15976,7 @@ function Fx({
|
|
|
15974
15976
|
] }) : null, Eo = () => {
|
|
15975
15977
|
var Q;
|
|
15976
15978
|
return yo ? n === "detailColumns" ? /* @__PURE__ */ e(
|
|
15977
|
-
|
|
15979
|
+
Tx,
|
|
15978
15980
|
{
|
|
15979
15981
|
format: t.format,
|
|
15980
15982
|
column: t,
|
|
@@ -16573,17 +16575,17 @@ function Fx({
|
|
|
16573
16575
|
}
|
|
16574
16576
|
)
|
|
16575
16577
|
] }),
|
|
16576
|
-
/* @__PURE__ */ e(
|
|
16578
|
+
/* @__PURE__ */ e(Nx, { column: t }),
|
|
16577
16579
|
c && /* @__PURE__ */ a(me, { children: [
|
|
16578
16580
|
/* @__PURE__ */ e(
|
|
16579
|
-
|
|
16581
|
+
fx,
|
|
16580
16582
|
{
|
|
16581
16583
|
aliasTemplate: _e,
|
|
16582
16584
|
onAliasTemplateChange: wt
|
|
16583
16585
|
}
|
|
16584
16586
|
),
|
|
16585
16587
|
/* @__PURE__ */ e(
|
|
16586
|
-
|
|
16588
|
+
gx,
|
|
16587
16589
|
{
|
|
16588
16590
|
valueAliases: se,
|
|
16589
16591
|
onValueAliasesChange: no
|
|
@@ -16635,7 +16637,7 @@ function Fx({
|
|
|
16635
16637
|
}
|
|
16636
16638
|
),
|
|
16637
16639
|
Le && /* @__PURE__ */ e(
|
|
16638
|
-
|
|
16640
|
+
Sx,
|
|
16639
16641
|
{
|
|
16640
16642
|
open: Le,
|
|
16641
16643
|
onOpenChange: (Q) => {
|
|
@@ -16783,7 +16785,7 @@ function Fx({
|
|
|
16783
16785
|
)
|
|
16784
16786
|
] });
|
|
16785
16787
|
}
|
|
16786
|
-
function
|
|
16788
|
+
function Ix({
|
|
16787
16789
|
field: t,
|
|
16788
16790
|
zone: n,
|
|
16789
16791
|
onRemove: r
|
|
@@ -16806,8 +16808,8 @@ function Dx({
|
|
|
16806
16808
|
}
|
|
16807
16809
|
);
|
|
16808
16810
|
}
|
|
16809
|
-
function
|
|
16810
|
-
const { title: n, description: r } =
|
|
16811
|
+
function Ax({ concept: t }) {
|
|
16812
|
+
const { title: n, description: r } = Mx[t];
|
|
16811
16813
|
return /* @__PURE__ */ a(ca, { openDelay: 150, closeDelay: 50, children: [
|
|
16812
16814
|
/* @__PURE__ */ e(da, { asChild: !0, children: /* @__PURE__ */ e(
|
|
16813
16815
|
"button",
|
|
@@ -16815,7 +16817,7 @@ function Ix({ concept: t }) {
|
|
|
16815
16817
|
type: "button",
|
|
16816
16818
|
"aria-label": `What does ${n} mean?`,
|
|
16817
16819
|
className: "inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground/70 transition-colors hover:text-foreground",
|
|
16818
|
-
children: /* @__PURE__ */ e(
|
|
16820
|
+
children: /* @__PURE__ */ e(Uh, { className: "h-3 w-3" })
|
|
16819
16821
|
}
|
|
16820
16822
|
) }),
|
|
16821
16823
|
/* @__PURE__ */ a(
|
|
@@ -16830,13 +16832,13 @@ function Ix({ concept: t }) {
|
|
|
16830
16832
|
/* @__PURE__ */ e("p", { className: "text-[12px] font-semibold text-foreground", children: n }),
|
|
16831
16833
|
/* @__PURE__ */ e("p", { className: "text-[11px] leading-[1.45] text-muted-foreground", children: r })
|
|
16832
16834
|
] }),
|
|
16833
|
-
t !== "detailColumns" && /* @__PURE__ */ e(
|
|
16835
|
+
t !== "detailColumns" && /* @__PURE__ */ e(Rx, { highlight: t })
|
|
16834
16836
|
]
|
|
16835
16837
|
}
|
|
16836
16838
|
)
|
|
16837
16839
|
] });
|
|
16838
16840
|
}
|
|
16839
|
-
const
|
|
16841
|
+
const Mx = {
|
|
16840
16842
|
groupBy: {
|
|
16841
16843
|
title: "Rows",
|
|
16842
16844
|
description: "Each unique value becomes a row. Use for the dimensions you want stacked vertically."
|
|
@@ -16854,7 +16856,7 @@ const Ax = {
|
|
|
16854
16856
|
description: "Raw column values with no aggregation — the underlying detail rows from the database."
|
|
16855
16857
|
}
|
|
16856
16858
|
};
|
|
16857
|
-
function
|
|
16859
|
+
function Rx({
|
|
16858
16860
|
highlight: t
|
|
16859
16861
|
}) {
|
|
16860
16862
|
const n = t === "pivotBy", r = t === "groupBy", s = t === "metrics", l = "bg-foreground/[0.06] font-medium text-foreground dark:bg-foreground/[0.12]";
|
|
@@ -16910,10 +16912,10 @@ function Mx({
|
|
|
16910
16912
|
const rl = [
|
|
16911
16913
|
{ label: "Electronics", values: ["2,300", "1,800", "3,400"] },
|
|
16912
16914
|
{ label: "Clothing", values: ["1,300", "620", "480"] }
|
|
16913
|
-
],
|
|
16915
|
+
], Px = {
|
|
16914
16916
|
groupBy: Ml,
|
|
16915
16917
|
pivotBy: Al,
|
|
16916
|
-
metrics:
|
|
16918
|
+
metrics: ap,
|
|
16917
16919
|
detailColumns: ei,
|
|
16918
16920
|
sortBy: Ni
|
|
16919
16921
|
};
|
|
@@ -16943,7 +16945,7 @@ function ka({
|
|
|
16943
16945
|
const P = g.direction;
|
|
16944
16946
|
return /* @__PURE__ */ a("div", { className: "relative", children: [
|
|
16945
16947
|
/* @__PURE__ */ e(
|
|
16946
|
-
|
|
16948
|
+
Ox,
|
|
16947
16949
|
{
|
|
16948
16950
|
zone: n,
|
|
16949
16951
|
pillId: g.id,
|
|
@@ -16951,14 +16953,14 @@ function ka({
|
|
|
16951
16953
|
}
|
|
16952
16954
|
),
|
|
16953
16955
|
m === "matrixTable" ? /* @__PURE__ */ e(
|
|
16954
|
-
|
|
16956
|
+
Ix,
|
|
16955
16957
|
{
|
|
16956
16958
|
field: g,
|
|
16957
16959
|
zone: n,
|
|
16958
16960
|
onRemove: () => t(n, D)
|
|
16959
16961
|
}
|
|
16960
16962
|
) : /* @__PURE__ */ e(
|
|
16961
|
-
|
|
16963
|
+
Dx,
|
|
16962
16964
|
{
|
|
16963
16965
|
field: g,
|
|
16964
16966
|
zone: n,
|
|
@@ -16975,7 +16977,7 @@ function ka({
|
|
|
16975
16977
|
);
|
|
16976
16978
|
if (n === "sortBy" && c === !1)
|
|
16977
16979
|
return null;
|
|
16978
|
-
const N = n !== "sortBy" && m !== "kpi", w =
|
|
16980
|
+
const N = n !== "sortBy" && m !== "kpi", w = Px[n] || Ft;
|
|
16979
16981
|
return /* @__PURE__ */ a("div", { ref: i, className: "w-full", role: "group", "aria-label": s, children: [
|
|
16980
16982
|
/* @__PURE__ */ a("div", { className: "mb-1 flex min-w-0 items-center justify-between gap-2", children: [
|
|
16981
16983
|
/* @__PURE__ */ e(O, { className: "block shrink-0 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: s }),
|
|
@@ -17001,13 +17003,13 @@ function ka({
|
|
|
17001
17003
|
children: r.length === 0 ? /* @__PURE__ */ a("div", { className: "flex h-9 items-center justify-center gap-1.5 text-[11px] text-muted-foreground/80", children: [
|
|
17002
17004
|
/* @__PURE__ */ e(w, { className: "h-3 w-3 shrink-0 text-muted-foreground/60" }),
|
|
17003
17005
|
/* @__PURE__ */ e("span", { children: l }),
|
|
17004
|
-
N && /* @__PURE__ */ e(
|
|
17006
|
+
N && /* @__PURE__ */ e(Ax, { concept: n })
|
|
17005
17007
|
] }) : v
|
|
17006
17008
|
}
|
|
17007
17009
|
)
|
|
17008
17010
|
] });
|
|
17009
17011
|
}
|
|
17010
|
-
function
|
|
17012
|
+
function Ox({
|
|
17011
17013
|
zone: t,
|
|
17012
17014
|
pillId: n,
|
|
17013
17015
|
isLast: r
|
|
@@ -17029,31 +17031,31 @@ function Px({
|
|
|
17029
17031
|
}
|
|
17030
17032
|
) : null;
|
|
17031
17033
|
}
|
|
17032
|
-
const
|
|
17033
|
-
function
|
|
17034
|
+
const Lx = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
|
|
17035
|
+
function _x({
|
|
17034
17036
|
card: t,
|
|
17035
17037
|
metric: n,
|
|
17036
17038
|
children: r
|
|
17037
17039
|
}) {
|
|
17038
17040
|
var f, u;
|
|
17039
|
-
const { data: s } = at(t), l = s == null ? void 0 : s.metadata, c =
|
|
17041
|
+
const { data: s } = at(t), l = s == null ? void 0 : s.metadata, c = Ch(
|
|
17040
17042
|
l == null ? void 0 : l.dateContext,
|
|
17041
17043
|
n ? xh(l == null ? void 0 : l.comparisonMetadata, n) : void 0
|
|
17042
|
-
), d = s == null ? void 0 : s.records, i = ((f = ah({ renderCard: t, records: d, metadata: l }).trend) == null ? void 0 : f.points.length) ?? 0, o = ((u = t.config) == null ? void 0 : u.kpiBand) === "trend" ?
|
|
17044
|
+
), d = s == null ? void 0 : s.records, i = ((f = ah({ renderCard: t, records: d, metadata: l }).trend) == null ? void 0 : f.points.length) ?? 0, o = ((u = t.config) == null ? void 0 : u.kpiBand) === "trend" ? zh(l == null ? void 0 : l.trend, i) : void 0;
|
|
17043
17045
|
return /* @__PURE__ */ e(me, { children: r(c, o) });
|
|
17044
17046
|
}
|
|
17045
|
-
function
|
|
17046
|
-
const r = fe((l) => l.dashboard), s =
|
|
17047
|
+
function Vx({ view: t, trend: n }) {
|
|
17048
|
+
const r = fe((l) => l.dashboard), s = wh(t, {
|
|
17047
17049
|
cardTitle: (l) => {
|
|
17048
17050
|
var c;
|
|
17049
17051
|
return r ? (c = bh(r, l)) == null ? void 0 : c.title : void 0;
|
|
17050
17052
|
}
|
|
17051
17053
|
});
|
|
17052
|
-
return /* @__PURE__ */ e(
|
|
17054
|
+
return /* @__PURE__ */ e(Bx, { words: s, trend: n });
|
|
17053
17055
|
}
|
|
17054
|
-
function
|
|
17056
|
+
function Bx({ words: t, trend: n }) {
|
|
17055
17057
|
return /* @__PURE__ */ a("div", { className: "space-y-1.5 pt-1", "data-role": "kpi-date-section", children: [
|
|
17056
|
-
/* @__PURE__ */ e("div", { className:
|
|
17058
|
+
/* @__PURE__ */ e("div", { className: Lx, children: "Date" }),
|
|
17057
17059
|
/* @__PURE__ */ a("div", { className: "rounded-control border border-border bg-muted/20 text-[12px]", children: [
|
|
17058
17060
|
/* @__PURE__ */ a("div", { className: "flex items-start gap-2 border-b border-border/70 px-2.5 py-2", children: [
|
|
17059
17061
|
/* @__PURE__ */ e(Xd, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground", "aria-hidden": !0 }),
|
|
@@ -17098,8 +17100,8 @@ function Vx({ words: t, trend: n }) {
|
|
|
17098
17100
|
] })
|
|
17099
17101
|
] });
|
|
17100
17102
|
}
|
|
17101
|
-
const
|
|
17102
|
-
function
|
|
17103
|
+
const Kx = [];
|
|
17104
|
+
function jx({
|
|
17103
17105
|
onRemoveField: t,
|
|
17104
17106
|
onResetFields: n,
|
|
17105
17107
|
groupByFields: r,
|
|
@@ -17138,7 +17140,7 @@ function Kx({
|
|
|
17138
17140
|
var ce;
|
|
17139
17141
|
return ae.visualEditPendingDashboardCalculatedFields ?? ((ce = ae.dashboard) == null ? void 0 : ce.calculatedFields);
|
|
17140
17142
|
}
|
|
17141
|
-
) ??
|
|
17143
|
+
) ?? Kx, { scopedFields: V } = $l(), { userContext: S } = rn(), C = y && (m == null ? void 0 : m.id) === f.id && k ? k : f == null ? void 0 : f.type, M = C === "detailTable", $ = r.length > 0 || l.length > 0 || d.length > 0, U = !M && (C !== "kpi" || l.length <= 2), L = !M, b = !M && C !== "kpi", _ = C !== "kpi" && C !== "matrixTable" && $, T = M, F = "Drop sort fields here", E = Hl(S), R = [
|
|
17142
17144
|
"pie",
|
|
17143
17145
|
"doughnut",
|
|
17144
17146
|
"polar",
|
|
@@ -17148,7 +17150,7 @@ function Kx({
|
|
|
17148
17150
|
].includes(C), B = b && !R, q = C === "kpi" && f.type === "kpi" && !y && !Fr(f), K = (ae) => C === "kpi" ? {
|
|
17149
17151
|
label: "Trend By",
|
|
17150
17152
|
// The date the KPI counts on while nothing is on Trend By (KD-D6).
|
|
17151
|
-
placeholder:
|
|
17153
|
+
placeholder: Sh(ae) ?? "Drop trend field here"
|
|
17152
17154
|
} : {
|
|
17153
17155
|
label: "Rows",
|
|
17154
17156
|
placeholder: "Drop dimensions here"
|
|
@@ -17213,7 +17215,7 @@ function Kx({
|
|
|
17213
17215
|
]
|
|
17214
17216
|
}
|
|
17215
17217
|
),
|
|
17216
|
-
ae && /* @__PURE__ */ e(
|
|
17218
|
+
ae && /* @__PURE__ */ e(Vx, { view: ae, trend: ce }),
|
|
17217
17219
|
_ && /* @__PURE__ */ e(
|
|
17218
17220
|
ka,
|
|
17219
17221
|
{
|
|
@@ -17246,7 +17248,7 @@ function Kx({
|
|
|
17246
17248
|
]
|
|
17247
17249
|
}
|
|
17248
17250
|
),
|
|
17249
|
-
q ? /* @__PURE__ */ e(
|
|
17251
|
+
q ? /* @__PURE__ */ e(_x, { card: f, metric: l[0], children: (ae, ce) => te(ae, ce) }) : te(void 0),
|
|
17250
17252
|
/* @__PURE__ */ e(
|
|
17251
17253
|
Ql,
|
|
17252
17254
|
{
|
|
@@ -17299,7 +17301,7 @@ function Kx({
|
|
|
17299
17301
|
)
|
|
17300
17302
|
] });
|
|
17301
17303
|
}
|
|
17302
|
-
function
|
|
17304
|
+
function qx() {
|
|
17303
17305
|
var N, w, g;
|
|
17304
17306
|
const t = I((D) => {
|
|
17305
17307
|
var A;
|
|
@@ -17392,7 +17394,7 @@ function jx() {
|
|
|
17392
17394
|
)
|
|
17393
17395
|
] });
|
|
17394
17396
|
}
|
|
17395
|
-
function
|
|
17397
|
+
function $x({ onEditJoins: t }) {
|
|
17396
17398
|
const n = I((o) => o.card), { autoJoinMetadata: r } = at(n);
|
|
17397
17399
|
if (!(r != null && r.autoResolved))
|
|
17398
17400
|
return null;
|
|
@@ -17489,7 +17491,7 @@ function qx({ onEditJoins: t }) {
|
|
|
17489
17491
|
)
|
|
17490
17492
|
] });
|
|
17491
17493
|
}
|
|
17492
|
-
function
|
|
17494
|
+
function zx({
|
|
17493
17495
|
onRemoveField: t,
|
|
17494
17496
|
onResetFields: n,
|
|
17495
17497
|
selectedChart: r,
|
|
@@ -17533,7 +17535,7 @@ function $x({
|
|
|
17533
17535
|
children: [
|
|
17534
17536
|
!x && /* @__PURE__ */ a("div", { className: "flex items-start", children: [
|
|
17535
17537
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e(
|
|
17536
|
-
|
|
17538
|
+
hf,
|
|
17537
17539
|
{
|
|
17538
17540
|
selectedChart: r,
|
|
17539
17541
|
onChartChange: s
|
|
@@ -17551,9 +17553,9 @@ function $x({
|
|
|
17551
17553
|
) })
|
|
17552
17554
|
] }),
|
|
17553
17555
|
/* @__PURE__ */ a(un, { 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: [
|
|
17554
|
-
/* @__PURE__ */ e("div", { className: "px-4 pt-4 empty:hidden", children: /* @__PURE__ */ e(
|
|
17556
|
+
/* @__PURE__ */ e("div", { className: "px-4 pt-4 empty:hidden", children: /* @__PURE__ */ e($x, { onEditJoins: P }) }),
|
|
17555
17557
|
/* @__PURE__ */ e(
|
|
17556
|
-
|
|
17558
|
+
jx,
|
|
17557
17559
|
{
|
|
17558
17560
|
onRemoveField: t,
|
|
17559
17561
|
onResetFields: n,
|
|
@@ -17565,7 +17567,7 @@ function $x({
|
|
|
17565
17567
|
}
|
|
17566
17568
|
)
|
|
17567
17569
|
] }),
|
|
17568
|
-
/* @__PURE__ */ e(
|
|
17570
|
+
/* @__PURE__ */ e(qx, {}),
|
|
17569
17571
|
/* @__PURE__ */ e(
|
|
17570
17572
|
ki,
|
|
17571
17573
|
{
|
|
@@ -17599,7 +17601,7 @@ function $x({
|
|
|
17599
17601
|
}
|
|
17600
17602
|
);
|
|
17601
17603
|
}
|
|
17602
|
-
function
|
|
17604
|
+
function Ux({
|
|
17603
17605
|
cardId: t,
|
|
17604
17606
|
filters: n,
|
|
17605
17607
|
onFiltersChange: r,
|
|
@@ -17645,7 +17647,7 @@ function zx({
|
|
|
17645
17647
|
] });
|
|
17646
17648
|
}
|
|
17647
17649
|
const sl = (t) => t.active.data.current ?? null;
|
|
17648
|
-
function
|
|
17650
|
+
function Gx({
|
|
17649
17651
|
activeCardId: t,
|
|
17650
17652
|
placeField: n,
|
|
17651
17653
|
previewFieldPlacement: r
|
|
@@ -17692,7 +17694,7 @@ function Ux({
|
|
|
17692
17694
|
handleDragCancel: f
|
|
17693
17695
|
};
|
|
17694
17696
|
}
|
|
17695
|
-
function
|
|
17697
|
+
function Hx({
|
|
17696
17698
|
activeView: t,
|
|
17697
17699
|
onViewChange: n,
|
|
17698
17700
|
splitViewEnabled: r,
|
|
@@ -17728,7 +17730,7 @@ function Gx({
|
|
|
17728
17730
|
}
|
|
17729
17731
|
);
|
|
17730
17732
|
}
|
|
17731
|
-
const
|
|
17733
|
+
const Jx = [
|
|
17732
17734
|
{ value: "10", label: "10" },
|
|
17733
17735
|
{ value: "20", label: "20" },
|
|
17734
17736
|
{ value: "50", label: "50" },
|
|
@@ -17737,7 +17739,7 @@ const Hx = [
|
|
|
17737
17739
|
{ value: "500", label: "500" },
|
|
17738
17740
|
{ value: "1000", label: "1,000" }
|
|
17739
17741
|
];
|
|
17740
|
-
function
|
|
17742
|
+
function Qx() {
|
|
17741
17743
|
var r, s;
|
|
17742
17744
|
const t = I((l) => l.card), { updateRowLimit: n } = be();
|
|
17743
17745
|
return /* @__PURE__ */ a(
|
|
@@ -17758,7 +17760,7 @@ function Jx() {
|
|
|
17758
17760
|
]
|
|
17759
17761
|
}
|
|
17760
17762
|
),
|
|
17761
|
-
/* @__PURE__ */ e(ee, { align: "end", children:
|
|
17763
|
+
/* @__PURE__ */ e(ee, { align: "end", children: Jx.map((l) => /* @__PURE__ */ e(
|
|
17762
17764
|
j,
|
|
17763
17765
|
{
|
|
17764
17766
|
value: l.value,
|
|
@@ -17771,7 +17773,7 @@ function Jx() {
|
|
|
17771
17773
|
}
|
|
17772
17774
|
);
|
|
17773
17775
|
}
|
|
17774
|
-
function
|
|
17776
|
+
function Yx({
|
|
17775
17777
|
card: t,
|
|
17776
17778
|
queryData: n,
|
|
17777
17779
|
isLoading: r,
|
|
@@ -17827,7 +17829,7 @@ function Qx({
|
|
|
17827
17829
|
)
|
|
17828
17830
|
] });
|
|
17829
17831
|
}
|
|
17830
|
-
function
|
|
17832
|
+
function Wx(t, n) {
|
|
17831
17833
|
const [r, s] = G(() => {
|
|
17832
17834
|
const l = localStorage.getItem(t);
|
|
17833
17835
|
return l ? JSON.parse(l) : n;
|
|
@@ -17836,11 +17838,11 @@ function Yx(t, n) {
|
|
|
17836
17838
|
localStorage.setItem(t, JSON.stringify(r));
|
|
17837
17839
|
}, [r, t]), [r, s];
|
|
17838
17840
|
}
|
|
17839
|
-
const
|
|
17840
|
-
function
|
|
17841
|
-
return
|
|
17841
|
+
const Xx = "semaphor-split-view-enabled";
|
|
17842
|
+
function Zx() {
|
|
17843
|
+
return Wx(Xx, !0);
|
|
17842
17844
|
}
|
|
17843
|
-
function
|
|
17845
|
+
function eb({
|
|
17844
17846
|
error: t,
|
|
17845
17847
|
showInfoTab: n
|
|
17846
17848
|
}) {
|
|
@@ -17853,7 +17855,7 @@ function Zx({
|
|
|
17853
17855
|
}
|
|
17854
17856
|
);
|
|
17855
17857
|
}
|
|
17856
|
-
function
|
|
17858
|
+
function tb({
|
|
17857
17859
|
card: t,
|
|
17858
17860
|
effectiveCardType: n = t.type,
|
|
17859
17861
|
queryResultColumns: r
|
|
@@ -17897,7 +17899,7 @@ function eb({
|
|
|
17897
17899
|
)
|
|
17898
17900
|
] }) : null;
|
|
17899
17901
|
}
|
|
17900
|
-
function
|
|
17902
|
+
function ab({
|
|
17901
17903
|
className: t,
|
|
17902
17904
|
visible: n
|
|
17903
17905
|
}) {
|
|
@@ -17910,7 +17912,7 @@ function tb({
|
|
|
17910
17912
|
}
|
|
17911
17913
|
) });
|
|
17912
17914
|
}
|
|
17913
|
-
function
|
|
17915
|
+
function nb({
|
|
17914
17916
|
// selectedChart,
|
|
17915
17917
|
activeView: t,
|
|
17916
17918
|
onViewChange: n,
|
|
@@ -17929,7 +17931,7 @@ function ab({
|
|
|
17929
17931
|
(pe) => pe.actions.removeCardInlineFilterValue
|
|
17930
17932
|
), i = fe((pe) => pe.selectedSheetId), { updateCardConfig: o, setCard: f, updateCardInFrame: u } = be(), [m, p] = G(!1), [h, y] = G(!1), [k, x] = G(
|
|
17931
17933
|
null
|
|
17932
|
-
), { config: v } = cr(fr).tokenProps, N = (v == null ? void 0 : v.showInfoTab) !== !1, w = (v == null ? void 0 : v.showQueryDebugTools) !== !1, [g, D] =
|
|
17934
|
+
), { config: v } = cr(fr).tokenProps, N = (v == null ? void 0 : v.showInfoTab) !== !1, w = (v == null ? void 0 : v.showQueryDebugTools) !== !1, [g, D] = Zx(), A = Mr(l.type), P = N && hi(l.type), V = N && !P, S = t === "table" && (g || !A) || t === "info" && !P ? "chart" : t;
|
|
17933
17935
|
I(
|
|
17934
17936
|
(pe) => {
|
|
17935
17937
|
var qe;
|
|
@@ -17949,10 +17951,10 @@ function ab({
|
|
|
17949
17951
|
resolvedPrimaryDateField: R
|
|
17950
17952
|
} = at(s), B = sn(s, M), q = () => {
|
|
17951
17953
|
var Le;
|
|
17952
|
-
const pe = fe.getState(), qe =
|
|
17954
|
+
const pe = fe.getState(), qe = Wp(qr.QUERY_GENERATION, {
|
|
17953
17955
|
cardConfig: l.config,
|
|
17954
17956
|
dataSource: s.dataSource,
|
|
17955
|
-
dashboardFilters:
|
|
17957
|
+
dashboardFilters: Lh({
|
|
17956
17958
|
dashboard: pe.dashboard,
|
|
17957
17959
|
runtimeValues: {
|
|
17958
17960
|
dashboardInputValues: pe.dashboardInputValues
|
|
@@ -18013,7 +18015,7 @@ function ab({
|
|
|
18013
18015
|
/* @__PURE__ */ a("div", { className: "flex h-11 items-center gap-3 border-b border-border px-4", children: [
|
|
18014
18016
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
18015
18017
|
/* @__PURE__ */ e("div", { className: "flex h-11 items-end gap-5 self-stretch", children: /* @__PURE__ */ e(
|
|
18016
|
-
|
|
18018
|
+
Hx,
|
|
18017
18019
|
{
|
|
18018
18020
|
activeView: S,
|
|
18019
18021
|
onViewChange: n,
|
|
@@ -18021,7 +18023,7 @@ function ab({
|
|
|
18021
18023
|
hasQueryError: !!$
|
|
18022
18024
|
}
|
|
18023
18025
|
) }),
|
|
18024
|
-
C === "kpi" && /* @__PURE__ */ e(
|
|
18026
|
+
C === "kpi" && /* @__PURE__ */ e(ab, { visible: !0, className: "self-center" }),
|
|
18025
18027
|
F && l.type !== "table" && /* @__PURE__ */ e(
|
|
18026
18028
|
uu,
|
|
18027
18029
|
{
|
|
@@ -18030,7 +18032,7 @@ function ab({
|
|
|
18030
18032
|
)
|
|
18031
18033
|
] }),
|
|
18032
18034
|
/* @__PURE__ */ a("div", { className: "flex grow items-center justify-end gap-1", children: [
|
|
18033
|
-
!mu(C) && /* @__PURE__ */ e(
|
|
18035
|
+
!mu(C) && /* @__PURE__ */ e(Qx, {}),
|
|
18034
18036
|
/* @__PURE__ */ e(
|
|
18035
18037
|
hu,
|
|
18036
18038
|
{
|
|
@@ -18046,7 +18048,7 @@ function ab({
|
|
|
18046
18048
|
}
|
|
18047
18049
|
),
|
|
18048
18050
|
S === "chart" && /* @__PURE__ */ e(
|
|
18049
|
-
|
|
18051
|
+
tb,
|
|
18050
18052
|
{
|
|
18051
18053
|
card: s,
|
|
18052
18054
|
effectiveCardType: C,
|
|
@@ -18118,7 +18120,7 @@ function ab({
|
|
|
18118
18120
|
}
|
|
18119
18121
|
),
|
|
18120
18122
|
A && /* @__PURE__ */ a(Et, { onClick: xe, children: [
|
|
18121
|
-
g ? /* @__PURE__ */ e(
|
|
18123
|
+
g ? /* @__PURE__ */ e(Qh, { className: "h-3.5 w-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(rp, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
18122
18124
|
g ? "Hide results table" : "Show results table"
|
|
18123
18125
|
] }),
|
|
18124
18126
|
z && /* @__PURE__ */ a(
|
|
@@ -18148,13 +18150,13 @@ function ab({
|
|
|
18148
18150
|
onOpenInEditor: Dr(l.type) ? K : void 0
|
|
18149
18151
|
}
|
|
18150
18152
|
) }) : /* @__PURE__ */ e(
|
|
18151
|
-
|
|
18153
|
+
eb,
|
|
18152
18154
|
{
|
|
18153
18155
|
error: $,
|
|
18154
18156
|
showInfoTab: P
|
|
18155
18157
|
}
|
|
18156
18158
|
) : /* @__PURE__ */ e("div", { className: "flex grow flex-col", children: /* @__PURE__ */ e(
|
|
18157
|
-
|
|
18159
|
+
Yx,
|
|
18158
18160
|
{
|
|
18159
18161
|
card: B,
|
|
18160
18162
|
queryData: M,
|
|
@@ -18235,7 +18237,7 @@ function ab({
|
|
|
18235
18237
|
)
|
|
18236
18238
|
] }) });
|
|
18237
18239
|
}
|
|
18238
|
-
function
|
|
18240
|
+
function rb({ activeField: t }) {
|
|
18239
18241
|
const [n, r] = G(!0);
|
|
18240
18242
|
if (Ne(() => {
|
|
18241
18243
|
t && r(!0);
|
|
@@ -18252,11 +18254,11 @@ function nb({ activeField: t }) {
|
|
|
18252
18254
|
}
|
|
18253
18255
|
);
|
|
18254
18256
|
}
|
|
18255
|
-
function
|
|
18257
|
+
function sb() {
|
|
18256
18258
|
const { active: t } = pu(), n = t == null ? void 0 : t.data.current;
|
|
18257
|
-
return /* @__PURE__ */ e(
|
|
18259
|
+
return /* @__PURE__ */ e(rb, { activeField: (n == null ? void 0 : n.field) ?? null });
|
|
18258
18260
|
}
|
|
18259
|
-
const
|
|
18261
|
+
const lb = () => {
|
|
18260
18262
|
const t = console.error;
|
|
18261
18263
|
console.error = (...s) => {
|
|
18262
18264
|
s.length > 0 && typeof s[0] == "string" && s[0].includes(
|
|
@@ -18283,11 +18285,11 @@ const sb = () => {
|
|
|
18283
18285
|
);
|
|
18284
18286
|
};
|
|
18285
18287
|
};
|
|
18286
|
-
function
|
|
18288
|
+
function ib() {
|
|
18287
18289
|
const [t, n] = G(
|
|
18288
18290
|
"chart"
|
|
18289
18291
|
), [r, s] = G(!1), [l, c] = G(!0), [d, i] = G(!0), o = fe((te) => te.isVisualEditing), f = Br(), u = I((te) => te.card.type);
|
|
18290
|
-
Ne(() =>
|
|
18292
|
+
Ne(() => lb(), []);
|
|
18291
18293
|
const m = (te) => {
|
|
18292
18294
|
f(te);
|
|
18293
18295
|
}, p = I((te) => te.frame), h = I((te) => te.card);
|
|
@@ -18316,7 +18318,7 @@ function lb() {
|
|
|
18316
18318
|
handleDragOver: _,
|
|
18317
18319
|
handleDragEnd: T,
|
|
18318
18320
|
handleDragCancel: F
|
|
18319
|
-
} =
|
|
18321
|
+
} = Gx({
|
|
18320
18322
|
activeCardId: p.activeCardId,
|
|
18321
18323
|
placeField: S,
|
|
18322
18324
|
previewFieldPlacement: C
|
|
@@ -18353,7 +18355,7 @@ function lb() {
|
|
|
18353
18355
|
),
|
|
18354
18356
|
/* @__PURE__ */ a("div", { className: "flex flex-1 transition-all duration-300 ease-in-out", children: [
|
|
18355
18357
|
/* @__PURE__ */ e(
|
|
18356
|
-
|
|
18358
|
+
zx,
|
|
18357
18359
|
{
|
|
18358
18360
|
onRemoveField: M,
|
|
18359
18361
|
onResetFields: $,
|
|
@@ -18369,7 +18371,7 @@ function lb() {
|
|
|
18369
18371
|
}
|
|
18370
18372
|
),
|
|
18371
18373
|
/* @__PURE__ */ e(
|
|
18372
|
-
|
|
18374
|
+
nb,
|
|
18373
18375
|
{
|
|
18374
18376
|
selectedChart: u,
|
|
18375
18377
|
activeView: t,
|
|
@@ -18398,7 +18400,7 @@ function lb() {
|
|
|
18398
18400
|
) })
|
|
18399
18401
|
] }),
|
|
18400
18402
|
P && /* @__PURE__ */ e(
|
|
18401
|
-
|
|
18403
|
+
Ux,
|
|
18402
18404
|
{
|
|
18403
18405
|
cardId: P.id,
|
|
18404
18406
|
filters: Xa(P) || null,
|
|
@@ -18410,12 +18412,12 @@ function lb() {
|
|
|
18410
18412
|
}
|
|
18411
18413
|
)
|
|
18412
18414
|
] }),
|
|
18413
|
-
/* @__PURE__ */ e(bu, { dropAnimation: null, children: /* @__PURE__ */ e(
|
|
18415
|
+
/* @__PURE__ */ e(bu, { dropAnimation: null, children: /* @__PURE__ */ e(sb, {}) })
|
|
18414
18416
|
]
|
|
18415
18417
|
}
|
|
18416
18418
|
);
|
|
18417
18419
|
}
|
|
18418
|
-
function
|
|
18420
|
+
function ob({ authToken: t, onSave: n, onClose: r }) {
|
|
18419
18421
|
const s = I((u) => u.isDevMode), l = gr(), { setAuthToken: c } = yu(), { setOnSave: d, setOnClose: i } = be();
|
|
18420
18422
|
Ne(() => {
|
|
18421
18423
|
n && d(n), r && i(r);
|
|
@@ -18431,7 +18433,7 @@ function ib({ authToken: t, onSave: n, onClose: r }) {
|
|
|
18431
18433
|
{
|
|
18432
18434
|
"data-content": "editor-main",
|
|
18433
18435
|
className: "min-w-[510px] flex-1 basis-0 overflow-hidden",
|
|
18434
|
-
children: /* @__PURE__ */ e(
|
|
18436
|
+
children: /* @__PURE__ */ e(px, {})
|
|
18435
18437
|
}
|
|
18436
18438
|
) })
|
|
18437
18439
|
] });
|
|
@@ -18442,7 +18444,7 @@ function ib({ authToken: t, onSave: n, onClose: r }) {
|
|
|
18442
18444
|
{
|
|
18443
18445
|
"data-content": "explorer",
|
|
18444
18446
|
className: "min-w-[510px] flex-1 basis-0 overflow-hidden",
|
|
18445
|
-
children: /* @__PURE__ */ e(
|
|
18447
|
+
children: /* @__PURE__ */ e(ib, {})
|
|
18446
18448
|
}
|
|
18447
18449
|
) });
|
|
18448
18450
|
}
|
|
@@ -18467,7 +18469,7 @@ function ib({ authToken: t, onSave: n, onClose: r }) {
|
|
|
18467
18469
|
) }) })
|
|
18468
18470
|
);
|
|
18469
18471
|
}
|
|
18470
|
-
function
|
|
18472
|
+
function Bb() {
|
|
18471
18473
|
fe((h) => h.selectedCardId);
|
|
18472
18474
|
const t = fe((h) => h.selectedSheetId), n = fe((h) => h.dashboard), { setIsVisualEditing: r, setSelectedSheetId: s } = fe(
|
|
18473
18475
|
(h) => h.actions
|
|
@@ -18519,10 +18521,10 @@ function Vb() {
|
|
|
18519
18521
|
"max-h-0 overflow-hidden": !o
|
|
18520
18522
|
}),
|
|
18521
18523
|
style: i.dashboardContainerStyle,
|
|
18522
|
-
children: /* @__PURE__ */ e(
|
|
18524
|
+
children: /* @__PURE__ */ e(ob, { onSave: m, onClose: p })
|
|
18523
18525
|
}
|
|
18524
18526
|
);
|
|
18525
18527
|
}
|
|
18526
18528
|
export {
|
|
18527
|
-
|
|
18529
|
+
Bb as default
|
|
18528
18530
|
};
|