react-semaphor 0.1.579 → 0.1.581
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/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +52 -50
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/add-to-dashboard-DhP8wVtM.js +291 -0
- package/dist/chunks/{assistant-chat-DBuKmREJ.js → assistant-chat-CUwGURJj.js} +2261 -2184
- package/dist/chunks/{bookmark-impact-MH4Dr-Ya.js → bookmark-impact-BNyR-yDX.js} +1 -1
- package/dist/chunks/{card-filter-builder-B9vtXVIZ.js → card-filter-builder-k9yqDSw8.js} +168 -180
- package/dist/chunks/{comparison-window-caption-PtcDWvkN.js → comparison-window-caption-DdLqMgiG.js} +180 -183
- package/dist/chunks/{dashboard-C4fyqxvV.js → dashboard-DvcAk8uJ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-A9CLFv0s.js → dashboard-briefing-launcher-DBgS97ZH.js} +154 -154
- package/dist/chunks/{dashboard-controls-oKDW-835.js → dashboard-controls-BiZ1rlNC.js} +7 -7
- package/dist/chunks/{dashboard-json-Bej2NBkS.js → dashboard-json-B25xzYcJ.js} +1 -1
- package/dist/chunks/{dates-BhL-mimk.js → dates-3Pah03_l.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-BFsCY2GP.js → edit-dashboard-visual-DYuO3mEU.js} +8 -9
- package/dist/chunks/{filter-reach-copy-Xus3MfSo.js → filter-reach-copy-CzLt96tq.js} +124 -124
- package/dist/chunks/{index-CwlaI-UP.js → index-BMZq6JT6.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CcekIvkV.js → report-preferences-dialog-DpAetrdY.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DoZHMivF.js → resolve-dashboard-input-context-CNxtkCzj.js} +6265 -6190
- package/dist/chunks/{saved-dashboard-context-LiDPCJ3r.js → saved-dashboard-context-Bnt0H7mi.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-cAOfbBuc.js → semaphor-ready-indicator-Dwmvmf0S.js} +15009 -14989
- package/dist/chunks/{shelf-drop-preview-context-CwoYR7v1.js → shelf-drop-preview-context-CiveteBS.js} +2 -2
- package/dist/chunks/{stored-dashboard-CjnPEWO-.js → stored-dashboard-D3gu-D7A.js} +66 -66
- package/dist/chunks/{table-export-sheet-CP8zSOhj.js → table-export-sheet-BNGSJA2N.js} +1 -1
- package/dist/chunks/{variable-draft-T4EOBvcu.js → variable-draft-C3_RL2gI.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +356 -349
- package/dist/format-utils/index.js +4 -4
- package/dist/index.js +11 -11
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/shared/assistant-protocol/model-change.d.ts +23 -3
- package/dist/types/shared/assistant-protocol/parts.d.ts +10 -1
- package/dist/types/shared/dashboard-authoring/changes/aggregates.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +9 -58
- package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +1738 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/add-to-dashboard-DQFuDA5R.js +0 -271
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as vr, K as Ir, M as Cr, N as ln, O as Fr, P as Sr, Q as xr, R as Tr, S as wr, T as dn, U as Dr, V as kr, W as Or, X as Pe, Y as Mr, Z as _r, _ as Ar, g as Pr, k as Ie, $ as Nr, a0 as $r } from "./stored-dashboard-
|
|
2
|
-
import {
|
|
1
|
+
import { J as vr, K as Ir, M as Cr, N as ln, O as Fr, P as Sr, Q as xr, R as Tr, S as wr, T as dn, U as Dr, V as kr, W as Or, X as Pe, Y as Mr, Z as _r, _ as Ar, g as Pr, k as Ie, $ as Nr, a0 as $r } from "./stored-dashboard-D3gu-D7A.js";
|
|
2
|
+
import { fU as un, bu as Ce, fV as Er, fW as Rr, fX as Kr, fY as Lr, P as Y, fZ as fn, bw as Vr, f_ as Br, f$ as Je, ai as Ze, g0 as qr, g1 as Ur, g2 as zr, L as et, g3 as jr, bJ as Gr, Q as Wr, g4 as Hr, M as Yr, m as tt, g5 as nt, g6 as Qr, g7 as F, o as we, g8 as Z, g9 as T, ga as Xr, gb as Jr, gc as kt, gd as Zr, ge as Ot, gf as ei, aR as w, gg as mn, b0 as De, gh as ti, gi as ni, gj as ri, gk as ii, gl as ai, gm as pn, cq as gn, gn as hn, go as yn, fT as Fe, gp as Mt, a4 as Q, gq as rt, gr as _t, gs as it, t as At, gt as Pt, cd as at, gu as oi, gv as si, gw as ie, gx as ci, gy as li, gz as di, a7 as ui, bD as fi, ci as ot, aD as mi, gA as Nt, gB as bn, gC as qe, K as pi, aG as gi, ee as hi, gD as yi, gE as bi, gF as vi, gG as Ii, gH as Ci, gI as Fi, gJ as Si, gK as xi, gL as Ue, fS as Ti, fN as Ne, gM as wi, gN as Di, gO as vn, a as In, gP as ki, gQ as Oi, db as Cn, gR as $t, cL as Mi, de as Et, dd as _i, em as Ai, aV as Pi, eZ as Ni, gS as $i, gT as Ei, cx as Rt } from "./resolve-dashboard-input-context-CNxtkCzj.js";
|
|
3
3
|
import { a5 as le, s as Ri, d as Ki, r as Fn, aE as Li, a2 as Sn, au as Vi, n as Bi, c as qi } from "./validators-B8fpdinG.js";
|
|
4
4
|
import { M as Ui, l as $e } from "./matrix-operation-contract-DCVinw1o.js";
|
|
5
5
|
import { r as zi, C as ji, a as Gi } from "./metric-comparison-n9NsIa-2.js";
|
|
@@ -8,8 +8,8 @@ import "zod";
|
|
|
8
8
|
import { b as J, i as N, aT as Wi, aU as Hi, m as Yi, h as Qi, d as ze, e as Xi, Q as _, af as Ji, am as Zi, c as ea, ah as ta, W as na, w as ra, a5 as ia } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
9
9
|
import "../value-format-preferences/index.js";
|
|
10
10
|
import { z as aa, T as oa, L as sa, ag as ca, a2 as Vt, O as xn, A as Tn, ar as la, P as wn, D as da, a6 as ua, a7 as fa, G as Dn, Y as ma, Z as kn, I as st, _ as On, as as pa } from "./bookmark-state-BEl_G9vr.js";
|
|
11
|
-
import { g as
|
|
12
|
-
import { n as
|
|
11
|
+
import { g as ga } from "./pickers-DkqmtnTL.js";
|
|
12
|
+
import { n as ha } from "./index-BVKzKl5d.js";
|
|
13
13
|
import { f as ya, D as ba, g as va, C as me, i as Bt } from "./edit-9df1zOWe.js";
|
|
14
14
|
import { D as Ia } from "./resolver-DG_tfEpt.js";
|
|
15
15
|
import "./schema-C9NPiIru.js";
|
|
@@ -410,7 +410,7 @@ var Va = function e(t, n) {
|
|
|
410
410
|
}
|
|
411
411
|
return t !== t && n !== n;
|
|
412
412
|
};
|
|
413
|
-
const xe = /* @__PURE__ */
|
|
413
|
+
const xe = /* @__PURE__ */ ga(Va);
|
|
414
414
|
function dt(e, t) {
|
|
415
415
|
var n;
|
|
416
416
|
if (t.id)
|
|
@@ -743,45 +743,45 @@ function Ha(e) {
|
|
|
743
743
|
metricId: n
|
|
744
744
|
});
|
|
745
745
|
const c = [a, o], l = c.some(
|
|
746
|
-
(
|
|
746
|
+
(g) => Ga(g)
|
|
747
747
|
), d = c.filter(
|
|
748
|
-
(
|
|
748
|
+
(g) => !!g
|
|
749
749
|
);
|
|
750
|
-
for (const
|
|
751
|
-
const
|
|
752
|
-
columnId:
|
|
753
|
-
metricAlias:
|
|
750
|
+
for (const g of d) {
|
|
751
|
+
const h = We(t, {
|
|
752
|
+
columnId: g,
|
|
753
|
+
metricAlias: g
|
|
754
754
|
});
|
|
755
|
-
if (
|
|
756
|
-
return
|
|
755
|
+
if (h)
|
|
756
|
+
return h;
|
|
757
757
|
}
|
|
758
|
-
const u = d.map((
|
|
759
|
-
for (const
|
|
760
|
-
const
|
|
761
|
-
columnId:
|
|
762
|
-
metricAlias:
|
|
758
|
+
const u = d.map((g) => Ee(g)).filter((g) => !!g), f = d.map((g) => ja(g)).filter((g) => !!g);
|
|
759
|
+
for (const g of f) {
|
|
760
|
+
const h = We(t, {
|
|
761
|
+
columnId: g,
|
|
762
|
+
metricAlias: g
|
|
763
763
|
});
|
|
764
|
-
if (
|
|
765
|
-
return
|
|
764
|
+
if (h)
|
|
765
|
+
return h;
|
|
766
766
|
}
|
|
767
767
|
if (s.length === 1)
|
|
768
768
|
return s[0];
|
|
769
769
|
if (!l && typeof i == "number" && i >= 0 && i < s.length)
|
|
770
770
|
return s[i];
|
|
771
|
-
const m = f.map((
|
|
771
|
+
const m = f.map((g) => Ee(g)).filter((g) => !!g), p = [
|
|
772
772
|
...u,
|
|
773
773
|
...m
|
|
774
774
|
];
|
|
775
775
|
if (p.length !== 0)
|
|
776
|
-
return s.find((
|
|
777
|
-
const
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
Rn(
|
|
776
|
+
return s.find((g) => {
|
|
777
|
+
const h = [
|
|
778
|
+
g.alias,
|
|
779
|
+
g.label,
|
|
780
|
+
g.name,
|
|
781
|
+
Rn(g)
|
|
782
782
|
].map((C) => Ee(C)).filter((C) => !!C);
|
|
783
783
|
return p.some(
|
|
784
|
-
(C) =>
|
|
784
|
+
(C) => h.includes(C)
|
|
785
785
|
);
|
|
786
786
|
});
|
|
787
787
|
}
|
|
@@ -1098,12 +1098,12 @@ function Un(e) {
|
|
|
1098
1098
|
valueFormatPreferences: u,
|
|
1099
1099
|
boundCurrency: f,
|
|
1100
1100
|
preserveOmittedProperties: m
|
|
1101
|
-
} = e, p = r ?? Y(t)[n], y = !((k = t == null ? void 0 : t.sql) != null && k.trim()) || Sr(p),
|
|
1101
|
+
} = e, p = r ?? Y(t)[n], y = !((k = t == null ? void 0 : t.sql) != null && k.trim()) || Sr(p), g = y ? u : null, h = y ? f : void 0, C = i ?? Kn(p);
|
|
1102
1102
|
if (C && C.inheritMetricFormat !== !0)
|
|
1103
1103
|
return jt(
|
|
1104
1104
|
C,
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
g,
|
|
1106
|
+
h
|
|
1107
1107
|
);
|
|
1108
1108
|
const v = de(t, {
|
|
1109
1109
|
columnId: n,
|
|
@@ -1116,14 +1116,14 @@ function Un(e) {
|
|
|
1116
1116
|
v,
|
|
1117
1117
|
C || o,
|
|
1118
1118
|
m ?? !!u
|
|
1119
|
-
), S = !b &&
|
|
1119
|
+
), S = !b && g && qa(v) ? za(
|
|
1120
1120
|
C || o,
|
|
1121
|
-
|
|
1121
|
+
h
|
|
1122
1122
|
) : void 0;
|
|
1123
1123
|
return jt(
|
|
1124
1124
|
b || S || C || o,
|
|
1125
|
-
|
|
1126
|
-
|
|
1125
|
+
g,
|
|
1126
|
+
h
|
|
1127
1127
|
);
|
|
1128
1128
|
}
|
|
1129
1129
|
function jt(e, t, n) {
|
|
@@ -1247,7 +1247,7 @@ function ro(e) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
if (!((l = e.card.sql) != null && l.trim()) && !Ur(e.card.type) && e.target.kind === "metric") {
|
|
1249
1249
|
const f = e.target.metricId, m = (u = (d = e.card.config) == null ? void 0 : d.metricColumns) == null ? void 0 : u.find(
|
|
1250
|
-
(
|
|
1250
|
+
(g) => g.id === f
|
|
1251
1251
|
);
|
|
1252
1252
|
if (!m)
|
|
1253
1253
|
return;
|
|
@@ -1417,7 +1417,7 @@ function so(e) {
|
|
|
1417
1417
|
`${v.role}:${v.id}`,
|
|
1418
1418
|
v
|
|
1419
1419
|
])
|
|
1420
|
-
),
|
|
1420
|
+
), g = /* @__PURE__ */ new Map();
|
|
1421
1421
|
if (e.card.type === "detailTable" && r.resultOwner === "config") {
|
|
1422
1422
|
const v = e.resultColumns || [];
|
|
1423
1423
|
if (v.filter(
|
|
@@ -1442,7 +1442,7 @@ function so(e) {
|
|
|
1442
1442
|
if (b.kind === "invalid") throw b.error;
|
|
1443
1443
|
if (b.kind === "loaded_empty" || b.kind === "loaded_valid")
|
|
1444
1444
|
for (const [S, A] of b.presentation.byColumnKey)
|
|
1445
|
-
|
|
1445
|
+
g.set(S, A.format);
|
|
1446
1446
|
}
|
|
1447
1447
|
} else if (r.resultOwner === "freeform" && r.sql.trim() && !r.python.trim())
|
|
1448
1448
|
for (const [v, I] of Object.entries(
|
|
@@ -1450,7 +1450,7 @@ function so(e) {
|
|
|
1450
1450
|
)) {
|
|
1451
1451
|
if (I.type !== "date") continue;
|
|
1452
1452
|
const b = Wr(I.dateFormat);
|
|
1453
|
-
b &&
|
|
1453
|
+
b && g.set(
|
|
1454
1454
|
v,
|
|
1455
1455
|
ta({
|
|
1456
1456
|
format: b,
|
|
@@ -1459,11 +1459,11 @@ function so(e) {
|
|
|
1459
1459
|
})
|
|
1460
1460
|
);
|
|
1461
1461
|
}
|
|
1462
|
-
const
|
|
1462
|
+
const h = [
|
|
1463
1463
|
...new Set(o)
|
|
1464
1464
|
].flatMap((v) => {
|
|
1465
1465
|
var W, R, fe;
|
|
1466
|
-
if (m.byColumnKey.has(v) ||
|
|
1466
|
+
if (m.byColumnKey.has(v) || g.has(v))
|
|
1467
1467
|
return [];
|
|
1468
1468
|
const I = u.columnPresentationOwners.get(v), b = {
|
|
1469
1469
|
...Hr(t, v, {
|
|
@@ -1533,7 +1533,7 @@ function so(e) {
|
|
|
1533
1533
|
U.type === "duration" ? { scope: $, target: te, format: U } : { scope: $, target: te, format: U }
|
|
1534
1534
|
];
|
|
1535
1535
|
});
|
|
1536
|
-
|
|
1536
|
+
h.push(
|
|
1537
1537
|
...[...m.byColumnKey.values()].map((v) => {
|
|
1538
1538
|
const I = y.get(
|
|
1539
1539
|
`${v.role ?? "groupby"}:${v.fieldId}`
|
|
@@ -1558,8 +1558,8 @@ function so(e) {
|
|
|
1558
1558
|
)
|
|
1559
1559
|
};
|
|
1560
1560
|
})
|
|
1561
|
-
),
|
|
1562
|
-
...[...
|
|
1561
|
+
), h.push(
|
|
1562
|
+
...[...g].map(([v, I]) => ({
|
|
1563
1563
|
scope: { dashboardId: e.dashboardId, cardId: e.card.id },
|
|
1564
1564
|
target: { kind: "column", columnKey: v },
|
|
1565
1565
|
format: I
|
|
@@ -1567,7 +1567,7 @@ function so(e) {
|
|
|
1567
1567
|
);
|
|
1568
1568
|
const C = na({
|
|
1569
1569
|
reportContext: e.reportContext,
|
|
1570
|
-
resolvedFormats:
|
|
1570
|
+
resolvedFormats: h
|
|
1571
1571
|
});
|
|
1572
1572
|
return {
|
|
1573
1573
|
formatOptions: {
|
|
@@ -1721,11 +1721,11 @@ function Xc(e) {
|
|
|
1721
1721
|
};
|
|
1722
1722
|
}
|
|
1723
1723
|
const mo = ["light", "dark"], po = ["none", "subtle", "raised"];
|
|
1724
|
-
function
|
|
1725
|
-
const { style: n, issues: r } =
|
|
1724
|
+
function go(e, t) {
|
|
1725
|
+
const { style: n, issues: r } = ho(e);
|
|
1726
1726
|
return t === "lenient" ? { style: n, dropped: r } : r.length > 0 ? { ok: !1, issues: r } : { ok: !0, style: n };
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function ho(e) {
|
|
1729
1729
|
if (e == null) return { style: void 0, issues: [] };
|
|
1730
1730
|
if (!jn(e))
|
|
1731
1731
|
return { style: void 0, issues: [{ field: "dashboardStyle", code: "invalid_value", message: "The dashboard style must be an object." }] };
|
|
@@ -1781,7 +1781,7 @@ function jn(e) {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
function Jc(e, t) {
|
|
1783
1783
|
const n = t ?? null;
|
|
1784
|
-
return { style: e.dashboardStyle !== void 0 ?
|
|
1784
|
+
return { style: e.dashboardStyle !== void 0 ? go(e.dashboardStyle, "lenient").style : void 0, organizationAppearance: n ? ha(n).spec : null };
|
|
1785
1785
|
}
|
|
1786
1786
|
const bo = {
|
|
1787
1787
|
SUM: "total",
|
|
@@ -1795,7 +1795,7 @@ const bo = {
|
|
|
1795
1795
|
function re(e) {
|
|
1796
1796
|
return e.label || e.name;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function ge(e) {
|
|
1799
1799
|
const t = e;
|
|
1800
1800
|
return !e.aggregate || t.labelOrigin === "override" ? re(e) : nt(e.name);
|
|
1801
1801
|
}
|
|
@@ -1826,7 +1826,7 @@ function Gn(e) {
|
|
|
1826
1826
|
function Ht(e) {
|
|
1827
1827
|
if (!e) return "";
|
|
1828
1828
|
const t = le(e.dataType), n = t === "date" || t === "datetime" ? e.direction === "desc" ? "latest first" : "earliest first" : t === "number" ? e.direction === "desc" ? "highest first" : "lowest first" : e.direction === "desc" ? "Z to A" : "A to Z";
|
|
1829
|
-
return ` by ${e.aggregate ?
|
|
1829
|
+
return ` by ${e.aggregate ? ge(e) : re(e)}, ${n}`;
|
|
1830
1830
|
}
|
|
1831
1831
|
function Co(e) {
|
|
1832
1832
|
var s, c, l;
|
|
@@ -1839,18 +1839,18 @@ function Co(e) {
|
|
|
1839
1839
|
switch (e.get.kind) {
|
|
1840
1840
|
case "aggregate": {
|
|
1841
1841
|
const d = a[0];
|
|
1842
|
-
return d ? d.aggregate ? `The ${bo[String(d.aggregate).toUpperCase()] ?? String(d.aggregate).toLowerCase()} ${
|
|
1842
|
+
return d ? d.aggregate ? `The ${bo[String(d.aggregate).toUpperCase()] ?? String(d.aggregate).toLowerCase()} ${ge(d)}${n}${r}${Yt(e)}` : `The ${re(d)}${n}${r}${Yt(e)}` : "An aggregate, with no measure chosen yet";
|
|
1843
1843
|
}
|
|
1844
1844
|
case "list": {
|
|
1845
1845
|
const d = o[0];
|
|
1846
1846
|
return d ? `The ${re(d)} values${n}${r}, as a list${Ht((c = i.sortByColumns) == null ? void 0 : c[0])}` : "A list, with no field chosen yet";
|
|
1847
1847
|
}
|
|
1848
1848
|
case "first": {
|
|
1849
|
-
const d = [...o.map(re), ...a.map(
|
|
1849
|
+
const d = [...o.map(re), ...a.map(ge)];
|
|
1850
1850
|
return d.length ? `The first ${Wt(d)}${n}${r}${Ht((l = i.sortByColumns) == null ? void 0 : l[0])}` : "The first row, with no field chosen yet";
|
|
1851
1851
|
}
|
|
1852
1852
|
default: {
|
|
1853
|
-
const d = [...o.map(re), ...a.map(
|
|
1853
|
+
const d = [...o.map(re), ...a.map(ge)];
|
|
1854
1854
|
return d.length ? `The ${Wt(d)}${n}${r}, the only value` : "The only value, with no field chosen yet";
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
@@ -2008,11 +2008,11 @@ function Oo(e, t) {
|
|
|
2008
2008
|
});
|
|
2009
2009
|
const A = kt(S);
|
|
2010
2010
|
m = new Set([...s].filter((k) => !A.has(k))), ei(b, m), t.dashboardCalculatedFields && (b.calculatedFields = t.dashboardCalculatedFields);
|
|
2011
|
-
}), y = p.sheets[n].frames.find((b) => b.id === i.id),
|
|
2011
|
+
}), y = p.sheets[n].frames.find((b) => b.id === i.id), g = [
|
|
2012
2012
|
...m.size ? [{ kind: "cards_removed", cardIds: [...m] }] : [],
|
|
2013
2013
|
{ kind: "frame_committed", sheetId: t.sheetId, before: a, after: y }
|
|
2014
|
-
],
|
|
2015
|
-
return { dashboard: p, runtimeEffects:
|
|
2014
|
+
], h = ((v = i.cards) == null ? void 0 : v.find((b) => b.id === i.activeCardId)) ?? ((I = i.cards) == null ? void 0 : I[0]);
|
|
2015
|
+
return { dashboard: p, runtimeEffects: g, clauses: [T.committed(h == null ? void 0 : h.title)] };
|
|
2016
2016
|
}
|
|
2017
2017
|
function Mo(e, t) {
|
|
2018
2018
|
const n = { ...e }, r = [];
|
|
@@ -2037,7 +2037,7 @@ function Ao(e, t, n) {
|
|
|
2037
2037
|
});
|
|
2038
2038
|
return { sheets: r, sheetIndex: i, sheet: o, cards: a };
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const he = (e, t) => (e.frames ?? []).find((n) => n.cards.some((r) => r.id === t));
|
|
2041
2041
|
function He(e) {
|
|
2042
2042
|
const { visualId: t, ...n } = e;
|
|
2043
2043
|
return n;
|
|
@@ -2045,20 +2045,20 @@ function He(e) {
|
|
|
2045
2045
|
const Hn = (e) => e.cards.find((t) => t.id === e.activeCardId) ?? e.cards[0], Re = (e) => T.plain("detached", `makes ${e} local to this report; it no longer follows its library visual`);
|
|
2046
2046
|
function Po(e, t) {
|
|
2047
2047
|
var p;
|
|
2048
|
-
const { sheets: n, sheetIndex: r, sheet: i, cards: o } = Ao(e, t.sheetId, t.cardIds), a =
|
|
2048
|
+
const { sheets: n, sheetIndex: r, sheet: i, cards: o } = Ao(e, t.sheetId, t.cardIds), a = he(i, t.cardIds[0]).id;
|
|
2049
2049
|
let s = i;
|
|
2050
2050
|
const c = [];
|
|
2051
2051
|
for (const y of t.cardIds.slice(1)) {
|
|
2052
|
-
const
|
|
2053
|
-
if (
|
|
2054
|
-
const
|
|
2055
|
-
if (!
|
|
2056
|
-
|
|
2052
|
+
const g = he(s, y);
|
|
2053
|
+
if (g.id === a) continue;
|
|
2054
|
+
const h = mn(g, y);
|
|
2055
|
+
if (!h.cards.length) {
|
|
2056
|
+
g.visualId && c.push(Re(w(g.cards[0].title))), s = Z(s, { kind: "frame_removed", frameId: g.id });
|
|
2057
2057
|
continue;
|
|
2058
2058
|
}
|
|
2059
|
-
|
|
2059
|
+
g.visualId && c.push(Re(`the tile of ${w((p = Hn(h)) == null ? void 0 : p.title)}`)), s = Z(s, { kind: "frame_updated", frame: g.visualId ? He(h) : h, resizeForNewKind: !0 });
|
|
2060
2060
|
}
|
|
2061
|
-
const l =
|
|
2061
|
+
const l = he(s, t.cardIds[0]), d = new Set(t.cardIds), u = {
|
|
2062
2062
|
...l,
|
|
2063
2063
|
cards: [...o, ...l.cards.filter((y) => !d.has(y.id))],
|
|
2064
2064
|
activeCardId: t.cardIds[0]
|
|
@@ -2066,7 +2066,7 @@ function Po(e, t) {
|
|
|
2066
2066
|
l.visualId && c.push(Re("the tabs")), s = Z(s, { kind: "frame_updated", frame: l.visualId ? He(u) : u, resizeForNewKind: !0 });
|
|
2067
2067
|
const f = o.map((y) => w(y.title)), m = [...new Map(c.map((y) => [y.lead, y])).values()];
|
|
2068
2068
|
return {
|
|
2069
|
-
dashboard: { ...e, sheets: n.map((y,
|
|
2069
|
+
dashboard: { ...e, sheets: n.map((y, g) => g === r ? s : y) },
|
|
2070
2070
|
clauses: [T.plain("layout", `puts ${De(f)} in one spot as tabs, ${f[0]} first`), ...m],
|
|
2071
2071
|
detached: m.length > 0
|
|
2072
2072
|
};
|
|
@@ -2078,7 +2078,7 @@ function No(e, t) {
|
|
|
2078
2078
|
throw new F("card_not_found", `No card ${t.cardId} on this dashboard.`, "Read the outline again and use its card ids.");
|
|
2079
2079
|
if (n.some((u) => (u.frames ?? []).some((f) => f.id === t.newFrameId)))
|
|
2080
2080
|
throw new F("frame_id_taken", `A frame with id ${t.newFrameId} is already on this dashboard.`);
|
|
2081
|
-
const i = n[r], o =
|
|
2081
|
+
const i = n[r], o = he(i, t.cardId), a = o.cards.find((u) => u.id === t.cardId);
|
|
2082
2082
|
if (o.cards.length < 2)
|
|
2083
2083
|
throw new F("frame_not_found", `${w(a.title)} already has its own spot.`);
|
|
2084
2084
|
const s = mn(o, t.cardId);
|
|
@@ -2219,7 +2219,7 @@ function al(e) {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
function qo(e) {
|
|
2221
2221
|
const t = e.createId ?? Fe, n = e.label || e.filter.title || e.filter.column || e.filter.id, r = pn(e.dashboard, { label: n }), i = {
|
|
2222
|
-
...
|
|
2222
|
+
...gn(e.filter),
|
|
2223
2223
|
variableName: r
|
|
2224
2224
|
};
|
|
2225
2225
|
return {
|
|
@@ -2232,7 +2232,7 @@ function qo(e) {
|
|
|
2232
2232
|
runtimeScope: "shared",
|
|
2233
2233
|
presentation: yn(i),
|
|
2234
2234
|
filter: i,
|
|
2235
|
-
exports:
|
|
2235
|
+
exports: hn(i)
|
|
2236
2236
|
};
|
|
2237
2237
|
}
|
|
2238
2238
|
function Uo(e, t, n, r = { calendar: null }) {
|
|
@@ -2269,7 +2269,7 @@ function Uo(e, t, n, r = { calendar: null }) {
|
|
|
2269
2269
|
if (n.mapping.draft.inputId !== s.id)
|
|
2270
2270
|
return a("The card mapping was prepared for another filter.");
|
|
2271
2271
|
}
|
|
2272
|
-
const l = n.definition ?
|
|
2272
|
+
const l = n.definition ? gn(n.definition) : c;
|
|
2273
2273
|
if (l.kind === "global-date" && n.scope && !zo(n.scope))
|
|
2274
2274
|
return a("The Global Date filter applies to regular tabs only.");
|
|
2275
2275
|
const d = (vt = r.calendar) == null ? void 0 : vt.tz, u = n.definition !== void 0, f = n.forceSelection !== void 0 || u ? Bo(
|
|
@@ -2280,12 +2280,12 @@ function Uo(e, t, n, r = { calendar: null }) {
|
|
|
2280
2280
|
e,
|
|
2281
2281
|
{ name: n.variableName },
|
|
2282
2282
|
{ exclude: { source: "input", inputId: s.id } }
|
|
2283
|
-
) : s.variableName, p = u && (c.title || c.column) !== (l.title || l.column), y = n.label ?? (p ? l.title || l.column || l.id : void 0),
|
|
2283
|
+
) : s.variableName, p = u && (c.title || c.column) !== (l.title || l.column), y = n.label ?? (p ? l.title || l.column || l.id : void 0), g = u && c.hide !== l.hide, h = u && c.toolbarWidth !== l.toolbarWidth, C = (M) => {
|
|
2284
2284
|
var wt, Dt;
|
|
2285
2285
|
const x = { ...M };
|
|
2286
|
-
if (y !== void 0 && (x.label = y), n.variableName !== void 0 && (x.variableName = m), n.scope && (x.scope = n.scope),
|
|
2286
|
+
if (y !== void 0 && (x.label = y), n.variableName !== void 0 && (x.variableName = m), n.scope && (x.scope = n.scope), g || h) {
|
|
2287
2287
|
const Ae = yn(l);
|
|
2288
|
-
x.presentation = { ...M.presentation },
|
|
2288
|
+
x.presentation = { ...M.presentation }, g && (x.presentation.placement = Ae.placement), h && (Ae.widthPx === void 0 ? delete x.presentation.widthPx : x.presentation.widthPx = Ae.widthPx);
|
|
2289
2289
|
}
|
|
2290
2290
|
return (n.forceSelection !== void 0 || u) && (f ? x.forceSelection = f : delete x.forceSelection), n.requiredAtExecution !== void 0 && (n.requiredAtExecution ? x.requiredAtExecution = !0 : delete x.requiredAtExecution), Ke(x, "optionSource", n.optionSource), Ke(x, "optionDependencies", n.optionDependencies), Ke(x, "optionPopulation", n.optionPopulation), ((wt = n.mapping) == null ? void 0 : wt.kind) === "save" && n.mapping.draft.acceptance.ok ? x.application = n.mapping.draft.acceptance.application : ((Dt = n.mapping) == null ? void 0 : Dt.kind) === "remove" && delete x.application, x;
|
|
2291
2291
|
}, v = n.label !== void 0 && n.label !== s.label && n.label !== l.title ? n.label : void 0, I = u || n.variableName !== void 0 || v !== void 0, b = (M) => ({
|
|
@@ -2301,7 +2301,7 @@ function Uo(e, t, n, r = { calendar: null }) {
|
|
|
2301
2301
|
filter: b(l)
|
|
2302
2302
|
} : k
|
|
2303
2303
|
);
|
|
2304
|
-
u && (B.exports =
|
|
2304
|
+
u && (B.exports = hn(l)), S[A] = B;
|
|
2305
2305
|
const G = at({
|
|
2306
2306
|
inputs: [B],
|
|
2307
2307
|
dashboardFilters: []
|
|
@@ -2774,7 +2774,7 @@ function as(e, t) {
|
|
|
2774
2774
|
clauses: [ue(`stops ${w(n.label)} from filtering ${Jn(e, t.cardId)}`)]
|
|
2775
2775
|
};
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function gt(e, t) {
|
|
2778
2778
|
const n = e[0];
|
|
2779
2779
|
throw new F(
|
|
2780
2780
|
(n == null ? void 0 : n.code) === "unknownVariable" ? "variable_not_found" : "variable_invalid",
|
|
@@ -2796,7 +2796,7 @@ function ar(e) {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
function os(e, t) {
|
|
2798
2798
|
const n = ot(e, { kind: "add", variable: t.variable });
|
|
2799
|
-
n.ok ||
|
|
2799
|
+
n.ok || gt(n.issues, "This variable could not be added.");
|
|
2800
2800
|
const { variable: r } = t;
|
|
2801
2801
|
return {
|
|
2802
2802
|
dashboard: n.dashboard,
|
|
@@ -2807,7 +2807,7 @@ function os(e, t) {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
function ss(e, t) {
|
|
2809
2809
|
const n = Ye(e, t.variableId), r = Object.fromEntries(Object.entries(t.patch).map(([m, p]) => [m, p === null ? void 0 : p])), i = ot(e, { kind: "update", id: t.variableId, patch: r });
|
|
2810
|
-
i.ok ||
|
|
2810
|
+
i.ok || gt(i.issues, "This variable could not be changed.");
|
|
2811
2811
|
const o = Ye(i.dashboard, t.variableId), a = [];
|
|
2812
2812
|
t.patch.name !== void 0 && t.patch.name !== n.name && a.push(T.plain("variable", `renames the variable ${n.name} to ${o.name}`));
|
|
2813
2813
|
const { name: s, label: c, ...l } = n, { name: d, label: u, ...f } = o;
|
|
@@ -2819,7 +2819,7 @@ function ss(e, t) {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
function cs(e, t) {
|
|
2821
2821
|
const n = Ye(e, t.variableId), r = ot(e, { kind: "remove", id: t.variableId, confirmed: !1 });
|
|
2822
|
-
r.ok ||
|
|
2822
|
+
r.ok || gt(r.issues, "This variable could not be removed.");
|
|
2823
2823
|
const i = r.removedMappings ? ` and its ${r.removedMappings === 1 ? "filter mapping" : `${r.removedMappings} filter mappings`}` : "";
|
|
2824
2824
|
return {
|
|
2825
2825
|
dashboard: r.dashboard,
|
|
@@ -2982,15 +2982,15 @@ function lr(e) {
|
|
|
2982
2982
|
return V.page_break;
|
|
2983
2983
|
}
|
|
2984
2984
|
}
|
|
2985
|
-
function
|
|
2985
|
+
function gs(e, t) {
|
|
2986
2986
|
return lr(e).cardTypes.includes(t);
|
|
2987
2987
|
}
|
|
2988
2988
|
function dr(e, t) {
|
|
2989
|
-
if (
|
|
2989
|
+
if (gs(e, t)) return null;
|
|
2990
2990
|
const n = lr(e);
|
|
2991
2991
|
return n.id === "table" ? "Table sections hold Table cards only" : n.id === "kpi" ? "KPI sections hold KPI cards only" : n.id === "matrix" ? "Matrix sections hold Matrix cards only" : `${n.label} sections do not accept this visual`;
|
|
2992
2992
|
}
|
|
2993
|
-
function
|
|
2993
|
+
function hs(e, t, n) {
|
|
2994
2994
|
if (!st(e).some(({ id: i }) => i === t))
|
|
2995
2995
|
throw new Error(
|
|
2996
2996
|
`Document section '${e.id}' has no card '${t}'.`
|
|
@@ -3234,7 +3234,7 @@ function xs(e, t, n) {
|
|
|
3234
3234
|
t.card.id !== t.oldCardId && tn(n, t.card.id);
|
|
3235
3235
|
let s;
|
|
3236
3236
|
try {
|
|
3237
|
-
s =
|
|
3237
|
+
s = hs(a, t.oldCardId, t.card);
|
|
3238
3238
|
} catch (c) {
|
|
3239
3239
|
throw new D(c.message);
|
|
3240
3240
|
}
|
|
@@ -3318,19 +3318,19 @@ function Le(e, t, n) {
|
|
|
3318
3318
|
const p = f.pop();
|
|
3319
3319
|
if (u.has(p)) continue;
|
|
3320
3320
|
const y = d.find(
|
|
3321
|
-
(
|
|
3321
|
+
(h) => qe(h.id) === p
|
|
3322
3322
|
);
|
|
3323
3323
|
if (!y) continue;
|
|
3324
|
-
const
|
|
3325
|
-
se(
|
|
3324
|
+
const g = Ie(y);
|
|
3325
|
+
se(g, {
|
|
3326
3326
|
oldCardId: e.cardId,
|
|
3327
3327
|
newCardId: s,
|
|
3328
3328
|
sourceSheetId: e.sheetId,
|
|
3329
3329
|
targetSheetId: t.sheetId,
|
|
3330
|
-
onSheetField: (
|
|
3331
|
-
u.has(
|
|
3330
|
+
onSheetField: (h) => {
|
|
3331
|
+
u.has(h) || f.push(h);
|
|
3332
3332
|
}
|
|
3333
|
-
}), u.set(p,
|
|
3333
|
+
}), u.set(p, g);
|
|
3334
3334
|
}
|
|
3335
3335
|
const m = d.flatMap((p) => {
|
|
3336
3336
|
const y = u.get(qe(p.id) ?? "");
|
|
@@ -3426,7 +3426,7 @@ function Ms(e, t) {
|
|
|
3426
3426
|
}
|
|
3427
3427
|
const a = { ...e, sheets: n.map((d, u) => u === r ? { ...d, document: o } : d) }, s = t.edit.type === "updateRegionText" ? `the ${Os[t.edit.role]} line of the ${w(i.title)} ${t.edit.region}` : `a text section of ${w(i.title)}`, c = [];
|
|
3428
3428
|
if (t.edit.content !== void 0) {
|
|
3429
|
-
const d =
|
|
3429
|
+
const d = gi(t.edit.content, { inputs: a.inputs, variables: a.variables }), u = hi(d);
|
|
3430
3430
|
c.push(`sets ${s} to ${w(yi(d))}${u ? `, ${u}` : ""}`);
|
|
3431
3431
|
}
|
|
3432
3432
|
const l = As(t.edit.style);
|
|
@@ -3700,7 +3700,7 @@ function ml(...e) {
|
|
|
3700
3700
|
fr(be(t, r), i);
|
|
3701
3701
|
return t;
|
|
3702
3702
|
}
|
|
3703
|
-
function
|
|
3703
|
+
function ht(e) {
|
|
3704
3704
|
return [e.databaseName, e.schemaName, e.tableName].filter(Boolean).join(".");
|
|
3705
3705
|
}
|
|
3706
3706
|
function Ls(e) {
|
|
@@ -3709,7 +3709,7 @@ function Ls(e) {
|
|
|
3709
3709
|
function pr(e, t) {
|
|
3710
3710
|
const n = ce(t), r = e.get(n);
|
|
3711
3711
|
if (t.kind !== "physical") return r;
|
|
3712
|
-
const i = `physical:${t.connectionId}:`, o =
|
|
3712
|
+
const i = `physical:${t.connectionId}:`, o = ht(t), a = {
|
|
3713
3713
|
fields: /* @__PURE__ */ new Map(),
|
|
3714
3714
|
fieldConflicts: /* @__PURE__ */ new Set()
|
|
3715
3715
|
};
|
|
@@ -3728,7 +3728,7 @@ function Bs(e, t) {
|
|
|
3728
3728
|
if (t.kind === "semantic")
|
|
3729
3729
|
return mr(t) || t.datasetId || "Dataset";
|
|
3730
3730
|
const n = e ? pr(e, t) : void 0;
|
|
3731
|
-
return n != null && n.sourceLabel && !n.sourceLabelConflict ? n.sourceLabel :
|
|
3731
|
+
return n != null && n.sourceLabel && !n.sourceLabelConflict ? n.sourceLabel : ht(t);
|
|
3732
3732
|
}
|
|
3733
3733
|
function pl(e, t) {
|
|
3734
3734
|
const n = Vs(e, t);
|
|
@@ -3736,7 +3736,7 @@ function pl(e, t) {
|
|
|
3736
3736
|
name: t.name,
|
|
3737
3737
|
...n ? { label: n } : {},
|
|
3738
3738
|
entityName: Bs(e, t.source),
|
|
3739
|
-
...t.source.kind === "physical" ? { qualifiedEntityName:
|
|
3739
|
+
...t.source.kind === "physical" ? { qualifiedEntityName: ht(t.source) } : {},
|
|
3740
3740
|
dataType: t.dataType
|
|
3741
3741
|
};
|
|
3742
3742
|
}
|
|
@@ -3754,7 +3754,7 @@ function qs(e, t) {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
};
|
|
3756
3756
|
}
|
|
3757
|
-
function
|
|
3757
|
+
function gl(e) {
|
|
3758
3758
|
const t = {};
|
|
3759
3759
|
for (const { card: n } of e.cards) {
|
|
3760
3760
|
const r = tt(n), i = r.kind === "config" ? r.executableSources : r.kind === "sql" ? r.pinnedCatalogSources.map((s) => s.source) : [];
|
|
@@ -3778,8 +3778,8 @@ function hl(e) {
|
|
|
3778
3778
|
}
|
|
3779
3779
|
return t;
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3782
|
-
const { dashboard: t, target: n, calendar: r } = e, i =
|
|
3781
|
+
function hl(e) {
|
|
3782
|
+
const { dashboard: t, target: n, calendar: r } = e, i = hr(n), o = gr(t, n, r);
|
|
3783
3783
|
return {
|
|
3784
3784
|
value: o,
|
|
3785
3785
|
mode: Nr(
|
|
@@ -3787,7 +3787,7 @@ function gl(e) {
|
|
|
3787
3787
|
)
|
|
3788
3788
|
};
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3790
|
+
function gr(e, t, n) {
|
|
3791
3791
|
var r;
|
|
3792
3792
|
switch (t.kind) {
|
|
3793
3793
|
case "dashboardInput": {
|
|
@@ -3812,7 +3812,7 @@ function hr(e, t, n) {
|
|
|
3812
3812
|
return ie(t.filter, n);
|
|
3813
3813
|
}
|
|
3814
3814
|
}
|
|
3815
|
-
function
|
|
3815
|
+
function hr(e) {
|
|
3816
3816
|
return e.kind === "dashboardInput" ? e.input.filter : e.filter;
|
|
3817
3817
|
}
|
|
3818
3818
|
function yl(e) {
|
|
@@ -3821,7 +3821,7 @@ function yl(e) {
|
|
|
3821
3821
|
return r && (t.inputs || []).some((a) => a.id === r.id) ? { kind: "dashboardInput", input: r, scope: i } : ((o = Q(t).findFilterInput({ filterId: n.id })) == null ? void 0 : o.origin) === "toolbarFilter" ? { kind: "dashboardFilter", filter: n } : { kind: "definition", filter: n };
|
|
3822
3822
|
}
|
|
3823
3823
|
function bl(e) {
|
|
3824
|
-
const { dashboard: t, target: n, calendar: r } = e, i =
|
|
3824
|
+
const { dashboard: t, target: n, calendar: r } = e, i = hr(n), o = xi(i), a = Us(t, n);
|
|
3825
3825
|
if (!a) return o;
|
|
3826
3826
|
if (a === "cleared")
|
|
3827
3827
|
return {
|
|
@@ -3829,7 +3829,7 @@ function bl(e) {
|
|
|
3829
3829
|
defaultValues: void 0,
|
|
3830
3830
|
defaultDateFilter: void 0
|
|
3831
3831
|
};
|
|
3832
|
-
const s =
|
|
3832
|
+
const s = gr(t, n, r);
|
|
3833
3833
|
if (!s || zs(s, ie(i, r)))
|
|
3834
3834
|
return o;
|
|
3835
3835
|
if (s.valueType === "date") {
|
|
@@ -4017,17 +4017,17 @@ function Cl(e, t, n, r) {
|
|
|
4017
4017
|
};
|
|
4018
4018
|
if (t === "metrics") {
|
|
4019
4019
|
if (d || s && c === "aggregate") {
|
|
4020
|
-
const
|
|
4020
|
+
const h = e, C = {
|
|
4021
4021
|
...m,
|
|
4022
4022
|
role: "metric",
|
|
4023
|
-
...zn(
|
|
4024
|
-
parameters:
|
|
4025
|
-
aliasTemplate:
|
|
4026
|
-
valueAliases:
|
|
4027
|
-
isPreAggregated:
|
|
4028
|
-
comparison:
|
|
4029
|
-
comparisonPolarity:
|
|
4030
|
-
semanticComparisonPolarity:
|
|
4023
|
+
...zn(h, h, "selection"),
|
|
4024
|
+
parameters: h.parameters,
|
|
4025
|
+
aliasTemplate: h.aliasTemplate,
|
|
4026
|
+
valueAliases: h.valueAliases,
|
|
4027
|
+
isPreAggregated: h.isPreAggregated,
|
|
4028
|
+
comparison: h.comparison,
|
|
4029
|
+
comparisonPolarity: h.comparisonPolarity,
|
|
4030
|
+
semanticComparisonPolarity: h.semanticComparisonPolarity
|
|
4031
4031
|
}, v = e.expression || "";
|
|
4032
4032
|
if (!a.legacyManual && c !== "aggregate") {
|
|
4033
4033
|
const b = !C.aggregate && (c === "row" || Ui(v).calls.length === 0), S = an(i);
|
|
@@ -4049,7 +4049,7 @@ function Cl(e, t, n, r) {
|
|
|
4049
4049
|
const p = e.aggregate || an(i), y = Hs(
|
|
4050
4050
|
e.label,
|
|
4051
4051
|
p
|
|
4052
|
-
),
|
|
4052
|
+
), g = ki(
|
|
4053
4053
|
{ ...m, label: y },
|
|
4054
4054
|
n,
|
|
4055
4055
|
t
|
|
@@ -4057,7 +4057,7 @@ function Cl(e, t, n, r) {
|
|
|
4057
4057
|
return {
|
|
4058
4058
|
...m,
|
|
4059
4059
|
role: "metric",
|
|
4060
|
-
label:
|
|
4060
|
+
label: g,
|
|
4061
4061
|
aggregate: p,
|
|
4062
4062
|
aggregateOrigin: e.aggregate ? e.aggregateOrigin : "default"
|
|
4063
4063
|
};
|
|
@@ -4400,11 +4400,11 @@ function Ml({
|
|
|
4400
4400
|
rawTemporalPresentation: o
|
|
4401
4401
|
}) {
|
|
4402
4402
|
const a = e || t.config, { groupByColumns: s = [], metricColumns: c = [], detailColumns: l = [] } = a || {}, d = t.type === "detailTable", u = d ? "detail" : "groupby", f = d ? l : s, m = d ? [] : c, p = [];
|
|
4403
|
-
for (const
|
|
4404
|
-
const
|
|
4403
|
+
for (const g of f) {
|
|
4404
|
+
const h = r ? je(r, g.id, u) : void 0, C = (h == null ? void 0 : h.outputKey) || (h == null ? void 0 : h.rawKey) || g.label, v = n.getValue(C), I = i == null ? void 0 : i.byColumnKey.get(C);
|
|
4405
4405
|
if (v == null && I)
|
|
4406
4406
|
p.push({
|
|
4407
|
-
field:
|
|
4407
|
+
field: g,
|
|
4408
4408
|
operator: "isNull",
|
|
4409
4409
|
value: null,
|
|
4410
4410
|
...I ? { label: "(Blank)", temporalBucket: I.metadata } : {}
|
|
@@ -4412,7 +4412,7 @@ function Ml({
|
|
|
4412
4412
|
else if (v != null) {
|
|
4413
4413
|
const b = I || o == null ? void 0 : o.byColumnKey.get(C);
|
|
4414
4414
|
p.push({
|
|
4415
|
-
field:
|
|
4415
|
+
field: g,
|
|
4416
4416
|
operator: "=",
|
|
4417
4417
|
value: String(v),
|
|
4418
4418
|
// Convert to string for consistency
|
|
@@ -4433,12 +4433,12 @@ function Ml({
|
|
|
4433
4433
|
if (p.length === 0)
|
|
4434
4434
|
return;
|
|
4435
4435
|
const y = [];
|
|
4436
|
-
for (const
|
|
4437
|
-
const
|
|
4438
|
-
(
|
|
4436
|
+
for (const g of m) {
|
|
4437
|
+
const h = r ? je(r, g.id, "metric") : void 0, C = n.getValue(
|
|
4438
|
+
(h == null ? void 0 : h.outputKey) || (h == null ? void 0 : h.rawKey) || g.label
|
|
4439
4439
|
);
|
|
4440
4440
|
C != null && y.push({
|
|
4441
|
-
field:
|
|
4441
|
+
field: g,
|
|
4442
4442
|
value: Number(C)
|
|
4443
4443
|
// Convert to number for metrics
|
|
4444
4444
|
});
|
|
@@ -4627,7 +4627,7 @@ export {
|
|
|
4627
4627
|
fo as N,
|
|
4628
4628
|
$l as O,
|
|
4629
4629
|
Rl as P,
|
|
4630
|
-
|
|
4630
|
+
go as Q,
|
|
4631
4631
|
El as R,
|
|
4632
4632
|
yt as S,
|
|
4633
4633
|
ro as T,
|
|
@@ -4669,9 +4669,9 @@ export {
|
|
|
4669
4669
|
pl as aQ,
|
|
4670
4670
|
Bs as aR,
|
|
4671
4671
|
ce as aS,
|
|
4672
|
-
|
|
4672
|
+
ht as aT,
|
|
4673
4673
|
ul as aU,
|
|
4674
|
-
|
|
4674
|
+
gl as aV,
|
|
4675
4675
|
fl as aW,
|
|
4676
4676
|
Rs as aX,
|
|
4677
4677
|
Qs as aY,
|
|
@@ -4742,7 +4742,7 @@ export {
|
|
|
4742
4742
|
Ml as o,
|
|
4743
4743
|
ao as p,
|
|
4744
4744
|
so as q,
|
|
4745
|
-
|
|
4745
|
+
hl as r,
|
|
4746
4746
|
Al as s,
|
|
4747
4747
|
co as t,
|
|
4748
4748
|
Hc as u,
|