react-semaphor 0.1.585 → 0.1.586
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 +102 -100
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-BdbLmAnK.js → assistant-chat-BU5gchFy.js} +6 -6
- package/dist/chunks/{bookmark-impact-BhT3k379.js → bookmark-impact-ZPSGncK6.js} +1 -1
- package/dist/chunks/{card-filter-builder-CEcKF6Fw.js → card-filter-builder-HELJWA4D.js} +165 -165
- package/dist/chunks/{dashboard-MPku_x1M.js → dashboard-BXP-ZxSY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CkFNlkr1.js → dashboard-briefing-launcher-BGj42whr.js} +7 -7
- package/dist/chunks/{dashboard-controls-Clt4ovXS.js → dashboard-controls-zvbRp6D2.js} +7 -7
- package/dist/chunks/{dashboard-json-DSmXazIg.js → dashboard-json-CykexgqL.js} +1 -1
- package/dist/chunks/{dates-CYZW9owO.js → dates-CaqZtq01.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-Dn2ECRbX.js → edit-dashboard-visual-C82JNxbt.js} +501 -501
- package/dist/chunks/{filter-reach-copy-CmJpPa4G.js → filter-reach-copy-ZERaFKsN.js} +880 -863
- package/dist/chunks/{index-0WYn6RMz.js → index-otMIColV.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-QjBgUYhP.js → matrix-analytical-definition-DOVSFFuf.js} +179 -169
- package/dist/chunks/{report-preferences-dialog-BRaeufEi.js → report-preferences-dialog-B-CoyS1x.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-Cn9jumxl.js → resolve-dashboard-input-context-BTTdKXH0.js} +10325 -10247
- package/dist/chunks/{saved-dashboard-context-CfqkUMzR.js → saved-dashboard-context-B-rosN4W.js} +75 -72
- package/dist/chunks/{semaphor-ready-indicator-D6WjdTGl.js → semaphor-ready-indicator-Cy1n_04D.js} +22649 -22461
- package/dist/chunks/{shelf-drop-preview-context-Bbbrr9u4.js → shelf-drop-preview-context-Bmz54WYm.js} +2 -2
- package/dist/chunks/{stored-dashboard-sPkTjxYf.js → stored-dashboard-rDJ8sw6J.js} +600 -595
- package/dist/chunks/{variable-draft-D1RotIEG.js → variable-draft-DvngkRMl.js} +3 -3
- package/dist/chunks/{visual-choice-JiJ-_3bi.js → visual-choice-BBPizkRo.js} +74 -72
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +328 -320
- package/dist/index.js +11 -11
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +86 -3
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +49 -27
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +30 -2
- package/dist/types/shared/analytics-protocol/click-reach-filter-id.d.ts +9 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-card-decision.d.ts +102 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +13 -0
- package/package.json +2 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as he } from "react/jsx-runtime";
|
|
2
2
|
import il, { useState as U, useEffect as we, useMemo as se, useRef as Ke, useCallback as xt, useId as Ma, useContext as ir, Suspense as Yi } from "react";
|
|
3
|
-
import { F as _i, P as Vi, a as Bi, b as cl, u as st, S as ys, c as Ns, r as dl, E as Ki, T as qi, A as ji, d as $i, e as Ga, f as zi, g as Hi, h as Ui } from "./shelf-drop-preview-context-
|
|
4
|
-
import { c as
|
|
5
|
-
import { a5 as ul, M as Gi, v as Cs, m as
|
|
3
|
+
import { F as _i, P as Vi, a as Bi, b as cl, u as st, S as ys, c as Ns, r as dl, E as Ki, T as qi, A as ji, d as $i, e as Ga, f as zi, g as Hi, h as Ui } from "./shelf-drop-preview-context-Bmz54WYm.js";
|
|
4
|
+
import { c as J } from "./pickers-DkqmtnTL.js";
|
|
5
|
+
import { a5 as ul, M as Gi, v as Cs, m as Qa } from "./validators-CJ8Jh0E8.js";
|
|
6
6
|
import "./matrix-operation-contract-BM5TveR3.js";
|
|
7
|
-
import { y as
|
|
7
|
+
import { y as Qi } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
8
8
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as pa } from "../value-format-preferences/index.js";
|
|
9
|
-
import { cH as
|
|
10
|
-
import { c as qe, B as ne, r as eo, m as mn, s as O, y as W, z as
|
|
9
|
+
import { cH as Ji, eC as Da, ej as Ea, cG as ml, em as Pa, eD as Fa, eE as Wi, ah as ve, eF as Xi, bE as qt, bF as jt, bG as Wt, bH as $t, bI as zt, bC as Ia, cJ as gt, cE as Bt, cC as qa, bD as ct, eG as hl, dy as ja, bX as Ft, c1 as Yt, dx as pl, eH as xa, bW as rn, ag as F, a_ as lt, eI as fl, eJ as Zi, eK as ec, eL as tc, c6 as cr, eM as ac, dj as gl, b2 as ea, dG as xl, ev as bl, eN as nc, cs as dr, dE as rc, cu as sc, cv as lc, cw as oc, cx as ic, cy as cc, cz as dc, cA as uc, cB as mc, a$ as ur, u as fe, aY as ta, eO as vl, ce as Ja, eP as yl, aZ as Mn, by as mr, b6 as Nl, eQ as hr, bM as sn, bT as hc, dY as pc, eR as Qn, cP as aa, cQ as na, cR as ra, cU as fc, d_ as pr, eS as fr, eT as ln, eU as Cl, dp as gr, dn as wl, eV as gc, eW as xc, eX as Ot, eY as bc, eZ as vc, e_ as yc, e$ as Nc, f0 as Sl, _ as kl, M as Cc, ed as wc, f1 as Sc, dv as kc, f2 as xr, E as on, e as br, f3 as Tl, f4 as Tc, f5 as ws, f6 as Mc, f7 as Ml, f8 as Dc, f9 as Ec, bx as Dl, fa as Fc, fb as Ic, fc as Ac, fd as Pc, fe as Wa, ff as Rc, fg as Oc, fh as El, fi as Fl, fj as Lc, fk as Yc, dV as _c, fl as Vc, fm as Il, fn as Bc, ds as Kc, dr as cn, fo as dn, cg as vr, ch as yr, ci as Nr, fp as qc, fq as jc, dd as Al, de as $c, df as zc, dg as Hc, aX as Uc, fr as Gc, fs as Qc, ft as Jc, fu as Wc, fv as Ss, fw as Xc, fx as Pl, fy as Rl, b1 as Ol, b3 as Zc, b8 as ed, b9 as td, b4 as ad, b5 as nd, fz as rd, fA as sd, fB as ld, fC as od, fD as ks, bb as id, bc as cd, fE as Ll, fF as da, fG as ua, fH as ma, ei as fa, cl as Yl, c3 as Dt, cn as Ts, co as Ms, cp as Jn, fI as _l, fJ as dd, fK as ud, fL as md, fM as hd, fN as un, fO as Re, fP as Oe, fQ as Le, dB as pd, dC as fd, fR as Vl, fS as Bl, fT as gd, fU as Cr, fV as wr, fW as xd, fX as Kl, fY as bd, fZ as vd, f_ as Wn, f$ as yd, g0 as Nd, g1 as Cd, g2 as wd, g3 as Sd, g4 as kd, g5 as Qt, g6 as Na, g7 as Ds, g8 as Td, g9 as Dn, ga as Es, gb as Md, gc as Dd, bz as Sr, bA as Aa, gd as En, ge as ql, gf as Ed, gg as Fd, gh as Id, gi as Ad, gj as jl, gk as $l, gl as Pd, gm as Rd, gn as zl, go as Od, gp as Ld, gq as Hl, dt as Yd, du as _d, dD as Vd, dw as Bd, c5 as Kd, gr as qd, gs as jd, gt as $d, cZ as zd, cV as Ul, gu as Gl, gv as Hd, d2 as Ud, gw as Ql, gx as Gd, gy as Qd, gz as Jd, gA as Wd, gB as Xd, gC as kr, en as Jl, gD as Wl, gE as $a, gF as Xl, gG as Zl, gH as Fs, gI as Zd, gJ as eu, gK as tu, gL as au, dI as nu, gM as ru, bd as su, gN as Is, ex as lu, gO as ou, ey as iu, eA as cu, eB as du, i as uu, gP as mu, dc as hu, gQ as pu, gR as fu, gS as gu, gT as xu, d7 as bu, d8 as vu, gU as yu, gV as Nu, db as Cu, ae as wu, dH as Su, F as ku, gW as Tu, bo as Mu } from "./semaphor-ready-indicator-Cy1n_04D.js";
|
|
10
|
+
import { c as qe, B as ne, r as eo, m as mn, s as O, y as W, z as X, A as Z, D as ee, E as $, F as _t, X as rt, w as ut, t as bt, u as mt, v as ht, e as It, f as Vt, h as At, x as Ae, aa as Du, L as Ra, C as Xt, T as Ht, k as Ut, l as at, n as wt, j as sa, I as Zt, ac as Eu, ad as Fu, q as to, i as Xa, ae as Xn, af as ao, d as ke, R as As, p as no, ag as Iu } from "./style-sheet-parts-_dGSFzDi.js";
|
|
11
11
|
import { U as Au } from "./upload-CtyOkU_B.js";
|
|
12
|
-
import {
|
|
13
|
-
import { c as eh, A as th, g as Ar, i as ah, a as nh, F as rh, V as go, I as nt, d as sh, u as lh, C as oh, b as ih } from "./card-filter-builder-
|
|
12
|
+
import { hX as Pu, di as Ru, hY as Ou, hZ as Tr, h_ as ga, h$ as Lu, i0 as Ps, i1 as Yu, i2 as _u, i3 as Rs, R as la, ct as ro, S as oa, U as Oa, V as Lt, W as ha, c9 as Vu, by as Mr, eK as Bu, hT as Ku, gn as La, i as qu, bd as ju, ga as Dr, fv as so, n as $u, i4 as zu, i5 as Hu, i6 as Uu, i7 as Gu, g7 as Kt, h1 as Qu, h0 as Ju, i8 as Wu, i9 as lo, fJ as Xu, cM as Zu, ia as oo, gb as em, d7 as tm, d5 as Fn, ib as am, ic as nm, id as rm, ie as sm, Y as lm, T as io, Z as om, ig as Zn, ih as im, ii as cm, ij as dm, ik as Er, fx as um, et as Fr, aw as mm, a8 as er, eV as hm, gs as pm, bQ as co, bT as fm, bi as gm, bS as tr, bU as za, b as uo, il as xm, bh as bm, bq as vm, im as ym, io as Nm, eY as Cm, ip as wm, eX as mo, iq as Sm, ir as km, is as Tm, it as Os, iu as Mm, iv as Dm, iw as Em, g5 as Ct, ix as Fm, iy as Im, iz as Am, iA as Pm, iB as Rm, iC as Om, iD as Ls, iE as Ys, iF as Lm, a as ho, ak as Ym, iG as _m, iH as Vm, iI as Bm, hg as Km, iJ as _s, iK as qm, iL as jm, ba as $m, f5 as zm, fb as Hm, aa as Um, gw as Gm, iM as po, hi as Qm, bV as Jm, iN as Wm, iO as Xm, iP as fo, iQ as Ir, e as Za, g9 as Zm } from "./resolve-dashboard-input-context-BTTdKXH0.js";
|
|
13
|
+
import { c as eh, A as th, g as Ar, i as ah, a as nh, F as rh, V as go, I as nt, d as sh, u as lh, C as oh, b as ih } from "./card-filter-builder-HELJWA4D.js";
|
|
14
14
|
import "zod";
|
|
15
15
|
import { aN as ch, aM as hn, aJ as Pr, k as dh, X as uh, aF as xo } from "./pivot-result-contract-expectations-Bx_BCu-7.js";
|
|
16
16
|
import { aK as mh, aE as hh, z as ph } from "./bookmark-state-CL4WEpgB.js";
|
|
17
17
|
import "./schema-C9NPiIru.js";
|
|
18
18
|
import { i as bo } from "./index-CV_Kzou0.js";
|
|
19
19
|
import "./context-BTLBjQNh.js";
|
|
20
|
-
import { N as Rr,
|
|
21
|
-
import { E as yh, $ as Nh, e as Ch, a0 as wh, U as No, a1 as Sh, V as Co, a2 as kh, R as Th, s as Mh, a3 as Dh, a4 as Eh, a5 as Fh, B as Ih } from "./stored-dashboard-
|
|
20
|
+
import { N as Rr, a4 as fh, a5 as vo, a6 as yo, a7 as Or, a8 as Lr, a3 as Ha, a9 as gh, J as xh, L as bh, O as vh } from "./filter-reach-copy-ZERaFKsN.js";
|
|
21
|
+
import { E as yh, $ as Nh, e as Ch, a0 as wh, U as No, a1 as Sh, V as Co, a2 as kh, R as Th, s as Mh, a3 as Dh, a4 as Eh, a5 as Fh, B as Ih } from "./stored-dashboard-rDJ8sw6J.js";
|
|
22
22
|
import "react-dom";
|
|
23
23
|
import { L as Vs } from "./list-filter-CfMPI6v4.js";
|
|
24
24
|
import { r as Ah } from "./export-file-format-C-tJsxsf.js";
|
|
@@ -27,7 +27,7 @@ import { P as Rh } from "./paintbrush-LzAje2ff.js";
|
|
|
27
27
|
import { D as Oh } from "./metric-comparison-ZmurmEIs.js";
|
|
28
28
|
import { P as Lh } from "./palette-DicJG0TC.js";
|
|
29
29
|
import "./attribution-BvoKvhcj.js";
|
|
30
|
-
import { r as Yh } from "./dates-
|
|
30
|
+
import { r as Yh } from "./dates-CaqZtq01.js";
|
|
31
31
|
/**
|
|
32
32
|
* @license lucide-react v0.453.0 - ISC
|
|
33
33
|
*
|
|
@@ -264,7 +264,7 @@ const ar = qe("RefreshCcw", [
|
|
|
264
264
|
* This source code is licensed under the ISC license.
|
|
265
265
|
* See the LICENSE file in the root directory of this source tree.
|
|
266
266
|
*/
|
|
267
|
-
const
|
|
267
|
+
const Qh = qe("SendHorizontal", [
|
|
268
268
|
[
|
|
269
269
|
"path",
|
|
270
270
|
{
|
|
@@ -280,7 +280,7 @@ const Jh = qe("SendHorizontal", [
|
|
|
280
280
|
* This source code is licensed under the ISC license.
|
|
281
281
|
* See the LICENSE file in the root directory of this source tree.
|
|
282
282
|
*/
|
|
283
|
-
const
|
|
283
|
+
const Jh = qe("Sigma", [
|
|
284
284
|
[
|
|
285
285
|
"path",
|
|
286
286
|
{
|
|
@@ -306,7 +306,7 @@ const Wh = qe("Spline", [
|
|
|
306
306
|
* This source code is licensed under the ISC license.
|
|
307
307
|
* See the LICENSE file in the root directory of this source tree.
|
|
308
308
|
*/
|
|
309
|
-
const
|
|
309
|
+
const Xh = qe("SquareSplitVertical", [
|
|
310
310
|
["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
|
|
311
311
|
["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
|
|
312
312
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
@@ -317,7 +317,7 @@ const Zh = qe("SquareSplitVertical", [
|
|
|
317
317
|
* This source code is licensed under the ISC license.
|
|
318
318
|
* See the LICENSE file in the root directory of this source tree.
|
|
319
319
|
*/
|
|
320
|
-
const
|
|
320
|
+
const Zh = qe("Tags", [
|
|
321
321
|
["path", { d: "m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19", key: "1cbfv1" }],
|
|
322
322
|
[
|
|
323
323
|
"path",
|
|
@@ -358,7 +358,7 @@ function tp(t, a = {}) {
|
|
|
358
358
|
case "url":
|
|
359
359
|
return /* @__PURE__ */ e(Da, { className: s });
|
|
360
360
|
default:
|
|
361
|
-
return /* @__PURE__ */ e(
|
|
361
|
+
return /* @__PURE__ */ e(Ji, { className: s });
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function ap({
|
|
@@ -367,7 +367,7 @@ function ap({
|
|
|
367
367
|
}) {
|
|
368
368
|
const [r, s] = U(
|
|
369
369
|
[]
|
|
370
|
-
), { updateDataSource: l } = ve(), c =
|
|
370
|
+
), { updateDataSource: l } = ve(), c = Xi();
|
|
371
371
|
we(() => {
|
|
372
372
|
t && s([]);
|
|
373
373
|
}, [t]);
|
|
@@ -438,7 +438,7 @@ function ap({
|
|
|
438
438
|
/* @__PURE__ */ e(mn, { className: "h-64", children: /* @__PURE__ */ e("div", { className: "space-y-2", children: c.map((h, C) => /* @__PURE__ */ n(
|
|
439
439
|
"div",
|
|
440
440
|
{
|
|
441
|
-
className:
|
|
441
|
+
className: J(
|
|
442
442
|
"flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-muted/50",
|
|
443
443
|
p(h) && "border-primary bg-primary/5"
|
|
444
444
|
),
|
|
@@ -885,7 +885,7 @@ function ip({
|
|
|
885
885
|
});
|
|
886
886
|
},
|
|
887
887
|
children: [
|
|
888
|
-
/* @__PURE__ */ e(
|
|
888
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-[12px]", children: /* @__PURE__ */ e(Z, { placeholder: "Select the dataset to start from..." }) }),
|
|
889
889
|
/* @__PURE__ */ e(ee, { children: a.map((M) => /* @__PURE__ */ e(
|
|
890
890
|
$,
|
|
891
891
|
{
|
|
@@ -1051,7 +1051,7 @@ function ip({
|
|
|
1051
1051
|
});
|
|
1052
1052
|
},
|
|
1053
1053
|
children: [
|
|
1054
|
-
/* @__PURE__ */ e(
|
|
1054
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-[12px]", children: /* @__PURE__ */ e(Z, { placeholder: "Select source..." }) }),
|
|
1055
1055
|
/* @__PURE__ */ e(ee, { children: v(M.id).map((z) => /* @__PURE__ */ e(
|
|
1056
1056
|
$,
|
|
1057
1057
|
{
|
|
@@ -1088,7 +1088,7 @@ function ip({
|
|
|
1088
1088
|
},
|
|
1089
1089
|
disabled: !M.source.name,
|
|
1090
1090
|
children: [
|
|
1091
|
-
/* @__PURE__ */ e(
|
|
1091
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-[12px]", children: /* @__PURE__ */ e(Z, { placeholder: "Select target..." }) }),
|
|
1092
1092
|
/* @__PURE__ */ e(ee, { children: M.source.name ? T(
|
|
1093
1093
|
M.source.name
|
|
1094
1094
|
).map((z) => /* @__PURE__ */ e(
|
|
@@ -1114,7 +1114,7 @@ function ip({
|
|
|
1114
1114
|
joinType: z
|
|
1115
1115
|
}),
|
|
1116
1116
|
children: [
|
|
1117
|
-
/* @__PURE__ */ e(
|
|
1117
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-[12px]", children: /* @__PURE__ */ e(Z, {}) }),
|
|
1118
1118
|
/* @__PURE__ */ e(ee, { children: rp.map((z) => /* @__PURE__ */ e(
|
|
1119
1119
|
$,
|
|
1120
1120
|
{
|
|
@@ -1138,7 +1138,7 @@ function ip({
|
|
|
1138
1138
|
relationshipCardinality: z === "unknown" ? void 0 : z,
|
|
1139
1139
|
relationshipTraversalDirection: z === "unknown" ? void 0 : "forward"
|
|
1140
1140
|
}), children: [
|
|
1141
|
-
/* @__PURE__ */ e(
|
|
1141
|
+
/* @__PURE__ */ e(X, { "aria-label": `Matches per row: ${M.source.name || "source"} to ${M.target.name || "target"}`, className: "h-8 text-[12px]", children: /* @__PURE__ */ e(Z, {}) }),
|
|
1142
1142
|
/* @__PURE__ */ n(ee, { children: [
|
|
1143
1143
|
/* @__PURE__ */ e($, { value: "unknown", children: "Detect automatically when possible" }),
|
|
1144
1144
|
Object.entries(sp).map(([z, G]) => /* @__PURE__ */ n($, { value: z, children: [
|
|
@@ -1335,7 +1335,7 @@ function ko({
|
|
|
1335
1335
|
u
|
|
1336
1336
|
),
|
|
1337
1337
|
children: [
|
|
1338
|
-
/* @__PURE__ */ e(
|
|
1338
|
+
/* @__PURE__ */ e(X, { className: "h-7 font-mono text-[11px]", children: /* @__PURE__ */ e(Z, { placeholder: "Source column" }) }),
|
|
1339
1339
|
/* @__PURE__ */ e(ee, { children: l(t.source.name).map((u) => /* @__PURE__ */ e($, { value: u.name, children: /* @__PURE__ */ n("span", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
1340
1340
|
/* @__PURE__ */ e("span", { className: "font-mono", children: u.name }),
|
|
1341
1341
|
u.dataType && /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground", children: u.dataType })
|
|
@@ -1349,7 +1349,7 @@ function ko({
|
|
|
1349
1349
|
value: s.operator,
|
|
1350
1350
|
onValueChange: (u) => c(t.id, a, r, "operator", u),
|
|
1351
1351
|
children: [
|
|
1352
|
-
/* @__PURE__ */ e(
|
|
1352
|
+
/* @__PURE__ */ e(X, { className: "h-7 justify-center px-1 font-mono text-[11px]", children: /* @__PURE__ */ e(Z, {}) }),
|
|
1353
1353
|
/* @__PURE__ */ e(ee, { children: op.map((u) => /* @__PURE__ */ e($, { value: u, children: u }, u)) })
|
|
1354
1354
|
]
|
|
1355
1355
|
}
|
|
@@ -1366,7 +1366,7 @@ function ko({
|
|
|
1366
1366
|
u
|
|
1367
1367
|
),
|
|
1368
1368
|
children: [
|
|
1369
|
-
/* @__PURE__ */ e(
|
|
1369
|
+
/* @__PURE__ */ e(X, { className: "h-7 font-mono text-[11px]", children: /* @__PURE__ */ e(Z, { placeholder: "Target column" }) }),
|
|
1370
1370
|
/* @__PURE__ */ e(ee, { children: l(t.target.name).map((u) => /* @__PURE__ */ e($, { value: u.name, children: /* @__PURE__ */ n("span", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
1371
1371
|
/* @__PURE__ */ e("span", { className: "font-mono", children: u.name }),
|
|
1372
1372
|
u.dataType && /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground", children: u.dataType })
|
|
@@ -1453,7 +1453,7 @@ function up({
|
|
|
1453
1453
|
value: u.operator,
|
|
1454
1454
|
onValueChange: (p) => l(t.id, m, p),
|
|
1455
1455
|
children: [
|
|
1456
|
-
/* @__PURE__ */ e(
|
|
1456
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-[76px] text-[11px]", children: /* @__PURE__ */ e(Z, {}) }),
|
|
1457
1457
|
/* @__PURE__ */ n(ee, { children: [
|
|
1458
1458
|
/* @__PURE__ */ e($, { value: "AND", children: "AND" }),
|
|
1459
1459
|
/* @__PURE__ */ e($, { value: "OR", children: "OR" })
|
|
@@ -1779,7 +1779,7 @@ function pp() {
|
|
|
1779
1779
|
},
|
|
1780
1780
|
...d,
|
|
1781
1781
|
selectedEntities: (d == null ? void 0 : d.selectedEntities) || []
|
|
1782
|
-
}, x =
|
|
1782
|
+
}, x = Zi(S.selectedEntities), v = x.length, T = ec(o), N = se(() => tc(o), [o]), g = se(
|
|
1783
1783
|
() => Lu({
|
|
1784
1784
|
...T,
|
|
1785
1785
|
selectedFields: N,
|
|
@@ -1836,7 +1836,7 @@ function pp() {
|
|
|
1836
1836
|
/* @__PURE__ */ e(
|
|
1837
1837
|
_t,
|
|
1838
1838
|
{
|
|
1839
|
-
className:
|
|
1839
|
+
className: J(
|
|
1840
1840
|
"h-3 w-3 shrink-0 text-muted-foreground transition-transform",
|
|
1841
1841
|
t && "rotate-180"
|
|
1842
1842
|
)
|
|
@@ -2026,7 +2026,7 @@ function Mo({ isVisible: t }) {
|
|
|
2026
2026
|
return /* @__PURE__ */ n(
|
|
2027
2027
|
"div",
|
|
2028
2028
|
{
|
|
2029
|
-
className:
|
|
2029
|
+
className: J(
|
|
2030
2030
|
"flex shrink-0 flex-col overflow-hidden border-r border-border bg-background transition-all duration-300 ease-in-out",
|
|
2031
2031
|
{
|
|
2032
2032
|
"w-[290px]": t,
|
|
@@ -2055,7 +2055,7 @@ const nr = ({
|
|
|
2055
2055
|
}) => /* @__PURE__ */ e(
|
|
2056
2056
|
Bi,
|
|
2057
2057
|
{
|
|
2058
|
-
className:
|
|
2058
|
+
className: J(
|
|
2059
2059
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
2060
2060
|
t
|
|
2061
2061
|
),
|
|
@@ -2068,7 +2068,7 @@ const nr = ({
|
|
|
2068
2068
|
}) => /* @__PURE__ */ e(
|
|
2069
2069
|
cl,
|
|
2070
2070
|
{
|
|
2071
|
-
className:
|
|
2071
|
+
className: J(
|
|
2072
2072
|
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
2073
2073
|
a
|
|
2074
2074
|
),
|
|
@@ -2332,7 +2332,7 @@ function Sp({
|
|
|
2332
2332
|
}
|
|
2333
2333
|
const Ue = N.timelineSteps.findIndex(
|
|
2334
2334
|
(oe) => oe === N.activeStep
|
|
2335
|
-
), vt = N.activeStep === Pn.repairing ? "Fixing validation issue" : N.activeStep || Pn.drafting,
|
|
2335
|
+
), vt = N.activeStep === Pn.repairing ? "Fixing validation issue" : N.activeStep || Pn.drafting, Ze = !K || !N.validation ? null : N.validation.status === "valid" ? {
|
|
2336
2336
|
label: "Validation passed",
|
|
2337
2337
|
className: "border-emerald-500/30 bg-emerald-500/10 text-emerald-700",
|
|
2338
2338
|
detail: "SQL validation passed."
|
|
@@ -2405,7 +2405,7 @@ function Sp({
|
|
|
2405
2405
|
},
|
|
2406
2406
|
"aria-label": q ? "Stop AI generation" : Ne,
|
|
2407
2407
|
title: q ? "Stop AI generation" : Ne,
|
|
2408
|
-
children: q ? /* @__PURE__ */ e(xl, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(
|
|
2408
|
+
children: q ? /* @__PURE__ */ e(xl, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(Qh, { className: "size-3.5" })
|
|
2409
2409
|
}
|
|
2410
2410
|
)
|
|
2411
2411
|
] }),
|
|
@@ -2476,7 +2476,7 @@ function Sp({
|
|
|
2476
2476
|
)
|
|
2477
2477
|
] })
|
|
2478
2478
|
] }),
|
|
2479
|
-
(N.timelineSteps.length > 0 ||
|
|
2479
|
+
(N.timelineSteps.length > 0 || Ze) && /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-1", children: [
|
|
2480
2480
|
N.timelineSteps.map((oe, Se) => {
|
|
2481
2481
|
const Fe = q && oe === N.activeStep, Me = !Fe && Ue >= 0 && Se < Ue;
|
|
2482
2482
|
return /* @__PURE__ */ e(
|
|
@@ -2491,15 +2491,15 @@ function Sp({
|
|
|
2491
2491
|
`${oe}-${Se}`
|
|
2492
2492
|
);
|
|
2493
2493
|
}),
|
|
2494
|
-
|
|
2494
|
+
Ze && /* @__PURE__ */ e(bt, { delayDuration: 150, children: /* @__PURE__ */ n(mt, { children: [
|
|
2495
2495
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2496
2496
|
"span",
|
|
2497
2497
|
{
|
|
2498
2498
|
className: [
|
|
2499
2499
|
"rounded-full border px-2 py-0.5 text-[11px]",
|
|
2500
|
-
|
|
2500
|
+
Ze.className
|
|
2501
2501
|
].join(" "),
|
|
2502
|
-
children:
|
|
2502
|
+
children: Ze.label
|
|
2503
2503
|
}
|
|
2504
2504
|
) }),
|
|
2505
2505
|
/* @__PURE__ */ e(
|
|
@@ -2508,7 +2508,7 @@ function Sp({
|
|
|
2508
2508
|
side: "top",
|
|
2509
2509
|
align: "start",
|
|
2510
2510
|
className: "max-w-[680px] whitespace-pre-wrap break-words text-xs",
|
|
2511
|
-
children:
|
|
2511
|
+
children: Ze.detail
|
|
2512
2512
|
}
|
|
2513
2513
|
)
|
|
2514
2514
|
] }) })
|
|
@@ -2533,7 +2533,7 @@ function Sp({
|
|
|
2533
2533
|
)
|
|
2534
2534
|
] }),
|
|
2535
2535
|
S && /* @__PURE__ */ e("div", { className: "max-h-[120px] overflow-auto rounded-[5px] border border-border/60", children: /* @__PURE__ */ e(
|
|
2536
|
-
|
|
2536
|
+
Xt,
|
|
2537
2537
|
{
|
|
2538
2538
|
value: B,
|
|
2539
2539
|
onValueChange: () => {
|
|
@@ -2551,7 +2551,7 @@ function Sp({
|
|
|
2551
2551
|
K ? /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
2552
2552
|
A === "refine" && /* @__PURE__ */ e("p", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Refined SQL" }),
|
|
2553
2553
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-auto rounded-[5px] border border-border/60", children: /* @__PURE__ */ e(
|
|
2554
|
-
|
|
2554
|
+
Xt,
|
|
2555
2555
|
{
|
|
2556
2556
|
value: D,
|
|
2557
2557
|
onValueChange: () => {
|
|
@@ -2936,7 +2936,7 @@ function Ip() {
|
|
|
2936
2936
|
"aria-label": "How the Python step works",
|
|
2937
2937
|
...a,
|
|
2938
2938
|
children: [
|
|
2939
|
-
/* @__PURE__ */ e(
|
|
2939
|
+
/* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }),
|
|
2940
2940
|
"How it works"
|
|
2941
2941
|
]
|
|
2942
2942
|
}
|
|
@@ -2970,7 +2970,7 @@ function Ip() {
|
|
|
2970
2970
|
/* @__PURE__ */ e(Fp, { value: Rs })
|
|
2971
2971
|
] }),
|
|
2972
2972
|
/* @__PURE__ */ e("div", { className: "max-h-40 overflow-auto", children: /* @__PURE__ */ e(
|
|
2973
|
-
|
|
2973
|
+
Xt,
|
|
2974
2974
|
{
|
|
2975
2975
|
value: Rs,
|
|
2976
2976
|
language: "python",
|
|
@@ -3003,7 +3003,7 @@ function Ap({
|
|
|
3003
3003
|
/* @__PURE__ */ e(
|
|
3004
3004
|
mc,
|
|
3005
3005
|
{
|
|
3006
|
-
className:
|
|
3006
|
+
className: J(Eu({ variant: "destructive", size: "xs" })),
|
|
3007
3007
|
onClick: r,
|
|
3008
3008
|
children: "Clear"
|
|
3009
3009
|
}
|
|
@@ -3142,8 +3142,8 @@ function Op() {
|
|
|
3142
3142
|
queryKey: _e,
|
|
3143
3143
|
refetch: Ue,
|
|
3144
3144
|
errorMessage: vt
|
|
3145
|
-
} = lt(k),
|
|
3146
|
-
|
|
3145
|
+
} = lt(k), Ze = Ke(_e);
|
|
3146
|
+
Ze.current = _e;
|
|
3147
3147
|
const yt = S.type === "kpi" && Mr(S);
|
|
3148
3148
|
we(() => {
|
|
3149
3149
|
if (me)
|
|
@@ -3188,7 +3188,7 @@ function Op() {
|
|
|
3188
3188
|
function Se() {
|
|
3189
3189
|
dl({
|
|
3190
3190
|
queryClient: t,
|
|
3191
|
-
readQueryKey: () =>
|
|
3191
|
+
readQueryKey: () => Ze.current,
|
|
3192
3192
|
setRunSql: ue
|
|
3193
3193
|
});
|
|
3194
3194
|
}
|
|
@@ -3216,8 +3216,8 @@ function Op() {
|
|
|
3216
3216
|
children: [
|
|
3217
3217
|
/* @__PURE__ */ n("div", { className: "flex shrink-0 flex-col gap-1.5 px-4 pb-1 pt-3", children: [
|
|
3218
3218
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
3219
|
-
/* @__PURE__ */ e("div", { className:
|
|
3220
|
-
|
|
3219
|
+
/* @__PURE__ */ e("div", { className: J("min-w-0", u && "flex-1"), children: /* @__PURE__ */ e(
|
|
3220
|
+
Ja,
|
|
3221
3221
|
{
|
|
3222
3222
|
value: S.title,
|
|
3223
3223
|
onSave: (re) => z({ ...S, title: re }),
|
|
@@ -3231,7 +3231,7 @@ function Op() {
|
|
|
3231
3231
|
/* @__PURE__ */ e(yl, { card: S })
|
|
3232
3232
|
] }),
|
|
3233
3233
|
/* @__PURE__ */ e(
|
|
3234
|
-
|
|
3234
|
+
Ja,
|
|
3235
3235
|
{
|
|
3236
3236
|
value: (S.description || "").trim(),
|
|
3237
3237
|
onSave: (re) => z({ ...S, description: re.trim() }),
|
|
@@ -3468,7 +3468,7 @@ function Yp({ className: t }) {
|
|
|
3468
3468
|
"div",
|
|
3469
3469
|
{
|
|
3470
3470
|
"aria-hidden": "true",
|
|
3471
|
-
className:
|
|
3471
|
+
className: J("invisible flex items-center gap-5", t),
|
|
3472
3472
|
children: /* @__PURE__ */ e("span", { className: "-mb-px flex h-9 items-center border-b-2 border-transparent text-[12px]", children: "Placeholder" })
|
|
3473
3473
|
}
|
|
3474
3474
|
);
|
|
@@ -3486,7 +3486,7 @@ function Yp({ className: t }) {
|
|
|
3486
3486
|
};
|
|
3487
3487
|
c(v), d(v);
|
|
3488
3488
|
};
|
|
3489
|
-
return /* @__PURE__ */ e("div", { role: "tablist", className:
|
|
3489
|
+
return /* @__PURE__ */ e("div", { role: "tablist", className: J("flex items-center gap-5", t), children: i.map((h) => {
|
|
3490
3490
|
const C = l === h.value;
|
|
3491
3491
|
return /* @__PURE__ */ e(
|
|
3492
3492
|
"button",
|
|
@@ -3495,7 +3495,7 @@ function Yp({ className: t }) {
|
|
|
3495
3495
|
role: "tab",
|
|
3496
3496
|
"aria-selected": C,
|
|
3497
3497
|
onClick: () => p(h.value),
|
|
3498
|
-
className:
|
|
3498
|
+
className: J(
|
|
3499
3499
|
"-mb-px flex h-9 items-center border-b-2 text-[12px] transition-colors",
|
|
3500
3500
|
C ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
|
|
3501
3501
|
),
|
|
@@ -3517,7 +3517,7 @@ function Fo({
|
|
|
3517
3517
|
return /* @__PURE__ */ e(
|
|
3518
3518
|
"div",
|
|
3519
3519
|
{
|
|
3520
|
-
className:
|
|
3520
|
+
className: J("flex max-h-full min-h-0 flex-1 flex-col pt-3", a),
|
|
3521
3521
|
children: t
|
|
3522
3522
|
}
|
|
3523
3523
|
);
|
|
@@ -3529,7 +3529,7 @@ function Io({
|
|
|
3529
3529
|
return /* @__PURE__ */ e(
|
|
3530
3530
|
"div",
|
|
3531
3531
|
{
|
|
3532
|
-
className:
|
|
3532
|
+
className: J(
|
|
3533
3533
|
"flex min-h-7 shrink-0 flex-wrap items-center justify-between gap-x-3 gap-y-1 px-3",
|
|
3534
3534
|
a
|
|
3535
3535
|
),
|
|
@@ -3544,7 +3544,7 @@ function Ao({
|
|
|
3544
3544
|
return /* @__PURE__ */ e(
|
|
3545
3545
|
"div",
|
|
3546
3546
|
{
|
|
3547
|
-
className:
|
|
3547
|
+
className: J(
|
|
3548
3548
|
"ml-auto flex min-w-0 flex-wrap items-center justify-end gap-1.5",
|
|
3549
3549
|
a
|
|
3550
3550
|
),
|
|
@@ -3590,7 +3590,7 @@ function Po({
|
|
|
3590
3590
|
onClick: a,
|
|
3591
3591
|
variant: "outline",
|
|
3592
3592
|
size: "xs",
|
|
3593
|
-
className:
|
|
3593
|
+
className: J(en, t && "bg-accent"),
|
|
3594
3594
|
"aria-pressed": t,
|
|
3595
3595
|
children: [
|
|
3596
3596
|
/* @__PURE__ */ e(Fa, {}),
|
|
@@ -3622,7 +3622,7 @@ function Ro({
|
|
|
3622
3622
|
"section",
|
|
3623
3623
|
{
|
|
3624
3624
|
"aria-label": "Payload",
|
|
3625
|
-
className:
|
|
3625
|
+
className: J("flex min-h-0 flex-col", r),
|
|
3626
3626
|
children: [
|
|
3627
3627
|
/* @__PURE__ */ n(Io, { className: "items-end border-b border-border/60", children: [
|
|
3628
3628
|
/* @__PURE__ */ e(
|
|
@@ -3678,7 +3678,7 @@ function Ro({
|
|
|
3678
3678
|
] })
|
|
3679
3679
|
] }),
|
|
3680
3680
|
/* @__PURE__ */ e("div", { className: "mt-1 min-h-[120px] flex-1 overflow-auto px-1 py-1", children: f ? /* @__PURE__ */ e(
|
|
3681
|
-
|
|
3681
|
+
Xt,
|
|
3682
3682
|
{
|
|
3683
3683
|
value: f.json,
|
|
3684
3684
|
language: "json",
|
|
@@ -3739,7 +3739,7 @@ function Oo({
|
|
|
3739
3739
|
}
|
|
3740
3740
|
}, C = (v) => {
|
|
3741
3741
|
c == null || c(v), !(v.defaultPrevented || qp(v)) && h();
|
|
3742
|
-
}, S =
|
|
3742
|
+
}, S = J(
|
|
3743
3743
|
"group/copy-on-click relative block w-full cursor-pointer rounded-control text-left transition-[background-color,box-shadow] duration-150",
|
|
3744
3744
|
"hover:bg-muted/30 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring motion-reduce:transition-none",
|
|
3745
3745
|
l && "cursor-default opacity-60",
|
|
@@ -3798,7 +3798,7 @@ function Lo({
|
|
|
3798
3798
|
{
|
|
3799
3799
|
role: "alert",
|
|
3800
3800
|
"aria-labelledby": o,
|
|
3801
|
-
className:
|
|
3801
|
+
className: J(
|
|
3802
3802
|
"flex shrink-0 flex-wrap items-center gap-x-2 gap-y-1 rounded-control bg-[hsl(38_92%_50%/0.1)] px-2.5 py-1.5 text-[12px] text-foreground",
|
|
3803
3803
|
d
|
|
3804
3804
|
),
|
|
@@ -3829,7 +3829,7 @@ function Lo({
|
|
|
3829
3829
|
text: r,
|
|
3830
3830
|
"aria-label": "Copy error message",
|
|
3831
3831
|
title: "Copy error message",
|
|
3832
|
-
className:
|
|
3832
|
+
className: J("mt-1 max-h-60 overflow-auto", l),
|
|
3833
3833
|
children: /* @__PURE__ */ e("span", { className: "block whitespace-pre-wrap break-words text-left font-mono text-[11px] leading-[1.55]", children: r })
|
|
3834
3834
|
}
|
|
3835
3835
|
) : null
|
|
@@ -3854,12 +3854,12 @@ function Yo({
|
|
|
3854
3854
|
labelClassName: i,
|
|
3855
3855
|
bodyClassName: f
|
|
3856
3856
|
}) {
|
|
3857
|
-
return /* @__PURE__ */ n("div", { className:
|
|
3857
|
+
return /* @__PURE__ */ n("div", { className: J("flex min-h-0 flex-col overflow-hidden", d), children: [
|
|
3858
3858
|
/* @__PURE__ */ n(Io, { className: o, children: [
|
|
3859
3859
|
/* @__PURE__ */ e(
|
|
3860
3860
|
"span",
|
|
3861
3861
|
{
|
|
3862
|
-
className:
|
|
3862
|
+
className: J("text-[12px] text-muted-foreground", i),
|
|
3863
3863
|
children: a
|
|
3864
3864
|
}
|
|
3865
3865
|
),
|
|
@@ -3871,7 +3871,7 @@ function Yo({
|
|
|
3871
3871
|
/* @__PURE__ */ e(
|
|
3872
3872
|
"div",
|
|
3873
3873
|
{
|
|
3874
|
-
className:
|
|
3874
|
+
className: J("min-h-[80px] overflow-auto px-1 py-1", f),
|
|
3875
3875
|
children: /* @__PURE__ */ e(
|
|
3876
3876
|
Oo,
|
|
3877
3877
|
{
|
|
@@ -3880,7 +3880,7 @@ function Yo({
|
|
|
3880
3880
|
title: s,
|
|
3881
3881
|
className: "min-h-[80px] [&_pre]:!cursor-pointer [&_textarea]:!cursor-pointer",
|
|
3882
3882
|
children: /* @__PURE__ */ e(
|
|
3883
|
-
|
|
3883
|
+
Xt,
|
|
3884
3884
|
{
|
|
3885
3885
|
value: t,
|
|
3886
3886
|
onValueChange: $p,
|
|
@@ -3938,12 +3938,12 @@ function _o({
|
|
|
3938
3938
|
type: "button",
|
|
3939
3939
|
variant: "ghost",
|
|
3940
3940
|
size: "xs",
|
|
3941
|
-
className:
|
|
3941
|
+
className: J(en, "text-muted-foreground"),
|
|
3942
3942
|
onClick: i,
|
|
3943
3943
|
children: "Report issue"
|
|
3944
3944
|
}
|
|
3945
3945
|
) : null;
|
|
3946
|
-
return /* @__PURE__ */ n(Fo, { className:
|
|
3946
|
+
return /* @__PURE__ */ n(Fo, { className: J("w-full", m), children: [
|
|
3947
3947
|
/* @__PURE__ */ e(
|
|
3948
3948
|
Lo,
|
|
3949
3949
|
{
|
|
@@ -3967,8 +3967,8 @@ function _o({
|
|
|
3967
3967
|
ariaLabel: "Failed SQL query",
|
|
3968
3968
|
copyAriaLabel: "Copy failed query",
|
|
3969
3969
|
headerClassName: S,
|
|
3970
|
-
className:
|
|
3971
|
-
bodyClassName:
|
|
3970
|
+
className: J("mt-1", N && "min-h-7 flex-1"),
|
|
3971
|
+
bodyClassName: J(
|
|
3972
3972
|
"max-h-80",
|
|
3973
3973
|
N && "min-h-0 max-h-none flex-1"
|
|
3974
3974
|
)
|
|
@@ -3985,7 +3985,7 @@ function _o({
|
|
|
3985
3985
|
] });
|
|
3986
3986
|
}
|
|
3987
3987
|
function Vr({ className: t, ...a }) {
|
|
3988
|
-
return /* @__PURE__ */ e(_o, { ...a, className:
|
|
3988
|
+
return /* @__PURE__ */ e(_o, { ...a, className: J("!pt-0", t) });
|
|
3989
3989
|
}
|
|
3990
3990
|
function $s(t) {
|
|
3991
3991
|
const { className: a, ...r } = t;
|
|
@@ -3994,7 +3994,7 @@ function $s(t) {
|
|
|
3994
3994
|
{
|
|
3995
3995
|
...r,
|
|
3996
3996
|
embedded: !0,
|
|
3997
|
-
className:
|
|
3997
|
+
className: J("overflow-auto", a)
|
|
3998
3998
|
}
|
|
3999
3999
|
);
|
|
4000
4000
|
}
|
|
@@ -4075,11 +4075,11 @@ function Up({
|
|
|
4075
4075
|
const c = se(() => Fu(t, a), [t, a]);
|
|
4076
4076
|
return (
|
|
4077
4077
|
// `.code-editor` scopes the token colors — see code-editor.css.
|
|
4078
|
-
/* @__PURE__ */ e("div", { className:
|
|
4078
|
+
/* @__PURE__ */ e("div", { className: J("code-editor", s), children: /* @__PURE__ */ e(
|
|
4079
4079
|
"pre",
|
|
4080
4080
|
{
|
|
4081
4081
|
"aria-label": l,
|
|
4082
|
-
className:
|
|
4082
|
+
className: J(
|
|
4083
4083
|
// Matches CodeEditor exactly (text-[12px] leading-[1.55]) so code
|
|
4084
4084
|
// reads at one size whether it's in an editor or the assistant.
|
|
4085
4085
|
"w-full min-w-0 max-w-full bg-transparent px-3 py-2.5 font-mono text-[12px] leading-[1.55] [font-variant-numeric:tabular-nums]",
|
|
@@ -4187,7 +4187,7 @@ function Br({
|
|
|
4187
4187
|
className: "flex items-start gap-2 text-[12px] leading-[1.5] text-destructive",
|
|
4188
4188
|
children: [
|
|
4189
4189
|
/* @__PURE__ */ e(
|
|
4190
|
-
|
|
4190
|
+
Qn,
|
|
4191
4191
|
{
|
|
4192
4192
|
"aria-hidden": "true",
|
|
4193
4193
|
className: "mt-0.5 h-3.5 w-3.5 shrink-0"
|
|
@@ -4345,13 +4345,13 @@ function Bo(t, a) {
|
|
|
4345
4345
|
feedbackPayload: f
|
|
4346
4346
|
};
|
|
4347
4347
|
}
|
|
4348
|
-
const Gp = "__editor_sql__",
|
|
4349
|
-
function
|
|
4348
|
+
const Gp = "__editor_sql__", Qp = "__editor_python__";
|
|
4349
|
+
function Jp(t) {
|
|
4350
4350
|
var r;
|
|
4351
4351
|
const a = $u(t.python || "");
|
|
4352
4352
|
return {
|
|
4353
4353
|
sql: (r = t.sql) != null && r.trim() ? Gp : "",
|
|
4354
|
-
python: a.trim() ?
|
|
4354
|
+
python: a.trim() ? Qp : ""
|
|
4355
4355
|
};
|
|
4356
4356
|
}
|
|
4357
4357
|
function Ko({
|
|
@@ -4410,7 +4410,7 @@ function Ko({
|
|
|
4410
4410
|
setFeedbackDialogOpen: M,
|
|
4411
4411
|
handleSendFeedback: A,
|
|
4412
4412
|
feedbackPayload: B
|
|
4413
|
-
} = Bo(V, q || s.sql || s.python), j = se(() => (w == null ? void 0 : w.records) || [], [w == null ? void 0 : w.records]), { setCard: K, updateCardInFrame: le } = ve(), te = b.id, ce = b.config, z = b.interactionConfig, G = b.controls, ae = b.controlBindings, ue = b.customCfg, xe = b.preferences, me = b.queryConfig, Ne =
|
|
4413
|
+
} = Bo(V, q || s.sql || s.python), j = se(() => (w == null ? void 0 : w.records) || [], [w == null ? void 0 : w.records]), { setCard: K, updateCardInFrame: le } = ve(), te = b.id, ce = b.config, z = b.interactionConfig, G = b.controls, ae = b.controlBindings, ue = b.customCfg, xe = b.preferences, me = b.queryConfig, Ne = Jp({
|
|
4414
4414
|
sql: b.sql,
|
|
4415
4415
|
python: b.python
|
|
4416
4416
|
}), Te = Ne.sql, Ye = Ne.python, He = w == null ? void 0 : w.records, pe = se(
|
|
@@ -4466,7 +4466,7 @@ function Ko({
|
|
|
4466
4466
|
}, Ue = Cl(
|
|
4467
4467
|
pe,
|
|
4468
4468
|
He || void 0
|
|
4469
|
-
), vt = gr(),
|
|
4469
|
+
), vt = gr(), Ze = se(() => {
|
|
4470
4470
|
var de;
|
|
4471
4471
|
return !te || !He ? null : wl({
|
|
4472
4472
|
chartTheme: vt,
|
|
@@ -4525,11 +4525,11 @@ function Ko({
|
|
|
4525
4525
|
return yt(s);
|
|
4526
4526
|
if (!["table", "matrixTable", "detailTable", "custom"].includes(
|
|
4527
4527
|
E
|
|
4528
|
-
) &&
|
|
4528
|
+
) && Ze)
|
|
4529
4529
|
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: y || P ? /* @__PURE__ */ e(he, {}) : /* @__PURE__ */ e(
|
|
4530
4530
|
kc,
|
|
4531
4531
|
{
|
|
4532
|
-
cfg:
|
|
4532
|
+
cfg: Ze
|
|
4533
4533
|
}
|
|
4534
4534
|
) });
|
|
4535
4535
|
if (E === "table" || E === "detailTable")
|
|
@@ -4554,7 +4554,7 @@ function Ko({
|
|
|
4554
4554
|
gc,
|
|
4555
4555
|
{
|
|
4556
4556
|
role: "editor-visual-card",
|
|
4557
|
-
className:
|
|
4557
|
+
className: J(
|
|
4558
4558
|
"relative flex h-full flex-col rounded-none bg-card text-card-foreground",
|
|
4559
4559
|
t
|
|
4560
4560
|
),
|
|
@@ -4568,14 +4568,14 @@ function Ko({
|
|
|
4568
4568
|
d && /* @__PURE__ */ e(
|
|
4569
4569
|
bc,
|
|
4570
4570
|
{
|
|
4571
|
-
className:
|
|
4571
|
+
className: J(
|
|
4572
4572
|
"flex flex-row items-start justify-between gap-4 px-4 pb-3 pt-3"
|
|
4573
4573
|
),
|
|
4574
4574
|
style: l.cardGutterStyle,
|
|
4575
4575
|
children: /* @__PURE__ */ n("div", { className: "min-w-0 flex-1 space-y-1", children: [
|
|
4576
4576
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
4577
4577
|
/* @__PURE__ */ e(vc, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
|
|
4578
|
-
|
|
4578
|
+
Ja,
|
|
4579
4579
|
{
|
|
4580
4580
|
value: s.title,
|
|
4581
4581
|
onSave: (de) => K({ ...s, title: de }),
|
|
@@ -4590,7 +4590,7 @@ function Ko({
|
|
|
4590
4590
|
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(Yp, {}) })
|
|
4591
4591
|
] }),
|
|
4592
4592
|
/* @__PURE__ */ e("div", { className: "min-w-0", children: /* @__PURE__ */ e(
|
|
4593
|
-
|
|
4593
|
+
Ja,
|
|
4594
4594
|
{
|
|
4595
4595
|
value: (s.description || "").trim(),
|
|
4596
4596
|
onSave: (de) => K({ ...s, description: de.trim() }),
|
|
@@ -4623,14 +4623,14 @@ function Ko({
|
|
|
4623
4623
|
/* @__PURE__ */ n(
|
|
4624
4624
|
Nc,
|
|
4625
4625
|
{
|
|
4626
|
-
className:
|
|
4626
|
+
className: J(
|
|
4627
4627
|
"flex min-h-0 grow flex-col",
|
|
4628
4628
|
R ? Y ? "px-4 pb-0 pt-2" : "p-0 [&_.data-table-scroll-container]:border-0 [&_.data-table-scroll-container]:bg-transparent" : Y ? "px-4 py-0" : "px-4"
|
|
4629
4629
|
),
|
|
4630
4630
|
style: R && !Y ? void 0 : l.cardGutterStyle,
|
|
4631
4631
|
children: [
|
|
4632
4632
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 grow basis-0", children: ot() }),
|
|
4633
|
-
Sl(b) && /* @__PURE__ */ e("div", { className:
|
|
4633
|
+
Sl(b) && /* @__PURE__ */ e("div", { className: J("pt-3", R && "px-4"), children: /* @__PURE__ */ e(
|
|
4634
4634
|
kl,
|
|
4635
4635
|
{
|
|
4636
4636
|
card: b,
|
|
@@ -4682,7 +4682,7 @@ const On = ({
|
|
|
4682
4682
|
onChange: r,
|
|
4683
4683
|
readonly: s
|
|
4684
4684
|
}) => /* @__PURE__ */ e(
|
|
4685
|
-
|
|
4685
|
+
Xt,
|
|
4686
4686
|
{
|
|
4687
4687
|
className: "h-full w-full text-xs",
|
|
4688
4688
|
language: t,
|
|
@@ -4705,7 +4705,7 @@ const On = ({
|
|
|
4705
4705
|
}
|
|
4706
4706
|
)
|
|
4707
4707
|
] })
|
|
4708
|
-
] }),
|
|
4708
|
+
] }), Xp = ({
|
|
4709
4709
|
// defaultConfig,
|
|
4710
4710
|
customCode: t,
|
|
4711
4711
|
cardCustomCfgString: a,
|
|
@@ -4765,7 +4765,7 @@ const On = ({
|
|
|
4765
4765
|
)
|
|
4766
4766
|
}
|
|
4767
4767
|
)
|
|
4768
|
-
] }),
|
|
4768
|
+
] }), Zp = ({
|
|
4769
4769
|
error: t,
|
|
4770
4770
|
hasCardCustomConfig: a,
|
|
4771
4771
|
onReset: r,
|
|
@@ -4824,7 +4824,7 @@ function ef({
|
|
|
4824
4824
|
{
|
|
4825
4825
|
variant: "ghost",
|
|
4826
4826
|
onClick: R,
|
|
4827
|
-
className:
|
|
4827
|
+
className: J(
|
|
4828
4828
|
"h-7 w-full justify-start gap-2 px-2 text-[13px] font-normal",
|
|
4829
4829
|
w ? "" : "text-green-600 hover:text-green-700",
|
|
4830
4830
|
a
|
|
@@ -4839,7 +4839,7 @@ function ef({
|
|
|
4839
4839
|
{
|
|
4840
4840
|
tooltip: "Customize Visual",
|
|
4841
4841
|
onClick: R,
|
|
4842
|
-
className:
|
|
4842
|
+
className: J(
|
|
4843
4843
|
w ? "" : "text-green-600 hover:text-green-700",
|
|
4844
4844
|
a
|
|
4845
4845
|
),
|
|
@@ -4851,7 +4851,7 @@ function ef({
|
|
|
4851
4851
|
/* @__PURE__ */ n("div", { className: "flex grow gap-2", children: [
|
|
4852
4852
|
/* @__PURE__ */ e(on, { FallbackComponent: br, children: /* @__PURE__ */ e(Ko, { className: "w-1/2 rounded shadow-none" }) }),
|
|
4853
4853
|
/* @__PURE__ */ e(
|
|
4854
|
-
|
|
4854
|
+
Xp,
|
|
4855
4855
|
{
|
|
4856
4856
|
customCode: f,
|
|
4857
4857
|
cardCustomCfgString: x,
|
|
@@ -4862,7 +4862,7 @@ function ef({
|
|
|
4862
4862
|
)
|
|
4863
4863
|
] }),
|
|
4864
4864
|
/* @__PURE__ */ e(
|
|
4865
|
-
|
|
4865
|
+
Zp,
|
|
4866
4866
|
{
|
|
4867
4867
|
error: m,
|
|
4868
4868
|
hasCardCustomConfig: !!S,
|
|
@@ -4901,7 +4901,7 @@ function qo({
|
|
|
4901
4901
|
return /* @__PURE__ */ e(
|
|
4902
4902
|
"div",
|
|
4903
4903
|
{
|
|
4904
|
-
className:
|
|
4904
|
+
className: J(
|
|
4905
4905
|
"flex items-center justify-center rounded text-white font-semibold text-xs",
|
|
4906
4906
|
s
|
|
4907
4907
|
),
|
|
@@ -4928,7 +4928,7 @@ function Hs({
|
|
|
4928
4928
|
onMouseMove: o,
|
|
4929
4929
|
"aria-pressed": l,
|
|
4930
4930
|
title: s ? `${a} · ${s}` : a,
|
|
4931
|
-
className:
|
|
4931
|
+
className: J(
|
|
4932
4932
|
"flex h-7 w-full min-w-0 items-center gap-2 rounded-[4px] px-2 text-left text-[12px] transition-colors",
|
|
4933
4933
|
c && "bg-muted"
|
|
4934
4934
|
),
|
|
@@ -4939,7 +4939,7 @@ function Hs({
|
|
|
4939
4939
|
chartType: t,
|
|
4940
4940
|
chartName: a,
|
|
4941
4941
|
isCustom: r,
|
|
4942
|
-
className:
|
|
4942
|
+
className: J(
|
|
4943
4943
|
"h-3.5 w-3.5 shrink-0",
|
|
4944
4944
|
// Custom charts may fall back to colored initials in white text,
|
|
4945
4945
|
// so they get a size only; a text color here would override it.
|
|
@@ -4950,7 +4950,7 @@ function Hs({
|
|
|
4950
4950
|
/* @__PURE__ */ e(
|
|
4951
4951
|
"span",
|
|
4952
4952
|
{
|
|
4953
|
-
className:
|
|
4953
|
+
className: J(
|
|
4954
4954
|
"truncate",
|
|
4955
4955
|
l ? "font-medium text-foreground" : "text-foreground/80"
|
|
4956
4956
|
),
|
|
@@ -5278,7 +5278,7 @@ function sr({
|
|
|
5278
5278
|
onClick: () => u(h),
|
|
5279
5279
|
"aria-label": h.label,
|
|
5280
5280
|
"aria-pressed": !!S,
|
|
5281
|
-
className:
|
|
5281
|
+
className: J(
|
|
5282
5282
|
"flex h-full w-7 items-center justify-center text-foreground/65 transition-colors hover:bg-muted/50 hover:text-foreground",
|
|
5283
5283
|
s && !S && "hidden @[800px]:flex",
|
|
5284
5284
|
S && "bg-foreground/[0.08] font-medium text-foreground"
|
|
@@ -5308,7 +5308,7 @@ function sr({
|
|
|
5308
5308
|
{
|
|
5309
5309
|
type: "button",
|
|
5310
5310
|
"aria-label": r ? "More chart types" : p,
|
|
5311
|
-
className:
|
|
5311
|
+
className: J(
|
|
5312
5312
|
"inline-flex h-full items-center gap-1 border-l border-input transition-colors hover:bg-muted/50",
|
|
5313
5313
|
r ? "w-7 justify-center" : "px-2 text-[12px]",
|
|
5314
5314
|
!r && (m ? "text-muted-foreground" : "text-foreground")
|
|
@@ -5318,7 +5318,7 @@ function sr({
|
|
|
5318
5318
|
/* @__PURE__ */ e(
|
|
5319
5319
|
_t,
|
|
5320
5320
|
{
|
|
5321
|
-
className:
|
|
5321
|
+
className: J(
|
|
5322
5322
|
"h-3 w-3 shrink-0 text-muted-foreground transition-transform",
|
|
5323
5323
|
l && "rotate-180"
|
|
5324
5324
|
),
|
|
@@ -5462,7 +5462,7 @@ function qr({
|
|
|
5462
5462
|
checked: h
|
|
5463
5463
|
}
|
|
5464
5464
|
];
|
|
5465
|
-
return /* @__PURE__ */ e("div", { className:
|
|
5465
|
+
return /* @__PURE__ */ e("div", { className: J("flex items-center", t), children: /* @__PURE__ */ n(vr, { modal: !1, open: o, onOpenChange: i, children: [
|
|
5466
5466
|
/* @__PURE__ */ e(yr, { asChild: !0, children: a === "menu" ? /* @__PURE__ */ n(
|
|
5467
5467
|
ne,
|
|
5468
5468
|
{
|
|
@@ -5473,7 +5473,7 @@ function qr({
|
|
|
5473
5473
|
/* @__PURE__ */ e("span", { children: r })
|
|
5474
5474
|
]
|
|
5475
5475
|
}
|
|
5476
|
-
) : /* @__PURE__ */ e(nt, { className: "h-7 w-7 p-0", tooltip: "Display Options", children: /* @__PURE__ */ e(
|
|
5476
|
+
) : /* @__PURE__ */ e(nt, { className: "h-7 w-7 p-0", tooltip: "Display Options", children: /* @__PURE__ */ e(Xa, { className: "h-3.5 w-3.5" }) }) }),
|
|
5477
5477
|
/* @__PURE__ */ n(Nr, { align: "end", className: "w-64", children: [
|
|
5478
5478
|
/* @__PURE__ */ e("p", { className: "px-2 pb-1.5 pt-1 text-[11px] text-muted-foreground", children: "Changes apply to dashboard view only" }),
|
|
5479
5479
|
S.map((y) => /* @__PURE__ */ n(
|
|
@@ -5542,9 +5542,9 @@ function jr({
|
|
|
5542
5542
|
inlineFilters: _
|
|
5543
5543
|
});
|
|
5544
5544
|
const w = _.find((P) => P.id === E);
|
|
5545
|
-
if (!w || !
|
|
5545
|
+
if (!w || !Qu(R, w))
|
|
5546
5546
|
return;
|
|
5547
|
-
const y =
|
|
5547
|
+
const y = Ju(
|
|
5548
5548
|
w,
|
|
5549
5549
|
S
|
|
5550
5550
|
);
|
|
@@ -5572,7 +5572,7 @@ function jr({
|
|
|
5572
5572
|
return /* @__PURE__ */ e(
|
|
5573
5573
|
"div",
|
|
5574
5574
|
{
|
|
5575
|
-
className:
|
|
5575
|
+
className: J(
|
|
5576
5576
|
"flex items-center gap-1",
|
|
5577
5577
|
g && "w-full",
|
|
5578
5578
|
t
|
|
@@ -5593,7 +5593,7 @@ function jr({
|
|
|
5593
5593
|
nt,
|
|
5594
5594
|
{
|
|
5595
5595
|
tooltip: "Add Inline Filter",
|
|
5596
|
-
className:
|
|
5596
|
+
className: J("relative h-7 w-7 px-0", {
|
|
5597
5597
|
"text-primary": C.length > 0
|
|
5598
5598
|
}),
|
|
5599
5599
|
children: [
|
|
@@ -5606,7 +5606,7 @@ function jr({
|
|
|
5606
5606
|
At,
|
|
5607
5607
|
{
|
|
5608
5608
|
align: "end",
|
|
5609
|
-
className:
|
|
5609
|
+
className: J("w-80 p-0", g && "z-[60]"),
|
|
5610
5610
|
children: /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
|
|
5611
5611
|
/* @__PURE__ */ n("div", { className: "border-b px-4 py-3", children: [
|
|
5612
5612
|
/* @__PURE__ */ e("h4", { className: "text-sm font-medium", children: "Inline Filters" }),
|
|
@@ -5748,7 +5748,7 @@ function ff({
|
|
|
5748
5748
|
[i, f]
|
|
5749
5749
|
);
|
|
5750
5750
|
function m(w) {
|
|
5751
|
-
return !i || !u ? [] :
|
|
5751
|
+
return !i || !u ? [] : Zu(i, w, x).map((y) => ({
|
|
5752
5752
|
id: y.id,
|
|
5753
5753
|
label: y.kind === "measure" ? `${hn(y.measure, u)} (${y.measure.aggregate})` : `${y.axis === "rows" ? "Rows" : "Columns"}: ${Pr(y.level, u)}`
|
|
5754
5754
|
}));
|
|
@@ -5883,7 +5883,7 @@ function ff({
|
|
|
5883
5883
|
}
|
|
5884
5884
|
return /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
5885
5885
|
g > 0 ? /* @__PURE__ */ n("div", { className: "flex items-start gap-2 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-950", children: [
|
|
5886
|
-
/* @__PURE__ */ e(
|
|
5886
|
+
/* @__PURE__ */ e(Qn, { className: "mt-0.5 h-3.5 w-3.5 shrink-0" }),
|
|
5887
5887
|
/* @__PURE__ */ n("span", { children: [
|
|
5888
5888
|
g,
|
|
5889
5889
|
" ",
|
|
@@ -5894,7 +5894,7 @@ function ff({
|
|
|
5894
5894
|
r.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "This card is not using any controls yet." }) : r.map((w, y) => {
|
|
5895
5895
|
const P = v[w.target] || [], V = p.find(
|
|
5896
5896
|
(K) => K.id === w.controlId
|
|
5897
|
-
), q = V ?
|
|
5897
|
+
), q = V ? Xu(V) : null, L = (q == null ? void 0 : q.source.kind) === "manual" ? q.source.options : [], b = E(w.target), Y = m(w.target), k = w.matrixTargetId !== void 0 && !Y.some((K) => K.id === w.matrixTargetId), D = Array.from(
|
|
5898
5898
|
/* @__PURE__ */ new Set([
|
|
5899
5899
|
...L.map((K) => K.value),
|
|
5900
5900
|
...Object.keys(w.mapping)
|
|
@@ -5965,7 +5965,7 @@ function ff({
|
|
|
5965
5965
|
return K === "__none__" ? ce : { ...ce, matrixTargetId: K };
|
|
5966
5966
|
}),
|
|
5967
5967
|
children: [
|
|
5968
|
-
/* @__PURE__ */ e(
|
|
5968
|
+
/* @__PURE__ */ e(X, { id: `matrix-target-${M}`, "aria-label": "Matrix target", children: /* @__PURE__ */ e(Z, { placeholder: "Choose target" }) }),
|
|
5969
5969
|
/* @__PURE__ */ n(ee, { children: [
|
|
5970
5970
|
/* @__PURE__ */ e($, { value: "__none__", children: Y.length === 1 ? `Automatic: ${Y[0].label}` : "Choose target" }),
|
|
5971
5971
|
k ? /* @__PURE__ */ e($, { value: w.matrixTargetId, disabled: !0, children: "Missing target" }) : null,
|
|
@@ -6043,7 +6043,7 @@ function ff({
|
|
|
6043
6043
|
};
|
|
6044
6044
|
}),
|
|
6045
6045
|
children: [
|
|
6046
|
-
/* @__PURE__ */ e(
|
|
6046
|
+
/* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Z, { placeholder: "Choose what this should use" }) }),
|
|
6047
6047
|
/* @__PURE__ */ n(ee, { children: [
|
|
6048
6048
|
/* @__PURE__ */ e($, { value: "__none__", children: "Not mapped" }),
|
|
6049
6049
|
G.map((ae) => /* @__PURE__ */ e($, { value: ae.value, children: ae.label }, ae.value))
|
|
@@ -6052,7 +6052,7 @@ function ff({
|
|
|
6052
6052
|
}
|
|
6053
6053
|
),
|
|
6054
6054
|
ce ? /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 text-[11px] text-amber-700", children: [
|
|
6055
|
-
/* @__PURE__ */ e(
|
|
6055
|
+
/* @__PURE__ */ e(Qn, { className: "h-3 w-3 shrink-0" }),
|
|
6056
6056
|
/* @__PURE__ */ n("span", { children: [
|
|
6057
6057
|
"Needs remap",
|
|
6058
6058
|
z ? ` · Previously: ${z}` : ""
|
|
@@ -6124,7 +6124,7 @@ function bf({
|
|
|
6124
6124
|
bindings: l,
|
|
6125
6125
|
controls: d,
|
|
6126
6126
|
...f
|
|
6127
|
-
}), { preferences: m, resolveBoundCurrency: p } =
|
|
6127
|
+
}), { preferences: m, resolveBoundCurrency: p } = Qc(a, s, t), [h, C] = U(""), [S, x] = U(""), v = i.find((g) => g.key === S), T = !!(h && v) && !l.some(
|
|
6128
6128
|
(g) => g.presentationTarget && v && Co(g.presentationTarget) === v.key
|
|
6129
6129
|
), N = (g) => {
|
|
6130
6130
|
if (!m)
|
|
@@ -6176,11 +6176,11 @@ function bf({
|
|
|
6176
6176
|
] }, `${g.controlId || "binding"}:${g.code}:${E}`)) }) : null,
|
|
6177
6177
|
/* @__PURE__ */ n("div", { className: "grid grid-cols-[1fr_1fr_auto] gap-2", children: [
|
|
6178
6178
|
/* @__PURE__ */ n(W, { value: h, onValueChange: C, children: [
|
|
6179
|
-
/* @__PURE__ */ e(
|
|
6179
|
+
/* @__PURE__ */ e(X, { size: "xs", children: /* @__PURE__ */ e(Z, { placeholder: "Currency control" }) }),
|
|
6180
6180
|
/* @__PURE__ */ e(ee, { children: o.map((g) => /* @__PURE__ */ e($, { value: g.id, children: g.label }, g.id)) })
|
|
6181
6181
|
] }),
|
|
6182
6182
|
/* @__PURE__ */ n(W, { value: S, onValueChange: x, children: [
|
|
6183
|
-
/* @__PURE__ */ e(
|
|
6183
|
+
/* @__PURE__ */ e(X, { size: "xs", children: /* @__PURE__ */ e(Z, { placeholder: "Target" }) }),
|
|
6184
6184
|
/* @__PURE__ */ e(ee, { children: i.map((g) => /* @__PURE__ */ e($, { value: g.key, children: g.label }, g.key)) })
|
|
6185
6185
|
] }),
|
|
6186
6186
|
/* @__PURE__ */ e(
|
|
@@ -6230,7 +6230,7 @@ function $r({
|
|
|
6230
6230
|
const v = se(() => S ? (i == null ? void 0 : i.cards.find((j) => j.id === S)) || ((o == null ? void 0 : o.id) === S ? o : void 0) : o, [o, i == null ? void 0 : i.cards, S]), T = (v == null ? void 0 : v.type) === "matrixTable" ? (M = v.config) == null ? void 0 : M.matrix : void 0, N = se(
|
|
6231
6231
|
() => c && T ? Mh(T.spec, v == null ? void 0 : v.controlBindings) : [],
|
|
6232
6232
|
[c, T, v == null ? void 0 : v.controlBindings]
|
|
6233
|
-
), g =
|
|
6233
|
+
), g = Jc(N), E = se(() => g.catalog.map((j) => ({
|
|
6234
6234
|
...j.field,
|
|
6235
6235
|
dataType: ul(j.resolvedField.dataType)
|
|
6236
6236
|
})), [g.catalog]), I = (v == null ? void 0 : v.controls) || [], R = v ? em(u, { excludeCardId: v.id }) : p.map((j) => j.id), _ = ((v == null ? void 0 : v.controlBindings) || []).filter(
|
|
@@ -6313,7 +6313,7 @@ function $r({
|
|
|
6313
6313
|
return /* @__PURE__ */ e(
|
|
6314
6314
|
"div",
|
|
6315
6315
|
{
|
|
6316
|
-
className:
|
|
6316
|
+
className: J(
|
|
6317
6317
|
"flex items-center gap-1",
|
|
6318
6318
|
D && "w-full",
|
|
6319
6319
|
t
|
|
@@ -6325,7 +6325,7 @@ function $r({
|
|
|
6325
6325
|
variant: "ghost",
|
|
6326
6326
|
className: "h-auto w-full justify-start gap-2 rounded-sm px-2 py-1.5 text-[13px] font-normal",
|
|
6327
6327
|
children: [
|
|
6328
|
-
/* @__PURE__ */ e(
|
|
6328
|
+
/* @__PURE__ */ e(Xa, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
6329
6329
|
/* @__PURE__ */ e("span", { children: r }),
|
|
6330
6330
|
I.length + _.length > 0 && /* @__PURE__ */ e("span", { className: "ml-auto text-[11px] tabular-nums text-muted-foreground", children: I.length + _.length })
|
|
6331
6331
|
]
|
|
@@ -6334,11 +6334,11 @@ function $r({
|
|
|
6334
6334
|
nt,
|
|
6335
6335
|
{
|
|
6336
6336
|
tooltip: "Configure Controls",
|
|
6337
|
-
className:
|
|
6337
|
+
className: J("relative h-7 w-7 px-0", {
|
|
6338
6338
|
"text-primary": I.length > 0 || _.length > 0
|
|
6339
6339
|
}),
|
|
6340
6340
|
children: [
|
|
6341
|
-
/* @__PURE__ */ e(
|
|
6341
|
+
/* @__PURE__ */ e(Xa, { className: "h-3.5 w-3.5" }),
|
|
6342
6342
|
I.length + _.length > 0 && /* @__PURE__ */ e("span", { className: "absolute -right-1 -top-1 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground", children: I.length + _.length })
|
|
6343
6343
|
]
|
|
6344
6344
|
}
|
|
@@ -6346,7 +6346,7 @@ function $r({
|
|
|
6346
6346
|
/* @__PURE__ */ n(
|
|
6347
6347
|
At,
|
|
6348
6348
|
{
|
|
6349
|
-
className:
|
|
6349
|
+
className: J(
|
|
6350
6350
|
"flex max-h-[85vh] w-[560px] max-w-[95vw] flex-col",
|
|
6351
6351
|
D && "z-[60]"
|
|
6352
6352
|
),
|
|
@@ -6427,7 +6427,7 @@ function $o({
|
|
|
6427
6427
|
var C, S;
|
|
6428
6428
|
return (S = (C = h.card) == null ? void 0 : C.preferences) == null ? void 0 : S.chartOptions;
|
|
6429
6429
|
}
|
|
6430
|
-
), o =
|
|
6430
|
+
), o = Xc(d), { setChartGrid: i } = ve();
|
|
6431
6431
|
function f() {
|
|
6432
6432
|
const h = ["xy", "none", "x", "y"], S = (h.indexOf(o) + 1) % h.length;
|
|
6433
6433
|
i(h[S]);
|
|
@@ -6596,7 +6596,7 @@ function Nf({
|
|
|
6596
6596
|
)
|
|
6597
6597
|
) + 1 : N;
|
|
6598
6598
|
if (S && ((ce = h == null ? void 0 : h.slots) != null && ce.length)) {
|
|
6599
|
-
const z =
|
|
6599
|
+
const z = Zn(
|
|
6600
6600
|
h.slots,
|
|
6601
6601
|
le
|
|
6602
6602
|
);
|
|
@@ -6658,7 +6658,7 @@ function Nf({
|
|
|
6658
6658
|
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
|
|
6659
6659
|
s.cards.map((A, B) => {
|
|
6660
6660
|
var ce, z;
|
|
6661
|
-
const j = S ? Lt(A, B) : -1, K = S && ((ce = h == null ? void 0 : h.slots) != null && ce.length) && j >= 0 ?
|
|
6661
|
+
const j = S ? Lt(A, B) : -1, K = S && ((ce = h == null ? void 0 : h.slots) != null && ce.length) && j >= 0 ? Zn(h.slots, j) : null, le = K ? (Array.isArray(K.expectedType) ? K.expectedType[0] : K.expectedType) || "table" : A.type, te = S && ((z = h == null ? void 0 : h.slots) == null ? void 0 : z.length) && h.slots.every(
|
|
6662
6662
|
(G) => typeof G.position == "number" || typeof G.position == "string" && !G.position.includes("+")
|
|
6663
6663
|
);
|
|
6664
6664
|
return /* @__PURE__ */ n(
|
|
@@ -6668,7 +6668,7 @@ function Nf({
|
|
|
6668
6668
|
onDragStart: S || d ? void 0 : (G) => R(G, B),
|
|
6669
6669
|
onDragOver: S || d ? void 0 : _,
|
|
6670
6670
|
onDrop: S || d ? void 0 : (G) => w(G, B),
|
|
6671
|
-
className:
|
|
6671
|
+
className: J(
|
|
6672
6672
|
"inline-flex h-6 shrink-0 items-center gap-1.5 rounded-[5px] border px-2 text-[12px] font-normal text-muted-foreground transition-colors",
|
|
6673
6673
|
"mb-0 border-transparent pb-0",
|
|
6674
6674
|
"hover:bg-muted/40 hover:text-foreground",
|
|
@@ -6779,7 +6779,7 @@ function lr({
|
|
|
6779
6779
|
const { switchCardTab: f, resetAllColumnSettings: u } = ve(), m = Object.keys(((de = (je = l.preferences) == null ? void 0 : je.tablePrefs) == null ? void 0 : de.columnSettingsMap) ?? {}).length > 0 || Object.keys(((ze = l.preferences) == null ? void 0 : ze.sqlColumns) ?? {}).length > 0, [p, h] = U({}), [C, S] = U(
|
|
6780
6780
|
() => /* @__PURE__ */ new Set()
|
|
6781
6781
|
), { authToken: x } = ea(), v = lm(x == null ? void 0 : x.accessToken), { compiledAppearance: T } = Ph(), N = se(
|
|
6782
|
-
() =>
|
|
6782
|
+
() => Zc(T),
|
|
6783
6783
|
[T]
|
|
6784
6784
|
), {
|
|
6785
6785
|
getCard: g,
|
|
@@ -6872,7 +6872,7 @@ function lr({
|
|
|
6872
6872
|
(ie) => ie.inlineFilterValuesMap[(o == null ? void 0 : o.id) || ""]
|
|
6873
6873
|
), vt = F(
|
|
6874
6874
|
(ie) => ie.actions.setCardInlineFilterValue
|
|
6875
|
-
),
|
|
6875
|
+
), Ze = F(
|
|
6876
6876
|
(ie) => ie.actions.removeCardInlineFilterValue
|
|
6877
6877
|
), yt = se(
|
|
6878
6878
|
() => o ? nd({
|
|
@@ -6880,14 +6880,14 @@ function lr({
|
|
|
6880
6880
|
sheetId: _e || "",
|
|
6881
6881
|
inlineFilterValues: Ue,
|
|
6882
6882
|
setInlineFilterValue: (ie) => vt(o.id, ie),
|
|
6883
|
-
removeInlineFilterValue: (ie) =>
|
|
6883
|
+
removeInlineFilterValue: (ie) => Ze(o.id, ie)
|
|
6884
6884
|
}) : [],
|
|
6885
6885
|
[
|
|
6886
6886
|
o,
|
|
6887
6887
|
_e,
|
|
6888
6888
|
Ue,
|
|
6889
6889
|
vt,
|
|
6890
|
-
|
|
6890
|
+
Ze
|
|
6891
6891
|
]
|
|
6892
6892
|
), {
|
|
6893
6893
|
filterInputs: ot,
|
|
@@ -6940,7 +6940,7 @@ function lr({
|
|
|
6940
6940
|
/* @__PURE__ */ e(
|
|
6941
6941
|
"div",
|
|
6942
6942
|
{
|
|
6943
|
-
className:
|
|
6943
|
+
className: J(
|
|
6944
6944
|
"flex h-full min-h-0 flex-1 flex-col gap-2",
|
|
6945
6945
|
xe && "opacity-50"
|
|
6946
6946
|
),
|
|
@@ -7067,7 +7067,7 @@ function zo({
|
|
|
7067
7067
|
return /* @__PURE__ */ n(
|
|
7068
7068
|
Fo,
|
|
7069
7069
|
{
|
|
7070
|
-
className:
|
|
7070
|
+
className: J("overflow-hidden", d && "pt-0", s),
|
|
7071
7071
|
children: [
|
|
7072
7072
|
/* @__PURE__ */ e(
|
|
7073
7073
|
Yo,
|
|
@@ -7097,7 +7097,7 @@ function zo({
|
|
|
7097
7097
|
}
|
|
7098
7098
|
)
|
|
7099
7099
|
] }),
|
|
7100
|
-
className:
|
|
7100
|
+
className: J(
|
|
7101
7101
|
"min-h-0",
|
|
7102
7102
|
!d && (p ? "max-h-[40%] shrink-0" : "flex-1")
|
|
7103
7103
|
),
|
|
@@ -7252,15 +7252,15 @@ function Vn({
|
|
|
7252
7252
|
return /* @__PURE__ */ n(
|
|
7253
7253
|
"div",
|
|
7254
7254
|
{
|
|
7255
|
-
className:
|
|
7255
|
+
className: J(
|
|
7256
7256
|
"relative isolate flex flex-col",
|
|
7257
|
-
ce ? "pointer-events-none w-full min-w-0" :
|
|
7257
|
+
ce ? "pointer-events-none w-full min-w-0" : J("h-full", !h && "pt-2")
|
|
7258
7258
|
),
|
|
7259
7259
|
children: [
|
|
7260
7260
|
le && /* @__PURE__ */ n(
|
|
7261
7261
|
"div",
|
|
7262
7262
|
{
|
|
7263
|
-
className:
|
|
7263
|
+
className: J(
|
|
7264
7264
|
"z-10 mb-0 flex items-center",
|
|
7265
7265
|
ce ? "pointer-events-none relative h-10 min-w-0 gap-3 px-4" : "min-h-10 gap-2 px-4"
|
|
7266
7266
|
),
|
|
@@ -7291,7 +7291,7 @@ function Vn({
|
|
|
7291
7291
|
/* @__PURE__ */ n(
|
|
7292
7292
|
"div",
|
|
7293
7293
|
{
|
|
7294
|
-
className:
|
|
7294
|
+
className: J(
|
|
7295
7295
|
"flex items-center text-muted-foreground",
|
|
7296
7296
|
ce ? "pointer-events-auto ml-auto gap-1.5" : "gap-2"
|
|
7297
7297
|
),
|
|
@@ -7326,7 +7326,7 @@ function Vn({
|
|
|
7326
7326
|
children: [
|
|
7327
7327
|
/* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-3 py-2 text-[13px] font-medium", children: "Active Dashboard Filters" }),
|
|
7328
7328
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-auto", children: /* @__PURE__ */ e(
|
|
7329
|
-
|
|
7329
|
+
Xt,
|
|
7330
7330
|
{
|
|
7331
7331
|
value: JSON.stringify(V, null, 2),
|
|
7332
7332
|
onValueChange: () => {
|
|
@@ -7360,7 +7360,7 @@ function Vn({
|
|
|
7360
7360
|
size: "xs",
|
|
7361
7361
|
"aria-pressed": a.isOpen,
|
|
7362
7362
|
onClick: a.onToggle,
|
|
7363
|
-
className:
|
|
7363
|
+
className: J(
|
|
7364
7364
|
"h-7 shrink-0 gap-1.5 text-[12px]",
|
|
7365
7365
|
ce ? "w-7 px-0 @[760px]:w-auto @[760px]:px-2" : "px-2",
|
|
7366
7366
|
a.isOpen && "bg-accent text-accent-foreground"
|
|
@@ -7381,7 +7381,7 @@ function Vn({
|
|
|
7381
7381
|
children: /* @__PURE__ */ e(
|
|
7382
7382
|
ar,
|
|
7383
7383
|
{
|
|
7384
|
-
className:
|
|
7384
|
+
className: J("h-3.5 w-3.5", {
|
|
7385
7385
|
"animate-spin": (b == null ? void 0 : b.isFetching) ?? q
|
|
7386
7386
|
})
|
|
7387
7387
|
}
|
|
@@ -7428,7 +7428,7 @@ function Vn({
|
|
|
7428
7428
|
onSelect: () => k(b.readDelivery()),
|
|
7429
7429
|
className: "gap-2 text-[13px]",
|
|
7430
7430
|
children: [
|
|
7431
|
-
/* @__PURE__ */ e(
|
|
7431
|
+
/* @__PURE__ */ e(Jn, { className: "h-3.5 w-3.5" }),
|
|
7432
7432
|
"Download"
|
|
7433
7433
|
]
|
|
7434
7434
|
}
|
|
@@ -7440,7 +7440,7 @@ function Vn({
|
|
|
7440
7440
|
onSelect: K,
|
|
7441
7441
|
className: "gap-2 text-[13px]",
|
|
7442
7442
|
children: [
|
|
7443
|
-
/* @__PURE__ */ e(
|
|
7443
|
+
/* @__PURE__ */ e(Jn, { className: "h-3.5 w-3.5" }),
|
|
7444
7444
|
"Download CSV"
|
|
7445
7445
|
]
|
|
7446
7446
|
}
|
|
@@ -7606,16 +7606,16 @@ function Ua({
|
|
|
7606
7606
|
onValueChange: l,
|
|
7607
7607
|
children: [
|
|
7608
7608
|
/* @__PURE__ */ e(
|
|
7609
|
-
|
|
7609
|
+
X,
|
|
7610
7610
|
{
|
|
7611
|
-
className:
|
|
7611
|
+
className: J("w-full focus:ring-0 focus:ring-offset-0", c),
|
|
7612
7612
|
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
7613
7613
|
d && /* @__PURE__ */ e("span", { children: d }),
|
|
7614
|
-
o && /* @__PURE__ */ e(
|
|
7614
|
+
o && /* @__PURE__ */ e(Z, { placeholder: a })
|
|
7615
7615
|
] })
|
|
7616
7616
|
}
|
|
7617
7617
|
),
|
|
7618
|
-
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ n(
|
|
7618
|
+
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ n(Xn, { children: [
|
|
7619
7619
|
/* @__PURE__ */ e(ao, { children: a }),
|
|
7620
7620
|
r.map((i) => /* @__PURE__ */ e($, { value: i.value, children: i.label }, i.value))
|
|
7621
7621
|
] }) })
|
|
@@ -7624,7 +7624,7 @@ function Ua({
|
|
|
7624
7624
|
);
|
|
7625
7625
|
}
|
|
7626
7626
|
function wf(t, a) {
|
|
7627
|
-
return
|
|
7627
|
+
return Zn(t, a) || null;
|
|
7628
7628
|
}
|
|
7629
7629
|
function ka(t) {
|
|
7630
7630
|
if (typeof t == "number")
|
|
@@ -7871,7 +7871,7 @@ function Ho() {
|
|
|
7871
7871
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
7872
7872
|
/* @__PURE__ */ e(O, { children: j.title }),
|
|
7873
7873
|
((K = j.docs) == null ? void 0 : K.description) && /* @__PURE__ */ e(bt, { delayDuration: 0, children: /* @__PURE__ */ n(mt, { children: [
|
|
7874
|
-
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(
|
|
7874
|
+
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
|
|
7875
7875
|
/* @__PURE__ */ e(ut, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children: j.docs.description }) })
|
|
7876
7876
|
] }) })
|
|
7877
7877
|
] }),
|
|
@@ -8013,7 +8013,7 @@ function Ho() {
|
|
|
8013
8013
|
{
|
|
8014
8014
|
asChild: !0,
|
|
8015
8015
|
onClick: (b) => b.stopPropagation(),
|
|
8016
|
-
children: /* @__PURE__ */ e(
|
|
8016
|
+
children: /* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground transition-colors hover:text-foreground" })
|
|
8017
8017
|
}
|
|
8018
8018
|
),
|
|
8019
8019
|
/* @__PURE__ */ e(
|
|
@@ -8154,10 +8154,10 @@ const Kn = "__report_default__", Ef = [
|
|
|
8154
8154
|
"date",
|
|
8155
8155
|
"duration"
|
|
8156
8156
|
];
|
|
8157
|
-
function
|
|
8157
|
+
function Qo(t, a) {
|
|
8158
8158
|
return Ef.filter((r) => r !== "auto" && (!t || t.includes(r) || r === a));
|
|
8159
8159
|
}
|
|
8160
|
-
const
|
|
8160
|
+
const Qs = [
|
|
8161
8161
|
// 🌐 Global Reserve & Major Currencies
|
|
8162
8162
|
{ value: "USD", label: "USD - US Dollar" },
|
|
8163
8163
|
{ value: "EUR", label: "EUR - Euro" },
|
|
@@ -8272,7 +8272,7 @@ function Ya({
|
|
|
8272
8272
|
}, R = (y) => c && i === "currency" ? Mf(
|
|
8273
8273
|
f,
|
|
8274
8274
|
y
|
|
8275
|
-
) : Go(f, y), _ = ((w =
|
|
8275
|
+
) : Go(f, y), _ = ((w = Qs.find(
|
|
8276
8276
|
(y) => y.value === (c == null ? void 0 : c.currency)
|
|
8277
8277
|
)) == null ? void 0 : w.label) ?? (c == null ? void 0 : c.currency);
|
|
8278
8278
|
return we(() => {
|
|
@@ -8291,16 +8291,16 @@ function Ya({
|
|
|
8291
8291
|
onValueChange: (y) => I(y),
|
|
8292
8292
|
children: [
|
|
8293
8293
|
/* @__PURE__ */ e(
|
|
8294
|
-
|
|
8294
|
+
X,
|
|
8295
8295
|
{
|
|
8296
8296
|
className: "h-8 text-xs",
|
|
8297
8297
|
onClick: u,
|
|
8298
8298
|
onPointerDown: u,
|
|
8299
8299
|
onKeyDown: u,
|
|
8300
|
-
children: /* @__PURE__ */ e(
|
|
8300
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
8301
8301
|
}
|
|
8302
8302
|
),
|
|
8303
|
-
/* @__PURE__ */ e(ee, { children: [...d ? ["auto"] : [], ...
|
|
8303
|
+
/* @__PURE__ */ e(ee, { children: [...d ? ["auto"] : [], ...Qo(o, i)].map((y) => /* @__PURE__ */ e($, { value: y, className: "text-xs", children: y === "auto" ? "Auto (Default)" : If(y) }, y)) })
|
|
8304
8304
|
]
|
|
8305
8305
|
}
|
|
8306
8306
|
)
|
|
@@ -8363,13 +8363,13 @@ function Ya({
|
|
|
8363
8363
|
},
|
|
8364
8364
|
children: [
|
|
8365
8365
|
/* @__PURE__ */ e(
|
|
8366
|
-
|
|
8366
|
+
X,
|
|
8367
8367
|
{
|
|
8368
8368
|
className: "h-8 flex-1 text-xs",
|
|
8369
8369
|
onClick: u,
|
|
8370
8370
|
onPointerDown: u,
|
|
8371
8371
|
onKeyDown: u,
|
|
8372
|
-
children: /* @__PURE__ */ e(
|
|
8372
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
8373
8373
|
}
|
|
8374
8374
|
),
|
|
8375
8375
|
/* @__PURE__ */ n(ee, { children: [
|
|
@@ -8384,7 +8384,7 @@ function Ya({
|
|
|
8384
8384
|
]
|
|
8385
8385
|
}
|
|
8386
8386
|
),
|
|
8387
|
-
|
|
8387
|
+
Qs.map((y) => /* @__PURE__ */ e(
|
|
8388
8388
|
$,
|
|
8389
8389
|
{
|
|
8390
8390
|
value: y.value,
|
|
@@ -8504,13 +8504,13 @@ function Ya({
|
|
|
8504
8504
|
),
|
|
8505
8505
|
children: [
|
|
8506
8506
|
/* @__PURE__ */ e(
|
|
8507
|
-
|
|
8507
|
+
X,
|
|
8508
8508
|
{
|
|
8509
8509
|
className: "h-8 flex-1 text-xs",
|
|
8510
8510
|
onClick: u,
|
|
8511
8511
|
onPointerDown: u,
|
|
8512
8512
|
onKeyDown: u,
|
|
8513
|
-
children: /* @__PURE__ */ e(
|
|
8513
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
8514
8514
|
}
|
|
8515
8515
|
),
|
|
8516
8516
|
/* @__PURE__ */ e(ee, { children: qn.map((y) => /* @__PURE__ */ e(
|
|
@@ -8538,13 +8538,13 @@ function Ya({
|
|
|
8538
8538
|
),
|
|
8539
8539
|
children: [
|
|
8540
8540
|
/* @__PURE__ */ e(
|
|
8541
|
-
|
|
8541
|
+
X,
|
|
8542
8542
|
{
|
|
8543
8543
|
className: "h-8 flex-1 text-xs",
|
|
8544
8544
|
onClick: u,
|
|
8545
8545
|
onPointerDown: u,
|
|
8546
8546
|
onKeyDown: u,
|
|
8547
|
-
children: /* @__PURE__ */ e(
|
|
8547
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
8548
8548
|
}
|
|
8549
8549
|
),
|
|
8550
8550
|
/* @__PURE__ */ e(ee, { children: Ff.map((y) => /* @__PURE__ */ e(
|
|
@@ -8572,13 +8572,13 @@ function Ya({
|
|
|
8572
8572
|
),
|
|
8573
8573
|
children: [
|
|
8574
8574
|
/* @__PURE__ */ e(
|
|
8575
|
-
|
|
8575
|
+
X,
|
|
8576
8576
|
{
|
|
8577
8577
|
className: "h-8 flex-1 text-xs",
|
|
8578
8578
|
onClick: u,
|
|
8579
8579
|
onPointerDown: u,
|
|
8580
8580
|
onKeyDown: u,
|
|
8581
|
-
children: /* @__PURE__ */ e(
|
|
8581
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
8582
8582
|
}
|
|
8583
8583
|
),
|
|
8584
8584
|
/* @__PURE__ */ e(ee, { children: qn.map((y) => /* @__PURE__ */ e(
|
|
@@ -8606,13 +8606,13 @@ function Ya({
|
|
|
8606
8606
|
),
|
|
8607
8607
|
children: [
|
|
8608
8608
|
/* @__PURE__ */ e(
|
|
8609
|
-
|
|
8609
|
+
X,
|
|
8610
8610
|
{
|
|
8611
8611
|
className: "h-8 flex-1 text-xs",
|
|
8612
8612
|
onClick: u,
|
|
8613
8613
|
onPointerDown: u,
|
|
8614
8614
|
onKeyDown: u,
|
|
8615
|
-
children: /* @__PURE__ */ e(
|
|
8615
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
8616
8616
|
}
|
|
8617
8617
|
),
|
|
8618
8618
|
/* @__PURE__ */ e(ee, { children: qn.map((y) => /* @__PURE__ */ e(
|
|
@@ -8653,7 +8653,7 @@ function Rf(t) {
|
|
|
8653
8653
|
var a;
|
|
8654
8654
|
return vo((a = t == null ? void 0 : t.sqlKpiValue) == null ? void 0 : a.format) || Pf;
|
|
8655
8655
|
}
|
|
8656
|
-
function
|
|
8656
|
+
function Js(t, a) {
|
|
8657
8657
|
const r = a ? yo(a) : void 0, { format: s, ...l } = t.sqlKpiValue ?? {}, c = r ? { ...l, format: r } : l, { sqlKpiValue: d, ...o } = t;
|
|
8658
8658
|
return Object.keys(c).length ? { ...o, sqlKpiValue: c } : o;
|
|
8659
8659
|
}
|
|
@@ -8663,11 +8663,11 @@ function Of() {
|
|
|
8663
8663
|
(m) => m.actions.setCardPreferences
|
|
8664
8664
|
), r = Vl() ?? pa.locale, s = Bl() ?? pa.defaultCurrency, l = gd(t) === "config", c = Rf(t.preferences), d = !!((u = (f = t.preferences) == null ? void 0 : f.sqlKpiValue) != null && u.format), o = (m) => {
|
|
8665
8665
|
const p = F.getState().card.preferences ?? {};
|
|
8666
|
-
a(
|
|
8666
|
+
a(Js(p, m));
|
|
8667
8667
|
}, i = (m) => {
|
|
8668
8668
|
const p = F.getState().card.preferences ?? {};
|
|
8669
8669
|
a(
|
|
8670
|
-
|
|
8670
|
+
Js(p, m ? c : void 0)
|
|
8671
8671
|
);
|
|
8672
8672
|
};
|
|
8673
8673
|
return l ? /* @__PURE__ */ e(Ws, { card: t }) : /* @__PURE__ */ n("div", { children: [
|
|
@@ -8978,14 +8978,14 @@ const Lf = {
|
|
|
8978
8978
|
docsUrl: "https://docs.semaphor.cloud/docs/charts/detail-table"
|
|
8979
8979
|
}
|
|
8980
8980
|
};
|
|
8981
|
-
function
|
|
8981
|
+
function Jo(t) {
|
|
8982
8982
|
return Lf[t];
|
|
8983
8983
|
}
|
|
8984
8984
|
function Yf({
|
|
8985
8985
|
chartType: t,
|
|
8986
8986
|
showDocsLink: a = !0
|
|
8987
8987
|
}) {
|
|
8988
|
-
const r =
|
|
8988
|
+
const r = Jo(t);
|
|
8989
8989
|
return r ? /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
8990
8990
|
/* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
8991
8991
|
/* @__PURE__ */ e("h4", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Query Format" }),
|
|
@@ -9036,7 +9036,7 @@ function Yf({
|
|
|
9036
9036
|
function _f({
|
|
9037
9037
|
chartType: t
|
|
9038
9038
|
}) {
|
|
9039
|
-
return
|
|
9039
|
+
return Jo(t) ? /* @__PURE__ */ n(da, { openDelay: 200, children: [
|
|
9040
9040
|
/* @__PURE__ */ e(ua, { asChild: !0, children: /* @__PURE__ */ e(
|
|
9041
9041
|
"button",
|
|
9042
9042
|
{
|
|
@@ -9096,11 +9096,11 @@ function Vf() {
|
|
|
9096
9096
|
),
|
|
9097
9097
|
children: [
|
|
9098
9098
|
/* @__PURE__ */ e(
|
|
9099
|
-
|
|
9099
|
+
X,
|
|
9100
9100
|
{
|
|
9101
9101
|
id: "query-kpi-favorable-direction",
|
|
9102
9102
|
className: "h-8 w-full text-xs",
|
|
9103
|
-
children: /* @__PURE__ */ e(
|
|
9103
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
9104
9104
|
}
|
|
9105
9105
|
),
|
|
9106
9106
|
/* @__PURE__ */ n(ee, { children: [
|
|
@@ -9115,7 +9115,7 @@ function Vf() {
|
|
|
9115
9115
|
] })
|
|
9116
9116
|
] });
|
|
9117
9117
|
}
|
|
9118
|
-
function
|
|
9118
|
+
function Je({
|
|
9119
9119
|
label: t,
|
|
9120
9120
|
value: a,
|
|
9121
9121
|
options: r,
|
|
@@ -9127,12 +9127,12 @@ function Qe({
|
|
|
9127
9127
|
/* @__PURE__ */ e(O, { htmlFor: c, className: "text-xs", children: t }),
|
|
9128
9128
|
/* @__PURE__ */ n(W, { value: a, onValueChange: s, disabled: l, children: [
|
|
9129
9129
|
/* @__PURE__ */ e(
|
|
9130
|
-
|
|
9130
|
+
X,
|
|
9131
9131
|
{
|
|
9132
9132
|
id: c,
|
|
9133
9133
|
"aria-label": t,
|
|
9134
9134
|
className: "h-8 min-w-0 text-xs",
|
|
9135
|
-
children: /* @__PURE__ */ e(
|
|
9135
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
9136
9136
|
}
|
|
9137
9137
|
),
|
|
9138
9138
|
/* @__PURE__ */ e(ee, { children: r.map((d) => /* @__PURE__ */ e(
|
|
@@ -9208,7 +9208,7 @@ function Bf({
|
|
|
9208
9208
|
}
|
|
9209
9209
|
);
|
|
9210
9210
|
}
|
|
9211
|
-
function
|
|
9211
|
+
function Xs({
|
|
9212
9212
|
label: t,
|
|
9213
9213
|
value: a,
|
|
9214
9214
|
onChange: r,
|
|
@@ -9224,7 +9224,7 @@ function Zs({
|
|
|
9224
9224
|
}
|
|
9225
9225
|
),
|
|
9226
9226
|
/* @__PURE__ */ e(
|
|
9227
|
-
|
|
9227
|
+
Je,
|
|
9228
9228
|
{
|
|
9229
9229
|
label: `${t} position`,
|
|
9230
9230
|
value: a.position,
|
|
@@ -9250,7 +9250,7 @@ function Zs({
|
|
|
9250
9250
|
)
|
|
9251
9251
|
] });
|
|
9252
9252
|
}
|
|
9253
|
-
function
|
|
9253
|
+
function Xo({
|
|
9254
9254
|
value: t,
|
|
9255
9255
|
onChange: a,
|
|
9256
9256
|
cardType: r,
|
|
@@ -9260,7 +9260,7 @@ function Zo({
|
|
|
9260
9260
|
drawnTypes: d
|
|
9261
9261
|
}) {
|
|
9262
9262
|
const o = pm(r), i = Vl(), f = Bl(), u = !!(c && !c.custom && c.modelFormat), m = u ? c == null ? void 0 : c.modelFormat : t, p = vo(m) || {};
|
|
9263
|
-
if (!
|
|
9263
|
+
if (!Qo(d, p.type).length) return null;
|
|
9264
9264
|
const C = /* @__PURE__ */ e(
|
|
9265
9265
|
Ya,
|
|
9266
9266
|
{
|
|
@@ -9283,14 +9283,14 @@ function Zo({
|
|
|
9283
9283
|
C
|
|
9284
9284
|
] });
|
|
9285
9285
|
}
|
|
9286
|
-
function
|
|
9286
|
+
function Zs({
|
|
9287
9287
|
field: t,
|
|
9288
9288
|
...a
|
|
9289
9289
|
}) {
|
|
9290
9290
|
var c, d;
|
|
9291
9291
|
const r = F((o) => o.card), s = (d = (c = lt(r).data) == null ? void 0 : c.modelFormats) == null ? void 0 : d[t.id], l = t.formatOrigin === "override";
|
|
9292
9292
|
return /* @__PURE__ */ e(
|
|
9293
|
-
|
|
9293
|
+
Xo,
|
|
9294
9294
|
{
|
|
9295
9295
|
...a,
|
|
9296
9296
|
value: t.format,
|
|
@@ -9298,14 +9298,14 @@ function Xs({
|
|
|
9298
9298
|
}
|
|
9299
9299
|
);
|
|
9300
9300
|
}
|
|
9301
|
-
function
|
|
9301
|
+
function Zo(t, a, r) {
|
|
9302
9302
|
const s = (r == null ? void 0 : r.length) && r.every((l, c) => {
|
|
9303
9303
|
var d;
|
|
9304
9304
|
return ((d = t[c]) == null ? void 0 : d.id) === l.levelId && l.member.kind === "value";
|
|
9305
9305
|
});
|
|
9306
9306
|
return new Map([
|
|
9307
|
-
...a != null && a.length ? [[
|
|
9308
|
-
...s ? [[
|
|
9307
|
+
...a != null && a.length ? [[Qa(a), a]] : [],
|
|
9308
|
+
...s ? [[Qa(r), r]] : []
|
|
9309
9309
|
]);
|
|
9310
9310
|
}
|
|
9311
9311
|
const Kf = [
|
|
@@ -9371,7 +9371,7 @@ function $f({
|
|
|
9371
9371
|
(x) => x.axis === t && x.levelId === a.id
|
|
9372
9372
|
), o = (S = r.spec.measureFilters) == null ? void 0 : S.find(
|
|
9373
9373
|
(x) => x.axis === t && x.levelId === a.id
|
|
9374
|
-
), i = t === "rows" ? "columns" : "rows", f =
|
|
9374
|
+
), i = t === "rows" ? "columns" : "rows", f = Zo(
|
|
9375
9375
|
r.spec[i],
|
|
9376
9376
|
d == null ? void 0 : d.oppositePath,
|
|
9377
9377
|
i === "rows" ? l == null ? void 0 : l.rowPath : l == null ? void 0 : l.columnPath
|
|
@@ -9445,7 +9445,7 @@ function $f({
|
|
|
9445
9445
|
}, C = o && Array.isArray(o.value) ? o.value : void 0;
|
|
9446
9446
|
return /* @__PURE__ */ n("div", { className: "space-y-2 border-t pt-2", children: [
|
|
9447
9447
|
/* @__PURE__ */ e(
|
|
9448
|
-
|
|
9448
|
+
Je,
|
|
9449
9449
|
{
|
|
9450
9450
|
label: "Sort by",
|
|
9451
9451
|
value: c ? c.target.kind === "member" ? "member" : c.target.measureId : "default",
|
|
@@ -9467,7 +9467,7 @@ function $f({
|
|
|
9467
9467
|
),
|
|
9468
9468
|
c && /* @__PURE__ */ n(he, { children: [
|
|
9469
9469
|
/* @__PURE__ */ e(
|
|
9470
|
-
|
|
9470
|
+
Je,
|
|
9471
9471
|
{
|
|
9472
9472
|
label: "Sort direction",
|
|
9473
9473
|
value: c.direction,
|
|
@@ -9479,7 +9479,7 @@ function $f({
|
|
|
9479
9479
|
}
|
|
9480
9480
|
),
|
|
9481
9481
|
/* @__PURE__ */ e(
|
|
9482
|
-
|
|
9482
|
+
Je,
|
|
9483
9483
|
{
|
|
9484
9484
|
label: "Null order",
|
|
9485
9485
|
value: c.nulls,
|
|
@@ -9492,7 +9492,7 @@ function $f({
|
|
|
9492
9492
|
)
|
|
9493
9493
|
] }),
|
|
9494
9494
|
/* @__PURE__ */ e(
|
|
9495
|
-
|
|
9495
|
+
Je,
|
|
9496
9496
|
{
|
|
9497
9497
|
label: "Ranking",
|
|
9498
9498
|
disabled: !r.spec.measures.length,
|
|
@@ -9521,7 +9521,7 @@ function $f({
|
|
|
9521
9521
|
}
|
|
9522
9522
|
),
|
|
9523
9523
|
/* @__PURE__ */ e(
|
|
9524
|
-
|
|
9524
|
+
Je,
|
|
9525
9525
|
{
|
|
9526
9526
|
label: "Rank by measure",
|
|
9527
9527
|
value: d.measureId,
|
|
@@ -9538,10 +9538,10 @@ function $f({
|
|
|
9538
9538
|
}
|
|
9539
9539
|
),
|
|
9540
9540
|
/* @__PURE__ */ e(
|
|
9541
|
-
|
|
9541
|
+
Je,
|
|
9542
9542
|
{
|
|
9543
9543
|
label: "Ranking context",
|
|
9544
|
-
value: d.oppositePath.length ?
|
|
9544
|
+
value: d.oppositePath.length ? Qa(d.oppositePath) : "total",
|
|
9545
9545
|
options: [
|
|
9546
9546
|
{ value: "total", label: "Grand total" },
|
|
9547
9547
|
...[...f].map(([x, v]) => ({
|
|
@@ -9554,7 +9554,7 @@ function $f({
|
|
|
9554
9554
|
)
|
|
9555
9555
|
] }),
|
|
9556
9556
|
/* @__PURE__ */ e(
|
|
9557
|
-
|
|
9557
|
+
Je,
|
|
9558
9558
|
{
|
|
9559
9559
|
label: "Measure filter",
|
|
9560
9560
|
disabled: !r.spec.measures.length,
|
|
@@ -9565,7 +9565,7 @@ function $f({
|
|
|
9565
9565
|
),
|
|
9566
9566
|
o && /* @__PURE__ */ n(he, { children: [
|
|
9567
9567
|
/* @__PURE__ */ e(
|
|
9568
|
-
|
|
9568
|
+
Je,
|
|
9569
9569
|
{
|
|
9570
9570
|
label: "Condition",
|
|
9571
9571
|
value: o.operator,
|
|
@@ -9636,7 +9636,7 @@ function Hf({
|
|
|
9636
9636
|
),
|
|
9637
9637
|
d.map((m, p) => {
|
|
9638
9638
|
var T;
|
|
9639
|
-
const h = m.target.matrix, C = (h == null ? void 0 : h.axis) === "columns" ? "rows" : "columns", S = C === "rows" ? r == null ? void 0 : r.rowPath : r == null ? void 0 : r.columnPath, x =
|
|
9639
|
+
const h = m.target.matrix, C = (h == null ? void 0 : h.axis) === "columns" ? "rows" : "columns", S = C === "rows" ? r == null ? void 0 : r.rowPath : r == null ? void 0 : r.columnPath, x = Zo(a.spec[C], h == null ? void 0 : h.oppositePath, S), v = (N) => o(
|
|
9640
9640
|
(g) => g.map(
|
|
9641
9641
|
(E) => E.id === m.id ? { ...E, target: { ...E.target, matrix: N } } : E
|
|
9642
9642
|
)
|
|
@@ -9647,7 +9647,7 @@ function Hf({
|
|
|
9647
9647
|
" scope"
|
|
9648
9648
|
] }),
|
|
9649
9649
|
/* @__PURE__ */ e(
|
|
9650
|
-
|
|
9650
|
+
Je,
|
|
9651
9651
|
{
|
|
9652
9652
|
label: "Cell role",
|
|
9653
9653
|
value: ((T = m.target.rowRoles) == null ? void 0 : T.length) === 1 ? m.target.rowRoles[0] : "all",
|
|
@@ -9669,7 +9669,7 @@ function Hf({
|
|
|
9669
9669
|
}
|
|
9670
9670
|
),
|
|
9671
9671
|
/* @__PURE__ */ e(
|
|
9672
|
-
|
|
9672
|
+
Je,
|
|
9673
9673
|
{
|
|
9674
9674
|
label: "Rule axis",
|
|
9675
9675
|
value: (h == null ? void 0 : h.axis) ?? "all",
|
|
@@ -9685,7 +9685,7 @@ function Hf({
|
|
|
9685
9685
|
),
|
|
9686
9686
|
h && /* @__PURE__ */ n(he, { children: [
|
|
9687
9687
|
/* @__PURE__ */ e(
|
|
9688
|
-
|
|
9688
|
+
Je,
|
|
9689
9689
|
{
|
|
9690
9690
|
label: "Rule level",
|
|
9691
9691
|
value: h.levelId ?? "all",
|
|
@@ -9703,10 +9703,10 @@ function Hf({
|
|
|
9703
9703
|
}
|
|
9704
9704
|
),
|
|
9705
9705
|
/* @__PURE__ */ e(
|
|
9706
|
-
|
|
9706
|
+
Je,
|
|
9707
9707
|
{
|
|
9708
9708
|
label: "Opposite members",
|
|
9709
|
-
value: h.oppositePath === void 0 ? "all" : h.oppositePath.length ?
|
|
9709
|
+
value: h.oppositePath === void 0 ? "all" : h.oppositePath.length ? Qa(h.oppositePath) : "total",
|
|
9710
9710
|
options: [
|
|
9711
9711
|
{ value: "all", label: "All members" },
|
|
9712
9712
|
{ value: "total", label: "Grand total" },
|
|
@@ -9754,7 +9754,7 @@ function Uf({
|
|
|
9754
9754
|
const I = { ...r.presentation[N] };
|
|
9755
9755
|
if (E === void 0) delete I[g];
|
|
9756
9756
|
else {
|
|
9757
|
-
const R =
|
|
9757
|
+
const R = Qi.safeParse(E);
|
|
9758
9758
|
if (!R.success) {
|
|
9759
9759
|
h(R.error.message);
|
|
9760
9760
|
return;
|
|
@@ -9768,7 +9768,7 @@ function Uf({
|
|
|
9768
9768
|
g === "levelFormats" ? { kind: "matrixLevel", levelId: N } : { kind: "matrixMeasure", measureId: N }
|
|
9769
9769
|
);
|
|
9770
9770
|
return /* @__PURE__ */ e(
|
|
9771
|
-
|
|
9771
|
+
Xo,
|
|
9772
9772
|
{
|
|
9773
9773
|
cardType: "matrixTable",
|
|
9774
9774
|
value: E,
|
|
@@ -9828,7 +9828,7 @@ function Uf({
|
|
|
9828
9828
|
}
|
|
9829
9829
|
),
|
|
9830
9830
|
/* @__PURE__ */ e(
|
|
9831
|
-
|
|
9831
|
+
Je,
|
|
9832
9832
|
{
|
|
9833
9833
|
label: "Axis",
|
|
9834
9834
|
value: N,
|
|
@@ -9842,7 +9842,7 @@ function Uf({
|
|
|
9842
9842
|
}
|
|
9843
9843
|
),
|
|
9844
9844
|
_ && /* @__PURE__ */ e(
|
|
9845
|
-
|
|
9845
|
+
Je,
|
|
9846
9846
|
{
|
|
9847
9847
|
label: "Time grain",
|
|
9848
9848
|
value: g.grain ?? "none",
|
|
@@ -9860,7 +9860,7 @@ function Uf({
|
|
|
9860
9860
|
),
|
|
9861
9861
|
g.grain ? /* @__PURE__ */ n(he, { children: [
|
|
9862
9862
|
/* @__PURE__ */ e(
|
|
9863
|
-
|
|
9863
|
+
Je,
|
|
9864
9864
|
{
|
|
9865
9865
|
label: "Date format",
|
|
9866
9866
|
value: P.value,
|
|
@@ -9894,7 +9894,7 @@ function Uf({
|
|
|
9894
9894
|
)
|
|
9895
9895
|
] }) : T(g.id, "levelFormats"),
|
|
9896
9896
|
/* @__PURE__ */ e(
|
|
9897
|
-
|
|
9897
|
+
Xs,
|
|
9898
9898
|
{
|
|
9899
9899
|
label: "Subtotal",
|
|
9900
9900
|
value: r.presentation.totals[N].levels[g.id],
|
|
@@ -9952,7 +9952,7 @@ function Uf({
|
|
|
9952
9952
|
}
|
|
9953
9953
|
),
|
|
9954
9954
|
/* @__PURE__ */ e(
|
|
9955
|
-
|
|
9955
|
+
Xs,
|
|
9956
9956
|
{
|
|
9957
9957
|
label: "Grand total",
|
|
9958
9958
|
role: "grand_total",
|
|
@@ -9966,7 +9966,7 @@ function Uf({
|
|
|
9966
9966
|
}
|
|
9967
9967
|
),
|
|
9968
9968
|
/* @__PURE__ */ e(
|
|
9969
|
-
|
|
9969
|
+
Je,
|
|
9970
9970
|
{
|
|
9971
9971
|
label: "Default expanded levels",
|
|
9972
9972
|
value: String(
|
|
@@ -10022,7 +10022,7 @@ function Uf({
|
|
|
10022
10022
|
}
|
|
10023
10023
|
),
|
|
10024
10024
|
N.kind === "aggregate" && /* @__PURE__ */ e(
|
|
10025
|
-
|
|
10025
|
+
Je,
|
|
10026
10026
|
{
|
|
10027
10027
|
label: "Aggregation",
|
|
10028
10028
|
value: N.aggregate,
|
|
@@ -10046,7 +10046,7 @@ function Uf({
|
|
|
10046
10046
|
a.kind === "table" && /* @__PURE__ */ n("section", { "aria-label": "Presentation", className: "space-y-2 border-b p-3", children: [
|
|
10047
10047
|
/* @__PURE__ */ e("h2", { className: "text-xs font-semibold", children: "Presentation" }),
|
|
10048
10048
|
/* @__PURE__ */ e(
|
|
10049
|
-
|
|
10049
|
+
Je,
|
|
10050
10050
|
{
|
|
10051
10051
|
label: "Row layout",
|
|
10052
10052
|
value: r.presentation.layout.kind,
|
|
@@ -10144,7 +10144,7 @@ const Gf = {
|
|
|
10144
10144
|
red: "#dc2626",
|
|
10145
10145
|
neutral: "#6b7280"
|
|
10146
10146
|
};
|
|
10147
|
-
function
|
|
10147
|
+
function Qf(t) {
|
|
10148
10148
|
return t && (Gf[t] ?? t);
|
|
10149
10149
|
}
|
|
10150
10150
|
function ei({
|
|
@@ -10164,7 +10164,7 @@ function ei({
|
|
|
10164
10164
|
displayMode: l
|
|
10165
10165
|
}),
|
|
10166
10166
|
children: [
|
|
10167
|
-
/* @__PURE__ */ e(
|
|
10167
|
+
/* @__PURE__ */ e(X, { className: "h-7 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10168
10168
|
/* @__PURE__ */ n(ee, { children: [
|
|
10169
10169
|
/* @__PURE__ */ e($, { value: "difference", children: "Difference" }),
|
|
10170
10170
|
/* @__PURE__ */ e($, { value: "percent_change", children: "Percent change" }),
|
|
@@ -10212,7 +10212,7 @@ function ei({
|
|
|
10212
10212
|
indicatorStyle: l
|
|
10213
10213
|
}),
|
|
10214
10214
|
children: [
|
|
10215
|
-
/* @__PURE__ */ e(
|
|
10215
|
+
/* @__PURE__ */ e(X, { className: "h-7 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10216
10216
|
/* @__PURE__ */ n(ee, { children: [
|
|
10217
10217
|
/* @__PURE__ */ e($, { value: "arrow_badge", children: "Arrow + badge" }),
|
|
10218
10218
|
/* @__PURE__ */ e($, { value: "arrow", children: "Arrow" }),
|
|
@@ -10233,7 +10233,7 @@ function ei({
|
|
|
10233
10233
|
position: l
|
|
10234
10234
|
}),
|
|
10235
10235
|
children: [
|
|
10236
|
-
/* @__PURE__ */ e(
|
|
10236
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10237
10237
|
/* @__PURE__ */ n(ee, { children: [
|
|
10238
10238
|
/* @__PURE__ */ e($, { value: "right", children: "Right" }),
|
|
10239
10239
|
/* @__PURE__ */ e($, { value: "left", children: "Left" }),
|
|
@@ -10264,7 +10264,7 @@ function ei({
|
|
|
10264
10264
|
/* @__PURE__ */ e(
|
|
10265
10265
|
Wn,
|
|
10266
10266
|
{
|
|
10267
|
-
value:
|
|
10267
|
+
value: Qf(s[l] || d),
|
|
10268
10268
|
onChange: (o) => a({
|
|
10269
10269
|
colors: { ...s, [l]: o || d }
|
|
10270
10270
|
}),
|
|
@@ -10319,7 +10319,7 @@ function ei({
|
|
|
10319
10319
|
)
|
|
10320
10320
|
] });
|
|
10321
10321
|
}
|
|
10322
|
-
function
|
|
10322
|
+
function Jf() {
|
|
10323
10323
|
var m, p, h, C, S;
|
|
10324
10324
|
const t = F((x) => x.card), { setCardPreferences: a } = ve(), 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(
|
|
10325
10325
|
(x) => {
|
|
@@ -10496,13 +10496,13 @@ function ti({
|
|
|
10496
10496
|
stripedRows: Na.stripedRows,
|
|
10497
10497
|
wrapText: Na.wrapText,
|
|
10498
10498
|
totals: {
|
|
10499
|
-
enabled: _ ? w :
|
|
10500
|
-
backgroundColor:
|
|
10501
|
-
textColor:
|
|
10502
|
-
fontWeight:
|
|
10503
|
-
borderTop:
|
|
10504
|
-
borderTopStyle:
|
|
10505
|
-
borderTopColor:
|
|
10499
|
+
enabled: _ ? w : Qt.enabled,
|
|
10500
|
+
backgroundColor: Qt.backgroundColor,
|
|
10501
|
+
textColor: Qt.textColor,
|
|
10502
|
+
fontWeight: Qt.fontWeight,
|
|
10503
|
+
borderTop: Qt.borderTop,
|
|
10504
|
+
borderTopStyle: Qt.borderTopStyle,
|
|
10505
|
+
borderTopColor: Qt.borderTopColor,
|
|
10506
10506
|
// Reset restores the look; each measure's total is a setting, not style (OT-D2).
|
|
10507
10507
|
...Em((z = i == null ? void 0 : i.tableStyle) == null ? void 0 : z.totals)
|
|
10508
10508
|
}
|
|
@@ -10634,7 +10634,7 @@ function Wf({
|
|
|
10634
10634
|
)
|
|
10635
10635
|
] });
|
|
10636
10636
|
}
|
|
10637
|
-
function
|
|
10637
|
+
function Xf() {
|
|
10638
10638
|
var l;
|
|
10639
10639
|
const t = F((c) => c.card.preferences), { setCardPreferences: a } = F((c) => c.actions), r = (l = t == null ? void 0 : t.textVisualOptions) != null && l.isDynamicText ? "dynamic" : "static";
|
|
10640
10640
|
function s(c) {
|
|
@@ -10651,10 +10651,10 @@ function Zf() {
|
|
|
10651
10651
|
/* @__PURE__ */ e(at, { value: "dynamic", children: "Dynamic" })
|
|
10652
10652
|
] }) });
|
|
10653
10653
|
}
|
|
10654
|
-
function
|
|
10654
|
+
function Zf() {
|
|
10655
10655
|
return /* @__PURE__ */ n("div", { className: "space-y-2 px-6 py-4", children: [
|
|
10656
10656
|
/* @__PURE__ */ e("div", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Text mode" }),
|
|
10657
|
-
/* @__PURE__ */ e(
|
|
10657
|
+
/* @__PURE__ */ e(Xf, {}),
|
|
10658
10658
|
/* @__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." })
|
|
10659
10659
|
] });
|
|
10660
10660
|
}
|
|
@@ -11032,7 +11032,7 @@ function rg() {
|
|
|
11032
11032
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: C.slice(0, 10).map((M, A) => /* @__PURE__ */ n(
|
|
11033
11033
|
"button",
|
|
11034
11034
|
{
|
|
11035
|
-
className:
|
|
11035
|
+
className: J(
|
|
11036
11036
|
"relative h-5 w-5 rounded border-2 transition-all hover:scale-110",
|
|
11037
11037
|
o[b] === M ? "border-gray-900" : "border-transparent"
|
|
11038
11038
|
),
|
|
@@ -11053,7 +11053,7 @@ function rg() {
|
|
|
11053
11053
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: ng.map((M, A) => /* @__PURE__ */ e(
|
|
11054
11054
|
"button",
|
|
11055
11055
|
{
|
|
11056
|
-
className:
|
|
11056
|
+
className: J(
|
|
11057
11057
|
"h-5 w-5 rounded border transition-all hover:scale-110",
|
|
11058
11058
|
o[b] === M ? "border-2 border-gray-900" : M === "#ffffff" ? "border border-gray-300" : "border border-transparent"
|
|
11059
11059
|
),
|
|
@@ -11279,7 +11279,7 @@ function jn({ axis: t, label: a, type: r, config: s, onChange: l, defaultTitle:
|
|
|
11279
11279
|
value: ((g = s == null ? void 0 : s.name) == null ? void 0 : g.fontWeight) || "normal",
|
|
11280
11280
|
onValueChange: (L) => m("fontWeight", L),
|
|
11281
11281
|
children: [
|
|
11282
|
-
/* @__PURE__ */ e(
|
|
11282
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-20 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11283
11283
|
/* @__PURE__ */ n(ee, { children: [
|
|
11284
11284
|
/* @__PURE__ */ e($, { value: "normal", className: "text-xs", children: "Normal" }),
|
|
11285
11285
|
/* @__PURE__ */ e($, { value: "bold", className: "text-xs", children: "Bold" })
|
|
@@ -11299,7 +11299,7 @@ function jn({ axis: t, label: a, type: r, config: s, onChange: l, defaultTitle:
|
|
|
11299
11299
|
value: (s == null ? void 0 : s.position) || "auto",
|
|
11300
11300
|
onValueChange: (L) => u("position", L),
|
|
11301
11301
|
children: [
|
|
11302
|
-
/* @__PURE__ */ e(
|
|
11302
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11303
11303
|
/* @__PURE__ */ e(ee, { children: C.map((L) => /* @__PURE__ */ e($, { value: L, className: "text-xs", children: L === "auto" ? "Auto (Default)" : Ct(L) }, L)) })
|
|
11304
11304
|
]
|
|
11305
11305
|
}
|
|
@@ -11328,7 +11328,7 @@ function jn({ axis: t, label: a, type: r, config: s, onChange: l, defaultTitle:
|
|
|
11328
11328
|
L === "auto" ? "auto" : Number(L)
|
|
11329
11329
|
),
|
|
11330
11330
|
children: [
|
|
11331
|
-
/* @__PURE__ */ e(
|
|
11331
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11332
11332
|
/* @__PURE__ */ e(ee, { children: S.map((L) => /* @__PURE__ */ e($, { value: L, className: "text-xs", children: L === "auto" ? "Auto (Default)" : `${L}°` }, L)) })
|
|
11333
11333
|
]
|
|
11334
11334
|
}
|
|
@@ -11463,7 +11463,7 @@ function sg() {
|
|
|
11463
11463
|
}, o = c.hasY2Axis && l === "combo";
|
|
11464
11464
|
return /* @__PURE__ */ n(Re, { value: "axes", className: "border-b-0", children: [
|
|
11465
11465
|
/* @__PURE__ */ e(Oe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
11466
|
-
/* @__PURE__ */ e(
|
|
11466
|
+
/* @__PURE__ */ e(Xa, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11467
11467
|
/* @__PURE__ */ e("span", { children: "Axes" })
|
|
11468
11468
|
] }) }),
|
|
11469
11469
|
/* @__PURE__ */ e(Le, { className: "pt-2", children: /* @__PURE__ */ n(un, { type: "single", collapsible: !0, className: "w-full", children: [
|
|
@@ -11555,7 +11555,7 @@ function lg() {
|
|
|
11555
11555
|
value: (r == null ? void 0 : r.position) || d,
|
|
11556
11556
|
onValueChange: (m) => i("position", m),
|
|
11557
11557
|
children: [
|
|
11558
|
-
/* @__PURE__ */ e(
|
|
11558
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11559
11559
|
/* @__PURE__ */ e(ee, { children: f.map((m) => /* @__PURE__ */ e($, { value: m, className: "text-xs", children: Ct(m) }, m)) })
|
|
11560
11560
|
]
|
|
11561
11561
|
}
|
|
@@ -11569,7 +11569,7 @@ function lg() {
|
|
|
11569
11569
|
value: (r == null ? void 0 : r.align) || o,
|
|
11570
11570
|
onValueChange: (m) => i("align", m),
|
|
11571
11571
|
children: [
|
|
11572
|
-
/* @__PURE__ */ e(
|
|
11572
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11573
11573
|
/* @__PURE__ */ e(ee, { children: u.map((m) => /* @__PURE__ */ e($, { value: m, className: "text-xs", children: Ct(m) }, m)) })
|
|
11574
11574
|
]
|
|
11575
11575
|
}
|
|
@@ -11651,7 +11651,7 @@ function og() {
|
|
|
11651
11651
|
};
|
|
11652
11652
|
return /* @__PURE__ */ n(Re, { value: "data-labels", className: "border-b-0", children: [
|
|
11653
11653
|
/* @__PURE__ */ e(Oe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
11654
|
-
/* @__PURE__ */ e(
|
|
11654
|
+
/* @__PURE__ */ e(Zh, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11655
11655
|
/* @__PURE__ */ e("span", { children: "Data Labels" })
|
|
11656
11656
|
] }) }),
|
|
11657
11657
|
/* @__PURE__ */ e(Le, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
@@ -11675,7 +11675,7 @@ function og() {
|
|
|
11675
11675
|
value: p ? (C == null ? void 0 : C.position) || "bottom" : (C == null ? void 0 : C.position) || "auto",
|
|
11676
11676
|
onValueChange: (D) => v("position", D),
|
|
11677
11677
|
children: [
|
|
11678
|
-
/* @__PURE__ */ e(
|
|
11678
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11679
11679
|
/* @__PURE__ */ e(ee, { children: R.map((D) => /* @__PURE__ */ e($, { value: D, className: "text-xs", children: D === "auto" ? _() : D === "custom" ? "Custom (Advanced)" : Ct(D) }, D)) })
|
|
11680
11680
|
]
|
|
11681
11681
|
}
|
|
@@ -11701,7 +11701,7 @@ function og() {
|
|
|
11701
11701
|
value: (C == null ? void 0 : C.anchor) || "center",
|
|
11702
11702
|
onValueChange: (D) => v("anchor", D),
|
|
11703
11703
|
children: [
|
|
11704
|
-
/* @__PURE__ */ e(
|
|
11704
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11705
11705
|
/* @__PURE__ */ e(ee, { children: w.map((D) => /* @__PURE__ */ e($, { value: D, className: "text-xs", children: Ct(D) }, D)) })
|
|
11706
11706
|
]
|
|
11707
11707
|
}
|
|
@@ -11715,7 +11715,7 @@ function og() {
|
|
|
11715
11715
|
value: String((C == null ? void 0 : C.align) || "center"),
|
|
11716
11716
|
onValueChange: (D) => v("align", D),
|
|
11717
11717
|
children: [
|
|
11718
|
-
/* @__PURE__ */ e(
|
|
11718
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11719
11719
|
/* @__PURE__ */ e(ee, { children: y.map((D) => /* @__PURE__ */ e($, { value: D, className: "text-xs", children: Ct(D) }, D)) })
|
|
11720
11720
|
]
|
|
11721
11721
|
}
|
|
@@ -11771,7 +11771,7 @@ function og() {
|
|
|
11771
11771
|
value: ((k = C == null ? void 0 : C.font) == null ? void 0 : k.weight) || "normal",
|
|
11772
11772
|
onValueChange: (D) => T("weight", D),
|
|
11773
11773
|
children: [
|
|
11774
|
-
/* @__PURE__ */ e(
|
|
11774
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11775
11775
|
/* @__PURE__ */ n(ee, { children: [
|
|
11776
11776
|
/* @__PURE__ */ e($, { value: "normal", className: "text-xs", children: "Normal" }),
|
|
11777
11777
|
/* @__PURE__ */ e($, { value: "bold", className: "text-xs", children: "Bold" })
|
|
@@ -11790,7 +11790,7 @@ function og() {
|
|
|
11790
11790
|
D === "auto" && v("color", "auto");
|
|
11791
11791
|
},
|
|
11792
11792
|
children: [
|
|
11793
|
-
/* @__PURE__ */ e(
|
|
11793
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
|
|
11794
11794
|
/* @__PURE__ */ n(ee, { children: [
|
|
11795
11795
|
/* @__PURE__ */ e($, { value: "auto", className: "text-xs", children: "Auto (Smart Contrast)" }),
|
|
11796
11796
|
/* @__PURE__ */ e($, { value: "custom", disabled: !0, className: "text-xs", children: "Custom (Coming Soon)" })
|
|
@@ -12002,7 +12002,7 @@ function dg() {
|
|
|
12002
12002
|
p ?? "bottom"
|
|
12003
12003
|
),
|
|
12004
12004
|
children: [
|
|
12005
|
-
/* @__PURE__ */ e(
|
|
12005
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
12006
12006
|
/* @__PURE__ */ e(ee, { children: ["top", "bottom", "left", "right"].map((p) => /* @__PURE__ */ e($, { value: p, className: "text-xs", children: p[0].toUpperCase() + p.slice(1) }, p)) })
|
|
12007
12007
|
]
|
|
12008
12008
|
}
|
|
@@ -12171,7 +12171,7 @@ function ug() {
|
|
|
12171
12171
|
value: _,
|
|
12172
12172
|
onValueChange: (b) => w(b),
|
|
12173
12173
|
children: [
|
|
12174
|
-
/* @__PURE__ */ e(
|
|
12174
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
12175
12175
|
/* @__PURE__ */ n(ee, { children: [
|
|
12176
12176
|
/* @__PURE__ */ e($, { value: "horizontal", className: "text-xs", children: "Horizontal" }),
|
|
12177
12177
|
/* @__PURE__ */ e($, { value: "vertical", className: "text-xs", children: "Vertical" })
|
|
@@ -12190,7 +12190,7 @@ function ug() {
|
|
|
12190
12190
|
targetMetricKey: b === "__none" ? void 0 : b
|
|
12191
12191
|
}),
|
|
12192
12192
|
children: [
|
|
12193
|
-
/* @__PURE__ */ e(
|
|
12193
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select metric" }) }),
|
|
12194
12194
|
/* @__PURE__ */ n(ee, { children: [
|
|
12195
12195
|
/* @__PURE__ */ e($, { value: "__none", className: "text-xs", children: "None" }),
|
|
12196
12196
|
x.map((b) => /* @__PURE__ */ e(
|
|
@@ -12218,7 +12218,7 @@ function ug() {
|
|
|
12218
12218
|
disableAutoComparative: b === "__none"
|
|
12219
12219
|
}),
|
|
12220
12220
|
children: [
|
|
12221
|
-
/* @__PURE__ */ e(
|
|
12221
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select metric" }) }),
|
|
12222
12222
|
/* @__PURE__ */ e(ee, { children: y.map((b) => /* @__PURE__ */ e(
|
|
12223
12223
|
$,
|
|
12224
12224
|
{
|
|
@@ -12270,7 +12270,7 @@ function ug() {
|
|
|
12270
12270
|
{
|
|
12271
12271
|
type: "button",
|
|
12272
12272
|
className: "text-muted-foreground transition-colors hover:text-foreground",
|
|
12273
|
-
children: /* @__PURE__ */ e(
|
|
12273
|
+
children: /* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5" })
|
|
12274
12274
|
}
|
|
12275
12275
|
) }),
|
|
12276
12276
|
/* @__PURE__ */ e(ut, { side: "top", children: "Use columns or static values for Poor / Average / Good." })
|
|
@@ -12334,7 +12334,7 @@ function ug() {
|
|
|
12334
12334
|
B === "__none" ? T(b, "") : T(b, B);
|
|
12335
12335
|
},
|
|
12336
12336
|
children: [
|
|
12337
|
-
/* @__PURE__ */ e(
|
|
12337
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select column" }) }),
|
|
12338
12338
|
/* @__PURE__ */ e(ee, { children: P.map((B) => /* @__PURE__ */ e(
|
|
12339
12339
|
$,
|
|
12340
12340
|
{
|
|
@@ -12474,7 +12474,7 @@ function mg() {
|
|
|
12474
12474
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 text-xs font-medium text-muted-foreground", children: [
|
|
12475
12475
|
"Dimensions",
|
|
12476
12476
|
/* @__PURE__ */ e(bt, { children: /* @__PURE__ */ n(mt, { children: [
|
|
12477
|
-
/* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
12477
|
+
/* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(Zt, { className: "h-3 w-3" }) }),
|
|
12478
12478
|
/* @__PURE__ */ e(ut, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { children: "Label identifies each point. Group creates separate series in the legend." }) })
|
|
12479
12479
|
] }) })
|
|
12480
12480
|
] }),
|
|
@@ -12486,7 +12486,7 @@ function mg() {
|
|
|
12486
12486
|
value: i.labelKey || "",
|
|
12487
12487
|
onValueChange: (k) => T({ labelKey: k }),
|
|
12488
12488
|
children: [
|
|
12489
|
-
/* @__PURE__ */ e(
|
|
12489
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select label column" }) }),
|
|
12490
12490
|
/* @__PURE__ */ e(ee, { children: p.map((k) => /* @__PURE__ */ e($, { value: k.value, children: k.label }, k.value)) })
|
|
12491
12491
|
]
|
|
12492
12492
|
}
|
|
@@ -12519,7 +12519,7 @@ function mg() {
|
|
|
12519
12519
|
value: i.groupKey || "",
|
|
12520
12520
|
onValueChange: (k) => T({ groupKey: k }),
|
|
12521
12521
|
children: [
|
|
12522
|
-
/* @__PURE__ */ e(
|
|
12522
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select group column" }) }),
|
|
12523
12523
|
/* @__PURE__ */ e(ee, { children: p.map((k) => /* @__PURE__ */ e($, { value: k.value, children: k.label }, k.value)) })
|
|
12524
12524
|
]
|
|
12525
12525
|
}
|
|
@@ -12544,7 +12544,7 @@ function mg() {
|
|
|
12544
12544
|
value: i.xMetricKey || "",
|
|
12545
12545
|
onValueChange: (k) => T({ xMetricKey: k }),
|
|
12546
12546
|
children: [
|
|
12547
|
-
/* @__PURE__ */ e(
|
|
12547
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select X metric" }) }),
|
|
12548
12548
|
/* @__PURE__ */ e(ee, { children: m.map((k) => /* @__PURE__ */ e($, { value: k.value, children: k.label }, k.value)) })
|
|
12549
12549
|
]
|
|
12550
12550
|
}
|
|
@@ -12566,7 +12566,7 @@ function mg() {
|
|
|
12566
12566
|
value: i.yMetricKey || "",
|
|
12567
12567
|
onValueChange: (k) => T({ yMetricKey: k }),
|
|
12568
12568
|
children: [
|
|
12569
|
-
/* @__PURE__ */ e(
|
|
12569
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select Y metric" }) }),
|
|
12570
12570
|
/* @__PURE__ */ e(ee, { children: m.map((k) => /* @__PURE__ */ e($, { value: k.value, children: k.label }, k.value)) })
|
|
12571
12571
|
]
|
|
12572
12572
|
}
|
|
@@ -12588,7 +12588,7 @@ function mg() {
|
|
|
12588
12588
|
value: i.radiusMetricKey || "",
|
|
12589
12589
|
onValueChange: (k) => T({ radiusMetricKey: k }),
|
|
12590
12590
|
children: [
|
|
12591
|
-
/* @__PURE__ */ e(
|
|
12591
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select radius metric" }) }),
|
|
12592
12592
|
/* @__PURE__ */ e(ee, { children: m.map((k) => /* @__PURE__ */ e($, { value: k.value, children: k.label }, k.value)) })
|
|
12593
12593
|
]
|
|
12594
12594
|
}
|
|
@@ -12613,7 +12613,7 @@ function mg() {
|
|
|
12613
12613
|
value: i.radiusScale || "sqrt",
|
|
12614
12614
|
onValueChange: (k) => T({ radiusScale: k }),
|
|
12615
12615
|
children: [
|
|
12616
|
-
/* @__PURE__ */ e(
|
|
12616
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
12617
12617
|
/* @__PURE__ */ n(ee, { children: [
|
|
12618
12618
|
/* @__PURE__ */ e($, { value: "sqrt", children: "Square Root (area-proportional)" }),
|
|
12619
12619
|
/* @__PURE__ */ e($, { value: "linear", children: "Linear" }),
|
|
@@ -12986,7 +12986,7 @@ function fn({
|
|
|
12986
12986
|
value: p.position || "auto",
|
|
12987
12987
|
onValueChange: (g) => i("position", g),
|
|
12988
12988
|
children: [
|
|
12989
|
-
/* @__PURE__ */ e(
|
|
12989
|
+
/* @__PURE__ */ e(X, { className: "h-7 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
12990
12990
|
/* @__PURE__ */ e(ee, { children: d.map((g) => /* @__PURE__ */ e($, { value: g, className: "text-xs", children: g === "auto" ? m() : g === "custom" ? "Custom (Advanced)" : Ct(g) }, g)) })
|
|
12991
12991
|
]
|
|
12992
12992
|
}
|
|
@@ -13001,7 +13001,7 @@ function fn({
|
|
|
13001
13001
|
value: p.anchor || "center",
|
|
13002
13002
|
onValueChange: (g) => i("anchor", g),
|
|
13003
13003
|
children: [
|
|
13004
|
-
/* @__PURE__ */ e(
|
|
13004
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13005
13005
|
/* @__PURE__ */ e(ee, { children: xg.map((g) => /* @__PURE__ */ e($, { value: g, className: "text-xs", children: Ct(g) }, g)) })
|
|
13006
13006
|
]
|
|
13007
13007
|
}
|
|
@@ -13015,7 +13015,7 @@ function fn({
|
|
|
13015
13015
|
value: String(p.align || "center"),
|
|
13016
13016
|
onValueChange: (g) => i("align", g),
|
|
13017
13017
|
children: [
|
|
13018
|
-
/* @__PURE__ */ e(
|
|
13018
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13019
13019
|
/* @__PURE__ */ e(ee, { children: bg.map((g) => /* @__PURE__ */ e($, { value: g, className: "text-xs", children: Ct(g) }, g)) })
|
|
13020
13020
|
]
|
|
13021
13021
|
}
|
|
@@ -13030,7 +13030,7 @@ function fn({
|
|
|
13030
13030
|
value: h,
|
|
13031
13031
|
onValueChange: (g) => i("format", g),
|
|
13032
13032
|
children: [
|
|
13033
|
-
/* @__PURE__ */ e(
|
|
13033
|
+
/* @__PURE__ */ e(X, { className: "h-7 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13034
13034
|
/* @__PURE__ */ e(ee, { children: o.map((g) => /* @__PURE__ */ e($, { value: g, className: "text-xs", children: g === "auto" && s ? "Auto (Use Axis)" : g === "none" ? "None (Raw Value)" : Ct(g) }, g)) })
|
|
13035
13035
|
]
|
|
13036
13036
|
}
|
|
@@ -13060,7 +13060,7 @@ function fn({
|
|
|
13060
13060
|
value: ((S = p.formatOptions) == null ? void 0 : S.currency) || "USD",
|
|
13061
13061
|
onValueChange: (g) => u("currency", g),
|
|
13062
13062
|
children: [
|
|
13063
|
-
/* @__PURE__ */ e(
|
|
13063
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13064
13064
|
/* @__PURE__ */ e(ee, { children: fg.map((g) => /* @__PURE__ */ e(
|
|
13065
13065
|
$,
|
|
13066
13066
|
{
|
|
@@ -13093,7 +13093,7 @@ function fn({
|
|
|
13093
13093
|
value: ((v = p.formatOptions) == null ? void 0 : v.locale) || "en-US",
|
|
13094
13094
|
onValueChange: (g) => u("locale", g),
|
|
13095
13095
|
children: [
|
|
13096
|
-
/* @__PURE__ */ e(
|
|
13096
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13097
13097
|
/* @__PURE__ */ e(ee, { children: gg.map((g) => /* @__PURE__ */ e(
|
|
13098
13098
|
$,
|
|
13099
13099
|
{
|
|
@@ -13132,7 +13132,7 @@ function fn({
|
|
|
13132
13132
|
value: ((N = p.font) == null ? void 0 : N.weight) || "normal",
|
|
13133
13133
|
onValueChange: (g) => f("weight", g),
|
|
13134
13134
|
children: [
|
|
13135
|
-
/* @__PURE__ */ e(
|
|
13135
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13136
13136
|
/* @__PURE__ */ n(ee, { children: [
|
|
13137
13137
|
/* @__PURE__ */ e($, { value: "normal", className: "text-xs", children: "Normal" }),
|
|
13138
13138
|
/* @__PURE__ */ e($, { value: "bold", className: "text-xs", children: "Bold" })
|
|
@@ -13151,7 +13151,7 @@ function fn({
|
|
|
13151
13151
|
g === "auto" && i("color", "auto");
|
|
13152
13152
|
},
|
|
13153
13153
|
children: [
|
|
13154
|
-
/* @__PURE__ */ e(
|
|
13154
|
+
/* @__PURE__ */ e(X, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13155
13155
|
/* @__PURE__ */ n(ee, { children: [
|
|
13156
13156
|
/* @__PURE__ */ e($, { value: "auto", className: "text-xs", children: "Auto (Contrast)" }),
|
|
13157
13157
|
/* @__PURE__ */ e($, { value: "custom", disabled: !0, className: "text-xs", children: "Custom" })
|
|
@@ -13275,7 +13275,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13275
13275
|
/* @__PURE__ */ e(
|
|
13276
13276
|
Yt,
|
|
13277
13277
|
{
|
|
13278
|
-
className:
|
|
13278
|
+
className: J(
|
|
13279
13279
|
"h-4 w-4 shrink-0 text-muted-foreground transition-transform",
|
|
13280
13280
|
r && "rotate-90"
|
|
13281
13281
|
)
|
|
@@ -13287,7 +13287,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13287
13287
|
/* @__PURE__ */ n(
|
|
13288
13288
|
"span",
|
|
13289
13289
|
{
|
|
13290
|
-
className:
|
|
13290
|
+
className: J(
|
|
13291
13291
|
"flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
|
|
13292
13292
|
"border border-border bg-background text-muted-foreground"
|
|
13293
13293
|
),
|
|
@@ -13300,7 +13300,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13300
13300
|
/* @__PURE__ */ e(
|
|
13301
13301
|
"span",
|
|
13302
13302
|
{
|
|
13303
|
-
className:
|
|
13303
|
+
className: J(
|
|
13304
13304
|
"rounded px-1.5 py-0.5 text-xs",
|
|
13305
13305
|
"border border-border bg-background text-muted-foreground"
|
|
13306
13306
|
),
|
|
@@ -13317,7 +13317,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13317
13317
|
"button",
|
|
13318
13318
|
{
|
|
13319
13319
|
onClick: () => h(T),
|
|
13320
|
-
className:
|
|
13320
|
+
className: J(
|
|
13321
13321
|
"flex items-center gap-2 rounded-md border px-3 py-1.5 text-xs transition-colors",
|
|
13322
13322
|
i === T ? "border-primary bg-primary/10 text-primary" : "border-border bg-background text-muted-foreground hover:bg-muted"
|
|
13323
13323
|
),
|
|
@@ -13337,7 +13337,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13337
13337
|
value: f,
|
|
13338
13338
|
onValueChange: (T) => C(T),
|
|
13339
13339
|
children: [
|
|
13340
|
-
/* @__PURE__ */ e(
|
|
13340
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-20 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13341
13341
|
/* @__PURE__ */ n(ee, { children: [
|
|
13342
13342
|
/* @__PURE__ */ e($, { value: "y", className: "text-xs", children: "Y1 (Left)" }),
|
|
13343
13343
|
/* @__PURE__ */ e($, { value: "y2", className: "text-xs", children: "Y2 (Right)" })
|
|
@@ -13358,7 +13358,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13358
13358
|
value: (d == null ? void 0 : d.lineStyle) || "solid",
|
|
13359
13359
|
onValueChange: (T) => p({ lineStyle: T }),
|
|
13360
13360
|
children: [
|
|
13361
|
-
/* @__PURE__ */ e(
|
|
13361
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13362
13362
|
/* @__PURE__ */ e(ee, { children: Cg.map(({ value: T, label: N }) => /* @__PURE__ */ e(
|
|
13363
13363
|
$,
|
|
13364
13364
|
{
|
|
@@ -13380,7 +13380,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13380
13380
|
value: String((d == null ? void 0 : d.pointRadius) ?? 3),
|
|
13381
13381
|
onValueChange: (T) => p({ pointRadius: Number(T) }),
|
|
13382
13382
|
children: [
|
|
13383
|
-
/* @__PURE__ */ e(
|
|
13383
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13384
13384
|
/* @__PURE__ */ e(ee, { children: yg.map((T) => /* @__PURE__ */ e(
|
|
13385
13385
|
$,
|
|
13386
13386
|
{
|
|
@@ -13402,7 +13402,7 @@ function kg({ metricKey: t, idx: a }) {
|
|
|
13402
13402
|
value: (d == null ? void 0 : d.pointStyle) || "circle",
|
|
13403
13403
|
onValueChange: (T) => p({ pointStyle: T }),
|
|
13404
13404
|
children: [
|
|
13405
|
-
/* @__PURE__ */ e(
|
|
13405
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13406
13406
|
/* @__PURE__ */ e(ee, { children: Ng.map(({ value: T, label: N }) => /* @__PURE__ */ e(
|
|
13407
13407
|
$,
|
|
13408
13408
|
{
|
|
@@ -13543,7 +13543,7 @@ function Ag({ metricKey: t, idx: a }) {
|
|
|
13543
13543
|
/* @__PURE__ */ e(
|
|
13544
13544
|
Yt,
|
|
13545
13545
|
{
|
|
13546
|
-
className:
|
|
13546
|
+
className: J(
|
|
13547
13547
|
"h-4 w-4 shrink-0 text-muted-foreground transition-transform",
|
|
13548
13548
|
r && "rotate-90"
|
|
13549
13549
|
)
|
|
@@ -13554,7 +13554,7 @@ function Ag({ metricKey: t, idx: a }) {
|
|
|
13554
13554
|
/* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1.5", children: /* @__PURE__ */ n(
|
|
13555
13555
|
"span",
|
|
13556
13556
|
{
|
|
13557
|
-
className:
|
|
13557
|
+
className: J(
|
|
13558
13558
|
"flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
|
|
13559
13559
|
"border border-border bg-background text-muted-foreground"
|
|
13560
13560
|
),
|
|
@@ -13574,7 +13574,7 @@ function Ag({ metricKey: t, idx: a }) {
|
|
|
13574
13574
|
value: i,
|
|
13575
13575
|
onValueChange: (x) => p(x),
|
|
13576
13576
|
children: [
|
|
13577
|
-
/* @__PURE__ */ e(
|
|
13577
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13578
13578
|
/* @__PURE__ */ e(ee, { children: zn.map((x) => /* @__PURE__ */ e(
|
|
13579
13579
|
$,
|
|
13580
13580
|
{
|
|
@@ -13599,7 +13599,7 @@ function Ag({ metricKey: t, idx: a }) {
|
|
|
13599
13599
|
value: (d == null ? void 0 : d.lineStyle) || "solid",
|
|
13600
13600
|
onValueChange: (x) => m({ lineStyle: x }),
|
|
13601
13601
|
children: [
|
|
13602
|
-
/* @__PURE__ */ e(
|
|
13602
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13603
13603
|
/* @__PURE__ */ e(ee, { children: Dg.map(({ value: x, label: v }) => /* @__PURE__ */ e(
|
|
13604
13604
|
$,
|
|
13605
13605
|
{
|
|
@@ -13621,7 +13621,7 @@ function Ag({ metricKey: t, idx: a }) {
|
|
|
13621
13621
|
value: String((d == null ? void 0 : d.pointRadius) ?? 3),
|
|
13622
13622
|
onValueChange: (x) => m({ pointRadius: Number(x) }),
|
|
13623
13623
|
children: [
|
|
13624
|
-
/* @__PURE__ */ e(
|
|
13624
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13625
13625
|
/* @__PURE__ */ e(ee, { children: Tg.map((x) => /* @__PURE__ */ e(
|
|
13626
13626
|
$,
|
|
13627
13627
|
{
|
|
@@ -13643,7 +13643,7 @@ function Ag({ metricKey: t, idx: a }) {
|
|
|
13643
13643
|
value: (d == null ? void 0 : d.pointStyle) || "circle",
|
|
13644
13644
|
onValueChange: (x) => m({ pointStyle: x }),
|
|
13645
13645
|
children: [
|
|
13646
|
-
/* @__PURE__ */ e(
|
|
13646
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13647
13647
|
/* @__PURE__ */ e(ee, { children: Mg.map(({ value: x, label: v }) => /* @__PURE__ */ e(
|
|
13648
13648
|
$,
|
|
13649
13649
|
{
|
|
@@ -13772,7 +13772,7 @@ function Yg({ metricKey: t, idx: a }) {
|
|
|
13772
13772
|
/* @__PURE__ */ e(
|
|
13773
13773
|
Yt,
|
|
13774
13774
|
{
|
|
13775
|
-
className:
|
|
13775
|
+
className: J(
|
|
13776
13776
|
"h-4 w-4 shrink-0 text-muted-foreground transition-transform",
|
|
13777
13777
|
r && "rotate-90"
|
|
13778
13778
|
)
|
|
@@ -13783,7 +13783,7 @@ function Yg({ metricKey: t, idx: a }) {
|
|
|
13783
13783
|
/* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1.5", children: /* @__PURE__ */ n(
|
|
13784
13784
|
"span",
|
|
13785
13785
|
{
|
|
13786
|
-
className:
|
|
13786
|
+
className: J(
|
|
13787
13787
|
"flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
|
|
13788
13788
|
"border border-border bg-background text-muted-foreground"
|
|
13789
13789
|
),
|
|
@@ -13806,7 +13806,7 @@ function Yg({ metricKey: t, idx: a }) {
|
|
|
13806
13806
|
value: i,
|
|
13807
13807
|
onValueChange: (v) => h({ lineStyle: v }),
|
|
13808
13808
|
children: [
|
|
13809
|
-
/* @__PURE__ */ e(
|
|
13809
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13810
13810
|
/* @__PURE__ */ e(ee, { children: Hn.map(({ value: v, label: T }) => /* @__PURE__ */ e(
|
|
13811
13811
|
$,
|
|
13812
13812
|
{
|
|
@@ -13828,7 +13828,7 @@ function Yg({ metricKey: t, idx: a }) {
|
|
|
13828
13828
|
value: String(f),
|
|
13829
13829
|
onValueChange: (v) => h({ pointRadius: Number(v) }),
|
|
13830
13830
|
children: [
|
|
13831
|
-
/* @__PURE__ */ e(
|
|
13831
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13832
13832
|
/* @__PURE__ */ e(ee, { children: Pg.map((v) => /* @__PURE__ */ e(
|
|
13833
13833
|
$,
|
|
13834
13834
|
{
|
|
@@ -13850,7 +13850,7 @@ function Yg({ metricKey: t, idx: a }) {
|
|
|
13850
13850
|
value: u,
|
|
13851
13851
|
onValueChange: (v) => h({ pointStyle: v }),
|
|
13852
13852
|
children: [
|
|
13853
|
-
/* @__PURE__ */ e(
|
|
13853
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
13854
13854
|
/* @__PURE__ */ e(ee, { children: Rg.map(({ value: v, label: T }) => /* @__PURE__ */ e(
|
|
13855
13855
|
$,
|
|
13856
13856
|
{
|
|
@@ -13966,7 +13966,7 @@ function Kg({ metricKey: t, idx: a }) {
|
|
|
13966
13966
|
/* @__PURE__ */ e(
|
|
13967
13967
|
Yt,
|
|
13968
13968
|
{
|
|
13969
|
-
className:
|
|
13969
|
+
className: J(
|
|
13970
13970
|
"h-4 w-4 shrink-0 text-muted-foreground transition-transform",
|
|
13971
13971
|
r && "rotate-90"
|
|
13972
13972
|
)
|
|
@@ -13977,7 +13977,7 @@ function Kg({ metricKey: t, idx: a }) {
|
|
|
13977
13977
|
/* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1.5", children: f > 0 && /* @__PURE__ */ n(
|
|
13978
13978
|
"span",
|
|
13979
13979
|
{
|
|
13980
|
-
className:
|
|
13980
|
+
className: J(
|
|
13981
13981
|
"flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
|
|
13982
13982
|
"border border-border bg-background text-muted-foreground"
|
|
13983
13983
|
),
|
|
@@ -14000,7 +14000,7 @@ function Kg({ metricKey: t, idx: a }) {
|
|
|
14000
14000
|
value: String(f),
|
|
14001
14001
|
onValueChange: (S) => m({ borderRadius: Number(S) }),
|
|
14002
14002
|
children: [
|
|
14003
|
-
/* @__PURE__ */ e(
|
|
14003
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14004
14004
|
/* @__PURE__ */ e(ee, { children: _g.map((S) => /* @__PURE__ */ e(
|
|
14005
14005
|
$,
|
|
14006
14006
|
{
|
|
@@ -14090,7 +14090,7 @@ function zg() {
|
|
|
14090
14090
|
value: (s == null ? void 0 : s.lineStyle) || "solid",
|
|
14091
14091
|
onValueChange: (o) => d("lineStyle", o),
|
|
14092
14092
|
children: [
|
|
14093
|
-
/* @__PURE__ */ e(
|
|
14093
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14094
14094
|
/* @__PURE__ */ e(ee, { children: $g.map(({ value: o, label: i }) => /* @__PURE__ */ e($, { value: o, className: "text-xs", children: i }, o)) })
|
|
14095
14095
|
]
|
|
14096
14096
|
}
|
|
@@ -14104,7 +14104,7 @@ function zg() {
|
|
|
14104
14104
|
value: String((s == null ? void 0 : s.pointRadius) ?? 3),
|
|
14105
14105
|
onValueChange: (o) => d("pointRadius", Number(o)),
|
|
14106
14106
|
children: [
|
|
14107
|
-
/* @__PURE__ */ e(
|
|
14107
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14108
14108
|
/* @__PURE__ */ e(ee, { children: qg.map((o) => /* @__PURE__ */ e(
|
|
14109
14109
|
$,
|
|
14110
14110
|
{
|
|
@@ -14126,7 +14126,7 @@ function zg() {
|
|
|
14126
14126
|
value: (s == null ? void 0 : s.pointStyle) || "circle",
|
|
14127
14127
|
onValueChange: (o) => d("pointStyle", o),
|
|
14128
14128
|
children: [
|
|
14129
|
-
/* @__PURE__ */ e(
|
|
14129
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14130
14130
|
/* @__PURE__ */ e(ee, { children: jg.map(({ value: o, label: i }) => /* @__PURE__ */ e($, { value: o, className: "text-xs", children: i }, o)) })
|
|
14131
14131
|
]
|
|
14132
14132
|
}
|
|
@@ -14150,7 +14150,7 @@ const Hg = [0, 2, 4, 6, 8, 10, 12, 16, 20], Ug = [
|
|
|
14150
14150
|
{ value: "0.9", label: "90%" },
|
|
14151
14151
|
{ value: "1", label: "100%" }
|
|
14152
14152
|
];
|
|
14153
|
-
function
|
|
14153
|
+
function Qg() {
|
|
14154
14154
|
const t = F((o) => o.card), a = F((o) => {
|
|
14155
14155
|
var i;
|
|
14156
14156
|
return (i = o.card) == null ? void 0 : i.preferences;
|
|
@@ -14182,7 +14182,7 @@ function Jg() {
|
|
|
14182
14182
|
value: String((s == null ? void 0 : s.borderRadius) ?? 0),
|
|
14183
14183
|
onValueChange: (o) => d("borderRadius", Number(o)),
|
|
14184
14184
|
children: [
|
|
14185
|
-
/* @__PURE__ */ e(
|
|
14185
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14186
14186
|
/* @__PURE__ */ e(ee, { children: Hg.map((o) => /* @__PURE__ */ e(
|
|
14187
14187
|
$,
|
|
14188
14188
|
{
|
|
@@ -14204,7 +14204,7 @@ function Jg() {
|
|
|
14204
14204
|
value: String((s == null ? void 0 : s.barPercentage) ?? 0.9),
|
|
14205
14205
|
onValueChange: (o) => d("barPercentage", Number(o)),
|
|
14206
14206
|
children: [
|
|
14207
|
-
/* @__PURE__ */ e(
|
|
14207
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14208
14208
|
/* @__PURE__ */ e(ee, { children: Ug.map(({ value: o, label: i }) => /* @__PURE__ */ e($, { value: o, className: "text-xs", children: i }, o)) })
|
|
14209
14209
|
]
|
|
14210
14210
|
}
|
|
@@ -14218,7 +14218,7 @@ function Jg() {
|
|
|
14218
14218
|
value: String((s == null ? void 0 : s.categoryPercentage) ?? 0.8),
|
|
14219
14219
|
onValueChange: (o) => d("categoryPercentage", Number(o)),
|
|
14220
14220
|
children: [
|
|
14221
|
-
/* @__PURE__ */ e(
|
|
14221
|
+
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14222
14222
|
/* @__PURE__ */ e(ee, { children: Gg.map(({ value: o, label: i }) => /* @__PURE__ */ e($, { value: o, className: "text-xs", children: i }, o)) })
|
|
14223
14223
|
]
|
|
14224
14224
|
}
|
|
@@ -14227,7 +14227,7 @@ function Jg() {
|
|
|
14227
14227
|
] }) })
|
|
14228
14228
|
] });
|
|
14229
14229
|
}
|
|
14230
|
-
function
|
|
14230
|
+
function Jg() {
|
|
14231
14231
|
const t = F(
|
|
14232
14232
|
(r) => {
|
|
14233
14233
|
var s, l;
|
|
@@ -14261,16 +14261,16 @@ function Qg() {
|
|
|
14261
14261
|
] });
|
|
14262
14262
|
}
|
|
14263
14263
|
const Wg = ["kpi"], Un = 2;
|
|
14264
|
-
function
|
|
14264
|
+
function Jt(t) {
|
|
14265
14265
|
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();
|
|
14266
14266
|
}
|
|
14267
|
-
function
|
|
14267
|
+
function Xg(t) {
|
|
14268
14268
|
if (!(t != null && t.name) || !(t != null && t.dataType) || t.role === "metric")
|
|
14269
14269
|
return !1;
|
|
14270
14270
|
const a = ho(t.dataType);
|
|
14271
14271
|
return ["date", "string", "boolean"].includes(a);
|
|
14272
14272
|
}
|
|
14273
|
-
function
|
|
14273
|
+
function Zg(t) {
|
|
14274
14274
|
return {
|
|
14275
14275
|
...t,
|
|
14276
14276
|
role: "groupby"
|
|
@@ -14282,12 +14282,12 @@ function ex() {
|
|
|
14282
14282
|
(g) => g.actions.updateCardConfig
|
|
14283
14283
|
), r = st(), { scopedFields: s } = $l(), l = ((T = t.config) == null ? void 0 : T.metricColumns) || [], c = ((N = t.config) == null ? void 0 : N.summary) || {}, d = c.breakdownDimensions || [], o = d.length > 0, i = Wg.includes(r), f = l.length > 0, u = c.enabled === !0, m = i && f, p = Array.from(
|
|
14284
14284
|
new Map(
|
|
14285
|
-
s.filter(
|
|
14285
|
+
s.filter(Xg).map((g) => [Jt(g), Zg(g)])
|
|
14286
14286
|
).values()
|
|
14287
14287
|
), h = new Set(
|
|
14288
|
-
p.map((g) =>
|
|
14288
|
+
p.map((g) => Jt(g))
|
|
14289
14289
|
), C = new Set(
|
|
14290
|
-
d.map((g) =>
|
|
14290
|
+
d.map((g) => Jt(g)).filter((g) => g && h.has(g))
|
|
14291
14291
|
);
|
|
14292
14292
|
if (!i)
|
|
14293
14293
|
return null;
|
|
@@ -14299,10 +14299,10 @@ function ex() {
|
|
|
14299
14299
|
}
|
|
14300
14300
|
});
|
|
14301
14301
|
}, x = (g, E) => {
|
|
14302
|
-
const I =
|
|
14303
|
-
(w) => C.has(
|
|
14302
|
+
const I = Jt(g), R = p.filter(
|
|
14303
|
+
(w) => C.has(Jt(w))
|
|
14304
14304
|
), _ = E ? C.has(I) ? R : [...R, g].slice(0, Un) : R.filter(
|
|
14305
|
-
(w) =>
|
|
14305
|
+
(w) => Jt(w) !== I
|
|
14306
14306
|
);
|
|
14307
14307
|
S({
|
|
14308
14308
|
breakdownDimensions: _,
|
|
@@ -14345,7 +14345,7 @@ function ex() {
|
|
|
14345
14345
|
/* @__PURE__ */ e(Le, { className: "pb-4 pt-2", children: /* @__PURE__ */ n(
|
|
14346
14346
|
"div",
|
|
14347
14347
|
{
|
|
14348
|
-
className:
|
|
14348
|
+
className: J(
|
|
14349
14349
|
"space-y-3 transition-opacity",
|
|
14350
14350
|
!u && "opacity-60"
|
|
14351
14351
|
),
|
|
@@ -14399,7 +14399,7 @@ function ex() {
|
|
|
14399
14399
|
] })
|
|
14400
14400
|
] }),
|
|
14401
14401
|
p.length === 0 ? /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: "No dimension fields available for breakdown." }) : /* @__PURE__ */ e("ul", { className: "max-h-40 space-y-1 overflow-y-auto", children: p.map((g) => {
|
|
14402
|
-
const E =
|
|
14402
|
+
const E = Jt(g), I = C.has(E), R = C.size >= Un, _ = !u || !I && R;
|
|
14403
14403
|
return /* @__PURE__ */ n(
|
|
14404
14404
|
"li",
|
|
14405
14405
|
{
|
|
@@ -14448,7 +14448,7 @@ function tx() {
|
|
|
14448
14448
|
/* @__PURE__ */ n(W, { value: s, onValueChange: (d) => a(
|
|
14449
14449
|
_m(t, d === "automatic" ? null : d).config
|
|
14450
14450
|
), children: [
|
|
14451
|
-
/* @__PURE__ */ e(
|
|
14451
|
+
/* @__PURE__ */ e(X, { id: "kpi-band", className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
14452
14452
|
/* @__PURE__ */ n(ee, { children: [
|
|
14453
14453
|
/* @__PURE__ */ e($, { value: "automatic", className: "text-xs", children: "Automatic" }),
|
|
14454
14454
|
/* @__PURE__ */ e($, { value: "trend", className: "text-xs", disabled: !r, children: "Trend" }),
|
|
@@ -14497,7 +14497,7 @@ function nx() {
|
|
|
14497
14497
|
};
|
|
14498
14498
|
return /* @__PURE__ */ n(Re, { value: "tooltip-format", className: "border-b-0", children: [
|
|
14499
14499
|
/* @__PURE__ */ e(Oe, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
14500
|
-
/* @__PURE__ */ e(
|
|
14500
|
+
/* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
14501
14501
|
/* @__PURE__ */ e("span", { children: "Tooltip Format" })
|
|
14502
14502
|
] }) }),
|
|
14503
14503
|
/* @__PURE__ */ n(Le, { className: "space-y-4 pt-2", children: [
|
|
@@ -14542,16 +14542,16 @@ function ai({ mode: t }) {
|
|
|
14542
14542
|
a === "line" && /* @__PURE__ */ e(Og, {}),
|
|
14543
14543
|
(a === "bar" || a === "horizontalBar" || a === "stackedBar") && /* @__PURE__ */ e(Vg, {}),
|
|
14544
14544
|
/* @__PURE__ */ e(zg, {}),
|
|
14545
|
-
/* @__PURE__ */ e(
|
|
14545
|
+
/* @__PURE__ */ e(Qg, {}),
|
|
14546
14546
|
/* @__PURE__ */ e(ig, {}),
|
|
14547
|
-
t === "config" && /* @__PURE__ */ e(
|
|
14547
|
+
t === "config" && /* @__PURE__ */ e(Jf, {}),
|
|
14548
14548
|
t === "config" && /* @__PURE__ */ e(ex, {}),
|
|
14549
14549
|
t === "config" && /* @__PURE__ */ e(tx, {}),
|
|
14550
14550
|
/* @__PURE__ */ e(dg, {}),
|
|
14551
14551
|
a === "bullet" && /* @__PURE__ */ e(ug, {}),
|
|
14552
14552
|
a === "funnel" && /* @__PURE__ */ e(pg, {}),
|
|
14553
14553
|
(a === "bubble" || a === "scatter") && /* @__PURE__ */ e(mg, {}),
|
|
14554
|
-
(a === "stackedBar" || a === "stackedLine") && /* @__PURE__ */ e(
|
|
14554
|
+
(a === "stackedBar" || a === "stackedLine") && /* @__PURE__ */ e(Jg, {}),
|
|
14555
14555
|
/* @__PURE__ */ e(rg, {}),
|
|
14556
14556
|
/* @__PURE__ */ e(sg, {}),
|
|
14557
14557
|
/* @__PURE__ */ e(lg, {}),
|
|
@@ -14587,7 +14587,7 @@ function sx({
|
|
|
14587
14587
|
case "custom":
|
|
14588
14588
|
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(Ho, {}) });
|
|
14589
14589
|
case "text":
|
|
14590
|
-
return /* @__PURE__ */ e(
|
|
14590
|
+
return /* @__PURE__ */ e(Zf, {});
|
|
14591
14591
|
default:
|
|
14592
14592
|
return /* @__PURE__ */ e(rx, {});
|
|
14593
14593
|
}
|
|
@@ -14683,7 +14683,7 @@ function Hr({
|
|
|
14683
14683
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(
|
|
14684
14684
|
"span",
|
|
14685
14685
|
{
|
|
14686
|
-
className:
|
|
14686
|
+
className: J(
|
|
14687
14687
|
"overflow-hidden text-ellipsis whitespace-nowrap",
|
|
14688
14688
|
a
|
|
14689
14689
|
),
|
|
@@ -14730,7 +14730,7 @@ function ni({
|
|
|
14730
14730
|
"div",
|
|
14731
14731
|
{
|
|
14732
14732
|
ref: T,
|
|
14733
|
-
className:
|
|
14733
|
+
className: J(
|
|
14734
14734
|
"group flex h-7 w-full items-center gap-1.5 rounded-control border bg-background px-1.5 transition-colors",
|
|
14735
14735
|
d ? "border-foreground/30 bg-muted/40" : "border-border hover:bg-muted/40",
|
|
14736
14736
|
x && "z-50 scale-95 opacity-50"
|
|
@@ -14743,7 +14743,7 @@ function ni({
|
|
|
14743
14743
|
...h,
|
|
14744
14744
|
...C,
|
|
14745
14745
|
"aria-label": `Drag ${s}`,
|
|
14746
|
-
className:
|
|
14746
|
+
className: J(
|
|
14747
14747
|
Ld,
|
|
14748
14748
|
"text-muted-foreground hover:text-foreground"
|
|
14749
14749
|
),
|
|
@@ -15160,7 +15160,7 @@ function dx({ idx: t }) {
|
|
|
15160
15160
|
children: /* @__PURE__ */ e(
|
|
15161
15161
|
zh,
|
|
15162
15162
|
{
|
|
15163
|
-
className:
|
|
15163
|
+
className: J("h-4 w-4", {
|
|
15164
15164
|
"rotate-90": l === "y"
|
|
15165
15165
|
})
|
|
15166
15166
|
}
|
|
@@ -15175,7 +15175,7 @@ function dx({ idx: t }) {
|
|
|
15175
15175
|
children: /* @__PURE__ */ e(
|
|
15176
15176
|
Uh,
|
|
15177
15177
|
{
|
|
15178
|
-
className:
|
|
15178
|
+
className: J("h-4 w-4", {
|
|
15179
15179
|
"rotate-90": l === "y"
|
|
15180
15180
|
})
|
|
15181
15181
|
}
|
|
@@ -15190,7 +15190,7 @@ function dx({ idx: t }) {
|
|
|
15190
15190
|
children: /* @__PURE__ */ e(
|
|
15191
15191
|
Hh,
|
|
15192
15192
|
{
|
|
15193
|
-
className:
|
|
15193
|
+
className: J("h-4 w-4", {
|
|
15194
15194
|
"rotate-90": l === "y"
|
|
15195
15195
|
})
|
|
15196
15196
|
}
|
|
@@ -15247,7 +15247,7 @@ function mx({
|
|
|
15247
15247
|
return /* @__PURE__ */ n(
|
|
15248
15248
|
"div",
|
|
15249
15249
|
{
|
|
15250
|
-
className:
|
|
15250
|
+
className: J(
|
|
15251
15251
|
"group flex items-center justify-between gap-2 rounded-md",
|
|
15252
15252
|
r
|
|
15253
15253
|
),
|
|
@@ -15258,7 +15258,7 @@ function mx({
|
|
|
15258
15258
|
dn,
|
|
15259
15259
|
{
|
|
15260
15260
|
onClick: () => f("bar"),
|
|
15261
|
-
className:
|
|
15261
|
+
className: J(
|
|
15262
15262
|
"size-4 cursor-pointer text-muted-foreground hover:text-foreground",
|
|
15263
15263
|
s
|
|
15264
15264
|
)
|
|
@@ -15268,7 +15268,7 @@ function mx({
|
|
|
15268
15268
|
cn,
|
|
15269
15269
|
{
|
|
15270
15270
|
onClick: () => f("line"),
|
|
15271
|
-
className:
|
|
15271
|
+
className: J(
|
|
15272
15272
|
"size-4 cursor-pointer text-muted-foreground hover:text-foreground",
|
|
15273
15273
|
s
|
|
15274
15274
|
)
|
|
@@ -15278,7 +15278,7 @@ function mx({
|
|
|
15278
15278
|
jl,
|
|
15279
15279
|
{
|
|
15280
15280
|
onClick: () => f("area"),
|
|
15281
|
-
className:
|
|
15281
|
+
className: J(
|
|
15282
15282
|
"size-4 cursor-pointer text-muted-foreground hover:text-foreground",
|
|
15283
15283
|
s
|
|
15284
15284
|
)
|
|
@@ -15324,8 +15324,8 @@ function hx() {
|
|
|
15324
15324
|
onValueChange: l,
|
|
15325
15325
|
defaultValue: "none",
|
|
15326
15326
|
children: [
|
|
15327
|
-
/* @__PURE__ */ e(
|
|
15328
|
-
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ n(
|
|
15327
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(Z, { placeholder: "Select position" }) }),
|
|
15328
|
+
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ n(Xn, { children: [
|
|
15329
15329
|
/* @__PURE__ */ e(ao, { children: "Data Labels" }),
|
|
15330
15330
|
/* @__PURE__ */ e($, { value: "none", children: "None" }),
|
|
15331
15331
|
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e($, { value: "start", children: "Start" }),
|
|
@@ -15346,8 +15346,8 @@ function hx() {
|
|
|
15346
15346
|
onValueChange: l,
|
|
15347
15347
|
defaultValue: "none",
|
|
15348
15348
|
children: [
|
|
15349
|
-
/* @__PURE__ */ e(
|
|
15350
|
-
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ n(
|
|
15349
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select position" }) }),
|
|
15350
|
+
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ n(Xn, { children: [
|
|
15351
15351
|
/* @__PURE__ */ e($, { className: "text-xs", value: "none", children: "None" }),
|
|
15352
15352
|
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e($, { className: "text-xs", value: "start", children: "Start" }),
|
|
15353
15353
|
/* @__PURE__ */ e($, { className: "text-xs", value: "center", children: "Center" }),
|
|
@@ -15757,15 +15757,15 @@ function Nx({
|
|
|
15757
15757
|
handleMetricPercentOfTotalScopeChange: me,
|
|
15758
15758
|
handleMetricPercentOfTotalOutputChange: Ne,
|
|
15759
15759
|
handleMetricTargetValueChange: Te
|
|
15760
|
-
} =
|
|
15760
|
+
} = Ql(o), [Ye, He] = U(!1), [pe, $e] = U(() => {
|
|
15761
15761
|
var H;
|
|
15762
15762
|
return !!((H = t.parameters) != null && H.windowTransform);
|
|
15763
|
-
}), [_e, Ue] = U(!1), [vt,
|
|
15763
|
+
}), [_e, Ue] = U(!1), [vt, Ze] = U(!1), [yt, ot] = U(null), oe = se(() => {
|
|
15764
15764
|
const H = (be) => be != null && be.startsWith("card-source-") ? be.replace("card-source-", "") : be, Ce = H(t.id), De = S.find((be) => {
|
|
15765
15765
|
if (t.qualifiedFieldName && be.qualifiedFieldName && be.qualifiedFieldName === t.qualifiedFieldName || t.qualifiedEntityName && be.qualifiedEntityName && be.qualifiedEntityName === t.qualifiedEntityName && be.name === t.name)
|
|
15766
15766
|
return !0;
|
|
15767
|
-
const
|
|
15768
|
-
return !!(Ce &&
|
|
15767
|
+
const Q = H(be.id);
|
|
15768
|
+
return !!(Ce && Q && Ce === Q);
|
|
15769
15769
|
});
|
|
15770
15770
|
return {
|
|
15771
15771
|
dataType: (De == null ? void 0 : De.dataType) || t.dataType,
|
|
@@ -15820,13 +15820,13 @@ function Nx({
|
|
|
15820
15820
|
_
|
|
15821
15821
|
).find(
|
|
15822
15822
|
(ye) => ye.value === "custom"
|
|
15823
|
-
) : void 0,
|
|
15824
|
-
Ie(H), re(
|
|
15823
|
+
) : void 0, Q = a === "groupBy" ? We || (((De = be == null ? void 0 : be.format) == null ? void 0 : De.presentation.mode) === "pattern" ? be.format.presentation.pattern : "") : We;
|
|
15824
|
+
Ie(H), re(Q), a === "groupBy" && b(
|
|
15825
15825
|
r,
|
|
15826
15826
|
za(
|
|
15827
15827
|
Ce,
|
|
15828
15828
|
H,
|
|
15829
|
-
|
|
15829
|
+
Q
|
|
15830
15830
|
)
|
|
15831
15831
|
);
|
|
15832
15832
|
} else
|
|
@@ -15851,7 +15851,7 @@ function Nx({
|
|
|
15851
15851
|
) : a === "detailColumns" && q(r, "custom", H);
|
|
15852
15852
|
}, li = (H) => {
|
|
15853
15853
|
if (a === "groupBy") {
|
|
15854
|
-
const Ce =
|
|
15854
|
+
const Ce = Jm(
|
|
15855
15855
|
Ve.format,
|
|
15856
15856
|
H
|
|
15857
15857
|
), De = Wm({
|
|
@@ -15872,12 +15872,12 @@ function Nx({
|
|
|
15872
15872
|
}, di = (H) => {
|
|
15873
15873
|
P(a, r, H);
|
|
15874
15874
|
}, xn = Gd(t);
|
|
15875
|
-
|
|
15876
|
-
const Ur =
|
|
15875
|
+
Qd(t);
|
|
15876
|
+
const Ur = Jd(t), bn = t.role === "metric" && Ur, vn = Ur && (xn === "user_calculated" || xn === "inline_expression" && t.fieldScope !== "domain"), kt = vn ? gh({
|
|
15877
15877
|
field: t,
|
|
15878
15878
|
sheetFields: (i == null ? void 0 : i.calculatedFields) || [],
|
|
15879
15879
|
dashboardFields: C
|
|
15880
|
-
}) : void 0, Gr = vn && (kt == null ? void 0 : kt.scope) === "sheet",
|
|
15880
|
+
}) : void 0, Gr = vn && (kt == null ? void 0 : kt.scope) === "sheet", Qr = vn && (kt == null ? void 0 : kt.scope) === "dashboard", ba = xn === "domain_calculated" || t.fieldScope === "domain", Jr = ba ? Wd(t, S) : void 0, ia = ba ? "domain" : Gr ? "sheet" : Qr ? "dashboard" : "card", _a = ba ? Jr || t : (Gr || Qr) && (kt != null && kt.matchedField) ? kt.matchedField : t, ui = ba ? Jr ? "effective" : v ? "loading" : T ? "unavailable" : "unverified" : void 0, Wr = (H) => {
|
|
15881
15881
|
var Ce;
|
|
15882
15882
|
if (gn(H), a === "metrics") {
|
|
15883
15883
|
const De = {
|
|
@@ -15896,7 +15896,7 @@ function Nx({
|
|
|
15896
15896
|
B(a, r);
|
|
15897
15897
|
}, yn = ho(
|
|
15898
15898
|
oe.dataType || t.dataType
|
|
15899
|
-
),
|
|
15899
|
+
), Xr = yn === "date", Nn = d === "kpi", Cn = a === "detailColumns", Zr = (hs = o.config) == null ? void 0 : hs.metricColumns, es = (ps = o.config) == null ? void 0 : ps.groupByColumns, ts = Xd(o), as = fe((H) => H.dashboard), ns = fe(
|
|
15900
15900
|
(H) => H.semanticExecutionPayload
|
|
15901
15901
|
), rs = t.nativeDataType || t.dataType, hi = se(
|
|
15902
15902
|
() => a === "detailColumns" ? qm({
|
|
@@ -15927,11 +15927,11 @@ function Nx({
|
|
|
15927
15927
|
[o, ts, as, ns, R]
|
|
15928
15928
|
), dt = se(() => {
|
|
15929
15929
|
if (a !== "metrics") return;
|
|
15930
|
-
const H = $m("metric",
|
|
15930
|
+
const H = $m("metric", Zr ?? [])[r];
|
|
15931
15931
|
return H ? zm(o, H, pt) : void 0;
|
|
15932
|
-
}, [o, pt, r,
|
|
15933
|
-
() => Sn && a === "metrics" ? Hm(o,
|
|
15934
|
-
[o,
|
|
15932
|
+
}, [o, pt, r, Zr, a]), Xe = t, et = ((gs = Xe.comparison) == null ? void 0 : gs.mode) === "explicit" ? Xe.comparison.spec : void 0, Sn = (xs = Xe.parameters) == null ? void 0 : xs.windowTransform, va = !!Sn, ft = se(
|
|
15933
|
+
() => Sn && a === "metrics" ? Hm(o, Xe.id, (H) => ({ name: H.name, datasetName: Um(H) })) : void 0,
|
|
15934
|
+
[o, Xe.id, Sn, a]
|
|
15935
15935
|
), Pe = ft == null ? void 0 : ft.transform, Pt = (Pe == null ? void 0 : Pe.kind) ?? null, Tt = dt == null ? void 0 : dt.transform, kn = Tt ? Object.values(Tt.kinds).filter((H) => H.offered) : [], Tn = Tt && !kn.length ? Object.values(Tt.kinds).find((H) => !H.offered) : void 0, fi = kn.some(
|
|
15936
15936
|
(H) => H.offered && H.replaces === "comparison"
|
|
15937
15937
|
), ss = es || [], ya = (ft == null ? void 0 : ft.order) ?? "", gi = (ft == null ? void 0 : ft.direction) ?? "asc", Va = Pt !== null && Pt !== "percent_of_total", ls = ss.findIndex(
|
|
@@ -15945,7 +15945,7 @@ function Nx({
|
|
|
15945
15945
|
const Ci = a !== "pivotBy" && a !== "sortBy", wi = vx(
|
|
15946
15946
|
a,
|
|
15947
15947
|
d
|
|
15948
|
-
), Si = t.memberOrder ?? "auto", ki =
|
|
15948
|
+
), Si = t.memberOrder ?? "auto", ki = Xr && a === "groupBy", Ti = !Nn && Xr && (a === "groupBy" || Cn), Mi = a === "metrics", Di = !Nn && yn === "number" && (a === "groupBy" || Cn) && Gm(d), Ba = !!(dt && Object.values(dt.comparison).some((H) => H.offered)), Ei = () => {
|
|
15949
15949
|
const H = t, Ce = a === "metrics" && bn;
|
|
15950
15950
|
return /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
15951
15951
|
!Ce && /* @__PURE__ */ e(
|
|
@@ -15993,7 +15993,7 @@ function Nx({
|
|
|
15993
15993
|
value: s || "asc",
|
|
15994
15994
|
onValueChange: (H) => l(H),
|
|
15995
15995
|
children: [
|
|
15996
|
-
/* @__PURE__ */ e(
|
|
15996
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
15997
15997
|
/* @__PURE__ */ n(ee, { children: [
|
|
15998
15998
|
/* @__PURE__ */ e($, { className: "text-xs", value: "asc", children: "Ascending" }),
|
|
15999
15999
|
/* @__PURE__ */ e($, { className: "text-xs", value: "desc", children: "Descending" })
|
|
@@ -16009,7 +16009,7 @@ function Nx({
|
|
|
16009
16009
|
value: Si,
|
|
16010
16010
|
onValueChange: (H) => ii(H),
|
|
16011
16011
|
children: [
|
|
16012
|
-
/* @__PURE__ */ e(
|
|
16012
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
16013
16013
|
/* @__PURE__ */ n(ee, { children: [
|
|
16014
16014
|
/* @__PURE__ */ e($, { className: "text-xs", value: "auto", children: "Auto" }),
|
|
16015
16015
|
/* @__PURE__ */ e($, { className: "text-xs", value: "asc", children: "Ascending" }),
|
|
@@ -16026,8 +16026,8 @@ function Nx({
|
|
|
16026
16026
|
value: Me,
|
|
16027
16027
|
onValueChange: li,
|
|
16028
16028
|
children: [
|
|
16029
|
-
/* @__PURE__ */ e(
|
|
16030
|
-
/* @__PURE__ */ e(ee, { children: Se.map((H) => /* @__PURE__ */ e($, { className: "text-xs", value: H, children:
|
|
16029
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select granularity..." }) }),
|
|
16030
|
+
/* @__PURE__ */ e(ee, { children: Se.map((H) => /* @__PURE__ */ e($, { className: "text-xs", value: H, children: Qm(H) }, H)) })
|
|
16031
16031
|
]
|
|
16032
16032
|
}
|
|
16033
16033
|
),
|
|
@@ -16043,7 +16043,7 @@ function Nx({
|
|
|
16043
16043
|
onValueChange: ri,
|
|
16044
16044
|
disabled: a === "groupBy" && !Me,
|
|
16045
16045
|
children: [
|
|
16046
|
-
/* @__PURE__ */ e(
|
|
16046
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select date format..." }) }),
|
|
16047
16047
|
/* @__PURE__ */ e(ee, { children: wn.map((H) => /* @__PURE__ */ e(
|
|
16048
16048
|
$,
|
|
16049
16049
|
{
|
|
@@ -16075,7 +16075,7 @@ function Nx({
|
|
|
16075
16075
|
] }) : null, Ri = () => Di ? /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16076
16076
|
/* @__PURE__ */ e(O, { className: "text-xs font-medium text-muted-foreground", children: "Number Format" }),
|
|
16077
16077
|
/* @__PURE__ */ e(
|
|
16078
|
-
|
|
16078
|
+
Zs,
|
|
16079
16079
|
{
|
|
16080
16080
|
field: t,
|
|
16081
16081
|
onChange: (H) => L(
|
|
@@ -16100,7 +16100,7 @@ function Nx({
|
|
|
16100
16100
|
variant: "outline",
|
|
16101
16101
|
size: "sm",
|
|
16102
16102
|
className: "h-8 w-full justify-start text-xs",
|
|
16103
|
-
onClick: () =>
|
|
16103
|
+
onClick: () => Ze(!0),
|
|
16104
16104
|
children: [
|
|
16105
16105
|
/* @__PURE__ */ e(pl, { className: "mr-2 h-3 w-3" }),
|
|
16106
16106
|
"Edit Formula"
|
|
@@ -16114,13 +16114,13 @@ function Nx({
|
|
|
16114
16114
|
W,
|
|
16115
16115
|
{
|
|
16116
16116
|
value: t.aggregate,
|
|
16117
|
-
onValueChange: (
|
|
16118
|
-
V(r,
|
|
16117
|
+
onValueChange: (Q) => {
|
|
16118
|
+
V(r, Q);
|
|
16119
16119
|
},
|
|
16120
16120
|
disabled: H,
|
|
16121
16121
|
children: [
|
|
16122
|
-
/* @__PURE__ */ e(
|
|
16123
|
-
/* @__PURE__ */ e(ee, { children: uo(t.dataType).map((
|
|
16122
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select function..." }) }),
|
|
16123
|
+
/* @__PURE__ */ e(ee, { children: uo(t.dataType).map((Q) => /* @__PURE__ */ e($, { className: "text-xs", value: Q.value, children: Q.label }, Q.value)) })
|
|
16124
16124
|
]
|
|
16125
16125
|
}
|
|
16126
16126
|
)
|
|
@@ -16128,10 +16128,10 @@ function Nx({
|
|
|
16128
16128
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16129
16129
|
/* @__PURE__ */ e(O, { className: "text-xs font-medium text-muted-foreground", children: "Number Format" }),
|
|
16130
16130
|
/* @__PURE__ */ e(
|
|
16131
|
-
|
|
16131
|
+
Zs,
|
|
16132
16132
|
{
|
|
16133
|
-
field:
|
|
16134
|
-
onChange: (
|
|
16133
|
+
field: Xe,
|
|
16134
|
+
onChange: (Q) => A(r, Q),
|
|
16135
16135
|
cardType: d,
|
|
16136
16136
|
showTitle: !1
|
|
16137
16137
|
}
|
|
@@ -16155,7 +16155,7 @@ function Nx({
|
|
|
16155
16155
|
/* @__PURE__ */ e(
|
|
16156
16156
|
_t,
|
|
16157
16157
|
{
|
|
16158
|
-
className:
|
|
16158
|
+
className: J(
|
|
16159
16159
|
"h-3 w-3 transition-transform",
|
|
16160
16160
|
pe ? "rotate-180" : ""
|
|
16161
16161
|
)
|
|
@@ -16172,26 +16172,26 @@ function Nx({
|
|
|
16172
16172
|
W,
|
|
16173
16173
|
{
|
|
16174
16174
|
value: Pt ?? "none",
|
|
16175
|
-
onValueChange: (
|
|
16175
|
+
onValueChange: (Q) => te(
|
|
16176
16176
|
r,
|
|
16177
|
-
|
|
16177
|
+
Q
|
|
16178
16178
|
),
|
|
16179
16179
|
disabled: !kn.length && !va,
|
|
16180
16180
|
children: [
|
|
16181
|
-
/* @__PURE__ */ e(
|
|
16181
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select transform..." }) }),
|
|
16182
16182
|
/* @__PURE__ */ n(ee, { children: [
|
|
16183
16183
|
/* @__PURE__ */ e($, { value: "none", children: "None" }),
|
|
16184
|
-
Object.keys(Gn).map((
|
|
16185
|
-
const ye = Tt == null ? void 0 : Tt.kinds[
|
|
16184
|
+
Object.keys(Gn).map((Q) => {
|
|
16185
|
+
const ye = Tt == null ? void 0 : Tt.kinds[Q];
|
|
16186
16186
|
return /* @__PURE__ */ e(
|
|
16187
16187
|
$,
|
|
16188
16188
|
{
|
|
16189
|
-
value:
|
|
16189
|
+
value: Q,
|
|
16190
16190
|
disabled: ye ? !ye.offered : !1,
|
|
16191
16191
|
title: ye && !ye.offered ? ye.reason : void 0,
|
|
16192
|
-
children: Gn[
|
|
16192
|
+
children: Gn[Q]
|
|
16193
16193
|
},
|
|
16194
|
-
|
|
16194
|
+
Q
|
|
16195
16195
|
);
|
|
16196
16196
|
})
|
|
16197
16197
|
] })
|
|
@@ -16209,17 +16209,17 @@ function Nx({
|
|
|
16209
16209
|
W,
|
|
16210
16210
|
{
|
|
16211
16211
|
value: ya,
|
|
16212
|
-
onValueChange: (
|
|
16212
|
+
onValueChange: (Q) => ce(r, Q),
|
|
16213
16213
|
children: [
|
|
16214
|
-
/* @__PURE__ */ e(
|
|
16215
|
-
/* @__PURE__ */ e(ee, { children: ss.filter((
|
|
16214
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select order field..." }) }),
|
|
16215
|
+
/* @__PURE__ */ e(ee, { children: ss.filter((Q) => !!Q.id).map((Q) => /* @__PURE__ */ e(
|
|
16216
16216
|
$,
|
|
16217
16217
|
{
|
|
16218
|
-
value:
|
|
16218
|
+
value: Q.id,
|
|
16219
16219
|
className: "text-xs",
|
|
16220
|
-
children:
|
|
16220
|
+
children: Q.label || Q.name
|
|
16221
16221
|
},
|
|
16222
|
-
|
|
16222
|
+
Q.id
|
|
16223
16223
|
)) })
|
|
16224
16224
|
]
|
|
16225
16225
|
}
|
|
@@ -16233,13 +16233,13 @@ function Nx({
|
|
|
16233
16233
|
W,
|
|
16234
16234
|
{
|
|
16235
16235
|
value: gi,
|
|
16236
|
-
onValueChange: (
|
|
16236
|
+
onValueChange: (Q) => z(
|
|
16237
16237
|
r,
|
|
16238
|
-
|
|
16238
|
+
Q
|
|
16239
16239
|
),
|
|
16240
16240
|
disabled: !ya,
|
|
16241
16241
|
children: [
|
|
16242
|
-
/* @__PURE__ */ e(
|
|
16242
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select direction..." }) }),
|
|
16243
16243
|
/* @__PURE__ */ n(ee, { children: [
|
|
16244
16244
|
/* @__PURE__ */ e($, { className: "text-xs", value: "asc", children: "Ascending" }),
|
|
16245
16245
|
/* @__PURE__ */ e($, { className: "text-xs", value: "desc", children: "Descending" })
|
|
@@ -16258,9 +16258,9 @@ function Nx({
|
|
|
16258
16258
|
min: 1,
|
|
16259
16259
|
className: "h-8 text-xs",
|
|
16260
16260
|
value: is,
|
|
16261
|
-
onChange: (
|
|
16261
|
+
onChange: (Q) => ae(
|
|
16262
16262
|
r,
|
|
16263
|
-
Number(
|
|
16263
|
+
Number(Q.target.value)
|
|
16264
16264
|
)
|
|
16265
16265
|
}
|
|
16266
16266
|
),
|
|
@@ -16273,9 +16273,9 @@ function Nx({
|
|
|
16273
16273
|
max: is,
|
|
16274
16274
|
className: "h-8 text-xs",
|
|
16275
16275
|
value: vi,
|
|
16276
|
-
onChange: (
|
|
16276
|
+
onChange: (Q) => ue(
|
|
16277
16277
|
r,
|
|
16278
|
-
Number(
|
|
16278
|
+
Number(Q.target.value)
|
|
16279
16279
|
)
|
|
16280
16280
|
}
|
|
16281
16281
|
)
|
|
@@ -16286,12 +16286,12 @@ function Nx({
|
|
|
16286
16286
|
W,
|
|
16287
16287
|
{
|
|
16288
16288
|
value: yi,
|
|
16289
|
-
onValueChange: (
|
|
16289
|
+
onValueChange: (Q) => xe(
|
|
16290
16290
|
r,
|
|
16291
|
-
|
|
16291
|
+
Q
|
|
16292
16292
|
),
|
|
16293
16293
|
children: [
|
|
16294
|
-
/* @__PURE__ */ e(
|
|
16294
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select output..." }) }),
|
|
16295
16295
|
/* @__PURE__ */ n(ee, { children: [
|
|
16296
16296
|
/* @__PURE__ */ e($, { value: "difference", children: "Difference" }),
|
|
16297
16297
|
/* @__PURE__ */ e($, { value: "percent_change", children: "Percent change" })
|
|
@@ -16307,12 +16307,12 @@ function Nx({
|
|
|
16307
16307
|
W,
|
|
16308
16308
|
{
|
|
16309
16309
|
value: cs,
|
|
16310
|
-
onValueChange: (
|
|
16310
|
+
onValueChange: (Q) => me(
|
|
16311
16311
|
r,
|
|
16312
|
-
|
|
16312
|
+
Q
|
|
16313
16313
|
),
|
|
16314
16314
|
children: [
|
|
16315
|
-
/* @__PURE__ */ e(
|
|
16315
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select scope..." }) }),
|
|
16316
16316
|
/* @__PURE__ */ n(ee, { children: [
|
|
16317
16317
|
/* @__PURE__ */ e($, { value: "grand_total", children: "Grand Total" }),
|
|
16318
16318
|
/* @__PURE__ */ e($, { value: "partition_total", children: "Partition Total" })
|
|
@@ -16327,12 +16327,12 @@ function Nx({
|
|
|
16327
16327
|
W,
|
|
16328
16328
|
{
|
|
16329
16329
|
value: Ni,
|
|
16330
|
-
onValueChange: (
|
|
16330
|
+
onValueChange: (Q) => Ne(
|
|
16331
16331
|
r,
|
|
16332
|
-
|
|
16332
|
+
Q
|
|
16333
16333
|
),
|
|
16334
16334
|
children: [
|
|
16335
|
-
/* @__PURE__ */ e(
|
|
16335
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select output..." }) }),
|
|
16336
16336
|
/* @__PURE__ */ n(ee, { children: [
|
|
16337
16337
|
/* @__PURE__ */ e($, { value: "percent", children: "Percent" }),
|
|
16338
16338
|
/* @__PURE__ */ e($, { value: "fraction", children: "Fraction" })
|
|
@@ -16345,26 +16345,26 @@ function Nx({
|
|
|
16345
16345
|
(Va || Pt === "percent_of_total" && cs === "partition_total") && os.length > 0 && /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16346
16346
|
/* @__PURE__ */ e(O, { className: "text-xs font-medium text-muted-foreground", children: "Reset By" }),
|
|
16347
16347
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: os.map(
|
|
16348
|
-
(
|
|
16349
|
-
const ye = !!
|
|
16348
|
+
(Q) => {
|
|
16349
|
+
const ye = !!Q.id && bi.has(Q.id);
|
|
16350
16350
|
return /* @__PURE__ */ n(
|
|
16351
16351
|
"button",
|
|
16352
16352
|
{
|
|
16353
16353
|
type: "button",
|
|
16354
|
-
onClick: () =>
|
|
16354
|
+
onClick: () => Q.id && G(
|
|
16355
16355
|
r,
|
|
16356
|
-
|
|
16356
|
+
Q.id
|
|
16357
16357
|
),
|
|
16358
|
-
className:
|
|
16358
|
+
className: J(
|
|
16359
16359
|
"flex h-7 w-full items-center justify-between rounded border px-2 text-xs",
|
|
16360
16360
|
ye ? "border-primary bg-primary/5 text-primary" : "border-border text-muted-foreground"
|
|
16361
16361
|
),
|
|
16362
16362
|
children: [
|
|
16363
|
-
/* @__PURE__ */ e("span", { children:
|
|
16363
|
+
/* @__PURE__ */ e("span", { children: Q.label || Q.name }),
|
|
16364
16364
|
ye ? /* @__PURE__ */ e(sa, { className: "h-3 w-3" }) : null
|
|
16365
16365
|
]
|
|
16366
16366
|
},
|
|
16367
|
-
|
|
16367
|
+
Q.id
|
|
16368
16368
|
);
|
|
16369
16369
|
}
|
|
16370
16370
|
) })
|
|
@@ -16379,34 +16379,34 @@ function Nx({
|
|
|
16379
16379
|
/* @__PURE__ */ n(
|
|
16380
16380
|
W,
|
|
16381
16381
|
{
|
|
16382
|
-
value:
|
|
16383
|
-
onValueChange: (
|
|
16382
|
+
value: Xe.comparison ? Xe.comparison.mode === "off" ? "off" : Xe.comparison.spec.kind : "inherit",
|
|
16383
|
+
onValueChange: (Q) => j(
|
|
16384
16384
|
r,
|
|
16385
|
-
|
|
16385
|
+
Q,
|
|
16386
16386
|
pt
|
|
16387
16387
|
),
|
|
16388
16388
|
children: [
|
|
16389
|
-
/* @__PURE__ */ e(
|
|
16389
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select comparison type..." }) }),
|
|
16390
16390
|
/* @__PURE__ */ n(ee, { children: [
|
|
16391
16391
|
/* @__PURE__ */ e($, { value: "inherit", children: "Inherit dashboard comparison (default)" }),
|
|
16392
16392
|
/* @__PURE__ */ e($, { value: "off", children: "Off" }),
|
|
16393
16393
|
[
|
|
16394
16394
|
["previous_period", "Previous Period"],
|
|
16395
16395
|
["previous_year", "Previous Year"]
|
|
16396
|
-
].map(([
|
|
16397
|
-
const
|
|
16396
|
+
].map(([Q, ye]) => {
|
|
16397
|
+
const Qe = dt == null ? void 0 : dt.comparison[Q], tt = Qe && !Qe.offered ? Qe.reason : void 0;
|
|
16398
16398
|
return /* @__PURE__ */ e(bt, { children: /* @__PURE__ */ n(mt, { children: [
|
|
16399
16399
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(
|
|
16400
16400
|
$,
|
|
16401
16401
|
{
|
|
16402
|
-
value:
|
|
16402
|
+
value: Q,
|
|
16403
16403
|
disabled: !!tt,
|
|
16404
16404
|
title: tt,
|
|
16405
16405
|
children: ye
|
|
16406
16406
|
}
|
|
16407
16407
|
) }),
|
|
16408
16408
|
tt && /* @__PURE__ */ e(ut, { side: "right", children: tt })
|
|
16409
|
-
] }) },
|
|
16409
|
+
] }) }, Q);
|
|
16410
16410
|
}),
|
|
16411
16411
|
(dt == null ? void 0 : dt.comparison.target.offered) && /* @__PURE__ */ e($, { value: "target", children: "Target" })
|
|
16412
16412
|
] })
|
|
@@ -16414,7 +16414,7 @@ function Nx({
|
|
|
16414
16414
|
}
|
|
16415
16415
|
),
|
|
16416
16416
|
dt && Object.values(dt.comparison).some(
|
|
16417
|
-
(
|
|
16417
|
+
(Q) => Q.offered && Q.replaces === "transform"
|
|
16418
16418
|
) && /* @__PURE__ */ e("p", { className: "text-[11px] leading-4 text-muted-foreground", children: "A comparison replaces this metric's transform." }),
|
|
16419
16419
|
et && et.kind !== "target" && pt.dateWindow === "none" && /* @__PURE__ */ n("p", { className: "text-[11px] leading-4 text-muted-foreground", children: [
|
|
16420
16420
|
"Shows only while a date range applies to",
|
|
@@ -16422,7 +16422,7 @@ function Nx({
|
|
|
16422
16422
|
((Ce = pt.comparisonDate) == null ? void 0 : Ce.label) ?? "its date",
|
|
16423
16423
|
"; none does yet."
|
|
16424
16424
|
] }),
|
|
16425
|
-
!
|
|
16425
|
+
!Xe.comparison && /* @__PURE__ */ e("p", { className: "text-[11px] leading-4 text-muted-foreground", children: "Dashboard comparison is not available yet. This metric will follow it when a viewer sets it." })
|
|
16426
16426
|
] }),
|
|
16427
16427
|
Ba && et && (et.kind === "previous_period" || et.kind === "previous_year") && /* @__PURE__ */ n("div", { className: "space-y-2 rounded border border-border/60 p-2", children: [
|
|
16428
16428
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
@@ -16434,8 +16434,8 @@ function Nx({
|
|
|
16434
16434
|
min: 1,
|
|
16435
16435
|
step: 1,
|
|
16436
16436
|
value: et.kind === "previous_year" ? et.offsetYears || 1 : et.offsetPeriods || 1,
|
|
16437
|
-
onChange: (
|
|
16438
|
-
const ye = Number(
|
|
16437
|
+
onChange: (Q) => {
|
|
16438
|
+
const ye = Number(Q.target.value);
|
|
16439
16439
|
!Number.isSafeInteger(ye) || ye <= 0 || (et.kind === "previous_year" ? K(
|
|
16440
16440
|
r,
|
|
16441
16441
|
{
|
|
@@ -16462,16 +16462,16 @@ function Nx({
|
|
|
16462
16462
|
W,
|
|
16463
16463
|
{
|
|
16464
16464
|
value: et.alignment || "calendar",
|
|
16465
|
-
onValueChange: (
|
|
16465
|
+
onValueChange: (Q) => K(
|
|
16466
16466
|
r,
|
|
16467
16467
|
{
|
|
16468
16468
|
...et,
|
|
16469
|
-
alignment:
|
|
16469
|
+
alignment: Q === "calendar" ? void 0 : Q
|
|
16470
16470
|
},
|
|
16471
16471
|
pt
|
|
16472
16472
|
),
|
|
16473
16473
|
children: [
|
|
16474
|
-
/* @__PURE__ */ e(
|
|
16474
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
16475
16475
|
/* @__PURE__ */ n(ee, { children: [
|
|
16476
16476
|
/* @__PURE__ */ e($, { value: "calendar", children: "Calendar" }),
|
|
16477
16477
|
/* @__PURE__ */ e($, { value: "weekday", children: "Match weekdays" })
|
|
@@ -16490,11 +16490,11 @@ function Nx({
|
|
|
16490
16490
|
{
|
|
16491
16491
|
size: "xs",
|
|
16492
16492
|
checked: et.toDate === !0,
|
|
16493
|
-
onCheckedChange: (
|
|
16493
|
+
onCheckedChange: (Q) => K(
|
|
16494
16494
|
r,
|
|
16495
16495
|
{
|
|
16496
16496
|
...et,
|
|
16497
|
-
toDate:
|
|
16497
|
+
toDate: Q ? !0 : void 0
|
|
16498
16498
|
},
|
|
16499
16499
|
pt
|
|
16500
16500
|
)
|
|
@@ -16513,14 +16513,14 @@ function Nx({
|
|
|
16513
16513
|
/* @__PURE__ */ n(
|
|
16514
16514
|
W,
|
|
16515
16515
|
{
|
|
16516
|
-
value: mh(
|
|
16517
|
-
disabled: !!
|
|
16518
|
-
onValueChange: (
|
|
16516
|
+
value: mh(Xe),
|
|
16517
|
+
disabled: !!Xe.semanticComparisonPolarity,
|
|
16518
|
+
onValueChange: (Q) => le(
|
|
16519
16519
|
r,
|
|
16520
|
-
|
|
16520
|
+
Q
|
|
16521
16521
|
),
|
|
16522
16522
|
children: [
|
|
16523
|
-
/* @__PURE__ */ e(
|
|
16523
|
+
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
16524
16524
|
/* @__PURE__ */ n(ee, { children: [
|
|
16525
16525
|
/* @__PURE__ */ e($, { value: "higher_is_better", children: "Higher is better" }),
|
|
16526
16526
|
/* @__PURE__ */ e($, { value: "lower_is_better", children: "Lower is better" }),
|
|
@@ -16529,17 +16529,17 @@ function Nx({
|
|
|
16529
16529
|
]
|
|
16530
16530
|
}
|
|
16531
16531
|
),
|
|
16532
|
-
|
|
16532
|
+
Xe.semanticComparisonPolarity && /* @__PURE__ */ e("p", { className: "text-[11px] leading-4 text-muted-foreground", children: "Governed by this metric's semantic definition." })
|
|
16533
16533
|
] }),
|
|
16534
|
-
Ba && ((be =
|
|
16534
|
+
Ba && ((be = Xe.comparison) == null ? void 0 : be.mode) === "explicit" && Xe.comparison.spec.kind === "target" && /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16535
16535
|
/* @__PURE__ */ e(O, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
|
|
16536
16536
|
/* @__PURE__ */ e(
|
|
16537
16537
|
Ae,
|
|
16538
16538
|
{
|
|
16539
16539
|
type: "number",
|
|
16540
|
-
value:
|
|
16541
|
-
onChange: (
|
|
16542
|
-
const ye =
|
|
16540
|
+
value: Xe.comparison.spec.targetValue !== void 0 && Xe.comparison.spec.targetValue !== null ? String(Xe.comparison.spec.targetValue) : "",
|
|
16541
|
+
onChange: (Q) => {
|
|
16542
|
+
const ye = Q.target.value;
|
|
16543
16543
|
if (ye === "") {
|
|
16544
16544
|
Te(
|
|
16545
16545
|
r,
|
|
@@ -16548,10 +16548,10 @@ function Nx({
|
|
|
16548
16548
|
);
|
|
16549
16549
|
return;
|
|
16550
16550
|
}
|
|
16551
|
-
const
|
|
16551
|
+
const Qe = Number(ye);
|
|
16552
16552
|
Te(
|
|
16553
16553
|
r,
|
|
16554
|
-
Number.isFinite(
|
|
16554
|
+
Number.isFinite(Qe) ? Qe : void 0,
|
|
16555
16555
|
pt
|
|
16556
16556
|
);
|
|
16557
16557
|
},
|
|
@@ -16562,21 +16562,21 @@ function Nx({
|
|
|
16562
16562
|
] }),
|
|
16563
16563
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
16564
16564
|
/* @__PURE__ */ e(O, { className: "text-xs font-medium text-muted-foreground", children: "Attribute Filters" }),
|
|
16565
|
-
(Ge == null ? void 0 : Ge.conditions) && Ge.conditions.length > 0 && /* @__PURE__ */ e("div", { className: "mb-2 space-y-1", children: Ge.conditions.map((
|
|
16565
|
+
(Ge == null ? void 0 : Ge.conditions) && Ge.conditions.length > 0 && /* @__PURE__ */ e("div", { className: "mb-2 space-y-1", children: Ge.conditions.map((Q) => /* @__PURE__ */ n(
|
|
16566
16566
|
"div",
|
|
16567
16567
|
{
|
|
16568
16568
|
className: "flex cursor-pointer items-center gap-2 rounded bg-muted/50 p-2 text-xs transition-colors hover:bg-muted/70",
|
|
16569
16569
|
onClick: () => {
|
|
16570
|
-
ot(
|
|
16570
|
+
ot(Q), Ue(!0);
|
|
16571
16571
|
},
|
|
16572
16572
|
children: [
|
|
16573
16573
|
/* @__PURE__ */ n("span", { className: "font-medium", children: [
|
|
16574
|
-
|
|
16574
|
+
Q.field.label,
|
|
16575
16575
|
":"
|
|
16576
16576
|
] }),
|
|
16577
16577
|
/* @__PURE__ */ e(bt, { children: /* @__PURE__ */ n(mt, { children: [
|
|
16578
|
-
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "cursor-help text-muted-foreground", children: Array.isArray(
|
|
16579
|
-
Array.isArray(
|
|
16578
|
+
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "cursor-help text-muted-foreground", children: Array.isArray(Q.value) ? Q.value.length === 1 ? String(Q.value[0]) : Q.value.length <= 2 ? Q.value.join(", ") : `${Q.value.slice(0, 2).join(", ")} +${Q.value.length - 2}` : String(Q.value) }) }),
|
|
16579
|
+
Array.isArray(Q.value) && Q.value.length > 1 && /* @__PURE__ */ e(
|
|
16580
16580
|
ut,
|
|
16581
16581
|
{
|
|
16582
16582
|
side: "top",
|
|
@@ -16584,10 +16584,10 @@ function Nx({
|
|
|
16584
16584
|
children: /* @__PURE__ */ n("div", { className: "text-xs", children: [
|
|
16585
16585
|
/* @__PURE__ */ n("div", { className: "mb-1 font-medium", children: [
|
|
16586
16586
|
"Selected values (",
|
|
16587
|
-
|
|
16587
|
+
Q.value.length,
|
|
16588
16588
|
"):"
|
|
16589
16589
|
] }),
|
|
16590
|
-
/* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-y-auto", children:
|
|
16590
|
+
/* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-y-auto", children: Q.value.map((ye, Qe) => /* @__PURE__ */ e("div", { children: String(ye) }, Qe)) })
|
|
16591
16591
|
] })
|
|
16592
16592
|
}
|
|
16593
16593
|
)
|
|
@@ -16601,13 +16601,13 @@ function Nx({
|
|
|
16601
16601
|
onClick: (ye) => {
|
|
16602
16602
|
var tt;
|
|
16603
16603
|
ye.stopPropagation();
|
|
16604
|
-
const
|
|
16605
|
-
(Rt) => Rt.id !==
|
|
16604
|
+
const Qe = Ge.conditions.filter(
|
|
16605
|
+
(Rt) => Rt.id !== Q.id
|
|
16606
16606
|
);
|
|
16607
|
-
if (
|
|
16607
|
+
if (Qe.length > 0) {
|
|
16608
16608
|
const Rt = {
|
|
16609
16609
|
...Ge,
|
|
16610
|
-
conditions:
|
|
16610
|
+
conditions: Qe
|
|
16611
16611
|
};
|
|
16612
16612
|
Wr(Rt);
|
|
16613
16613
|
} else if (gn(void 0), a === "metrics") {
|
|
@@ -16630,7 +16630,7 @@ function Nx({
|
|
|
16630
16630
|
)
|
|
16631
16631
|
]
|
|
16632
16632
|
},
|
|
16633
|
-
|
|
16633
|
+
Q.id
|
|
16634
16634
|
)) }),
|
|
16635
16635
|
/* @__PURE__ */ n(
|
|
16636
16636
|
ne,
|
|
@@ -16739,10 +16739,10 @@ function Nx({
|
|
|
16739
16739
|
}
|
|
16740
16740
|
),
|
|
16741
16741
|
vt && a === "metrics" && bn && /* @__PURE__ */ e(
|
|
16742
|
-
|
|
16742
|
+
Jl,
|
|
16743
16743
|
{
|
|
16744
16744
|
open: vt,
|
|
16745
|
-
onOpenChange:
|
|
16745
|
+
onOpenChange: Ze,
|
|
16746
16746
|
availableFields: S,
|
|
16747
16747
|
existingField: _a,
|
|
16748
16748
|
existingFieldScope: ia,
|
|
@@ -16755,23 +16755,23 @@ function Nx({
|
|
|
16755
16755
|
card: Ce,
|
|
16756
16756
|
frame: De,
|
|
16757
16757
|
actions: be
|
|
16758
|
-
} = F.getState(),
|
|
16758
|
+
} = F.getState(), Q = ia === "dashboard" ? C : De.calculatedFields || [], {
|
|
16759
16759
|
cardConfigPatch: ye,
|
|
16760
|
-
nextStoredFields:
|
|
16760
|
+
nextStoredFields: Qe,
|
|
16761
16761
|
nextSharedFields: tt
|
|
16762
|
-
} =
|
|
16762
|
+
} = Zl({
|
|
16763
16763
|
cardConfig: Ce.config,
|
|
16764
16764
|
storedFields: Ce.calculatedFields || [],
|
|
16765
|
-
sharedFields:
|
|
16765
|
+
sharedFields: Q,
|
|
16766
16766
|
updatedField: H,
|
|
16767
16767
|
editingField: _a,
|
|
16768
16768
|
previousScope: ia
|
|
16769
16769
|
});
|
|
16770
16770
|
Object.keys(ye).length && be.updateCardConfig(o.id, ye), be.updateCard(o.id, {
|
|
16771
|
-
calculatedFields:
|
|
16772
|
-
}), ia === "dashboard" && tt !==
|
|
16771
|
+
calculatedFields: Qe
|
|
16772
|
+
}), ia === "dashboard" && tt !== Q ? p(tt) : tt !== Q && $a({
|
|
16773
16773
|
nextSharedFields: tt,
|
|
16774
|
-
currentSharedFields:
|
|
16774
|
+
currentSharedFields: Q,
|
|
16775
16775
|
isVisualEditing: f,
|
|
16776
16776
|
selectedSheetId: u,
|
|
16777
16777
|
updateFrame: be.updateFrame,
|
|
@@ -16784,22 +16784,22 @@ function Nx({
|
|
|
16784
16784
|
card: Ce,
|
|
16785
16785
|
frame: De,
|
|
16786
16786
|
actions: be
|
|
16787
|
-
} = F.getState(),
|
|
16788
|
-
cardConfigPatch:
|
|
16787
|
+
} = F.getState(), Q = t, ye = De.calculatedFields || [], {
|
|
16788
|
+
cardConfigPatch: Qe,
|
|
16789
16789
|
nextStoredFields: tt,
|
|
16790
16790
|
nextSheetFields: Rt,
|
|
16791
16791
|
nextDashboardFields: Mt
|
|
16792
|
-
} =
|
|
16792
|
+
} = Xl({
|
|
16793
16793
|
cardConfig: Ce.config,
|
|
16794
16794
|
storedFields: Ce.calculatedFields || [],
|
|
16795
16795
|
sheetFields: ye,
|
|
16796
16796
|
dashboardFields: C,
|
|
16797
16797
|
updatedField: {
|
|
16798
16798
|
...H,
|
|
16799
|
-
id:
|
|
16800
|
-
aliasTemplate:
|
|
16801
|
-
valueAliases:
|
|
16802
|
-
parameters:
|
|
16799
|
+
id: Q.id,
|
|
16800
|
+
aliasTemplate: Q.aliasTemplate,
|
|
16801
|
+
valueAliases: Q.valueAliases,
|
|
16802
|
+
parameters: Q.parameters
|
|
16803
16803
|
},
|
|
16804
16804
|
editingField: _a,
|
|
16805
16805
|
previousScope: ia
|
|
@@ -16811,7 +16811,7 @@ function Nx({
|
|
|
16811
16811
|
selectedSheetId: u,
|
|
16812
16812
|
updateFrame: be.updateFrame,
|
|
16813
16813
|
updateSheetCalculatedFields: m
|
|
16814
|
-
}), Mt && Mt !== C && p(Mt), Object.keys(
|
|
16814
|
+
}), Mt && Mt !== C && p(Mt), Object.keys(Qe).length && be.updateCardConfig(o.id, Qe), be.updateCard(o.id, {
|
|
16815
16815
|
calculatedFields: tt
|
|
16816
16816
|
});
|
|
16817
16817
|
},
|
|
@@ -16821,8 +16821,8 @@ function Nx({
|
|
|
16821
16821
|
card: Ce,
|
|
16822
16822
|
frame: De,
|
|
16823
16823
|
actions: be
|
|
16824
|
-
} = F.getState(),
|
|
16825
|
-
cardConfigPatch:
|
|
16824
|
+
} = F.getState(), Q = t, ye = De.calculatedFields || [], {
|
|
16825
|
+
cardConfigPatch: Qe,
|
|
16826
16826
|
nextStoredFields: tt,
|
|
16827
16827
|
nextSharedFields: Rt,
|
|
16828
16828
|
nextSheetFields: Mt
|
|
@@ -16833,10 +16833,10 @@ function Nx({
|
|
|
16833
16833
|
sheetFields: ye,
|
|
16834
16834
|
updatedField: {
|
|
16835
16835
|
...H,
|
|
16836
|
-
id:
|
|
16837
|
-
aliasTemplate:
|
|
16838
|
-
valueAliases:
|
|
16839
|
-
parameters:
|
|
16836
|
+
id: Q.id,
|
|
16837
|
+
aliasTemplate: Q.aliasTemplate,
|
|
16838
|
+
valueAliases: Q.valueAliases,
|
|
16839
|
+
parameters: Q.parameters
|
|
16840
16840
|
},
|
|
16841
16841
|
editingField: _a,
|
|
16842
16842
|
previousScope: ia
|
|
@@ -16848,7 +16848,7 @@ function Nx({
|
|
|
16848
16848
|
selectedSheetId: u,
|
|
16849
16849
|
updateFrame: be.updateFrame,
|
|
16850
16850
|
updateSheetCalculatedFields: m
|
|
16851
|
-
}), Object.keys(
|
|
16851
|
+
}), Object.keys(Qe).length && be.updateCardConfig(o.id, Qe), be.updateCard(o.id, {
|
|
16852
16852
|
calculatedFields: tt
|
|
16853
16853
|
});
|
|
16854
16854
|
},
|
|
@@ -16937,7 +16937,7 @@ function kx({
|
|
|
16937
16937
|
["North", "South", "East"].map((c) => /* @__PURE__ */ e(
|
|
16938
16938
|
"th",
|
|
16939
16939
|
{
|
|
16940
|
-
className:
|
|
16940
|
+
className: J(
|
|
16941
16941
|
"px-1.5 py-1 text-center font-normal text-muted-foreground",
|
|
16942
16942
|
a && l
|
|
16943
16943
|
),
|
|
@@ -16949,14 +16949,14 @@ function kx({
|
|
|
16949
16949
|
/* @__PURE__ */ e("tbody", { children: ll.map((c, d) => /* @__PURE__ */ n(
|
|
16950
16950
|
"tr",
|
|
16951
16951
|
{
|
|
16952
|
-
className:
|
|
16952
|
+
className: J(
|
|
16953
16953
|
d !== ll.length - 1 && "border-b border-border/60"
|
|
16954
16954
|
),
|
|
16955
16955
|
children: [
|
|
16956
16956
|
/* @__PURE__ */ e(
|
|
16957
16957
|
"td",
|
|
16958
16958
|
{
|
|
16959
|
-
className:
|
|
16959
|
+
className: J(
|
|
16960
16960
|
"px-1.5 py-1 text-left text-muted-foreground",
|
|
16961
16961
|
r && l
|
|
16962
16962
|
),
|
|
@@ -16966,7 +16966,7 @@ function kx({
|
|
|
16966
16966
|
c.values.map((o, i) => /* @__PURE__ */ e(
|
|
16967
16967
|
"td",
|
|
16968
16968
|
{
|
|
16969
|
-
className:
|
|
16969
|
+
className: J(
|
|
16970
16970
|
"px-1.5 py-1 text-right font-mono tabular-nums text-muted-foreground",
|
|
16971
16971
|
s && l
|
|
16972
16972
|
),
|
|
@@ -16986,7 +16986,7 @@ const ll = [
|
|
|
16986
16986
|
], Tx = {
|
|
16987
16987
|
groupBy: Rl,
|
|
16988
16988
|
pivotBy: Pl,
|
|
16989
|
-
metrics:
|
|
16989
|
+
metrics: Jh,
|
|
16990
16990
|
detailColumns: to,
|
|
16991
16991
|
sortBy: wo
|
|
16992
16992
|
};
|
|
@@ -17006,7 +17006,7 @@ function Ta({
|
|
|
17006
17006
|
zone: a,
|
|
17007
17007
|
pillIds: r.map((g) => g.id)
|
|
17008
17008
|
}
|
|
17009
|
-
}), i = zi(a), { updateSortByColumn: f } = ve(), u = F((g) => g.card), m = F((g) => g.card.type), p = r.length > 0, h = i !== null, C = (i == null ? void 0 : i.kind) !== "refused", S = (i == null ? void 0 : i.kind) === "refused" ?
|
|
17009
|
+
}), i = zi(a), { updateSortByColumn: f } = ve(), u = F((g) => g.card), m = F((g) => g.card.type), p = r.length > 0, h = i !== null, C = (i == null ? void 0 : i.kind) !== "refused", S = (i == null ? void 0 : i.kind) === "refused" ? Zd(i.notice, s) : null, x = xt((g, E) => {
|
|
17010
17010
|
var R;
|
|
17011
17011
|
!((R = u.config) != null && R.sortByColumns) || u.config.sortByColumns.findIndex(
|
|
17012
17012
|
(_) => _.id === g
|
|
@@ -17057,7 +17057,7 @@ function Ta({
|
|
|
17057
17057
|
/* @__PURE__ */ e(
|
|
17058
17058
|
"div",
|
|
17059
17059
|
{
|
|
17060
|
-
className:
|
|
17060
|
+
className: J(
|
|
17061
17061
|
"rounded-control transition-colors",
|
|
17062
17062
|
// While drop-active we use border/bg feedback; otherwise the
|
|
17063
17063
|
// empty state borrows hairline + dashed and the populated
|
|
@@ -17091,7 +17091,7 @@ function Mx({
|
|
|
17091
17091
|
{
|
|
17092
17092
|
"aria-hidden": !0,
|
|
17093
17093
|
"data-shelf-insertion-line": s,
|
|
17094
|
-
className:
|
|
17094
|
+
className: J(
|
|
17095
17095
|
"pointer-events-none absolute inset-x-0 z-10 flex h-1.5 items-center",
|
|
17096
17096
|
s === "top" ? "-top-[5px]" : "-bottom-[5px]"
|
|
17097
17097
|
),
|
|
@@ -17134,8 +17134,8 @@ function Ix({ words: t }) {
|
|
|
17134
17134
|
/* @__PURE__ */ e("div", { className: "text-[11px] text-muted-foreground", children: t.field.from })
|
|
17135
17135
|
] }) : /* @__PURE__ */ e("div", { className: "text-muted-foreground", children: "No date" })
|
|
17136
17136
|
] }),
|
|
17137
|
-
t.windows.length > 0 && /* @__PURE__ */ e("div", { className: "space-y-2 border-b border-border/70 px-2.5 py-2", children: t.windows.map((a) => /* @__PURE__ */ n("div", { className:
|
|
17138
|
-
/* @__PURE__ */ e("div", { className:
|
|
17137
|
+
t.windows.length > 0 && /* @__PURE__ */ e("div", { className: "space-y-2 border-b border-border/70 px-2.5 py-2", children: t.windows.map((a) => /* @__PURE__ */ n("div", { className: J(!a.applied && "opacity-50"), children: [
|
|
17138
|
+
/* @__PURE__ */ e("div", { className: J("leading-tight", !a.applied && "line-through"), children: a.text }),
|
|
17139
17139
|
/* @__PURE__ */ e("div", { className: "text-[11px] leading-tight text-muted-foreground", children: a.from })
|
|
17140
17140
|
] }, `${a.text}|${a.from}`)) }),
|
|
17141
17141
|
/* @__PURE__ */ n("div", { className: "space-y-2 px-2.5 py-2", children: [
|
|
@@ -17152,12 +17152,12 @@ function Ix({ words: t }) {
|
|
|
17152
17152
|
"div",
|
|
17153
17153
|
{
|
|
17154
17154
|
"data-role": "kpi-date-note",
|
|
17155
|
-
className:
|
|
17155
|
+
className: J(
|
|
17156
17156
|
"flex gap-1.5 border-t px-2.5 py-2 text-[11.5px] leading-snug",
|
|
17157
17157
|
t.note.tone === "warn" ? "border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200" : "border-border/70 text-muted-foreground"
|
|
17158
17158
|
),
|
|
17159
17159
|
children: [
|
|
17160
|
-
t.note.tone === "warn" ? /* @__PURE__ */ e(cr, { className: "mt-0.5 h-3.5 w-3.5 shrink-0", "aria-hidden": !0 }) : /* @__PURE__ */ e(
|
|
17160
|
+
t.note.tone === "warn" ? /* @__PURE__ */ e(cr, { className: "mt-0.5 h-3.5 w-3.5 shrink-0", "aria-hidden": !0 }) : /* @__PURE__ */ e(Zt, { className: "mt-0.5 h-3.5 w-3.5 shrink-0", "aria-hidden": !0 }),
|
|
17161
17161
|
/* @__PURE__ */ e("span", { children: t.note.text })
|
|
17162
17162
|
]
|
|
17163
17163
|
}
|
|
@@ -17192,7 +17192,7 @@ function Px({
|
|
|
17192
17192
|
}
|
|
17193
17193
|
), C = oa(m, h) === "multiple";
|
|
17194
17194
|
C && ((G = m == null ? void 0 : m.customCardPreferences) != null && G.url);
|
|
17195
|
-
const S =
|
|
17195
|
+
const S = Xm(h == null ? void 0 : h.slots);
|
|
17196
17196
|
F(
|
|
17197
17197
|
(ae) => ae.actions.updateCardConfig
|
|
17198
17198
|
);
|
|
@@ -17315,7 +17315,7 @@ function Px({
|
|
|
17315
17315
|
),
|
|
17316
17316
|
j ? /* @__PURE__ */ e(Ex, { card: f, metric: l[0], children: (ae) => te(ae) }) : te(void 0),
|
|
17317
17317
|
/* @__PURE__ */ e(
|
|
17318
|
-
|
|
17318
|
+
Jl,
|
|
17319
17319
|
{
|
|
17320
17320
|
open: o,
|
|
17321
17321
|
onOpenChange: i,
|
|
@@ -17324,7 +17324,7 @@ function Px({
|
|
|
17324
17324
|
allowedFieldTypes: ["metric"],
|
|
17325
17325
|
onSave: (ae) => {
|
|
17326
17326
|
if (ae.role !== "metric") return;
|
|
17327
|
-
const { nextStoredFields: ue } =
|
|
17327
|
+
const { nextStoredFields: ue } = Zl({
|
|
17328
17328
|
storedFields: f.calculatedFields || [],
|
|
17329
17329
|
sharedFields: u.calculatedFields || [],
|
|
17330
17330
|
updatedField: ae,
|
|
@@ -17336,7 +17336,7 @@ function Px({
|
|
|
17336
17336
|
},
|
|
17337
17337
|
onSaveToSheet: (ae) => {
|
|
17338
17338
|
if (ae.role !== "metric") return;
|
|
17339
|
-
const ue = u.calculatedFields || [], { nextSheetFields: xe } =
|
|
17339
|
+
const ue = u.calculatedFields || [], { nextSheetFields: xe } = Xl({
|
|
17340
17340
|
storedFields: f.calculatedFields || [],
|
|
17341
17341
|
sheetFields: ue,
|
|
17342
17342
|
updatedField: ae,
|
|
@@ -17390,7 +17390,7 @@ function Rx() {
|
|
|
17390
17390
|
v && r && /* @__PURE__ */ e(
|
|
17391
17391
|
"div",
|
|
17392
17392
|
{
|
|
17393
|
-
className:
|
|
17393
|
+
className: J(
|
|
17394
17394
|
"overflow-y-auto border-b border-border px-4",
|
|
17395
17395
|
a ? "max-h-[72vh]" : "max-h-[50vh]"
|
|
17396
17396
|
),
|
|
@@ -17419,7 +17419,7 @@ function Rx() {
|
|
|
17419
17419
|
/* @__PURE__ */ e(
|
|
17420
17420
|
_t,
|
|
17421
17421
|
{
|
|
17422
|
-
className:
|
|
17422
|
+
className: J(
|
|
17423
17423
|
"h-3 w-3 text-muted-foreground transition-transform",
|
|
17424
17424
|
r && "rotate-180"
|
|
17425
17425
|
),
|
|
@@ -17435,7 +17435,7 @@ function Rx() {
|
|
|
17435
17435
|
{
|
|
17436
17436
|
type: "button",
|
|
17437
17437
|
onClick: () => c((E) => !E),
|
|
17438
|
-
className:
|
|
17438
|
+
className: J(
|
|
17439
17439
|
"flex w-full items-center justify-between px-4 py-2.5 text-left transition-colors hover:bg-muted/50",
|
|
17440
17440
|
v && "border-t border-border"
|
|
17441
17441
|
),
|
|
@@ -17447,7 +17447,7 @@ function Rx() {
|
|
|
17447
17447
|
/* @__PURE__ */ e(
|
|
17448
17448
|
_t,
|
|
17449
17449
|
{
|
|
17450
|
-
className:
|
|
17450
|
+
className: J(
|
|
17451
17451
|
"h-3 w-3 text-muted-foreground transition-transform",
|
|
17452
17452
|
l && "rotate-180"
|
|
17453
17453
|
),
|
|
@@ -17781,7 +17781,7 @@ function Vx({
|
|
|
17781
17781
|
at,
|
|
17782
17782
|
{
|
|
17783
17783
|
value: f.id,
|
|
17784
|
-
className:
|
|
17784
|
+
className: J(
|
|
17785
17785
|
"px-0 text-[13px]",
|
|
17786
17786
|
// Override the underline variant's muted/foreground ramp on
|
|
17787
17787
|
// every axis, so the tint holds whether the tab is at rest,
|
|
@@ -17814,14 +17814,14 @@ function Kx() {
|
|
|
17814
17814
|
onValueChange: (l) => a(t.id, parseInt(l)),
|
|
17815
17815
|
children: [
|
|
17816
17816
|
/* @__PURE__ */ n(
|
|
17817
|
-
|
|
17817
|
+
X,
|
|
17818
17818
|
{
|
|
17819
17819
|
size: "xs",
|
|
17820
17820
|
"aria-label": "Row limit",
|
|
17821
17821
|
className: "h-6 w-auto gap-1 rounded-control border-transparent bg-transparent px-1.5 py-0 text-[11px] text-muted-foreground shadow-none transition-colors hover:bg-accent hover:text-accent-foreground [&>svg]:h-3 [&>svg]:w-3",
|
|
17822
17822
|
children: [
|
|
17823
17823
|
/* @__PURE__ */ e("span", { children: "Limit" }),
|
|
17824
|
-
/* @__PURE__ */ e("span", { className: "font-medium tabular-nums text-foreground", children: /* @__PURE__ */ e(
|
|
17824
|
+
/* @__PURE__ */ e("span", { className: "font-medium tabular-nums text-foreground", children: /* @__PURE__ */ e(Z, {}) })
|
|
17825
17825
|
]
|
|
17826
17826
|
}
|
|
17827
17827
|
),
|
|
@@ -17969,7 +17969,7 @@ function Gx({
|
|
|
17969
17969
|
visible: a
|
|
17970
17970
|
}) {
|
|
17971
17971
|
const r = fe((o) => o.selectedFrameId), s = uu((o) => o.selectedVisual), l = F((o) => o.frame), d = !!!(l != null && l.visualId || s != null && s.id) && !!r;
|
|
17972
|
-
return !a || d ? null : /* @__PURE__ */ e("div", { className:
|
|
17972
|
+
return !a || d ? null : /* @__PURE__ */ e("div", { className: J("flex", t), children: /* @__PURE__ */ e(
|
|
17973
17973
|
go,
|
|
17974
17974
|
{
|
|
17975
17975
|
showLabel: !0,
|
|
@@ -17977,7 +17977,7 @@ function Gx({
|
|
|
17977
17977
|
}
|
|
17978
17978
|
) });
|
|
17979
17979
|
}
|
|
17980
|
-
function
|
|
17980
|
+
function Qx({
|
|
17981
17981
|
// selectedChart,
|
|
17982
17982
|
activeView: t,
|
|
17983
17983
|
onViewChange: a,
|
|
@@ -18074,7 +18074,7 @@ function Jx({
|
|
|
18074
18074
|
var pe;
|
|
18075
18075
|
return mu((pe = l.config) == null ? void 0 : pe.sortByColumns);
|
|
18076
18076
|
}, [(He = l.config) == null ? void 0 : He.sortByColumns]), Ye = hu(
|
|
18077
|
-
|
|
18077
|
+
Za(s) || null
|
|
18078
18078
|
);
|
|
18079
18079
|
return /* @__PURE__ */ e("div", { className: "relative flex w-0 grow flex-col", children: /* @__PURE__ */ n("div", { className: "group/visualization relative flex h-full max-w-full grow flex-col", children: [
|
|
18080
18080
|
/* @__PURE__ */ n("div", { className: "flex h-11 items-center gap-3 border-b border-border px-4", children: [
|
|
@@ -18102,7 +18102,7 @@ function Jx({
|
|
|
18102
18102
|
gu,
|
|
18103
18103
|
{
|
|
18104
18104
|
cardId: s.id,
|
|
18105
|
-
cardFilters:
|
|
18105
|
+
cardFilters: Za(s),
|
|
18106
18106
|
cardFilterCount: Ye,
|
|
18107
18107
|
onFiltersClick: r,
|
|
18108
18108
|
inlineFilters: s.inlineFilters,
|
|
@@ -18185,7 +18185,7 @@ function Jx({
|
|
|
18185
18185
|
}
|
|
18186
18186
|
),
|
|
18187
18187
|
I && /* @__PURE__ */ n(Dt, { onClick: xe, children: [
|
|
18188
|
-
g ? /* @__PURE__ */ e(qh, { className: "h-3.5 w-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(
|
|
18188
|
+
g ? /* @__PURE__ */ e(qh, { className: "h-3.5 w-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(Xh, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
18189
18189
|
g ? "Hide results table" : "Show results table"
|
|
18190
18190
|
] }),
|
|
18191
18191
|
z && /* @__PURE__ */ n(
|
|
@@ -18195,7 +18195,7 @@ function Jx({
|
|
|
18195
18195
|
title: z.hasDelivery ? void 0 : "Available once the preview has loaded.",
|
|
18196
18196
|
onClick: () => ue(z.readDelivery()),
|
|
18197
18197
|
children: [
|
|
18198
|
-
/* @__PURE__ */ e(
|
|
18198
|
+
/* @__PURE__ */ e(Jn, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
18199
18199
|
"Download"
|
|
18200
18200
|
]
|
|
18201
18201
|
}
|
|
@@ -18302,7 +18302,7 @@ function Jx({
|
|
|
18302
18302
|
)
|
|
18303
18303
|
] }) });
|
|
18304
18304
|
}
|
|
18305
|
-
function
|
|
18305
|
+
function Jx({ activeField: t }) {
|
|
18306
18306
|
const [a, r] = U(!0);
|
|
18307
18307
|
if (we(() => {
|
|
18308
18308
|
t && r(!0);
|
|
@@ -18321,9 +18321,9 @@ function Qx({ activeField: t }) {
|
|
|
18321
18321
|
}
|
|
18322
18322
|
function Wx() {
|
|
18323
18323
|
const { active: t } = xu(), a = t == null ? void 0 : t.data.current;
|
|
18324
|
-
return /* @__PURE__ */ e(
|
|
18324
|
+
return /* @__PURE__ */ e(Jx, { activeField: (a == null ? void 0 : a.field) ?? null });
|
|
18325
18325
|
}
|
|
18326
|
-
const
|
|
18326
|
+
const Xx = () => {
|
|
18327
18327
|
const t = console.error;
|
|
18328
18328
|
console.error = (...s) => {
|
|
18329
18329
|
s.length > 0 && typeof s[0] == "string" && s[0].includes(
|
|
@@ -18350,11 +18350,11 @@ const Zx = () => {
|
|
|
18350
18350
|
);
|
|
18351
18351
|
};
|
|
18352
18352
|
};
|
|
18353
|
-
function
|
|
18353
|
+
function Zx() {
|
|
18354
18354
|
const [t, a] = U(
|
|
18355
18355
|
"chart"
|
|
18356
18356
|
), [r, s] = U(!1), [l, c] = U(!0), [d, o] = U(!0), i = fe((te) => te.isVisualEditing), f = _r(), u = F((te) => te.card.type);
|
|
18357
|
-
we(() =>
|
|
18357
|
+
we(() => Xx(), []);
|
|
18358
18358
|
const m = (te) => {
|
|
18359
18359
|
f(te);
|
|
18360
18360
|
}, p = F((te) => te.frame), h = F((te) => te.card);
|
|
@@ -18376,7 +18376,7 @@ function Xx() {
|
|
|
18376
18376
|
previewFieldPlacement: y,
|
|
18377
18377
|
removeField: P,
|
|
18378
18378
|
resetFields: V
|
|
18379
|
-
} =
|
|
18379
|
+
} = Ql(R, g), {
|
|
18380
18380
|
dropStore: q,
|
|
18381
18381
|
handleDragStart: L,
|
|
18382
18382
|
handleDragMove: b,
|
|
@@ -18397,7 +18397,7 @@ function Xx() {
|
|
|
18397
18397
|
return te.groups.forEach((z) => {
|
|
18398
18398
|
ce += K(z);
|
|
18399
18399
|
}), ce;
|
|
18400
|
-
}, le = K(
|
|
18400
|
+
}, le = K(Za(R) || null);
|
|
18401
18401
|
return /* @__PURE__ */ n(
|
|
18402
18402
|
Al,
|
|
18403
18403
|
{
|
|
@@ -18436,7 +18436,7 @@ function Xx() {
|
|
|
18436
18436
|
}
|
|
18437
18437
|
),
|
|
18438
18438
|
/* @__PURE__ */ e(
|
|
18439
|
-
|
|
18439
|
+
Qx,
|
|
18440
18440
|
{
|
|
18441
18441
|
selectedChart: u,
|
|
18442
18442
|
activeView: t,
|
|
@@ -18468,7 +18468,7 @@ function Xx() {
|
|
|
18468
18468
|
Yx,
|
|
18469
18469
|
{
|
|
18470
18470
|
cardId: R.id,
|
|
18471
|
-
filters:
|
|
18471
|
+
filters: Za(R) || null,
|
|
18472
18472
|
onFiltersChange: A,
|
|
18473
18473
|
onClearFilters: B,
|
|
18474
18474
|
availableFields: j,
|
|
@@ -18509,7 +18509,7 @@ function eb({ authToken: t, onSave: a, onClose: r }) {
|
|
|
18509
18509
|
{
|
|
18510
18510
|
"data-content": "explorer",
|
|
18511
18511
|
className: "min-w-[510px] flex-1 basis-0 overflow-hidden",
|
|
18512
|
-
children: /* @__PURE__ */ e(
|
|
18512
|
+
children: /* @__PURE__ */ e(Zx, {})
|
|
18513
18513
|
}
|
|
18514
18514
|
) });
|
|
18515
18515
|
}
|
|
@@ -18557,7 +18557,7 @@ function Ib() {
|
|
|
18557
18557
|
}
|
|
18558
18558
|
)) == null ? void 0 : g.id, x = C ? t : S || null;
|
|
18559
18559
|
if (!x) return;
|
|
18560
|
-
const v =
|
|
18560
|
+
const v = Zm(a, h.id);
|
|
18561
18561
|
try {
|
|
18562
18562
|
const E = await u(h, {
|
|
18563
18563
|
previousFrame: v
|
|
@@ -18582,7 +18582,7 @@ function Ib() {
|
|
|
18582
18582
|
"div",
|
|
18583
18583
|
{
|
|
18584
18584
|
role: "editor-container",
|
|
18585
|
-
className:
|
|
18585
|
+
className: J("flex-1 grow basis-0 overflow-auto", {
|
|
18586
18586
|
"max-h-0 overflow-hidden": !i
|
|
18587
18587
|
}),
|
|
18588
18588
|
style: o.dashboardContainerStyle,
|