react-semaphor 0.1.546 → 0.1.548
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 +71 -68
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/applied-constraints-DU-wndZ7.js +47 -0
- package/dist/chunks/{assistant-chat-BPXhulAx.js → assistant-chat-DCcWsoGm.js} +106 -106
- package/dist/chunks/{bookmark-state-C4vetoa0.js → bookmark-state-Cu-a5ie_.js} +2 -8
- package/dist/chunks/{custom-visual-inputs-CkJW9pBS.js → custom-visual-inputs-BTRnwsfd.js} +1 -1
- package/dist/chunks/{dashboard-C3CoKbGY.js → dashboard-BZHL9a-z.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Be4h-7My.js → dashboard-briefing-launcher-DML-cAzB.js} +528 -528
- package/dist/chunks/{dashboard-controls-bxPrlSyp.js → dashboard-controls-BGoBTPS7.js} +45 -45
- package/dist/chunks/{dashboard-json-BrjxIiRt.js → dashboard-json-iHPsdn3j.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-CRVHpIHp.js → document-dashboard-inputs-B2AqPfrq.js} +94 -94
- package/dist/chunks/{edit-dashboard-visual-DYYYDjY6.js → edit-dashboard-visual-CLEFFf2T.js} +281 -281
- package/dist/chunks/{column-catalog-BYnochWQ.js → filter-reach-copy-ByzGadUk.js} +978 -861
- package/dist/chunks/{global-date-filter-utils-9d6m9-FE.js → global-date-filter-utils-CeeFJ1CP.js} +4070 -3792
- package/dist/chunks/{index-DkQkMKa1.js → index-DeDHr3iz.js} +30 -30
- package/dist/chunks/{raw-temporal-presentation-CBzrDOjM.js → raw-temporal-presentation-CrUM2I_o.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-4QEZWe5U.js → report-preferences-dialog-CM7kXmXp.js} +59 -59
- package/dist/chunks/{resolve-dashboard-input-context-UpK_LBpL.js → resolve-dashboard-input-context-BmWF9hSl.js} +1511 -1612
- package/dist/chunks/{saved-dashboard-context-D_I3Lxk0.js → saved-dashboard-context-qtfzl9Eb.js} +5 -5
- package/dist/chunks/{semaphor-ready-indicator-4zpRHE-X.js → semaphor-ready-indicator-Ol6VcaR7.js} +36548 -35855
- package/dist/chunks/{shelf-drop-preview-context-Cfw7TRAx.js → shelf-drop-preview-context-C2SEC3I9.js} +80 -80
- package/dist/chunks/{source-entity-resolution-BIGRvtbG.js → source-entity-resolution-D195CrYS.js} +221 -192
- package/dist/chunks/{table-settings-CunhoDUi.js → table-settings-WysCBj62.js} +133 -124
- package/dist/chunks/{use-create-flow-overlay-state-DZBZiiD-.js → use-create-flow-overlay-state-CbGIjaVD.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1419 -1340
- package/dist/data-app-sdk-validation/index.js +1 -1
- package/dist/index.js +14 -14
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/surfboard/filter/types.d.ts +7 -0
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -4
- package/dist/types/components/visual/matrix-table/matrix-card-view.d.ts +3 -0
- package/dist/types/index.js +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +383 -22
- package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +65 -0
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +3 -3
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +9 -1
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +5 -1
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +83 -13
- package/dist/types/lib/stores/dashboard-store.d.ts +12 -0
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +57 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +3 -3
- package/dist/types/shared/dashboard-authoring/dashboard-filter-automatic-target.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-types.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +12 -3
- package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-preview.d.ts +97 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +26 -4
- package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +22 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as pe } from "react/jsx-runtime";
|
|
2
2
|
import * as fn from "react";
|
|
3
3
|
import gn, { useState as U, useEffect as we, useMemo as ee, useRef as Pe, useCallback as st, useId as ja, useContext as Ar, Suspense as zc } from "react";
|
|
4
|
-
import { F as Uc, P as Gc, a as Hc, b as co, u as ot, S as bl, c as vl, r as uo, E as Jc, T as Qc, A as Wc, d as
|
|
4
|
+
import { F as Uc, P as Gc, a as Hc, b as co, u as ot, S as bl, c as vl, r as uo, E as Jc, T as Qc, A as Wc, d as Zc, e as xn, f as Xc, g as ed, h as td } from "./shelf-drop-preview-context-C2SEC3I9.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
6
|
import { ab as mo, S as ad, B as yl, aO as nd, t as bn, aU as Qn, u as ho } from "./validators-C-aOQlTB.js";
|
|
7
7
|
import "./matrix-operation-contract-D6vYkZK4.js";
|
|
@@ -9,21 +9,21 @@ import "./analytics-base-schemas-BKs3flFS.js";
|
|
|
9
9
|
import "zod";
|
|
10
10
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Ka } from "../value-format-preferences/index.js";
|
|
11
11
|
import { c as G } from "./_commonjsHelpers-DimLPMtv.js";
|
|
12
|
-
import { dK as po, dL as za, dc as Ua, dM as Rr, dN as en, dO as rd, a4 as Ne, dP as sd, bE as Bt, bF as $t, bG as la, bH as qt, bI as Ut, bC as Ga, aL as Ct, aM as St, dQ as Ge, bD as dt, dR as fo, dS as un, aX as pt, de as Pr, dT as Ea, aO as tn, a3 as R, a$ as xt, dU as go, b2 as Yt, u as xe, c2 as Lr, dV as ld, dW as xo, dX as od, dY as id, dZ as cd, c3 as bo, d_ as dd, d$ as Mn, dE as vo, e0 as ud, di as yo, cs as Yr, cu as md, cv as hd, cw as pd, cx as fd, cy as gd, cz as xd, cA as bd, cB as vd, b0 as _r, a_ as ia, e1 as No, e2 as yd, bh as qa, e3 as Co, bg as Fn, b6 as wo, e4 as Vr, bM as En, bT as Nd, cR as Cd, c$ as br, aS as ca, aT as da, aU as ua, aY as wd, cV as Br, e5 as $r, a1 as So, e6 as qr, e7 as Sd, e8 as kd, e9 as ko, dt as To, ea as Td, eb as Dd, ec as _t, ed as Md, ee as Fd, bj as Ed, ef as Id, eg as Od, eh as Do, I as Mo, M as Ad, d5 as Rd, ei as Pd, dy as Ld, ej as jr, ek as Yd, el as _d, em as Nl, en as Vd, E as In, e as Kr, eo as Fo, ep as Bd, eq as Cl, er as $d, es as Eo, et as qd, eu as jd, ev as Kd, ew as zd, ex as Ud, ey as Gd, ez as Hd, eA as vn, eB as Jd, eC as Qd, eD as Io, eE as Oo, eF as Wd, eG as
|
|
13
|
-
import { B as te, k as Cn, f as Pn, l as _, r as ne, s as re, t as se, u as le, v as K, p as ut, m as gt, n as mt, o as ht, q as De, j as Wr, a0 as
|
|
12
|
+
import { dK as po, dL as za, dc as Ua, dM as Rr, dN as en, dO as rd, a4 as Ne, dP as sd, bE as Bt, bF as $t, bG as la, bH as qt, bI as Ut, bC as Ga, aL as Ct, aM as St, dQ as Ge, bD as dt, dR as fo, dS as un, aX as pt, de as Pr, dT as Ea, aO as tn, a3 as R, a$ as xt, dU as go, b2 as Yt, u as xe, c2 as Lr, dV as ld, dW as xo, dX as od, dY as id, dZ as cd, c3 as bo, d_ as dd, d$ as Mn, dE as vo, e0 as ud, di as yo, cs as Yr, cu as md, cv as hd, cw as pd, cx as fd, cy as gd, cz as xd, cA as bd, cB as vd, b0 as _r, a_ as ia, e1 as No, e2 as yd, bh as qa, e3 as Co, bg as Fn, b6 as wo, e4 as Vr, bM as En, bT as Nd, cR as Cd, c$ as br, aS as ca, aT as da, aU as ua, aY as wd, cV as Br, e5 as $r, a1 as So, e6 as qr, e7 as Sd, e8 as kd, e9 as ko, dt as To, ea as Td, eb as Dd, ec as _t, ed as Md, ee as Fd, bj as Ed, ef as Id, eg as Od, eh as Do, I as Mo, M as Ad, d5 as Rd, ei as Pd, dy as Ld, ej as jr, ek as Yd, el as _d, em as Nl, en as Vd, E as In, e as Kr, eo as Fo, ep as Bd, eq as Cl, er as $d, es as Eo, et as qd, eu as jd, ev as Kd, ew as zd, ex as Ud, ey as Gd, ez as Hd, eA as vn, eB as Jd, eC as Qd, eD as Io, eE as Oo, eF as Wd, eG as Zd, cN as Xd, eH as eu, eI as Ao, eJ as tu, dv as au, cO as On, eK as An, cg as zr, ch as Ur, ci as Gr, eL as nu, eM as ru, eN as Ta, eO as Ha, eP as Ja, eQ as Qa, aZ as su, bi as lu, eR as ou, eS as iu, eT as cu, eU as wl, eV as du, eW as Ro, eX as Po, b1 as Lo, b3 as uu, b8 as mu, b9 as hu, b4 as pu, b5 as fu, eY as gu, eZ as xu, e_ as bu, e$ as vu, f0 as Sl, bb as yu, bc as Nu, f1 as Yo, f2 as ya, f3 as Na, f4 as Ca, da as Da, cm as _o, c0 as Pt, cq as kl, cn as Tl, co as vr, f5 as Vo, f6 as Cu, f7 as wu, f8 as Su, f9 as ku, fa as Rn, fb as $e, fc as qe, fd as je, dA as Tu, dB as Du, fe as Bo, ff as $o, fg as Mu, fh as Fu, fi as qo, fj as Dl, fk as jo, fl as Eu, fm as yr, fn as Iu, fo as Ou, fp as Au, fq as Ru, fr as Pu, fs as Lu, ft as Yu, fu as _u, fv as Vu, fw as Bu, fx as $u, fy as ta, fz as Pa, fA as qu, fB as Ml, fC as ju, fD as Ku, fE as Wn, fF as Fl, fG as zu, fH as Uu, fI as Gu, fJ as Hu, bz as Hr, bA as Wa, fK as Zn, fL as Ko, fM as Ju, fN as Qu, fO as Wu, fP as Zu, fQ as zo, fR as Uo, fS as Xu, fT as em, fU as Go, fV as tm, fW as am, fX as Ho, dw as nm, dx as rm, cP as sm, fY as lm, dz as om, fZ as im, f_ as Jo, db as Jr, f$ as Qo, g0 as Wo, g1 as cm, g2 as dm, g3 as um, g4 as mm, g5 as hm, g6 as pm, g7 as fm, g8 as gm, g9 as xm, ga as bm, gb as Qr, gc as Zo, gd as Xo, ge as mn, gf as ei, gg as ti, gh as El, gi as vm, gj as ym, gk as Nm, dG as Cm, gl as wm, gm as Il, gn as ai, go as Sm, bB as km, gp as Tm, gq as Dm, gr as wa, gs as ni, gt as Mm, gu as Fm, gv as Em, gw as Im, gx as Om, gy as Am, gz as yn, gA as ra, gB as Nr, gC as Cr, gD as Nn, gE as ri, gF as si, gG as li, bd as Rm, gH as Ol, dk as Pm, gI as Lm, dl as Ym, dn as _m, dp as Vm, i as Bm, gJ as $m, gK as qm, gL as jm, gM as Km, gN as zm, gO as Um, gP as Gm, dF as Hm, F as Jm, gQ as Qm, cT as Wm } from "./semaphor-ready-indicator-Ol6VcaR7.js";
|
|
13
|
+
import { B as te, k as Cn, f as Pn, l as _, r as ne, s as re, t as se, u as le, v as K, p as ut, m as gt, n as mt, o as ht, q as De, j as Wr, a0 as Zm, P as bt, a as Tt, b as vt, a1 as Xm, L as Ia, C as oa, T as Gt, d as Ht, e as tt, g as It, c as ma, I as Ma, a2 as eh, a3 as th, S as wn, a4 as wr, a5 as oi, w as Ee, a6 as ah, R as Al, i as ii, a7 as nh } from "./switch-CEBOR4n7.js";
|
|
14
14
|
import { U as ci } from "./upload-BFX7apKV.js";
|
|
15
15
|
import { c as Ke, C as Ot, X as Be } from "./x-4f5U2XwU.js";
|
|
16
|
-
import { E as
|
|
17
|
-
import {
|
|
16
|
+
import { E as Za, C as kt, S as Zr, M as rh, a as sh } from "./selection-reducer-CJzkTZio.js";
|
|
17
|
+
import { em as lh, c9 as oh, en as ih, eo as Xr, ep as Fa, eq as di, er as ch, es as Rl, et as dh, eu as uh, ev as Pl, bo as ui, dm as Oa, az as mh, e2 as es, dt as mi, n as hh, Y as ph, ew as fh, ex as Ll, v as sa, dQ as gh, cV as xh, ey as bh, ez as hi, p as vh, bC as yh, eA as pi, e3 as Nh, b_ as Ch, bY as Xn, eB as wh, eC as Sh, eD as kh, eE as Th, cT as Dh, eF as Mh, eG as Fh, eH as ts, c as Kt, eI as on, du as Eh, aT as fi, aW as Ih, aF as Oh, aV as Sr, aX as hn, bF as gi, aE as Ah, bD as Rh, eJ as Ph, eK as Lh, eL as Yh, eM as wt, eN as _h, e5 as Lt, da as Vh, eO as Bh, d9 as $h, eP as qh, eQ as jh, eR as Kh, de as zh, dk as Xa, dv as Uh, eS as xi, di as Gh, e0 as Yl, dj as Hh, aY as Jh, eT as Qh, dZ as er, eU as Wh, eV as Zh, eW as Xh, eX as bi, eY as as, e1 as ep } from "./global-date-filter-utils-CeeFJ1CP.js";
|
|
18
18
|
import { D as tp } from "./token-types-BMqRmT-C.js";
|
|
19
|
-
import { b as ap, F as np, V as vi, I as lt, u as rp, C as sp } from "./use-create-flow-overlay-state-
|
|
19
|
+
import { b as ap, F as np, V as vi, I as lt, u as rp, C as sp } from "./use-create-flow-overlay-state-CbGIjaVD.js";
|
|
20
20
|
import { i as yi } from "./index-CtoK1Lgu.js";
|
|
21
|
-
import { N as ns, g as lp,
|
|
21
|
+
import { N as ns, g as lp, A as Sa, B as op, C as ip, E as cp } from "./filter-reach-copy-ByzGadUk.js";
|
|
22
22
|
import { F as dp, E as Ln, D as rs } from "./pivot-result-lifecycle-pwq3b7LC.js";
|
|
23
|
-
import "./table-settings-
|
|
24
|
-
import { f as ha, r as pa, g as an, a as Vt, c as ka, i as up, d as mp, e as hp, b as Ni, n as pp, h as kr, j as fp, k as gp, l as xp } from "./custom-visual-inputs-
|
|
23
|
+
import "./table-settings-WysCBj62.js";
|
|
24
|
+
import { f as ha, r as pa, g as an, a as Vt, c as ka, i as up, d as mp, e as hp, b as Ni, n as pp, h as kr, j as fp, k as gp, l as xp } from "./custom-visual-inputs-BTRnwsfd.js";
|
|
25
25
|
import { f as pn } from "./editor-draft-sync-BN5qYHPF.js";
|
|
26
|
-
import {
|
|
26
|
+
import { a5 as bp, H as vp, aI as yp, aJ as Np, aK as Cp, aL as wp, aM as Sp, e as kp, aN as Tp, aA as Ci, aO as Dp, aB as wi, aP as Mp, av as Fp, x as Ep, aQ as Si, as as Ip, ak as ki, al as Op, aR as Ap, aS as Rp, aT as Pp, E as Lp } from "./resolve-dashboard-input-context-BmWF9hSl.js";
|
|
27
27
|
import "react-dom";
|
|
28
28
|
import { L as _l } from "./list-filter-DsaTbM3J.js";
|
|
29
29
|
import { j as Yp, t as _p } from "./temporal-bucket-CQOSbv9-.js";
|
|
@@ -32,7 +32,7 @@ import { u as Bp } from "./appearance-context-DEYtWinQ.js";
|
|
|
32
32
|
import { D as Vl } from "./metric-comparison-zpGw4lD6.js";
|
|
33
33
|
import { f as $p, m as Ti } from "./matrix-formatter-DWEeC0_c.js";
|
|
34
34
|
import { P as qp } from "./palette-D10o_yYX.js";
|
|
35
|
-
import { i as jp, j as Kp } from "./document-dashboard-inputs-
|
|
35
|
+
import { i as jp, j as Kp } from "./document-dashboard-inputs-B2AqPfrq.js";
|
|
36
36
|
/**
|
|
37
37
|
* @license lucide-react v0.453.0 - ISC
|
|
38
38
|
*
|
|
@@ -210,7 +210,7 @@ const Wp = Ke("GitCompareArrows", [
|
|
|
210
210
|
* This source code is licensed under the ISC license.
|
|
211
211
|
* See the LICENSE file in the root directory of this source tree.
|
|
212
212
|
*/
|
|
213
|
-
const
|
|
213
|
+
const Zp = Ke("LayoutList", [
|
|
214
214
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
215
215
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
216
216
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -224,7 +224,7 @@ const Xp = Ke("LayoutList", [
|
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
226
|
*/
|
|
227
|
-
const
|
|
227
|
+
const Xp = Ke("ListEnd", [
|
|
228
228
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
229
229
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
230
230
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -384,7 +384,7 @@ function cf(t, a = {}) {
|
|
|
384
384
|
case "table":
|
|
385
385
|
return /* @__PURE__ */ e(rd, { className: s });
|
|
386
386
|
case "view":
|
|
387
|
-
return /* @__PURE__ */ e(
|
|
387
|
+
return /* @__PURE__ */ e(Za, { className: s });
|
|
388
388
|
case "materialized view":
|
|
389
389
|
return /* @__PURE__ */ e(Hp, { className: s });
|
|
390
390
|
case "model":
|
|
@@ -893,8 +893,8 @@ function gf({
|
|
|
893
893
|
const Y = (O) => {
|
|
894
894
|
const P = O.joinKeyGroups.flatMap((j) => j.keys), $ = P.find(
|
|
895
895
|
(j) => {
|
|
896
|
-
var H,
|
|
897
|
-
return ((H = j.source) == null ? void 0 : H.name) && ((
|
|
896
|
+
var H, Z;
|
|
897
|
+
return ((H = j.source) == null ? void 0 : H.name) && ((Z = j.target) == null ? void 0 : Z.name);
|
|
898
898
|
}
|
|
899
899
|
);
|
|
900
900
|
if (!$) return null;
|
|
@@ -992,7 +992,7 @@ function gf({
|
|
|
992
992
|
(z) => z.name === O.source.name
|
|
993
993
|
), $ = a.find(
|
|
994
994
|
(z) => z.name === O.target.name
|
|
995
|
-
), q = h.has(O.id), j = C.has(O.id) || O.joinKeyGroups.length > 1 || O.joinKeyGroups.some((z) => z.operator !== "AND"), H = Y(O),
|
|
995
|
+
), q = h.has(O.id), j = C.has(O.id) || O.joinKeyGroups.length > 1 || O.joinKeyGroups.some((z) => z.operator !== "AND"), H = Y(O), Z = O.relationshipTraversalDirection === "reverse" ? O.relationshipCardinality === "many_to_one" ? "one_to_many" : O.relationshipCardinality === "one_to_many" ? "many_to_one" : O.relationshipCardinality : O.relationshipCardinality;
|
|
996
996
|
return /* @__PURE__ */ n(
|
|
997
997
|
"div",
|
|
998
998
|
{
|
|
@@ -1174,7 +1174,7 @@ function gf({
|
|
|
1174
1174
|
] }),
|
|
1175
1175
|
/* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
|
|
1176
1176
|
/* @__PURE__ */ e(_, { className: "text-[11.5px]", children: "Matches per row (optional)" }),
|
|
1177
|
-
/* @__PURE__ */ n(ne, { value:
|
|
1177
|
+
/* @__PURE__ */ n(ne, { value: Z || "unknown", onValueChange: (z) => p(O.id, {
|
|
1178
1178
|
relationshipCardinality: z === "unknown" ? void 0 : z,
|
|
1179
1179
|
relationshipTraversalDirection: z === "unknown" ? void 0 : "forward"
|
|
1180
1180
|
}), children: [
|
|
@@ -1689,7 +1689,7 @@ function Nf({
|
|
|
1689
1689
|
var M;
|
|
1690
1690
|
const s = R((T) => T.card), { autoJoinMetadata: o } = xt(s), d = R(
|
|
1691
1691
|
(T) => T.actions.updateCardConfig
|
|
1692
|
-
), c =
|
|
1692
|
+
), c = Xr(s) || {
|
|
1693
1693
|
baseEntity: {
|
|
1694
1694
|
type: "table",
|
|
1695
1695
|
name: "",
|
|
@@ -2890,14 +2890,14 @@ function _f({
|
|
|
2890
2890
|
[V]
|
|
2891
2891
|
), D = (oe) => {
|
|
2892
2892
|
m(oe), oe === "semantic" || oe.startsWith("domain:") ? r.mode !== "semanticDomain" && y("semanticDomain") : (oe === "direct" || oe.startsWith("conn:")) && r.mode === "semanticDomain" && y("database");
|
|
2893
|
-
}, Y = f.startsWith("domain:"), O = f.startsWith("conn:"), P = Y ? f.slice(7) : void 0, $ = O ? f.slice(5) : void 0, q = !L || f === "all" || f === "semantic" || Y, j = M && !T && (f === "all" || f === "direct" || O), H = ((s == null ? void 0 : s.length) ?? 0) > 0,
|
|
2893
|
+
}, Y = f.startsWith("domain:"), O = f.startsWith("conn:"), P = Y ? f.slice(7) : void 0, $ = O ? f.slice(5) : void 0, q = !L || f === "all" || f === "semantic" || Y, j = M && !T && (f === "all" || f === "direct" || O), H = ((s == null ? void 0 : s.length) ?? 0) > 0, Z = l.length === 0 && !H, ie = l.length === 0 && H ? "Clear" : "Add", z = I ? "Select dataset" : "Add data";
|
|
2894
2894
|
return /* @__PURE__ */ e(Bt, { open: t, onOpenChange: a, children: /* @__PURE__ */ n(
|
|
2895
2895
|
$t,
|
|
2896
2896
|
{
|
|
2897
2897
|
showCloseButton: !1,
|
|
2898
2898
|
className: "flex h-[560px] w-[620px] max-w-[620px] flex-col gap-0 overflow-hidden rounded-[6px] border border-border bg-popover p-0",
|
|
2899
2899
|
children: [
|
|
2900
|
-
/* @__PURE__ */ e(
|
|
2900
|
+
/* @__PURE__ */ e(Zm, { children: /* @__PURE__ */ e(qt, { children: z }) }),
|
|
2901
2901
|
/* @__PURE__ */ n("div", { className: "flex items-start justify-between border-b border-border px-4 py-2.5", children: [
|
|
2902
2902
|
/* @__PURE__ */ n("div", { children: [
|
|
2903
2903
|
/* @__PURE__ */ e("p", { className: "text-[14px] font-semibold text-foreground", children: z }),
|
|
@@ -2916,7 +2916,7 @@ function _f({
|
|
|
2916
2916
|
] }),
|
|
2917
2917
|
/* @__PURE__ */ n("div", { className: "border-b border-border px-4 py-2.5", children: [
|
|
2918
2918
|
/* @__PURE__ */ n("div", { className: "flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 focus-within:border-ring", children: [
|
|
2919
|
-
/* @__PURE__ */ e(
|
|
2919
|
+
/* @__PURE__ */ e(Zr, { className: "h-3 w-3 shrink-0 text-muted-foreground" }),
|
|
2920
2920
|
/* @__PURE__ */ e(
|
|
2921
2921
|
"input",
|
|
2922
2922
|
{
|
|
@@ -3034,10 +3034,10 @@ function _f({
|
|
|
3034
3034
|
{
|
|
3035
3035
|
type: "button",
|
|
3036
3036
|
onClick: k,
|
|
3037
|
-
disabled:
|
|
3037
|
+
disabled: Z,
|
|
3038
3038
|
className: G(
|
|
3039
3039
|
"inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-2.5 text-[12px] font-medium text-primary-foreground transition-colors hover:bg-primary/90",
|
|
3040
|
-
|
|
3040
|
+
Z && "cursor-not-allowed opacity-50 hover:bg-primary"
|
|
3041
3041
|
),
|
|
3042
3042
|
children: [
|
|
3043
3043
|
/* @__PURE__ */ e("span", { children: ie }),
|
|
@@ -3108,7 +3108,7 @@ function Vf() {
|
|
|
3108
3108
|
dataSourceEntities: g
|
|
3109
3109
|
}),
|
|
3110
3110
|
[M, T, g]
|
|
3111
|
-
), L = v === 0 ? "Choose dataset" : v === 1 ? Bf(g[0], p) : `${v} datasets`, A =
|
|
3111
|
+
), L = v === 0 ? "Choose dataset" : v === 1 ? Bf(g[0], p) : `${v} datasets`, A = Xr(l), I = ((B = A == null ? void 0 : A.joins) == null ? void 0 : B.length) ?? 0, F = Rl(
|
|
3112
3112
|
A,
|
|
3113
3113
|
g
|
|
3114
3114
|
), y = F.length > 0, N = !i && (v > 1 || I > 0), C = !!(f != null && f.autoResolved);
|
|
@@ -3470,7 +3470,7 @@ function Jf({
|
|
|
3470
3470
|
autoFocus: d,
|
|
3471
3471
|
onDismiss: c
|
|
3472
3472
|
}) {
|
|
3473
|
-
var ft,
|
|
3473
|
+
var ft, Xe;
|
|
3474
3474
|
const { authToken: l, tokenProps: i } = Yt(), h = R((ce) => ce.card.id), u = R(
|
|
3475
3475
|
(ce) => {
|
|
3476
3476
|
var ke;
|
|
@@ -3630,7 +3630,7 @@ function Jf({
|
|
|
3630
3630
|
const ke = Y.trim();
|
|
3631
3631
|
ke && (o(ke, ce), ce || M(!1));
|
|
3632
3632
|
}
|
|
3633
|
-
const j = Y.length > 0, H = ((
|
|
3633
|
+
const j = Y.length > 0, H = ((Xe = T.validation) == null ? void 0 : Xe.status) === "invalid", Z = j && O.length > 0 && O === f.trim(), ie = B.length > 0, z = f.trim().length > 0, W = !!c && !z && !j && !k, ae = Z && P === "draft", ue = Z && P === "refine" && $ === B, oe = p === "refine" && !ie ? "draft" : p, fe = (oe === "refine" ? ue : ae) ? "Open composer preview" : "Generate composer SQL", be = f.trim().length > 0 || O.trim().length > 0 || j || T.status !== "idle" || T.timelineSteps.length > 0;
|
|
3634
3634
|
function Ae(ce = "draft") {
|
|
3635
3635
|
if (k)
|
|
3636
3636
|
return;
|
|
@@ -3693,7 +3693,7 @@ function Jf({
|
|
|
3693
3693
|
}
|
|
3694
3694
|
),
|
|
3695
3695
|
/* @__PURE__ */ n(bt, { open: v, onOpenChange: ye, children: [
|
|
3696
|
-
/* @__PURE__ */ e(
|
|
3696
|
+
/* @__PURE__ */ e(Xm, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
|
|
3697
3697
|
/* @__PURE__ */ n("div", { className: "absolute right-1 flex items-center gap-1", children: [
|
|
3698
3698
|
(z || c) && /* @__PURE__ */ e(
|
|
3699
3699
|
te,
|
|
@@ -4082,7 +4082,7 @@ function Li({
|
|
|
4082
4082
|
}
|
|
4083
4083
|
};
|
|
4084
4084
|
}
|
|
4085
|
-
function
|
|
4085
|
+
function Zf({ value: t }) {
|
|
4086
4086
|
const [a, r] = U(!1), s = Pe(null);
|
|
4087
4087
|
we(() => () => {
|
|
4088
4088
|
s.current && clearTimeout(s.current);
|
|
@@ -4126,7 +4126,7 @@ function Xf({ value: t }) {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
);
|
|
4128
4128
|
}
|
|
4129
|
-
function
|
|
4129
|
+
function Xf({
|
|
4130
4130
|
hint: t
|
|
4131
4131
|
}) {
|
|
4132
4132
|
const { popoverProps: a, triggerProps: r, contentProps: s } = Li();
|
|
@@ -4159,7 +4159,7 @@ function Zf({
|
|
|
4159
4159
|
/* @__PURE__ */ e("p", { className: "text-[13px] font-medium", children: "Dashboard filters aren’t applied" }),
|
|
4160
4160
|
/* @__PURE__ */ e("p", { className: "text-[12px] leading-relaxed text-muted-foreground", children: t.description })
|
|
4161
4161
|
] }),
|
|
4162
|
-
/* @__PURE__ */ e(
|
|
4162
|
+
/* @__PURE__ */ e(Zf, { value: t.helper }),
|
|
4163
4163
|
/* @__PURE__ */ e(
|
|
4164
4164
|
"a",
|
|
4165
4165
|
{
|
|
@@ -4445,7 +4445,7 @@ function lg() {
|
|
|
4445
4445
|
setTempQueryData: j,
|
|
4446
4446
|
// setQueryError,
|
|
4447
4447
|
setCardPreferences: H,
|
|
4448
|
-
setCardType:
|
|
4448
|
+
setCardType: Z,
|
|
4449
4449
|
setCardPython: ie,
|
|
4450
4450
|
setCard: z,
|
|
4451
4451
|
updateCardInFrame: W
|
|
@@ -4501,7 +4501,7 @@ function lg() {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
ft.current();
|
|
4503
4503
|
}, [y]);
|
|
4504
|
-
function
|
|
4504
|
+
function Xe(Q, Se) {
|
|
4505
4505
|
q(Q), Se && ue(!0);
|
|
4506
4506
|
}
|
|
4507
4507
|
function ce() {
|
|
@@ -4575,7 +4575,7 @@ function lg() {
|
|
|
4575
4575
|
onExpand: () => ke(s),
|
|
4576
4576
|
trailing: /* @__PURE__ */ n(pe, { children: [
|
|
4577
4577
|
Y ? /* @__PURE__ */ e(
|
|
4578
|
-
|
|
4578
|
+
Xf,
|
|
4579
4579
|
{
|
|
4580
4580
|
hint: Y
|
|
4581
4581
|
}
|
|
@@ -4644,7 +4644,7 @@ function lg() {
|
|
|
4644
4644
|
selectedDatabaseName: L,
|
|
4645
4645
|
selectedSchemaName: A,
|
|
4646
4646
|
selectedTableName: I,
|
|
4647
|
-
onApplySql:
|
|
4647
|
+
onApplySql: Xe,
|
|
4648
4648
|
autoFocus: !0,
|
|
4649
4649
|
onDismiss: () => c(!1)
|
|
4650
4650
|
}
|
|
@@ -4924,7 +4924,7 @@ function Bi({
|
|
|
4924
4924
|
className: G(Sn, t && "bg-accent"),
|
|
4925
4925
|
"aria-pressed": t,
|
|
4926
4926
|
children: [
|
|
4927
|
-
/* @__PURE__ */ e(
|
|
4927
|
+
/* @__PURE__ */ e(Za, {}),
|
|
4928
4928
|
"Inspect payload"
|
|
4929
4929
|
]
|
|
4930
4930
|
}
|
|
@@ -5748,7 +5748,7 @@ function Hi({
|
|
|
5748
5748
|
setFeedbackDialogOpen: P,
|
|
5749
5749
|
handleSendFeedback: $,
|
|
5750
5750
|
feedbackPayload: q
|
|
5751
|
-
} = Gi(V, w || s.sql || s.python), j = ee(() => (C == null ? void 0 : C.records) || [], [C == null ? void 0 : C.records]), { setCard: H, updateCardInFrame:
|
|
5751
|
+
} = Gi(V, w || s.sql || s.python), j = ee(() => (C == null ? void 0 : C.records) || [], [C == null ? void 0 : C.records]), { setCard: H, updateCardInFrame: Z } = Ne(), { data: ie } = qr(F), z = F.id, W = F.config, ae = F.interactionConfig, ue = F.controls, oe = F.controlBindings, ge = F.customCfg, fe = F.preferences, be = F.queryConfig, Ae = Cg({
|
|
5752
5752
|
sql: F.sql,
|
|
5753
5753
|
python: F.python
|
|
5754
5754
|
}), me = Ae.sql, Le = Ae.python, Ye = C == null ? void 0 : C.records, ye = ee(
|
|
@@ -5796,7 +5796,7 @@ function Hi({
|
|
|
5796
5796
|
pageSize: Se
|
|
5797
5797
|
}
|
|
5798
5798
|
};
|
|
5799
|
-
H(ve),
|
|
5799
|
+
H(ve), Z(ve), s.sql && ((At = (Ie = s.preferences) == null ? void 0 : Ie.tablePrefs) != null && At.enableDevModePagination) && m(!0);
|
|
5800
5800
|
}, ft = (Q) => {
|
|
5801
5801
|
var Ie, At, Jt, Qt, Wt;
|
|
5802
5802
|
const Se = Fo(
|
|
@@ -5811,8 +5811,8 @@ function Hi({
|
|
|
5811
5811
|
sortByColumns: Se
|
|
5812
5812
|
}
|
|
5813
5813
|
};
|
|
5814
|
-
H(ve),
|
|
5815
|
-
},
|
|
5814
|
+
H(ve), Z(ve), s.sql && ((Wt = (Qt = s.preferences) == null ? void 0 : Qt.tablePrefs) != null && Wt.enableDevModePagination) && m(!0);
|
|
5815
|
+
}, Xe = ko(
|
|
5816
5816
|
ye,
|
|
5817
5817
|
Ye || void 0
|
|
5818
5818
|
), ce = ee(() => {
|
|
@@ -5827,7 +5827,7 @@ function Hi({
|
|
|
5827
5827
|
preferences: fe,
|
|
5828
5828
|
topoJson: ie,
|
|
5829
5829
|
comparisonMetadata: (Q = C == null ? void 0 : C.metadata) == null ? void 0 : Q.comparisonMetadata,
|
|
5830
|
-
numericPresentation:
|
|
5830
|
+
numericPresentation: Xe,
|
|
5831
5831
|
resultColumns: C == null ? void 0 : C.columns,
|
|
5832
5832
|
columnKeyMap: C == null ? void 0 : C.columnKeyMap
|
|
5833
5833
|
});
|
|
@@ -5844,7 +5844,7 @@ function Hi({
|
|
|
5844
5844
|
C == null ? void 0 : C.columnKeyMap,
|
|
5845
5845
|
(We = C == null ? void 0 : C.metadata) == null ? void 0 : We.comparisonMetadata,
|
|
5846
5846
|
I,
|
|
5847
|
-
|
|
5847
|
+
Xe,
|
|
5848
5848
|
ie
|
|
5849
5849
|
]);
|
|
5850
5850
|
function ke(Q) {
|
|
@@ -5914,14 +5914,14 @@ function Hi({
|
|
|
5914
5914
|
Se,
|
|
5915
5915
|
s.config
|
|
5916
5916
|
), Ie = { ...s, config: ve };
|
|
5917
|
-
H(Ie),
|
|
5917
|
+
H(Ie), Z(Ie);
|
|
5918
5918
|
},
|
|
5919
5919
|
onAggregationLabelChange: (Se) => {
|
|
5920
5920
|
const ve = _d(
|
|
5921
5921
|
Se,
|
|
5922
5922
|
s.config
|
|
5923
5923
|
), Ie = { ...s, config: ve };
|
|
5924
|
-
H(Ie),
|
|
5924
|
+
H(Ie), Z(Ie);
|
|
5925
5925
|
}
|
|
5926
5926
|
}
|
|
5927
5927
|
) });
|
|
@@ -5942,7 +5942,7 @@ function Hi({
|
|
|
5942
5942
|
Se,
|
|
5943
5943
|
s.config
|
|
5944
5944
|
), Ie = { ...s, config: ve };
|
|
5945
|
-
H(Ie),
|
|
5945
|
+
H(Ie), Z(Ie);
|
|
5946
5946
|
},
|
|
5947
5947
|
isLoading: E || k
|
|
5948
5948
|
}
|
|
@@ -6514,7 +6514,7 @@ function Ig({
|
|
|
6514
6514
|
let w = 0;
|
|
6515
6515
|
return /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
|
|
6516
6516
|
/* @__PURE__ */ n("div", { className: "flex h-9 items-center gap-2 border-b border-border px-3", children: [
|
|
6517
|
-
/* @__PURE__ */ e(
|
|
6517
|
+
/* @__PURE__ */ e(Zr, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
6518
6518
|
/* @__PURE__ */ e(
|
|
6519
6519
|
"input",
|
|
6520
6520
|
{
|
|
@@ -6590,8 +6590,8 @@ const or = {
|
|
|
6590
6590
|
stackedLine: tu,
|
|
6591
6591
|
scatter: Ao,
|
|
6592
6592
|
bubble: eu,
|
|
6593
|
-
pie:
|
|
6594
|
-
doughnut:
|
|
6593
|
+
pie: Xd,
|
|
6594
|
+
doughnut: Zd,
|
|
6595
6595
|
kpi: Wd,
|
|
6596
6596
|
treemap: Oo,
|
|
6597
6597
|
bullet: Io,
|
|
@@ -6887,7 +6887,7 @@ function ps({
|
|
|
6887
6887
|
variant: "ghost",
|
|
6888
6888
|
className: "h-auto w-full justify-start gap-2 rounded-sm px-2 py-1.5 text-[13px] font-normal",
|
|
6889
6889
|
children: [
|
|
6890
|
-
/* @__PURE__ */ e(
|
|
6890
|
+
/* @__PURE__ */ e(Za, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
6891
6891
|
/* @__PURE__ */ e("span", { children: r })
|
|
6892
6892
|
]
|
|
6893
6893
|
}
|
|
@@ -7344,7 +7344,7 @@ function $g({
|
|
|
7344
7344
|
...Object.keys(y.mapping)
|
|
7345
7345
|
])
|
|
7346
7346
|
).map((j) => {
|
|
7347
|
-
const H = V.find((
|
|
7347
|
+
const H = V.find((Z) => Z.value === j);
|
|
7348
7348
|
return {
|
|
7349
7349
|
value: j,
|
|
7350
7350
|
label: (H == null ? void 0 : H.label) || j
|
|
@@ -7405,7 +7405,7 @@ function $g({
|
|
|
7405
7405
|
{
|
|
7406
7406
|
value: y.matrixTargetId ?? "__none__",
|
|
7407
7407
|
onValueChange: (j) => A(N, (H) => {
|
|
7408
|
-
const { matrixTargetId:
|
|
7408
|
+
const { matrixTargetId: Z, ...ie } = H;
|
|
7409
7409
|
return j === "__none__" ? ie : { ...ie, matrixTargetId: j };
|
|
7410
7410
|
}),
|
|
7411
7411
|
children: [
|
|
@@ -7423,13 +7423,13 @@ function $g({
|
|
|
7423
7423
|
Y.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "Add choices to this control first so you can decide what each choice changes in the card." }) : w.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "No matching targets are available for this binding yet." }) : /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
7424
7424
|
/* @__PURE__ */ e(_, { className: "text-xs", children: "Map each choice" }),
|
|
7425
7425
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: Y.map((j) => {
|
|
7426
|
-
const H = y.mapping[j.value],
|
|
7426
|
+
const H = y.mapping[j.value], Z = y.target === "config_metric_selector" || y.target === "config_field_selector" ? typeof H == "string" ? H : H == null ? void 0 : H.id : typeof H == "string" ? H : void 0, ie = !l && typeof Z == "string" && !w.some((ae) => ae.value === Z), z = _g(
|
|
7427
7427
|
H,
|
|
7428
|
-
|
|
7429
|
-
), W =
|
|
7428
|
+
Z
|
|
7429
|
+
), W = Z && ie ? [
|
|
7430
7430
|
...w,
|
|
7431
7431
|
{
|
|
7432
|
-
value:
|
|
7432
|
+
value: Z,
|
|
7433
7433
|
label: "Needs remap",
|
|
7434
7434
|
target: H
|
|
7435
7435
|
}
|
|
@@ -7448,7 +7448,7 @@ function $g({
|
|
|
7448
7448
|
/* @__PURE__ */ n(
|
|
7449
7449
|
ne,
|
|
7450
7450
|
{
|
|
7451
|
-
value:
|
|
7451
|
+
value: Z || "__none__",
|
|
7452
7452
|
onValueChange: (ae) => A(N, (ue) => {
|
|
7453
7453
|
if (ue.target === "config_metric_selector") {
|
|
7454
7454
|
const ge = { ...ue.mapping };
|
|
@@ -7680,7 +7680,7 @@ function gs({
|
|
|
7680
7680
|
})), [S.catalog]), A = (v == null ? void 0 : v.controls) || [], I = v ? Nh(u, { excludeCardId: v.id }) : m.map((q) => q.id), F = ((v == null ? void 0 : v.controlBindings) || []).filter(
|
|
7681
7681
|
Ch
|
|
7682
7682
|
), y = ((v == null ? void 0 : v.controlBindings) || []).filter(
|
|
7683
|
-
|
|
7683
|
+
Xn
|
|
7684
7684
|
), N = cu({
|
|
7685
7685
|
card: v,
|
|
7686
7686
|
controls: A
|
|
@@ -7716,7 +7716,7 @@ function gs({
|
|
|
7716
7716
|
}) : (j == null ? void 0 : j.type) === "remove" ? wl(v, {
|
|
7717
7717
|
type: "remove",
|
|
7718
7718
|
controlId: j.controlId
|
|
7719
|
-
}) : v,
|
|
7719
|
+
}) : v, Z = {
|
|
7720
7720
|
...H,
|
|
7721
7721
|
controls: q,
|
|
7722
7722
|
controlBindings: kh(
|
|
@@ -7724,7 +7724,7 @@ function gs({
|
|
|
7724
7724
|
q
|
|
7725
7725
|
)
|
|
7726
7726
|
};
|
|
7727
|
-
x(
|
|
7727
|
+
x(Z), (l == null ? void 0 : l.id) === Z.id && p(Z);
|
|
7728
7728
|
}, B = (q) => {
|
|
7729
7729
|
if (!v)
|
|
7730
7730
|
return;
|
|
@@ -7734,7 +7734,7 @@ function gs({
|
|
|
7734
7734
|
...Th(
|
|
7735
7735
|
q,
|
|
7736
7736
|
(v.controlBindings || []).filter(
|
|
7737
|
-
(H) => !
|
|
7737
|
+
(H) => !Xn(H)
|
|
7738
7738
|
)
|
|
7739
7739
|
),
|
|
7740
7740
|
...y
|
|
@@ -7747,7 +7747,7 @@ function gs({
|
|
|
7747
7747
|
...v,
|
|
7748
7748
|
controlBindings: [
|
|
7749
7749
|
...(v.controlBindings || []).filter(
|
|
7750
|
-
(H) => !
|
|
7750
|
+
(H) => !Xn(H)
|
|
7751
7751
|
),
|
|
7752
7752
|
...q
|
|
7753
7753
|
]
|
|
@@ -7991,18 +7991,18 @@ function Gg({
|
|
|
7991
7991
|
}, N = ($, q) => {
|
|
7992
7992
|
const j = $.dataTransfer.getData("tabIndex");
|
|
7993
7993
|
if (j === q.toString()) return;
|
|
7994
|
-
const H = Array.from(s.cards), [
|
|
7995
|
-
H.splice(q, 0,
|
|
7994
|
+
const H = Array.from(s.cards), [Z] = H.splice(parseInt(j), 1);
|
|
7995
|
+
H.splice(q, 0, Z), l({ ...s, cards: H });
|
|
7996
7996
|
};
|
|
7997
7997
|
function C($) {
|
|
7998
7998
|
const q = (r == null ? void 0 : r.id) === $;
|
|
7999
7999
|
if (!(I && q ? s.cards.length > 1 : A)) return;
|
|
8000
8000
|
const H = Mh(s, $);
|
|
8001
|
-
let
|
|
8002
|
-
g && !I && (
|
|
8003
|
-
const ie =
|
|
8001
|
+
let Z = H.cards;
|
|
8002
|
+
g && !I && (Z = fp(Z));
|
|
8003
|
+
const ie = Z[0], z = {
|
|
8004
8004
|
...H,
|
|
8005
|
-
cards:
|
|
8005
|
+
cards: Z,
|
|
8006
8006
|
activeCardId: ie.id
|
|
8007
8007
|
}, W = $ === o.id;
|
|
8008
8008
|
W && f(), l(z), i(ie.id), h(ie), W && m(ie);
|
|
@@ -8044,7 +8044,7 @@ function Gg({
|
|
|
8044
8044
|
var z;
|
|
8045
8045
|
if (c || !L) return;
|
|
8046
8046
|
let q = g ? "table" : ns, j = "Title", H = "";
|
|
8047
|
-
const
|
|
8047
|
+
const Z = g ? Math.max(
|
|
8048
8048
|
-1,
|
|
8049
8049
|
...T.map(
|
|
8050
8050
|
(W, ae) => Vt(W, ae)
|
|
@@ -8053,9 +8053,9 @@ function Gg({
|
|
|
8053
8053
|
if (g && ((z = x == null ? void 0 : x.slots) != null && z.length)) {
|
|
8054
8054
|
const W = kr(
|
|
8055
8055
|
x.slots,
|
|
8056
|
-
|
|
8056
|
+
Z
|
|
8057
8057
|
);
|
|
8058
|
-
W && (q = gp(W), j = W.label || `Tab ${
|
|
8058
|
+
W && (q = gp(W), j = W.label || `Tab ${Z + 1}`, H = W.description || "");
|
|
8059
8059
|
}
|
|
8060
8060
|
const ie = {
|
|
8061
8061
|
dataSource: $.dataSource,
|
|
@@ -8084,7 +8084,7 @@ function Gg({
|
|
|
8084
8084
|
// Set default mode for new cards
|
|
8085
8085
|
...g && {
|
|
8086
8086
|
customCardPreferences: {
|
|
8087
|
-
slotIndex:
|
|
8087
|
+
slotIndex: Z
|
|
8088
8088
|
}
|
|
8089
8089
|
}
|
|
8090
8090
|
};
|
|
@@ -8101,7 +8101,7 @@ function Gg({
|
|
|
8101
8101
|
displayTab: j
|
|
8102
8102
|
});
|
|
8103
8103
|
},
|
|
8104
|
-
children: q.displayTab === !0 || q.displayTab === void 0 ? /* @__PURE__ */ e(
|
|
8104
|
+
children: q.displayTab === !0 || q.displayTab === void 0 ? /* @__PURE__ */ e(Za, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(Sl, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
8105
8105
|
}
|
|
8106
8106
|
);
|
|
8107
8107
|
}
|
|
@@ -8113,7 +8113,7 @@ function Gg({
|
|
|
8113
8113
|
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
|
|
8114
8114
|
s.cards.map(($, q) => {
|
|
8115
8115
|
var z, W;
|
|
8116
|
-
const j = g ? Vt($, q) : -1, H = g && ((z = x == null ? void 0 : x.slots) != null && z.length) && j >= 0 ? kr(x.slots, j) : null,
|
|
8116
|
+
const j = g ? Vt($, q) : -1, H = g && ((z = x == null ? void 0 : x.slots) != null && z.length) && j >= 0 ? kr(x.slots, j) : null, Z = H ? (Array.isArray(H.expectedType) ? H.expectedType[0] : H.expectedType) || "table" : $.type, ie = g && ((W = x == null ? void 0 : x.slots) == null ? void 0 : W.length) && x.slots.every(
|
|
8117
8117
|
(ae) => typeof ae.position == "number" || typeof ae.position == "string" && !ae.position.includes("+")
|
|
8118
8118
|
);
|
|
8119
8119
|
return /* @__PURE__ */ n(
|
|
@@ -8135,7 +8135,7 @@ function Gg({
|
|
|
8135
8135
|
// Multi-input visual: Icon + Slot Label (non-editable, no eye icon)
|
|
8136
8136
|
/* @__PURE__ */ e(gt, { delayDuration: 0, children: /* @__PURE__ */ n(mt, { children: [
|
|
8137
8137
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
8138
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Eo(
|
|
8138
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Eo(Z, "size-3.5") }),
|
|
8139
8139
|
/* @__PURE__ */ e("span", { children: H.label || `Tab ${j + 1}` })
|
|
8140
8140
|
] }) }),
|
|
8141
8141
|
/* @__PURE__ */ e(
|
|
@@ -8212,7 +8212,7 @@ function Gg({
|
|
|
8212
8212
|
className: "ml-1 h-6 gap-1 rounded-[5px] px-2 text-[11px] data-[state=on]:bg-muted data-[state=on]:text-foreground",
|
|
8213
8213
|
"aria-label": "Toggle preview",
|
|
8214
8214
|
children: [
|
|
8215
|
-
t ? /* @__PURE__ */ e(Sl, { className: "h-3 w-3" }) : /* @__PURE__ */ e(
|
|
8215
|
+
t ? /* @__PURE__ */ e(Sl, { className: "h-3 w-3" }) : /* @__PURE__ */ e(Za, { className: "h-3 w-3" }),
|
|
8216
8216
|
/* @__PURE__ */ e("span", { children: "Preview" })
|
|
8217
8217
|
]
|
|
8218
8218
|
}
|
|
@@ -8280,7 +8280,7 @@ function Er({
|
|
|
8280
8280
|
} : $ !== o.type ? { ...o, type: $ } : o, [o, $, D]), {
|
|
8281
8281
|
data: j,
|
|
8282
8282
|
dataUpdatedAt: H,
|
|
8283
|
-
isLoading:
|
|
8283
|
+
isLoading: Z,
|
|
8284
8284
|
isFetching: ie,
|
|
8285
8285
|
isError: z,
|
|
8286
8286
|
errorMessage: W,
|
|
@@ -8332,7 +8332,7 @@ function Er({
|
|
|
8332
8332
|
var Fe;
|
|
8333
8333
|
return ((Fe = he.reportContext) == null ? void 0 : Fe.calendar) ?? null;
|
|
8334
8334
|
}
|
|
8335
|
-
),
|
|
8335
|
+
), Xe = xe((he) => he.selectedSheetId), ce = R(
|
|
8336
8336
|
(he) => he.inlineFilterValuesMap[(l == null ? void 0 : l.id) || ""]
|
|
8337
8337
|
), ke = R(
|
|
8338
8338
|
(he) => he.actions.setCardInlineFilterValue
|
|
@@ -8341,14 +8341,14 @@ function Er({
|
|
|
8341
8341
|
), He = ee(
|
|
8342
8342
|
() => l ? fu({
|
|
8343
8343
|
card: l,
|
|
8344
|
-
sheetId:
|
|
8344
|
+
sheetId: Xe || "",
|
|
8345
8345
|
inlineFilterValues: ce,
|
|
8346
8346
|
setInlineFilterValue: (he) => ke(l.id, he),
|
|
8347
8347
|
removeInlineFilterValue: (he) => Re(l.id, he)
|
|
8348
8348
|
}) : [],
|
|
8349
8349
|
[
|
|
8350
8350
|
l,
|
|
8351
|
-
|
|
8351
|
+
Xe,
|
|
8352
8352
|
ce,
|
|
8353
8353
|
ke,
|
|
8354
8354
|
Re
|
|
@@ -8361,7 +8361,7 @@ function Er({
|
|
|
8361
8361
|
() => l ? wo({
|
|
8362
8362
|
dashboard: _e,
|
|
8363
8363
|
card: l,
|
|
8364
|
-
sheetId:
|
|
8364
|
+
sheetId: Xe,
|
|
8365
8365
|
dashboardInputValues: Qe,
|
|
8366
8366
|
adHocFilterValues: Ve,
|
|
8367
8367
|
transientContexts: ye,
|
|
@@ -8373,7 +8373,7 @@ function Er({
|
|
|
8373
8373
|
Qe,
|
|
8374
8374
|
ft,
|
|
8375
8375
|
_e,
|
|
8376
|
-
|
|
8376
|
+
Xe,
|
|
8377
8377
|
ye
|
|
8378
8378
|
]
|
|
8379
8379
|
);
|
|
@@ -8388,14 +8388,14 @@ function Er({
|
|
|
8388
8388
|
activeCardId: he
|
|
8389
8389
|
};
|
|
8390
8390
|
h(nt);
|
|
8391
|
-
const
|
|
8392
|
-
|
|
8391
|
+
const Zt = nt.cards.find((jt) => jt.id === he);
|
|
8392
|
+
Zt.sql && m(!0), f(Zt);
|
|
8393
8393
|
}
|
|
8394
8394
|
function We() {
|
|
8395
8395
|
return E ? /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading manifest" }) }) : V ? /* @__PURE__ */ n("div", { className: "relative flex h-full flex-col pl-2 pr-4", children: [
|
|
8396
8396
|
Y.map((Fe, Nt) => {
|
|
8397
8397
|
if (!Fe) return null;
|
|
8398
|
-
const nt = Vt(Fe, Nt),
|
|
8398
|
+
const nt = Vt(Fe, Nt), Zt = ka(
|
|
8399
8399
|
Fe,
|
|
8400
8400
|
nt,
|
|
8401
8401
|
w == null ? void 0 : w.slots
|
|
@@ -8406,7 +8406,7 @@ function Er({
|
|
|
8406
8406
|
onLoadingStatus: Ae,
|
|
8407
8407
|
onDataChange: be,
|
|
8408
8408
|
card: Fe,
|
|
8409
|
-
effectiveCardType:
|
|
8409
|
+
effectiveCardType: Zt
|
|
8410
8410
|
},
|
|
8411
8411
|
`${Fe.id}-${nt}`
|
|
8412
8412
|
);
|
|
@@ -8453,13 +8453,13 @@ function Er({
|
|
|
8453
8453
|
}
|
|
8454
8454
|
function Q() {
|
|
8455
8455
|
var he;
|
|
8456
|
-
return D ? We() : t && (a || !
|
|
8456
|
+
return D ? We() : t && (a || !Z && !ie && !z && !W) ? t({
|
|
8457
8457
|
card: o,
|
|
8458
8458
|
data: j,
|
|
8459
|
-
isLoading:
|
|
8459
|
+
isLoading: Z,
|
|
8460
8460
|
isFetching: ie,
|
|
8461
8461
|
isError: z
|
|
8462
|
-
}) : o.type === "kpi" ?
|
|
8462
|
+
}) : o.type === "kpi" ? Z || ie ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : W ? /* @__PURE__ */ e(
|
|
8463
8463
|
Ug,
|
|
8464
8464
|
{
|
|
8465
8465
|
errorMessage: W,
|
|
@@ -8472,13 +8472,13 @@ function Er({
|
|
|
8472
8472
|
{
|
|
8473
8473
|
card: o,
|
|
8474
8474
|
data: j == null ? void 0 : j.records,
|
|
8475
|
-
isPending:
|
|
8475
|
+
isPending: Z || ie,
|
|
8476
8476
|
isError: z,
|
|
8477
8477
|
comparisonMetadata: (he = j == null ? void 0 : j.metadata) == null ? void 0 : he.comparisonMetadata
|
|
8478
8478
|
}
|
|
8479
8479
|
) }),
|
|
8480
8480
|
Do(o) && /* @__PURE__ */ e(Mo, { card: o, mode: "editor", records: j == null ? void 0 : j.records })
|
|
8481
|
-
] }) }) : o.type === "text" ?
|
|
8481
|
+
] }) }) : o.type === "text" ? Z || ie ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : fe ? /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col overflow-auto px-4 py-0", children: /* @__PURE__ */ e(
|
|
8482
8482
|
us,
|
|
8483
8483
|
{
|
|
8484
8484
|
error: W,
|
|
@@ -8529,7 +8529,7 @@ function Er({
|
|
|
8529
8529
|
}
|
|
8530
8530
|
);
|
|
8531
8531
|
}
|
|
8532
|
-
function
|
|
8532
|
+
function Zi({
|
|
8533
8533
|
sql: t,
|
|
8534
8534
|
debugPayloads: a,
|
|
8535
8535
|
variant: r = "panel",
|
|
@@ -8635,7 +8635,7 @@ function cr({
|
|
|
8635
8635
|
we(() => {
|
|
8636
8636
|
C || $(!1);
|
|
8637
8637
|
}, [C]);
|
|
8638
|
-
const
|
|
8638
|
+
const Z = () => {
|
|
8639
8639
|
var ye;
|
|
8640
8640
|
if (q) {
|
|
8641
8641
|
(ye = q.refresh) == null || ye.call(q);
|
|
@@ -8693,7 +8693,7 @@ function cr({
|
|
|
8693
8693
|
align: "end",
|
|
8694
8694
|
collisionPadding: 16,
|
|
8695
8695
|
className: "w-[500px] overflow-hidden p-0",
|
|
8696
|
-
children: /* @__PURE__ */ e(
|
|
8696
|
+
children: /* @__PURE__ */ e(Zi, { sql: y.sql, variant: "popover" })
|
|
8697
8697
|
}
|
|
8698
8698
|
)
|
|
8699
8699
|
] }) }) : null, Ae = typeof (y == null ? void 0 : y.output) == "string" ? y.output.trim() : "", me = fe && !N && !C && !E && Ae ? /* @__PURE__ */ n(ya, { openDelay: 200, children: [
|
|
@@ -8861,7 +8861,7 @@ function cr({
|
|
|
8861
8861
|
tooltip: "Refresh",
|
|
8862
8862
|
disabled: N || C,
|
|
8863
8863
|
className: "h-7 w-7 px-0",
|
|
8864
|
-
onClick:
|
|
8864
|
+
onClick: Z,
|
|
8865
8865
|
children: /* @__PURE__ */ e(
|
|
8866
8866
|
Tr,
|
|
8867
8867
|
{
|
|
@@ -8894,7 +8894,7 @@ function cr({
|
|
|
8894
8894
|
Pt,
|
|
8895
8895
|
{
|
|
8896
8896
|
disabled: N || C,
|
|
8897
|
-
onSelect:
|
|
8897
|
+
onSelect: Z,
|
|
8898
8898
|
children: [
|
|
8899
8899
|
/* @__PURE__ */ e(Tr, { className: "h-3.5 w-3.5" }),
|
|
8900
8900
|
"Refresh result"
|
|
@@ -9198,7 +9198,7 @@ function Wg({
|
|
|
9198
9198
|
}));
|
|
9199
9199
|
})), s;
|
|
9200
9200
|
}
|
|
9201
|
-
const
|
|
9201
|
+
const Zg = {
|
|
9202
9202
|
table: ({ children: t }) => /* @__PURE__ */ e("table", { className: "my-3 w-full border-collapse overflow-hidden rounded-md border border-border text-sm", children: t }),
|
|
9203
9203
|
thead: ({ children: t }) => /* @__PURE__ */ e("thead", { className: "bg-muted", children: t }),
|
|
9204
9204
|
th: ({ children: t }) => /* @__PURE__ */ e("th", { className: "border border-border px-3 py-2 text-left font-medium", children: t }),
|
|
@@ -9206,7 +9206,7 @@ const Xg = {
|
|
|
9206
9206
|
code: ({ children: t, className: a }) => (a == null ? void 0 : a.includes("language-")) ? /* @__PURE__ */ e("pre", { className: "my-3 overflow-x-auto rounded-md bg-muted p-3 text-xs", children: /* @__PURE__ */ e("code", { children: t }) }) : /* @__PURE__ */ e("code", { className: "rounded bg-muted px-1 py-0.5 text-xs", children: t }),
|
|
9207
9207
|
pre: ({ children: t }) => /* @__PURE__ */ e(pe, { children: t })
|
|
9208
9208
|
};
|
|
9209
|
-
function
|
|
9209
|
+
function Xi() {
|
|
9210
9210
|
var E, k, V;
|
|
9211
9211
|
const t = R(
|
|
9212
9212
|
(w) => w.card.customCardPreferences
|
|
@@ -9399,7 +9399,7 @@ function Zi() {
|
|
|
9399
9399
|
] })
|
|
9400
9400
|
] }) })
|
|
9401
9401
|
] }),
|
|
9402
|
-
m && T.length > 0 && /* @__PURE__ */ e(Wc, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(
|
|
9402
|
+
m && T.length > 0 && /* @__PURE__ */ e(Wc, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(Zc, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: T.map((w, B) => /* @__PURE__ */ e("li", { children: w.message }, `${w.type}-${B}`)) }) }) }),
|
|
9403
9403
|
u && !m && u.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: N({
|
|
9404
9404
|
settingsSchema: u.settings,
|
|
9405
9405
|
settingsField: "settings",
|
|
@@ -9514,7 +9514,7 @@ function Zi() {
|
|
|
9514
9514
|
Tu,
|
|
9515
9515
|
{
|
|
9516
9516
|
remarkPlugins: [Du],
|
|
9517
|
-
components:
|
|
9517
|
+
components: Zg,
|
|
9518
9518
|
children: u.docs.dataSchema
|
|
9519
9519
|
}
|
|
9520
9520
|
) })
|
|
@@ -9583,7 +9583,7 @@ function ec(t, a, r) {
|
|
|
9583
9583
|
Tn(a)
|
|
9584
9584
|
) : s;
|
|
9585
9585
|
}
|
|
9586
|
-
function
|
|
9586
|
+
function Xg(t, a) {
|
|
9587
9587
|
return {
|
|
9588
9588
|
...t,
|
|
9589
9589
|
decimalPlaces: void 0,
|
|
@@ -9764,7 +9764,7 @@ function nn({
|
|
|
9764
9764
|
a(
|
|
9765
9765
|
d && k === "currency" && t.type !== "currency" ? Jl(V) : V
|
|
9766
9766
|
);
|
|
9767
|
-
}, I = (k) => d && i === "currency" ?
|
|
9767
|
+
}, I = (k) => d && i === "currency" ? Xg(
|
|
9768
9768
|
h,
|
|
9769
9769
|
k
|
|
9770
9770
|
) : tc(h, k), F = ((C = Ql.find(
|
|
@@ -10174,7 +10174,7 @@ function nn({
|
|
|
10174
10174
|
] })
|
|
10175
10175
|
] });
|
|
10176
10176
|
}
|
|
10177
|
-
function
|
|
10177
|
+
function Zl({
|
|
10178
10178
|
colorRanges: t,
|
|
10179
10179
|
setColorRanges: a
|
|
10180
10180
|
}) {
|
|
@@ -10271,7 +10271,7 @@ function ox(t) {
|
|
|
10271
10271
|
maximumFractionDigits: 0
|
|
10272
10272
|
};
|
|
10273
10273
|
}
|
|
10274
|
-
function
|
|
10274
|
+
function Xl(t) {
|
|
10275
10275
|
return {
|
|
10276
10276
|
enabled: !0,
|
|
10277
10277
|
colorRanges: t == null ? void 0 : t.colorRanges
|
|
@@ -10294,7 +10294,7 @@ function ix() {
|
|
|
10294
10294
|
const v = R.getState().card.preferences ?? {};
|
|
10295
10295
|
a({
|
|
10296
10296
|
...v,
|
|
10297
|
-
formatNumber:
|
|
10297
|
+
formatNumber: Xl(v.formatNumber),
|
|
10298
10298
|
kpiVisualOptions: {
|
|
10299
10299
|
...v.kpiVisualOptions,
|
|
10300
10300
|
formatOptions: g
|
|
@@ -10305,7 +10305,7 @@ function ix() {
|
|
|
10305
10305
|
if (g) {
|
|
10306
10306
|
a({
|
|
10307
10307
|
...v,
|
|
10308
|
-
formatNumber:
|
|
10308
|
+
formatNumber: Xl(v.formatNumber),
|
|
10309
10309
|
kpiVisualOptions: {
|
|
10310
10310
|
...v.kpiVisualOptions,
|
|
10311
10311
|
formatOptions: l
|
|
@@ -10321,7 +10321,7 @@ function ix() {
|
|
|
10321
10321
|
}
|
|
10322
10322
|
});
|
|
10323
10323
|
};
|
|
10324
|
-
return c ? /* @__PURE__ */ e(
|
|
10324
|
+
return c ? /* @__PURE__ */ e(Zl, { colorRanges: r, setColorRanges: s }) : /* @__PURE__ */ n("div", { children: [
|
|
10325
10325
|
/* @__PURE__ */ n("div", { className: "mb-3 flex items-center gap-2", children: [
|
|
10326
10326
|
/* @__PURE__ */ e(
|
|
10327
10327
|
St,
|
|
@@ -10349,7 +10349,7 @@ function ix() {
|
|
|
10349
10349
|
),
|
|
10350
10350
|
/* @__PURE__ */ e(Cn, { className: "my-3" }),
|
|
10351
10351
|
/* @__PURE__ */ e(
|
|
10352
|
-
|
|
10352
|
+
Zl,
|
|
10353
10353
|
{
|
|
10354
10354
|
colorRanges: r,
|
|
10355
10355
|
setColorRanges: s
|
|
@@ -11203,7 +11203,7 @@ function xx() {
|
|
|
11203
11203
|
/* @__PURE__ */ e(hx, {})
|
|
11204
11204
|
] });
|
|
11205
11205
|
}
|
|
11206
|
-
function
|
|
11206
|
+
function Ze({
|
|
11207
11207
|
label: t,
|
|
11208
11208
|
value: a,
|
|
11209
11209
|
options: r,
|
|
@@ -11312,7 +11312,7 @@ function to({
|
|
|
11312
11312
|
}
|
|
11313
11313
|
),
|
|
11314
11314
|
/* @__PURE__ */ e(
|
|
11315
|
-
|
|
11315
|
+
Ze,
|
|
11316
11316
|
{
|
|
11317
11317
|
label: `${t} position`,
|
|
11318
11318
|
value: a.position,
|
|
@@ -11465,7 +11465,7 @@ function yx({
|
|
|
11465
11465
|
};
|
|
11466
11466
|
return /* @__PURE__ */ n("div", { className: "space-y-2 border-t pt-2", children: [
|
|
11467
11467
|
/* @__PURE__ */ e(
|
|
11468
|
-
|
|
11468
|
+
Ze,
|
|
11469
11469
|
{
|
|
11470
11470
|
label: "Sort by",
|
|
11471
11471
|
value: d ? d.target.kind === "member" ? "member" : d.target.measureId : "default",
|
|
@@ -11487,7 +11487,7 @@ function yx({
|
|
|
11487
11487
|
),
|
|
11488
11488
|
d && /* @__PURE__ */ n(pe, { children: [
|
|
11489
11489
|
/* @__PURE__ */ e(
|
|
11490
|
-
|
|
11490
|
+
Ze,
|
|
11491
11491
|
{
|
|
11492
11492
|
label: "Sort direction",
|
|
11493
11493
|
value: d.direction,
|
|
@@ -11499,7 +11499,7 @@ function yx({
|
|
|
11499
11499
|
}
|
|
11500
11500
|
),
|
|
11501
11501
|
/* @__PURE__ */ e(
|
|
11502
|
-
|
|
11502
|
+
Ze,
|
|
11503
11503
|
{
|
|
11504
11504
|
label: "Null order",
|
|
11505
11505
|
value: d.nulls,
|
|
@@ -11512,7 +11512,7 @@ function yx({
|
|
|
11512
11512
|
)
|
|
11513
11513
|
] }),
|
|
11514
11514
|
/* @__PURE__ */ e(
|
|
11515
|
-
|
|
11515
|
+
Ze,
|
|
11516
11516
|
{
|
|
11517
11517
|
label: "Ranking",
|
|
11518
11518
|
disabled: !r.spec.measures.length,
|
|
@@ -11541,7 +11541,7 @@ function yx({
|
|
|
11541
11541
|
}
|
|
11542
11542
|
),
|
|
11543
11543
|
/* @__PURE__ */ e(
|
|
11544
|
-
|
|
11544
|
+
Ze,
|
|
11545
11545
|
{
|
|
11546
11546
|
label: "Rank by measure",
|
|
11547
11547
|
value: c.measureId,
|
|
@@ -11558,7 +11558,7 @@ function yx({
|
|
|
11558
11558
|
}
|
|
11559
11559
|
),
|
|
11560
11560
|
/* @__PURE__ */ e(
|
|
11561
|
-
|
|
11561
|
+
Ze,
|
|
11562
11562
|
{
|
|
11563
11563
|
label: "Ranking context",
|
|
11564
11564
|
value: c.oppositePath.length ? bn(c.oppositePath) : "total",
|
|
@@ -11643,7 +11643,7 @@ function Nx({
|
|
|
11643
11643
|
" scope"
|
|
11644
11644
|
] }),
|
|
11645
11645
|
/* @__PURE__ */ e(
|
|
11646
|
-
|
|
11646
|
+
Ze,
|
|
11647
11647
|
{
|
|
11648
11648
|
label: "Cell role",
|
|
11649
11649
|
value: ((N = T.target.rowRoles) == null ? void 0 : N.length) === 1 ? T.target.rowRoles[0] : "all",
|
|
@@ -11665,7 +11665,7 @@ function Nx({
|
|
|
11665
11665
|
}
|
|
11666
11666
|
),
|
|
11667
11667
|
/* @__PURE__ */ e(
|
|
11668
|
-
|
|
11668
|
+
Ze,
|
|
11669
11669
|
{
|
|
11670
11670
|
label: "Rule axis",
|
|
11671
11671
|
value: (L == null ? void 0 : L.axis) ?? "all",
|
|
@@ -11681,7 +11681,7 @@ function Nx({
|
|
|
11681
11681
|
),
|
|
11682
11682
|
L && /* @__PURE__ */ n(pe, { children: [
|
|
11683
11683
|
/* @__PURE__ */ e(
|
|
11684
|
-
|
|
11684
|
+
Ze,
|
|
11685
11685
|
{
|
|
11686
11686
|
label: "Rule level",
|
|
11687
11687
|
value: L.levelId ?? "all",
|
|
@@ -11699,7 +11699,7 @@ function Nx({
|
|
|
11699
11699
|
}
|
|
11700
11700
|
),
|
|
11701
11701
|
/* @__PURE__ */ e(
|
|
11702
|
-
|
|
11702
|
+
Ze,
|
|
11703
11703
|
{
|
|
11704
11704
|
label: "Opposite members",
|
|
11705
11705
|
value: L.oppositePath === void 0 ? "all" : L.oppositePath.length ? bn(L.oppositePath) : "total",
|
|
@@ -11816,7 +11816,7 @@ function Cx({
|
|
|
11816
11816
|
}
|
|
11817
11817
|
),
|
|
11818
11818
|
/* @__PURE__ */ e(
|
|
11819
|
-
|
|
11819
|
+
Ze,
|
|
11820
11820
|
{
|
|
11821
11821
|
label: "Axis",
|
|
11822
11822
|
value: b,
|
|
@@ -11830,7 +11830,7 @@ function Cx({
|
|
|
11830
11830
|
}
|
|
11831
11831
|
),
|
|
11832
11832
|
S && /* @__PURE__ */ e(
|
|
11833
|
-
|
|
11833
|
+
Ze,
|
|
11834
11834
|
{
|
|
11835
11835
|
label: "Time grain",
|
|
11836
11836
|
value: g.grain ?? "none",
|
|
@@ -11848,7 +11848,7 @@ function Cx({
|
|
|
11848
11848
|
),
|
|
11849
11849
|
g.grain ? /* @__PURE__ */ n(pe, { children: [
|
|
11850
11850
|
/* @__PURE__ */ e(
|
|
11851
|
-
|
|
11851
|
+
Ze,
|
|
11852
11852
|
{
|
|
11853
11853
|
label: "Date format",
|
|
11854
11854
|
value: I.value,
|
|
@@ -11954,7 +11954,7 @@ function Cx({
|
|
|
11954
11954
|
}
|
|
11955
11955
|
),
|
|
11956
11956
|
/* @__PURE__ */ e(
|
|
11957
|
-
|
|
11957
|
+
Ze,
|
|
11958
11958
|
{
|
|
11959
11959
|
label: "Default expanded levels",
|
|
11960
11960
|
value: String(
|
|
@@ -12010,7 +12010,7 @@ function Cx({
|
|
|
12010
12010
|
}
|
|
12011
12011
|
),
|
|
12012
12012
|
b.kind === "aggregate" && /* @__PURE__ */ e(
|
|
12013
|
-
|
|
12013
|
+
Ze,
|
|
12014
12014
|
{
|
|
12015
12015
|
label: "Aggregation",
|
|
12016
12016
|
value: b.aggregate,
|
|
@@ -12034,7 +12034,7 @@ function Cx({
|
|
|
12034
12034
|
t.kind === "table" && /* @__PURE__ */ n("section", { "aria-label": "Presentation", className: "space-y-2 border-b p-3", children: [
|
|
12035
12035
|
/* @__PURE__ */ e("h2", { className: "text-xs font-semibold", children: "Presentation" }),
|
|
12036
12036
|
/* @__PURE__ */ e(
|
|
12037
|
-
|
|
12037
|
+
Ze,
|
|
12038
12038
|
{
|
|
12039
12039
|
label: "Row layout",
|
|
12040
12040
|
value: a.presentation.layout.kind,
|
|
@@ -12533,7 +12533,7 @@ function sc({
|
|
|
12533
12533
|
}
|
|
12534
12534
|
}
|
|
12535
12535
|
});
|
|
12536
|
-
},
|
|
12536
|
+
}, Z = k ? /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
12537
12537
|
/* @__PURE__ */ e("div", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Comparison" }),
|
|
12538
12538
|
/* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-3", children: [
|
|
12539
12539
|
/* @__PURE__ */ e(_, { htmlFor: "show-table-comparison", className: "text-xs", children: "Show comparison" }),
|
|
@@ -12588,7 +12588,7 @@ function sc({
|
|
|
12588
12588
|
onEnabledChange: P,
|
|
12589
12589
|
onStyleChange: O
|
|
12590
12590
|
} : void 0,
|
|
12591
|
-
extraSection:
|
|
12591
|
+
extraSection: Z,
|
|
12592
12592
|
onReset: M ? H : void 0
|
|
12593
12593
|
}
|
|
12594
12594
|
),
|
|
@@ -12881,13 +12881,13 @@ function Ox() {
|
|
|
12881
12881
|
const w = r === "stackedBar" || r === "stackedLine", B = r === "bar" || r === "line" || r === "horizontalBar" || r === "bullet" || r === "combo" || r === "area" || r === "stackedArea", D = ((Y = t == null ? void 0 : t.config) == null ? void 0 : Y.pivotByColumns) && t.config.pivotByColumns.length > 0;
|
|
12882
12882
|
if ((w || B) && D) {
|
|
12883
12883
|
if (c.pivotSchema && Array.isArray(c.pivotSchema)) {
|
|
12884
|
-
const
|
|
12884
|
+
const Z = /* @__PURE__ */ new Set();
|
|
12885
12885
|
return c.pivotSchema.forEach((ie) => {
|
|
12886
|
-
ie.alias &&
|
|
12887
|
-
}), Array.from(
|
|
12886
|
+
ie.alias && Z.add(ie.alias);
|
|
12887
|
+
}), Array.from(Z);
|
|
12888
12888
|
}
|
|
12889
12889
|
if (c.records.length > 0) {
|
|
12890
|
-
const
|
|
12890
|
+
const Z = c.records[0], ie = Object.keys(Z), z = /* @__PURE__ */ new Set();
|
|
12891
12891
|
(O = t == null ? void 0 : t.config) != null && O.groupByColumns && t.config.groupByColumns.forEach((ue) => {
|
|
12892
12892
|
z.add(ue.label || ue.name), z.add(ue.alias || ue.name);
|
|
12893
12893
|
});
|
|
@@ -12904,10 +12904,10 @@ function Ox() {
|
|
|
12904
12904
|
}
|
|
12905
12905
|
if ((B || w) && !D && ((q = ($ = t == null ? void 0 : t.config) == null ? void 0 : $.metricColumns) != null && q.length))
|
|
12906
12906
|
return t.config.metricColumns.map(
|
|
12907
|
-
(
|
|
12907
|
+
(Z) => Z.alias || Z.label || Z.name
|
|
12908
12908
|
);
|
|
12909
12909
|
if ((H = (j = t == null ? void 0 : t.config) == null ? void 0 : j.groupByColumns) != null && H.length) {
|
|
12910
|
-
const
|
|
12910
|
+
const Z = t.config.groupByColumns[0], ie = Z.label || Z.name, z = /* @__PURE__ */ new Set();
|
|
12911
12911
|
return c.records.forEach((W) => {
|
|
12912
12912
|
const ae = W[ie];
|
|
12913
12913
|
ae != null && z.add(String(ae));
|
|
@@ -13540,7 +13540,7 @@ function Rx() {
|
|
|
13540
13540
|
}, h = ["top", "bottom", "left", "right"], u = ["start", "center", "end"];
|
|
13541
13541
|
return /* @__PURE__ */ n($e, { value: "legend", className: "border-b-0", children: [
|
|
13542
13542
|
/* @__PURE__ */ e(qe, { 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: [
|
|
13543
|
-
/* @__PURE__ */ e(
|
|
13543
|
+
/* @__PURE__ */ e(Zp, { className: "h-4 w-4 text-muted-foreground" }),
|
|
13544
13544
|
/* @__PURE__ */ e("span", { children: "Legend" })
|
|
13545
13545
|
] }) }),
|
|
13546
13546
|
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
@@ -13611,14 +13611,14 @@ function Px() {
|
|
|
13611
13611
|
[P]: $
|
|
13612
13612
|
};
|
|
13613
13613
|
P === "enabled" && (H.display = $, $ && u && !H.position && (H.position = "bottom")), P === "position" && u && (H.position = "bottom"), P === "formatMode" && $ === "inherit" && (H.format = void 0, H.formatOptions = void 0);
|
|
13614
|
-
const
|
|
13614
|
+
const Z = {
|
|
13615
13615
|
...t.preferences || {},
|
|
13616
13616
|
dataLabelsConfig: H
|
|
13617
13617
|
};
|
|
13618
|
-
o(
|
|
13618
|
+
o(Z);
|
|
13619
13619
|
const ie = {
|
|
13620
13620
|
...t,
|
|
13621
|
-
preferences:
|
|
13621
|
+
preferences: Z
|
|
13622
13622
|
};
|
|
13623
13623
|
d(ie);
|
|
13624
13624
|
}, M = (P, $) => {
|
|
@@ -13629,14 +13629,14 @@ function Px() {
|
|
|
13629
13629
|
...q.font || {},
|
|
13630
13630
|
[P]: $
|
|
13631
13631
|
}
|
|
13632
|
-
},
|
|
13632
|
+
}, Z = {
|
|
13633
13633
|
...t.preferences || {},
|
|
13634
13634
|
dataLabelsConfig: H
|
|
13635
13635
|
};
|
|
13636
|
-
o(
|
|
13636
|
+
o(Z);
|
|
13637
13637
|
const ie = {
|
|
13638
13638
|
...t,
|
|
13639
|
-
preferences:
|
|
13639
|
+
preferences: Z
|
|
13640
13640
|
};
|
|
13641
13641
|
d(ie);
|
|
13642
13642
|
}, T = () => {
|
|
@@ -13938,19 +13938,19 @@ function _x() {
|
|
|
13938
13938
|
const t = R((m) => m.card), a = R((m) => {
|
|
13939
13939
|
var p;
|
|
13940
13940
|
return (p = m.card) == null ? void 0 : p.preferences;
|
|
13941
|
-
}), { setCardPreferences: r } = Ne(), s = (t == null ? void 0 : t.type) === "heatmap", o = (a == null ? void 0 : a.heatmapConfig) || {}, d = o.colorPalette ?? "green", c = o.legendPosition ?? "bottom", l = ee(() => o.colorRange && o.colorRange[0] && o.colorRange[1] ? [o.colorRange[0], o.colorRange[1]] : [...
|
|
13941
|
+
}), { setCardPreferences: r } = Ne(), s = (t == null ? void 0 : t.type) === "heatmap", o = (a == null ? void 0 : a.heatmapConfig) || {}, d = o.colorPalette ?? "green", c = o.legendPosition ?? "bottom", l = ee(() => o.colorRange && o.colorRange[0] && o.colorRange[1] ? [o.colorRange[0], o.colorRange[1]] : [...Zn], [o.colorRange]), i = (m) => {
|
|
13942
13942
|
const p = {
|
|
13943
13943
|
...o,
|
|
13944
13944
|
...m
|
|
13945
13945
|
};
|
|
13946
|
-
p.colorPalette !== "custom" ? delete p.colorRange : (!p.colorRange || !p.colorRange[0] || !p.colorRange[1]) && (p.colorRange = [...
|
|
13946
|
+
p.colorPalette !== "custom" ? delete p.colorRange : (!p.colorRange || !p.colorRange[0] || !p.colorRange[1]) && (p.colorRange = [...Zn]), r({
|
|
13947
13947
|
...a || {},
|
|
13948
13948
|
heatmapConfig: p
|
|
13949
13949
|
});
|
|
13950
13950
|
}, h = (m) => {
|
|
13951
13951
|
i({
|
|
13952
13952
|
colorPalette: m,
|
|
13953
|
-
colorRange: m === "custom" ? o.colorRange ?? [...
|
|
13953
|
+
colorRange: m === "custom" ? o.colorRange ?? [...Zn] : void 0
|
|
13954
13954
|
});
|
|
13955
13955
|
}, u = (m, p) => {
|
|
13956
13956
|
const x = [...l];
|
|
@@ -14116,8 +14116,8 @@ function Vx() {
|
|
|
14116
14116
|
...d.rangeKeys || {}
|
|
14117
14117
|
};
|
|
14118
14118
|
let $ = !1;
|
|
14119
|
-
if (ro.forEach((H,
|
|
14120
|
-
!P[H] && O[
|
|
14119
|
+
if (ro.forEach((H, Z) => {
|
|
14120
|
+
!P[H] && O[Z] && (P[H] = O[Z].value, $ = !0);
|
|
14121
14121
|
}), $ && (w.rangeKeys = P, B = !0, d.showRanges === void 0 && (w.showRanges = !0)), B) {
|
|
14122
14122
|
const H = so({
|
|
14123
14123
|
...d,
|
|
@@ -14952,7 +14952,7 @@ function Vn() {
|
|
|
14952
14952
|
var c, l;
|
|
14953
14953
|
const t = R((i) => i.card), { data: a, comparisonMetadata: r } = xt(t), s = (a == null ? void 0 : a.records) || [], { keys: o } = No(s, r), d = o.slice(1).filter((i) => !_h.includes(i));
|
|
14954
14954
|
if (Qu(t.type)) {
|
|
14955
|
-
const i = t.config, h = (c = i == null ? void 0 : i.pivotByColumns) != null && c.length && ((l = i == null ? void 0 : i.groupByColumns) != null && l.length) ? Wu(s, i.metricColumns || []) : s, u =
|
|
14955
|
+
const i = t.config, h = (c = i == null ? void 0 : i.pivotByColumns) != null && c.length && ((l = i == null ? void 0 : i.groupByColumns) != null && l.length) ? Wu(s, i.metricColumns || []) : s, u = Zu({
|
|
14956
14956
|
card: t,
|
|
14957
14957
|
cardType: t.type,
|
|
14958
14958
|
records: h,
|
|
@@ -15258,14 +15258,14 @@ function Wx() {
|
|
|
15258
15258
|
/* @__PURE__ */ e(en, { className: "h-4 w-4 text-muted-foreground" }),
|
|
15259
15259
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
15260
15260
|
] }) }),
|
|
15261
|
-
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
15261
|
+
/* @__PURE__ */ e(je, { className: "pt-2", children: /* @__PURE__ */ e(Zx, {}) })
|
|
15262
15262
|
] });
|
|
15263
15263
|
}
|
|
15264
|
-
function
|
|
15264
|
+
function Zx() {
|
|
15265
15265
|
const { transformedMetricKeys: t } = Vn();
|
|
15266
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((a, r) => /* @__PURE__ */ e(
|
|
15266
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((a, r) => /* @__PURE__ */ e(Xx, { metricKey: a, idx: r }, a)) });
|
|
15267
15267
|
}
|
|
15268
|
-
function
|
|
15268
|
+
function Xx({ metricKey: t, idx: a }) {
|
|
15269
15269
|
var v;
|
|
15270
15270
|
const [r, s] = U(!1), o = R((M) => {
|
|
15271
15271
|
var T;
|
|
@@ -16614,7 +16614,7 @@ function Ob({
|
|
|
16614
16614
|
case "map":
|
|
16615
16615
|
return /* @__PURE__ */ e(xx, {});
|
|
16616
16616
|
case "custom":
|
|
16617
|
-
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(
|
|
16617
|
+
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(Xi, {}) });
|
|
16618
16618
|
case "text":
|
|
16619
16619
|
return /* @__PURE__ */ e(Dx, {});
|
|
16620
16620
|
default:
|
|
@@ -16742,7 +16742,7 @@ function oc({
|
|
|
16742
16742
|
listeners: x,
|
|
16743
16743
|
setNodeRef: b,
|
|
16744
16744
|
isDragging: g
|
|
16745
|
-
} =
|
|
16745
|
+
} = Xu({
|
|
16746
16746
|
id: em(t),
|
|
16747
16747
|
data: { origin: r, field: a }
|
|
16748
16748
|
}), { setNodeRef: v } = Go({
|
|
@@ -17225,7 +17225,7 @@ function Bb({ idx: t }) {
|
|
|
17225
17225
|
onClick: () => c("start", t),
|
|
17226
17226
|
className: "h-7 p-1 text-xs font-normal",
|
|
17227
17227
|
children: /* @__PURE__ */ e(
|
|
17228
|
-
|
|
17228
|
+
Xp,
|
|
17229
17229
|
{
|
|
17230
17230
|
className: G("h-4 w-4", {
|
|
17231
17231
|
"rotate-90": o === "y"
|
|
@@ -17718,7 +17718,7 @@ function Hb({
|
|
|
17718
17718
|
] })
|
|
17719
17719
|
] }),
|
|
17720
17720
|
/* @__PURE__ */ n("div", { className: "relative", children: [
|
|
17721
|
-
/* @__PURE__ */ e(
|
|
17721
|
+
/* @__PURE__ */ e(Zr, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
17722
17722
|
/* @__PURE__ */ e(
|
|
17723
17723
|
De,
|
|
17724
17724
|
{
|
|
@@ -17778,7 +17778,7 @@ function Wb({
|
|
|
17778
17778
|
hasPivotColumns: d = !1,
|
|
17779
17779
|
cardType: c
|
|
17780
17780
|
}) {
|
|
17781
|
-
var Vs, Bs, $s, qs, js, Ks, zs, Us, Gs, Hs, Js, Qs, Ws,
|
|
17781
|
+
var Vs, Bs, $s, qs, js, Ks, zs, Us, Gs, Hs, Js, Qs, Ws, Zs, Xs, el, tl, al, nl, rl, sl, ll, ol, il, cl, dl, ul, ml, hl, pl, fl, gl, xl;
|
|
17782
17782
|
const l = R((J) => J.card), i = R((J) => J.frame), h = xe((J) => J.isVisualEditing), u = xe((J) => J.selectedSheetId), f = xe(
|
|
17783
17783
|
(J) => J.actions.updateSheetCalculatedFields
|
|
17784
17784
|
), m = xe(
|
|
@@ -17811,7 +17811,7 @@ function Wb({
|
|
|
17811
17811
|
handleMetricComparisonPolarityChange: q,
|
|
17812
17812
|
handleMetricWindowTransformChange: j,
|
|
17813
17813
|
handleMetricWindowOrderByChange: H,
|
|
17814
|
-
handleMetricWindowDirectionChange:
|
|
17814
|
+
handleMetricWindowDirectionChange: Z,
|
|
17815
17815
|
handleMetricWindowPartitionToggle: ie,
|
|
17816
17816
|
handleMetricMovingAverageWindowSizeChange: z,
|
|
17817
17817
|
handleMetricMovingAverageMinPeriodsChange: W,
|
|
@@ -17823,15 +17823,15 @@ function Wb({
|
|
|
17823
17823
|
var J;
|
|
17824
17824
|
return !!((J = t.parameters) != null && J.windowTransform);
|
|
17825
17825
|
}), [Le, Ye] = U(!1), [ye, _e] = U(!1), [Qe, Ve] = U(null), ft = ee(() => {
|
|
17826
|
-
const J = (de) => de != null && de.startsWith("card-source-") ? de.replace("card-source-", "") : de, Te = J(t.id),
|
|
17826
|
+
const J = (de) => de != null && de.startsWith("card-source-") ? de.replace("card-source-", "") : de, Te = J(t.id), X = b.find((de) => {
|
|
17827
17827
|
if (t.qualifiedFieldName && de.qualifiedFieldName && de.qualifiedFieldName === t.qualifiedFieldName || t.qualifiedEntityName && de.qualifiedEntityName && de.qualifiedEntityName === t.qualifiedEntityName && de.name === t.name)
|
|
17828
17828
|
return !0;
|
|
17829
17829
|
const Ce = J(de.id);
|
|
17830
17830
|
return !!(Te && Ce && Te === Ce);
|
|
17831
17831
|
});
|
|
17832
17832
|
return {
|
|
17833
|
-
dataType: (
|
|
17834
|
-
resolvedFromScopedField: !!
|
|
17833
|
+
dataType: (X == null ? void 0 : X.dataType) || t.dataType,
|
|
17834
|
+
resolvedFromScopedField: !!X
|
|
17835
17835
|
};
|
|
17836
17836
|
}, [
|
|
17837
17837
|
t.dataType,
|
|
@@ -17840,7 +17840,7 @@ function Wb({
|
|
|
17840
17840
|
t.qualifiedEntityName,
|
|
17841
17841
|
t.qualifiedFieldName,
|
|
17842
17842
|
b
|
|
17843
|
-
]),
|
|
17843
|
+
]), Xe = qo(
|
|
17844
17844
|
ft.dataType
|
|
17845
17845
|
), ce = ee(
|
|
17846
17846
|
() => Kh({
|
|
@@ -17861,7 +17861,7 @@ function Wb({
|
|
|
17861
17861
|
t.granularity,
|
|
17862
17862
|
t.semanticTemporalPresentation
|
|
17863
17863
|
]
|
|
17864
|
-
), ke = a === "groupBy" ? ce.ok &&
|
|
17864
|
+
), ke = a === "groupBy" ? ce.ok && Xe.includes(ce.granularity) ? ce.granularity : void 0 : Xe.includes(t.granularity) ? t.granularity : "day", Re = ce.ok ? ce.selection : {
|
|
17865
17865
|
value: "auto",
|
|
17866
17866
|
customPattern: "",
|
|
17867
17867
|
format: fi
|
|
@@ -17874,7 +17874,7 @@ function Wb({
|
|
|
17874
17874
|
), [Q, Se] = U(
|
|
17875
17875
|
t.valueAliases || {}
|
|
17876
17876
|
), [ve, Ie] = U((Vs = t.parameters) == null ? void 0 : Vs.filters), At = (J) => {
|
|
17877
|
-
var
|
|
17877
|
+
var X;
|
|
17878
17878
|
if (a === "groupBy" && !ke) return;
|
|
17879
17879
|
const Te = ke ?? "day";
|
|
17880
17880
|
if (J === "custom") {
|
|
@@ -17884,7 +17884,7 @@ function Wb({
|
|
|
17884
17884
|
F
|
|
17885
17885
|
).find(
|
|
17886
17886
|
(Ue) => Ue.value === "custom"
|
|
17887
|
-
) : void 0, Ce = a === "groupBy" ? ze || (((
|
|
17887
|
+
) : void 0, Ce = a === "groupBy" ? ze || (((X = de == null ? void 0 : de.format) == null ? void 0 : X.presentation.mode) === "pattern" ? de.format.presentation.pattern : "") : ze;
|
|
17888
17888
|
Je(J), at(Ce), a === "groupBy" && k(
|
|
17889
17889
|
r,
|
|
17890
17890
|
hn(
|
|
@@ -17914,14 +17914,14 @@ function Wb({
|
|
|
17914
17914
|
const Te = Jh(
|
|
17915
17915
|
Re.format,
|
|
17916
17916
|
J
|
|
17917
|
-
),
|
|
17917
|
+
), X = Qh({
|
|
17918
17918
|
fieldId: t.id,
|
|
17919
17919
|
dataType: t.dataType,
|
|
17920
17920
|
granularity: J,
|
|
17921
17921
|
format: Te,
|
|
17922
17922
|
semanticTemporalPresentation: t.semanticTemporalPresentation
|
|
17923
17923
|
});
|
|
17924
|
-
Je(
|
|
17924
|
+
Je(X.value), at(X.customPattern), V(r, J);
|
|
17925
17925
|
}
|
|
17926
17926
|
}, Wt = (J) => {
|
|
17927
17927
|
We(J), a === "metrics" && w(r, J);
|
|
@@ -17933,21 +17933,21 @@ function Wb({
|
|
|
17933
17933
|
y(a, r, J);
|
|
17934
17934
|
}, nt = cm(t);
|
|
17935
17935
|
dm(t);
|
|
17936
|
-
const
|
|
17936
|
+
const Zt = um(t), jt = t.role === "metric" && Zt, $n = Zt && (nt === "user_calculated" || nt === "inline_expression" && t.fieldScope !== "domain"), Rt = $n ? cp({
|
|
17937
17937
|
field: t,
|
|
17938
17938
|
sheetFields: (i == null ? void 0 : i.calculatedFields) || [],
|
|
17939
17939
|
dashboardFields: x
|
|
17940
17940
|
}) : void 0, Cs = $n && (Rt == null ? void 0 : Rt.scope) === "sheet", ws = $n && (Rt == null ? void 0 : Rt.scope) === "dashboard", Aa = nt === "domain_calculated" || t.fieldScope === "domain", Ss = Aa ? mm(t, b) : void 0, fa = Aa ? "domain" : Cs ? "sheet" : ws ? "dashboard" : "card", rn = Aa ? Ss || t : (Cs || ws) && (Rt != null && Rt.matchedField) ? Rt.matchedField : t, pc = Aa ? Ss ? "effective" : v ? "loading" : M ? "unavailable" : "unverified" : void 0, ks = (J) => {
|
|
17941
17941
|
var Te;
|
|
17942
17942
|
if (Ie(J), a === "metrics") {
|
|
17943
|
-
const
|
|
17943
|
+
const X = {
|
|
17944
17944
|
...t,
|
|
17945
17945
|
parameters: {
|
|
17946
17946
|
...t.parameters,
|
|
17947
17947
|
filters: J
|
|
17948
17948
|
}
|
|
17949
17949
|
}, de = [...((Te = l.config) == null ? void 0 : Te.metricColumns) || []];
|
|
17950
|
-
de[r] =
|
|
17950
|
+
de[r] = X, R.getState().actions.updateCardConfig(l.id, {
|
|
17951
17951
|
metricColumns: de
|
|
17952
17952
|
});
|
|
17953
17953
|
}
|
|
@@ -17965,7 +17965,7 @@ function Wb({
|
|
|
17965
17965
|
) : a === "detailColumns" ? Yb(ke ?? "day") : [], gc = yt ? "custom" : !ke && a === "groupBy" ? void 0 : zn.some((J) => J.value === He) ? He : ((qs = zn[0]) == null ? void 0 : qs.value) ?? "YYYY-MM-DD", xc = !!c && Gh.includes(c), bc = !!c && Hh.includes(c), Es = ee(
|
|
17966
17966
|
() => ga == null ? void 0 : ga.find((J) => Lt(J.dataType || "") === "date"),
|
|
17967
17967
|
[ga]
|
|
17968
|
-
),
|
|
17968
|
+
), Xt = ee(
|
|
17969
17969
|
() => zh({
|
|
17970
17970
|
card: l,
|
|
17971
17971
|
cardConfig: l.config || {},
|
|
@@ -17973,23 +17973,23 @@ function Wb({
|
|
|
17973
17973
|
}),
|
|
17974
17974
|
[l, sn]
|
|
17975
17975
|
), rt = ee(
|
|
17976
|
-
() => Es || (
|
|
17977
|
-
...
|
|
17978
|
-
id: `semantic-primary:${
|
|
17979
|
-
label:
|
|
17976
|
+
() => Es || (Xt ? {
|
|
17977
|
+
...Xt,
|
|
17978
|
+
id: `semantic-primary:${Xt.entityId}:${Xt.name}`,
|
|
17979
|
+
label: Xt.name,
|
|
17980
17980
|
role: "groupby",
|
|
17981
|
-
granularity:
|
|
17981
|
+
granularity: Xt.defaultGranularity || "day"
|
|
17982
17982
|
} : void 0),
|
|
17983
|
-
[Es,
|
|
17984
|
-
), Is =
|
|
17983
|
+
[Es, Xt]
|
|
17984
|
+
), Is = Xa(l), vc = ee(() => {
|
|
17985
17985
|
if (!rt) return !1;
|
|
17986
17986
|
const J = Is;
|
|
17987
17987
|
if (!J) return !1;
|
|
17988
17988
|
const Te = (de) => {
|
|
17989
17989
|
const Ce = de.field;
|
|
17990
17990
|
return Ce ? rt.id && Ce.id === rt.id || rt.qualifiedFieldName && Ce.qualifiedFieldName === rt.qualifiedFieldName ? !0 : Ce.name === rt.name : !1;
|
|
17991
|
-
},
|
|
17992
|
-
return
|
|
17991
|
+
}, X = (de) => de.conditions.some((Ue) => Lt(Ue.field.dataType || "") === "date" && Te(Ue)) ? !0 : de.groups.some((Ue) => X(Ue));
|
|
17992
|
+
return X(J);
|
|
17993
17993
|
}, [Is, rt]), yc = ee(() => {
|
|
17994
17994
|
const J = jp(
|
|
17995
17995
|
Ms,
|
|
@@ -18006,14 +18006,14 @@ function Wb({
|
|
|
18006
18006
|
transformMode: Mt || "running_total"
|
|
18007
18007
|
}), Ra = ((Us = Oe.comparison) == null ? void 0 : Us.mode) === "explicit", As = gm(
|
|
18008
18008
|
ga || []
|
|
18009
|
-
), xa = ((Js = (Hs = (Gs = Oe.parameters) == null ? void 0 : Gs.windowTransform) == null ? void 0 : Hs.orderBy) == null ? void 0 : Js.fieldId) || "", Nc = ((
|
|
18009
|
+
), xa = ((Js = (Hs = (Gs = Oe.parameters) == null ? void 0 : Gs.windowTransform) == null ? void 0 : Hs.orderBy) == null ? void 0 : Js.fieldId) || "", Nc = ((Zs = (Ws = (Qs = Oe.parameters) == null ? void 0 : Qs.windowTransform) == null ? void 0 : Ws.orderBy) == null ? void 0 : Zs.direction) || "asc", Rs = As.find(
|
|
18010
18010
|
(J) => J.id === xa
|
|
18011
18011
|
), Hn = Mt === "running_total" || Mt === "moving_average" || Mt === "previous_period_delta", Cc = Dt && Hn && !!Rs && Lt(Rs.dataType || "") !== "date", wc = xm({
|
|
18012
18012
|
cardType: c || "table",
|
|
18013
18013
|
cardConfig: l.config || {},
|
|
18014
18014
|
orderByFieldId: xa || void 0
|
|
18015
18015
|
}), Sc = new Set(
|
|
18016
|
-
((el = (
|
|
18016
|
+
((el = (Xs = Oe.parameters) == null ? void 0 : Xs.windowTransform) == null ? void 0 : el.partitionByFieldIds) || wc
|
|
18017
18017
|
), kc = c === "pivotTable" || bm(
|
|
18018
18018
|
c || "table",
|
|
18019
18019
|
l.config || {}
|
|
@@ -18039,8 +18039,8 @@ function Wb({
|
|
|
18039
18039
|
"div",
|
|
18040
18040
|
{
|
|
18041
18041
|
title: `${t.entityName}.${t.name}`,
|
|
18042
|
-
onPointerDown: (
|
|
18043
|
-
|
|
18042
|
+
onPointerDown: (X) => {
|
|
18043
|
+
X.stopPropagation();
|
|
18044
18044
|
},
|
|
18045
18045
|
className: "max-w-[270px] cursor-default overflow-hidden text-ellipsis whitespace-nowrap px-0.5 text-xs text-muted-foreground/80",
|
|
18046
18046
|
children: `${t.entityName}.${t.name}`
|
|
@@ -18050,8 +18050,8 @@ function Wb({
|
|
|
18050
18050
|
"div",
|
|
18051
18051
|
{
|
|
18052
18052
|
title: El(J.calculatedFormula),
|
|
18053
|
-
onPointerDown: (
|
|
18054
|
-
|
|
18053
|
+
onPointerDown: (X) => {
|
|
18054
|
+
X.stopPropagation();
|
|
18055
18055
|
},
|
|
18056
18056
|
className: "max-w-[270px] cursor-default overflow-hidden text-ellipsis whitespace-nowrap rounded bg-muted/50 px-1.5 py-0.5 font-mono text-xs text-primary",
|
|
18057
18057
|
children: [
|
|
@@ -18114,7 +18114,7 @@ function Wb({
|
|
|
18114
18114
|
onValueChange: Qt,
|
|
18115
18115
|
children: [
|
|
18116
18116
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select granularity..." }) }),
|
|
18117
|
-
/* @__PURE__ */ e(le, { children:
|
|
18117
|
+
/* @__PURE__ */ e(le, { children: Xe.map((J) => /* @__PURE__ */ e(K, { className: "text-xs", value: J, children: Yl(J) }, J)) })
|
|
18118
18118
|
]
|
|
18119
18119
|
}
|
|
18120
18120
|
)
|
|
@@ -18200,13 +18200,13 @@ function Wb({
|
|
|
18200
18200
|
ne,
|
|
18201
18201
|
{
|
|
18202
18202
|
value: t.aggregate,
|
|
18203
|
-
onValueChange: (
|
|
18204
|
-
N(r,
|
|
18203
|
+
onValueChange: (X) => {
|
|
18204
|
+
N(r, X);
|
|
18205
18205
|
},
|
|
18206
18206
|
disabled: J,
|
|
18207
18207
|
children: [
|
|
18208
18208
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select function..." }) }),
|
|
18209
|
-
/* @__PURE__ */ e(le, { children: gi(t.dataType).map((
|
|
18209
|
+
/* @__PURE__ */ e(le, { children: gi(t.dataType).map((X) => /* @__PURE__ */ e(K, { className: "text-xs", value: X.value, children: X.label }, X.value)) })
|
|
18210
18210
|
]
|
|
18211
18211
|
}
|
|
18212
18212
|
)
|
|
@@ -18217,7 +18217,7 @@ function Wb({
|
|
|
18217
18217
|
Ir,
|
|
18218
18218
|
{
|
|
18219
18219
|
value: Oe.format,
|
|
18220
|
-
onChange: (
|
|
18220
|
+
onChange: (X) => Y(r, X),
|
|
18221
18221
|
cardType: c,
|
|
18222
18222
|
showTitle: !1
|
|
18223
18223
|
}
|
|
@@ -18258,9 +18258,9 @@ function Wb({
|
|
|
18258
18258
|
ne,
|
|
18259
18259
|
{
|
|
18260
18260
|
value: Dt ? Un : "none",
|
|
18261
|
-
onValueChange: (
|
|
18261
|
+
onValueChange: (X) => j(
|
|
18262
18262
|
r,
|
|
18263
|
-
|
|
18263
|
+
X
|
|
18264
18264
|
),
|
|
18265
18265
|
disabled: !Gn.supported && !Dt,
|
|
18266
18266
|
children: [
|
|
@@ -18314,17 +18314,17 @@ function Wb({
|
|
|
18314
18314
|
ne,
|
|
18315
18315
|
{
|
|
18316
18316
|
value: xa,
|
|
18317
|
-
onValueChange: (
|
|
18317
|
+
onValueChange: (X) => H(r, X),
|
|
18318
18318
|
children: [
|
|
18319
18319
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select order field..." }) }),
|
|
18320
|
-
/* @__PURE__ */ e(le, { children: As.filter((
|
|
18320
|
+
/* @__PURE__ */ e(le, { children: As.filter((X) => !!X.id).map((X) => /* @__PURE__ */ e(
|
|
18321
18321
|
K,
|
|
18322
18322
|
{
|
|
18323
|
-
value:
|
|
18323
|
+
value: X.id,
|
|
18324
18324
|
className: "text-xs",
|
|
18325
|
-
children:
|
|
18325
|
+
children: X.label || X.name
|
|
18326
18326
|
},
|
|
18327
|
-
|
|
18327
|
+
X.id
|
|
18328
18328
|
)) })
|
|
18329
18329
|
]
|
|
18330
18330
|
}
|
|
@@ -18338,9 +18338,9 @@ function Wb({
|
|
|
18338
18338
|
ne,
|
|
18339
18339
|
{
|
|
18340
18340
|
value: Nc,
|
|
18341
|
-
onValueChange: (
|
|
18341
|
+
onValueChange: (X) => Z(
|
|
18342
18342
|
r,
|
|
18343
|
-
|
|
18343
|
+
X
|
|
18344
18344
|
),
|
|
18345
18345
|
disabled: !xa,
|
|
18346
18346
|
children: [
|
|
@@ -18363,9 +18363,9 @@ function Wb({
|
|
|
18363
18363
|
min: 1,
|
|
18364
18364
|
className: "h-8 text-xs",
|
|
18365
18365
|
value: Ls,
|
|
18366
|
-
onChange: (
|
|
18366
|
+
onChange: (X) => z(
|
|
18367
18367
|
r,
|
|
18368
|
-
Number(
|
|
18368
|
+
Number(X.target.value)
|
|
18369
18369
|
)
|
|
18370
18370
|
}
|
|
18371
18371
|
),
|
|
@@ -18378,9 +18378,9 @@ function Wb({
|
|
|
18378
18378
|
max: Ls,
|
|
18379
18379
|
className: "h-8 text-xs",
|
|
18380
18380
|
value: Tc,
|
|
18381
|
-
onChange: (
|
|
18381
|
+
onChange: (X) => W(
|
|
18382
18382
|
r,
|
|
18383
|
-
Number(
|
|
18383
|
+
Number(X.target.value)
|
|
18384
18384
|
)
|
|
18385
18385
|
}
|
|
18386
18386
|
)
|
|
@@ -18391,9 +18391,9 @@ function Wb({
|
|
|
18391
18391
|
ne,
|
|
18392
18392
|
{
|
|
18393
18393
|
value: Dc,
|
|
18394
|
-
onValueChange: (
|
|
18394
|
+
onValueChange: (X) => ae(
|
|
18395
18395
|
r,
|
|
18396
|
-
|
|
18396
|
+
X
|
|
18397
18397
|
),
|
|
18398
18398
|
children: [
|
|
18399
18399
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select output..." }) }),
|
|
@@ -18412,9 +18412,9 @@ function Wb({
|
|
|
18412
18412
|
ne,
|
|
18413
18413
|
{
|
|
18414
18414
|
value: Ys,
|
|
18415
|
-
onValueChange: (
|
|
18415
|
+
onValueChange: (X) => ue(
|
|
18416
18416
|
r,
|
|
18417
|
-
|
|
18417
|
+
X
|
|
18418
18418
|
),
|
|
18419
18419
|
children: [
|
|
18420
18420
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select scope..." }) }),
|
|
@@ -18432,9 +18432,9 @@ function Wb({
|
|
|
18432
18432
|
ne,
|
|
18433
18433
|
{
|
|
18434
18434
|
value: Mc,
|
|
18435
|
-
onValueChange: (
|
|
18435
|
+
onValueChange: (X) => oe(
|
|
18436
18436
|
r,
|
|
18437
|
-
|
|
18437
|
+
X
|
|
18438
18438
|
),
|
|
18439
18439
|
children: [
|
|
18440
18440
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select output..." }) }),
|
|
@@ -18450,26 +18450,26 @@ function Wb({
|
|
|
18450
18450
|
(Mt === "running_total" || Mt === "moving_average" || Mt === "previous_period_delta" || Mt === "percent_of_total" && Ys === "partition_total") && Ps.length > 0 && /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
18451
18451
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium text-muted-foreground", children: "Reset By" }),
|
|
18452
18452
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: Ps.map(
|
|
18453
|
-
(
|
|
18454
|
-
const de = !!
|
|
18453
|
+
(X) => {
|
|
18454
|
+
const de = !!X.id && Sc.has(X.id);
|
|
18455
18455
|
return /* @__PURE__ */ n(
|
|
18456
18456
|
"button",
|
|
18457
18457
|
{
|
|
18458
18458
|
type: "button",
|
|
18459
|
-
onClick: () =>
|
|
18459
|
+
onClick: () => X.id && ie(
|
|
18460
18460
|
r,
|
|
18461
|
-
|
|
18461
|
+
X.id
|
|
18462
18462
|
),
|
|
18463
18463
|
className: G(
|
|
18464
18464
|
"flex h-7 w-full items-center justify-between rounded border px-2 text-xs",
|
|
18465
18465
|
de ? "border-primary bg-primary/5 text-primary" : "border-border text-muted-foreground"
|
|
18466
18466
|
),
|
|
18467
18467
|
children: [
|
|
18468
|
-
/* @__PURE__ */ e("span", { children:
|
|
18468
|
+
/* @__PURE__ */ e("span", { children: X.label || X.name }),
|
|
18469
18469
|
de ? /* @__PURE__ */ e(ma, { className: "h-3 w-3" }) : null
|
|
18470
18470
|
]
|
|
18471
18471
|
},
|
|
18472
|
-
|
|
18472
|
+
X.id
|
|
18473
18473
|
);
|
|
18474
18474
|
}
|
|
18475
18475
|
) })
|
|
@@ -18486,9 +18486,9 @@ function Wb({
|
|
|
18486
18486
|
{
|
|
18487
18487
|
value: Oe.comparison ? Oe.comparison.mode === "off" ? "off" : Oe.comparison.spec.kind : "inherit",
|
|
18488
18488
|
disabled: Dt,
|
|
18489
|
-
onValueChange: (
|
|
18489
|
+
onValueChange: (X) => P(
|
|
18490
18490
|
r,
|
|
18491
|
-
|
|
18491
|
+
X
|
|
18492
18492
|
),
|
|
18493
18493
|
children: [
|
|
18494
18494
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, { placeholder: "Select comparison type..." }) }),
|
|
@@ -18496,17 +18496,17 @@ function Wb({
|
|
|
18496
18496
|
/* @__PURE__ */ e(K, { value: "inherit", children: "Inherit dashboard comparison (default)" }),
|
|
18497
18497
|
/* @__PURE__ */ e(K, { value: "off", children: "Off" }),
|
|
18498
18498
|
(() => {
|
|
18499
|
-
const
|
|
18499
|
+
const X = !rt || !Os, de = rt ? Os ? void 0 : "Add a date filter to enable" : "Configure a semantic primary date or add a date axis", Ce = (Ue, et) => /* @__PURE__ */ e(gt, { children: /* @__PURE__ */ n(mt, { children: [
|
|
18500
18500
|
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e(
|
|
18501
18501
|
K,
|
|
18502
18502
|
{
|
|
18503
18503
|
value: Ue,
|
|
18504
|
-
disabled:
|
|
18504
|
+
disabled: X,
|
|
18505
18505
|
title: de,
|
|
18506
18506
|
children: et
|
|
18507
18507
|
}
|
|
18508
18508
|
) }),
|
|
18509
|
-
|
|
18509
|
+
X && de && /* @__PURE__ */ e(ut, { side: "right", children: de })
|
|
18510
18510
|
] }) });
|
|
18511
18511
|
return /* @__PURE__ */ n(pe, { children: [
|
|
18512
18512
|
Ce("previous_period", "Previous Period"),
|
|
@@ -18530,8 +18530,8 @@ function Wb({
|
|
|
18530
18530
|
min: 1,
|
|
18531
18531
|
step: 1,
|
|
18532
18532
|
value: it.kind === "previous_year" ? it.offsetYears || 1 : it.offsetPeriods || 1,
|
|
18533
|
-
onChange: (
|
|
18534
|
-
const de = Number(
|
|
18533
|
+
onChange: (X) => {
|
|
18534
|
+
const de = Number(X.target.value);
|
|
18535
18535
|
!Number.isSafeInteger(de) || de <= 0 || (it.kind === "previous_year" ? $(r, {
|
|
18536
18536
|
...it,
|
|
18537
18537
|
offsetYears: de === 1 ? void 0 : de
|
|
@@ -18550,9 +18550,9 @@ function Wb({
|
|
|
18550
18550
|
ne,
|
|
18551
18551
|
{
|
|
18552
18552
|
value: it.alignment || "calendar",
|
|
18553
|
-
onValueChange: (
|
|
18553
|
+
onValueChange: (X) => $(r, {
|
|
18554
18554
|
...it,
|
|
18555
|
-
alignment:
|
|
18555
|
+
alignment: X === "calendar" ? void 0 : X
|
|
18556
18556
|
}),
|
|
18557
18557
|
children: [
|
|
18558
18558
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
@@ -18574,9 +18574,9 @@ function Wb({
|
|
|
18574
18574
|
{
|
|
18575
18575
|
size: "xs",
|
|
18576
18576
|
checked: it.toDate === !0,
|
|
18577
|
-
onCheckedChange: (
|
|
18577
|
+
onCheckedChange: (X) => $(r, {
|
|
18578
18578
|
...it,
|
|
18579
|
-
toDate:
|
|
18579
|
+
toDate: X ? !0 : void 0
|
|
18580
18580
|
})
|
|
18581
18581
|
}
|
|
18582
18582
|
)
|
|
@@ -18595,9 +18595,9 @@ function Wb({
|
|
|
18595
18595
|
{
|
|
18596
18596
|
value: Pp(Oe),
|
|
18597
18597
|
disabled: !!Oe.semanticComparisonPolarity,
|
|
18598
|
-
onValueChange: (
|
|
18598
|
+
onValueChange: (X) => q(
|
|
18599
18599
|
r,
|
|
18600
|
-
|
|
18600
|
+
X
|
|
18601
18601
|
),
|
|
18602
18602
|
children: [
|
|
18603
18603
|
/* @__PURE__ */ e(re, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(se, {}) }),
|
|
@@ -18618,8 +18618,8 @@ function Wb({
|
|
|
18618
18618
|
{
|
|
18619
18619
|
type: "number",
|
|
18620
18620
|
value: Oe.comparison.spec.targetValue !== void 0 && Oe.comparison.spec.targetValue !== null ? String(Oe.comparison.spec.targetValue) : "",
|
|
18621
|
-
onChange: (
|
|
18622
|
-
const de =
|
|
18621
|
+
onChange: (X) => {
|
|
18622
|
+
const de = X.target.value;
|
|
18623
18623
|
if (de === "") {
|
|
18624
18624
|
ge(r, void 0);
|
|
18625
18625
|
return;
|
|
@@ -18637,21 +18637,21 @@ function Wb({
|
|
|
18637
18637
|
] }),
|
|
18638
18638
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
18639
18639
|
/* @__PURE__ */ e(_, { className: "text-xs font-medium text-muted-foreground", children: "Attribute Filters" }),
|
|
18640
|
-
(ve == null ? void 0 : ve.conditions) && ve.conditions.length > 0 && /* @__PURE__ */ e("div", { className: "mb-2 space-y-1", children: ve.conditions.map((
|
|
18640
|
+
(ve == null ? void 0 : ve.conditions) && ve.conditions.length > 0 && /* @__PURE__ */ e("div", { className: "mb-2 space-y-1", children: ve.conditions.map((X) => /* @__PURE__ */ n(
|
|
18641
18641
|
"div",
|
|
18642
18642
|
{
|
|
18643
18643
|
className: "flex cursor-pointer items-center gap-2 rounded bg-muted/50 p-2 text-xs transition-colors hover:bg-muted/70",
|
|
18644
18644
|
onClick: () => {
|
|
18645
|
-
Ve(
|
|
18645
|
+
Ve(X), Ye(!0);
|
|
18646
18646
|
},
|
|
18647
18647
|
children: [
|
|
18648
18648
|
/* @__PURE__ */ n("span", { className: "font-medium", children: [
|
|
18649
|
-
|
|
18649
|
+
X.field.label,
|
|
18650
18650
|
":"
|
|
18651
18651
|
] }),
|
|
18652
18652
|
/* @__PURE__ */ e(gt, { children: /* @__PURE__ */ n(mt, { children: [
|
|
18653
|
-
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "cursor-help text-muted-foreground", children: Array.isArray(
|
|
18654
|
-
Array.isArray(
|
|
18653
|
+
/* @__PURE__ */ e(ht, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "cursor-help text-muted-foreground", children: Array.isArray(X.value) ? X.value.length === 1 ? String(X.value[0]) : X.value.length <= 2 ? X.value.join(", ") : `${X.value.slice(0, 2).join(", ")} +${X.value.length - 2}` : String(X.value) }) }),
|
|
18654
|
+
Array.isArray(X.value) && X.value.length > 1 && /* @__PURE__ */ e(
|
|
18655
18655
|
ut,
|
|
18656
18656
|
{
|
|
18657
18657
|
side: "top",
|
|
@@ -18659,10 +18659,10 @@ function Wb({
|
|
|
18659
18659
|
children: /* @__PURE__ */ n("div", { className: "text-xs", children: [
|
|
18660
18660
|
/* @__PURE__ */ n("div", { className: "mb-1 font-medium", children: [
|
|
18661
18661
|
"Selected values (",
|
|
18662
|
-
|
|
18662
|
+
X.value.length,
|
|
18663
18663
|
"):"
|
|
18664
18664
|
] }),
|
|
18665
|
-
/* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-y-auto", children:
|
|
18665
|
+
/* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-y-auto", children: X.value.map((de, Ce) => /* @__PURE__ */ e("div", { children: String(de) }, Ce)) })
|
|
18666
18666
|
] })
|
|
18667
18667
|
}
|
|
18668
18668
|
)
|
|
@@ -18677,7 +18677,7 @@ function Wb({
|
|
|
18677
18677
|
var Ue;
|
|
18678
18678
|
de.stopPropagation();
|
|
18679
18679
|
const Ce = ve.conditions.filter(
|
|
18680
|
-
(et) => et.id !==
|
|
18680
|
+
(et) => et.id !== X.id
|
|
18681
18681
|
);
|
|
18682
18682
|
if (Ce.length > 0) {
|
|
18683
18683
|
const et = {
|
|
@@ -18705,7 +18705,7 @@ function Wb({
|
|
|
18705
18705
|
)
|
|
18706
18706
|
]
|
|
18707
18707
|
},
|
|
18708
|
-
|
|
18708
|
+
X.id
|
|
18709
18709
|
)) }),
|
|
18710
18710
|
/* @__PURE__ */ n(
|
|
18711
18711
|
te,
|
|
@@ -18798,14 +18798,14 @@ function Wb({
|
|
|
18798
18798
|
if (J)
|
|
18799
18799
|
ks(J);
|
|
18800
18800
|
else if (Ie(void 0), a === "metrics") {
|
|
18801
|
-
const
|
|
18801
|
+
const X = {
|
|
18802
18802
|
...t,
|
|
18803
18803
|
parameters: {
|
|
18804
18804
|
...t.parameters,
|
|
18805
18805
|
filters: void 0
|
|
18806
18806
|
}
|
|
18807
18807
|
}, de = [...((Te = l.config) == null ? void 0 : Te.metricColumns) || []];
|
|
18808
|
-
de[r] =
|
|
18808
|
+
de[r] = X, R.getState().actions.updateCardConfig(l.id, {
|
|
18809
18809
|
metricColumns: de
|
|
18810
18810
|
});
|
|
18811
18811
|
}
|
|
@@ -18814,7 +18814,7 @@ function Wb({
|
|
|
18814
18814
|
}
|
|
18815
18815
|
),
|
|
18816
18816
|
ye && a === "metrics" && jt && /* @__PURE__ */ e(
|
|
18817
|
-
|
|
18817
|
+
Zo,
|
|
18818
18818
|
{
|
|
18819
18819
|
open: ye,
|
|
18820
18820
|
onOpenChange: _e,
|
|
@@ -18828,9 +18828,9 @@ function Wb({
|
|
|
18828
18828
|
if (J.role !== "metric") return;
|
|
18829
18829
|
const {
|
|
18830
18830
|
card: Te,
|
|
18831
|
-
frame:
|
|
18831
|
+
frame: X,
|
|
18832
18832
|
actions: de
|
|
18833
|
-
} = R.getState(), Ce = fa === "dashboard" ? x :
|
|
18833
|
+
} = R.getState(), Ce = fa === "dashboard" ? x : X.calculatedFields || [], {
|
|
18834
18834
|
cardConfigPatch: Ue,
|
|
18835
18835
|
nextStoredFields: et,
|
|
18836
18836
|
nextSharedFields: Ft
|
|
@@ -18857,9 +18857,9 @@ function Wb({
|
|
|
18857
18857
|
if (J.role !== "metric") return;
|
|
18858
18858
|
const {
|
|
18859
18859
|
card: Te,
|
|
18860
|
-
frame:
|
|
18860
|
+
frame: X,
|
|
18861
18861
|
actions: de
|
|
18862
|
-
} = R.getState(), Ce = t, Ue =
|
|
18862
|
+
} = R.getState(), Ce = t, Ue = X.calculatedFields || [], {
|
|
18863
18863
|
cardConfigPatch: et,
|
|
18864
18864
|
nextStoredFields: Ft,
|
|
18865
18865
|
nextSheetFields: Jn,
|
|
@@ -18895,14 +18895,14 @@ function Wb({
|
|
|
18895
18895
|
if (J.role !== "metric") return;
|
|
18896
18896
|
const {
|
|
18897
18897
|
card: Te,
|
|
18898
|
-
frame:
|
|
18898
|
+
frame: X,
|
|
18899
18899
|
actions: de
|
|
18900
|
-
} = R.getState(), Ce = t, Ue =
|
|
18900
|
+
} = R.getState(), Ce = t, Ue = X.calculatedFields || [], {
|
|
18901
18901
|
cardConfigPatch: et,
|
|
18902
18902
|
nextStoredFields: Ft,
|
|
18903
18903
|
nextSharedFields: Jn,
|
|
18904
18904
|
nextSheetFields: ea
|
|
18905
|
-
} =
|
|
18905
|
+
} = Xo({
|
|
18906
18906
|
cardConfig: Te.config,
|
|
18907
18907
|
storedFields: Te.calculatedFields || [],
|
|
18908
18908
|
sharedFields: x,
|
|
@@ -18934,7 +18934,7 @@ function Wb({
|
|
|
18934
18934
|
)
|
|
18935
18935
|
] });
|
|
18936
18936
|
}
|
|
18937
|
-
function
|
|
18937
|
+
function Zb({
|
|
18938
18938
|
field: t,
|
|
18939
18939
|
zone: a,
|
|
18940
18940
|
onRemove: r
|
|
@@ -18956,7 +18956,7 @@ function Xb({
|
|
|
18956
18956
|
}
|
|
18957
18957
|
);
|
|
18958
18958
|
}
|
|
18959
|
-
function
|
|
18959
|
+
function Xb({ concept: t }) {
|
|
18960
18960
|
const { title: a, description: r } = ev[t];
|
|
18961
18961
|
return /* @__PURE__ */ n(ya, { openDelay: 150, closeDelay: 50, children: [
|
|
18962
18962
|
/* @__PURE__ */ e(Na, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -19083,7 +19083,7 @@ function $a({
|
|
|
19083
19083
|
zone: a,
|
|
19084
19084
|
pillIds: r.map((S) => S.id)
|
|
19085
19085
|
}
|
|
19086
|
-
}), i =
|
|
19086
|
+
}), i = Xc(a), { updateSortByColumn: h } = Ne(), u = R((S) => S.card), f = R((S) => S.card.type), m = r.length > 0, p = i !== null, x = (i == null ? void 0 : i.kind) !== "refused", b = (i == null ? void 0 : i.kind) === "refused" ? vm(i.notice, s) : null, g = st((S, L) => {
|
|
19087
19087
|
var I;
|
|
19088
19088
|
!((I = u.config) != null && I.sortByColumns) || u.config.sortByColumns.findIndex(
|
|
19089
19089
|
(F) => F.id === S
|
|
@@ -19101,7 +19101,7 @@ function $a({
|
|
|
19101
19101
|
}
|
|
19102
19102
|
),
|
|
19103
19103
|
f === "matrixTable" ? /* @__PURE__ */ e(
|
|
19104
|
-
|
|
19104
|
+
Zb,
|
|
19105
19105
|
{
|
|
19106
19106
|
field: S,
|
|
19107
19107
|
zone: a,
|
|
@@ -19151,7 +19151,7 @@ function $a({
|
|
|
19151
19151
|
children: r.length === 0 ? /* @__PURE__ */ n("div", { className: "flex h-9 items-center justify-center gap-1.5 text-[11px] text-muted-foreground/80", children: [
|
|
19152
19152
|
/* @__PURE__ */ e(T, { className: "h-3 w-3 shrink-0 text-muted-foreground/60" }),
|
|
19153
19153
|
/* @__PURE__ */ e("span", { children: o }),
|
|
19154
|
-
M && /* @__PURE__ */ e(
|
|
19154
|
+
M && /* @__PURE__ */ e(Xb, { concept: a })
|
|
19155
19155
|
] }) : v
|
|
19156
19156
|
}
|
|
19157
19157
|
)
|
|
@@ -19189,7 +19189,7 @@ function sv({
|
|
|
19189
19189
|
sortByFields: d,
|
|
19190
19190
|
detailFields: c
|
|
19191
19191
|
}) {
|
|
19192
|
-
var H,
|
|
19192
|
+
var H, Z, ie;
|
|
19193
19193
|
const [l, i] = U(!1);
|
|
19194
19194
|
R(
|
|
19195
19195
|
(z) => {
|
|
@@ -19199,7 +19199,7 @@ function sv({
|
|
|
19199
19199
|
);
|
|
19200
19200
|
const h = R((z) => z.card), u = R((z) => z.frame), f = ha(u, h), { manifest: m } = ia(
|
|
19201
19201
|
((H = f == null ? void 0 : f.customCardPreferences) == null ? void 0 : H.url) || ""
|
|
19202
|
-
), p = (
|
|
19202
|
+
), p = (Z = m == null ? void 0 : m.visuals) == null ? void 0 : Z.find(
|
|
19203
19203
|
(z) => {
|
|
19204
19204
|
var W;
|
|
19205
19205
|
return z.name === ((W = f == null ? void 0 : f.customCardPreferences) == null ? void 0 : W.componentName);
|
|
@@ -19328,7 +19328,7 @@ function sv({
|
|
|
19328
19328
|
)
|
|
19329
19329
|
] }),
|
|
19330
19330
|
/* @__PURE__ */ e(
|
|
19331
|
-
|
|
19331
|
+
Zo,
|
|
19332
19332
|
{
|
|
19333
19333
|
open: l,
|
|
19334
19334
|
onOpenChange: i,
|
|
@@ -19366,7 +19366,7 @@ function sv({
|
|
|
19366
19366
|
},
|
|
19367
19367
|
onSaveToDashboard: (z) => {
|
|
19368
19368
|
if (z.role !== "metric") return;
|
|
19369
|
-
const { nextSharedFields: W } =
|
|
19369
|
+
const { nextSharedFields: W } = Xo({
|
|
19370
19370
|
storedFields: h.calculatedFields || [],
|
|
19371
19371
|
sharedFields: I,
|
|
19372
19372
|
updatedField: z,
|
|
@@ -19442,7 +19442,7 @@ function lv() {
|
|
|
19442
19442
|
]
|
|
19443
19443
|
}
|
|
19444
19444
|
),
|
|
19445
|
-
b && o && /* @__PURE__ */ e("div", { className: "max-h-[40vh] overflow-y-auto border-b border-t border-border px-4", children: /* @__PURE__ */ e(
|
|
19445
|
+
b && o && /* @__PURE__ */ e("div", { className: "max-h-[40vh] overflow-y-auto border-b border-t border-border px-4", children: /* @__PURE__ */ e(Xi, {}) }),
|
|
19446
19446
|
b && /* @__PURE__ */ n(
|
|
19447
19447
|
"button",
|
|
19448
19448
|
{
|
|
@@ -19585,7 +19585,7 @@ function iv({
|
|
|
19585
19585
|
var F;
|
|
19586
19586
|
const [f, m] = U(!1), p = R((y) => y.card), x = R((y) => y.editorContext), b = R(
|
|
19587
19587
|
(y) => y.actions.updateCardConfig
|
|
19588
|
-
), g = (x == null ? void 0 : x.type) === "documentSection", { autoJoinMetadata: v } = xt(p), M =
|
|
19588
|
+
), g = (x == null ? void 0 : x.type) === "documentSection", { autoJoinMetadata: v } = xt(p), M = Xr(p) || (v != null && v.autoResolved ? v.resolvedJoinPlan : {
|
|
19589
19589
|
baseEntity: {
|
|
19590
19590
|
type: "table",
|
|
19591
19591
|
name: "",
|
|
@@ -20222,7 +20222,7 @@ function gv({
|
|
|
20222
20222
|
if (!t || i || s) return;
|
|
20223
20223
|
const g = Array.isArray(t) ? t[0] : t;
|
|
20224
20224
|
return er(g, c, "start");
|
|
20225
|
-
}, [t, i, s, c]), m = (g) => a === "<=" || a === ">" ?
|
|
20225
|
+
}, [t, i, s, c]), m = (g) => a === "<=" || a === ">" ? Zh(g, c) : Xh(g, c);
|
|
20226
20226
|
return /* @__PURE__ */ e(
|
|
20227
20227
|
Om,
|
|
20228
20228
|
{
|
|
@@ -21340,7 +21340,7 @@ function _v({
|
|
|
21340
21340
|
}, j = T ? { queryRequest: O, queryResponse: C } : void 0, H = ee(
|
|
21341
21341
|
() => (C == null ? void 0 : C.records) || [],
|
|
21342
21342
|
[C == null ? void 0 : C.records]
|
|
21343
|
-
),
|
|
21343
|
+
), Z = ee(
|
|
21344
21344
|
() => !V && H.length > 0 ? Object.keys(H[0]) : [],
|
|
21345
21345
|
[V, H]
|
|
21346
21346
|
), ie = Yo(s), z = R((me) => me.frame), [W, ae] = U(), ue = () => {
|
|
@@ -21372,7 +21372,7 @@ function _v({
|
|
|
21372
21372
|
var me;
|
|
21373
21373
|
return $m((me = o.config) == null ? void 0 : me.sortByColumns);
|
|
21374
21374
|
}, [(Ae = o.config) == null ? void 0 : Ae.sortByColumns]), be = ri(
|
|
21375
|
-
|
|
21375
|
+
Xa(s) || null
|
|
21376
21376
|
);
|
|
21377
21377
|
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: [
|
|
21378
21378
|
/* @__PURE__ */ n("div", { className: "flex h-11 items-center gap-3 border-b border-border px-4", children: [
|
|
@@ -21401,7 +21401,7 @@ function _v({
|
|
|
21401
21401
|
Km,
|
|
21402
21402
|
{
|
|
21403
21403
|
cardId: s.id,
|
|
21404
|
-
cardFilters:
|
|
21404
|
+
cardFilters: Xa(s),
|
|
21405
21405
|
cardFilterCount: be,
|
|
21406
21406
|
onFiltersClick: r,
|
|
21407
21407
|
inlineFilters: s.inlineFilters,
|
|
@@ -21416,7 +21416,7 @@ function _v({
|
|
|
21416
21416
|
{
|
|
21417
21417
|
card: s,
|
|
21418
21418
|
effectiveCardType: N,
|
|
21419
|
-
queryResultColumns:
|
|
21419
|
+
queryResultColumns: Z
|
|
21420
21420
|
}
|
|
21421
21421
|
),
|
|
21422
21422
|
y === "chart" && /* @__PURE__ */ e(
|
|
@@ -21572,7 +21572,7 @@ function _v({
|
|
|
21572
21572
|
) : (
|
|
21573
21573
|
/* Show normal SQL display when there's no error */
|
|
21574
21574
|
(C == null ? void 0 : C.sql) && /* @__PURE__ */ e(
|
|
21575
|
-
|
|
21575
|
+
Zi,
|
|
21576
21576
|
{
|
|
21577
21577
|
sql: C.sql,
|
|
21578
21578
|
debugPayloads: j
|
|
@@ -21651,13 +21651,13 @@ const $v = () => {
|
|
|
21651
21651
|
function qv() {
|
|
21652
21652
|
const [t, a] = U(
|
|
21653
21653
|
"chart"
|
|
21654
|
-
), [r, s] = U(!1), [o, d] = U(!0), [c, l] = U(!0), i = xe((
|
|
21654
|
+
), [r, s] = U(!1), [o, d] = U(!0), [c, l] = U(!0), i = xe((Z) => Z.isVisualEditing), h = ds(), u = R((Z) => Z.card.type);
|
|
21655
21655
|
we(() => $v(), []);
|
|
21656
|
-
const f = (
|
|
21657
|
-
h(
|
|
21658
|
-
}, m = R((
|
|
21659
|
-
R((
|
|
21660
|
-
(
|
|
21656
|
+
const f = (Z) => {
|
|
21657
|
+
h(Z);
|
|
21658
|
+
}, m = R((Z) => Z.frame), p = R((Z) => Z.card);
|
|
21659
|
+
R((Z) => Z.activeTabCardId), R(
|
|
21660
|
+
(Z) => Z.actions.getAvailableFields
|
|
21661
21661
|
);
|
|
21662
21662
|
const { addCard: x, removeCard: b, updateCard: g, setActiveCard: v, updateFilters: M, clearFilters: T } = Ne(), {
|
|
21663
21663
|
scopedFields: S = [],
|
|
@@ -21685,17 +21685,17 @@ function qv() {
|
|
|
21685
21685
|
activeCardId: m.activeCardId,
|
|
21686
21686
|
placeField: y,
|
|
21687
21687
|
previewFieldPlacement: N
|
|
21688
|
-
}), O = ee(() => Um(), []), P = (
|
|
21689
|
-
ie && M(
|
|
21690
|
-
}, $ = (
|
|
21691
|
-
T(
|
|
21692
|
-
}, q = L, j = (
|
|
21693
|
-
if (!
|
|
21694
|
-
let ie =
|
|
21695
|
-
return
|
|
21688
|
+
}), O = ee(() => Um(), []), P = (Z, ie) => {
|
|
21689
|
+
ie && M(Z, ie);
|
|
21690
|
+
}, $ = (Z) => {
|
|
21691
|
+
T(Z);
|
|
21692
|
+
}, q = L, j = (Z) => {
|
|
21693
|
+
if (!Z) return 0;
|
|
21694
|
+
let ie = Z.conditions.length;
|
|
21695
|
+
return Z.groups.forEach((z) => {
|
|
21696
21696
|
ie += j(z);
|
|
21697
21697
|
}), ie;
|
|
21698
|
-
}, H = j(
|
|
21698
|
+
}, H = j(Xa(I) || null);
|
|
21699
21699
|
return /* @__PURE__ */ n(
|
|
21700
21700
|
Ta,
|
|
21701
21701
|
{
|
|
@@ -21766,7 +21766,7 @@ function qv() {
|
|
|
21766
21766
|
Tv,
|
|
21767
21767
|
{
|
|
21768
21768
|
cardId: I.id,
|
|
21769
|
-
filters:
|
|
21769
|
+
filters: Xa(I) || null,
|
|
21770
21770
|
onFiltersChange: P,
|
|
21771
21771
|
onClearFilters: $,
|
|
21772
21772
|
availableFields: q,
|