react-semaphor 0.1.567 → 0.1.568
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/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-D-IuHHwh.js → assistant-chat-BN5I8KuN.js} +5 -5
- package/dist/chunks/{bookmark-impact-B0estCHn.js → bookmark-impact-CJ-65omV.js} +1 -1
- package/dist/chunks/{card-filter-builder-DbSmzvem.js → card-filter-builder-BBuB99GZ.js} +51 -51
- package/dist/chunks/{dashboard-f8J9DHh5.js → dashboard-YnWZC4dK.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DunvZYsU.js → dashboard-briefing-launcher-BF89TU2h.js} +184 -184
- package/dist/chunks/{dashboard-controls-B09cN2Dz.js → dashboard-controls-atHc1EjP.js} +7 -7
- package/dist/chunks/{dashboard-json-BNNCaKEc.js → dashboard-json-Cxp3inxd.js} +1 -1
- package/dist/chunks/{dates-BsJcyoC_.js → dates-CKO05ino.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-Cwzbpty8.js → edit-dashboard-visual-DdmTfn-J.js} +7 -7
- package/dist/chunks/{filter-reach-copy-P-kDwUpY.js → filter-reach-copy-jZGzK_IH.js} +840 -826
- package/dist/chunks/{index-BcXw0CpM.js → index-CPNZW0mu.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CbgmdWeZ.js → report-preferences-dialog-Mbd-I0wV.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DPKSF3qj.js → resolve-dashboard-input-context-Du0fjN3h.js} +4604 -4548
- package/dist/chunks/{saved-dashboard-context-CNudmm9U.js → saved-dashboard-context-y8N6RvjS.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-CQd-PCCZ.js → semaphor-ready-indicator-BSEdUq40.js} +21211 -21061
- package/dist/chunks/{shelf-drop-preview-context-CWS3e20y.js → shelf-drop-preview-context-D7QqPl36.js} +2 -2
- package/dist/chunks/{stored-dashboard-CrQFT27O.js → stored-dashboard-d3xQYxBD.js} +46 -46
- package/dist/chunks/{variable-draft-BDxlD0dM.js → variable-draft-DOX03R4A.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1545 -1518
- package/dist/index.js +11 -11
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/lib/document/document-edits.d.ts +8 -3
- package/dist/types/lib/document/document-text-style.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -3
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +5 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as Ne, jsx as N, Fragment as ft } from "react/jsx-runtime";
|
|
2
2
|
import * as T from "react";
|
|
3
3
|
import zn, { forwardRef as Fe, createElement as xe, useContext as rt, createContext as xt, useRef as q, useLayoutEffect as Pn, useImperativeHandle as zt, useEffect as ne, useState as de, useCallback as G, useMemo as W, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
|
|
4
|
-
import { aN as In, a6 as ie, aO as Pt, aP as Rn, a7 as wt, aQ as ot, aR as Ct, aS as Et, aT as Dn, aU as An, aV as Nn, aW as Mn, u as Re, aX as Ln, aY as _n, aZ as kn, a_ as Tn, a$ as Hn, b0 as Vn, b1 as $n, b2 as Fn, b3 as Kn } from "./semaphor-ready-indicator-
|
|
4
|
+
import { aN as In, a6 as ie, aO as Pt, aP as Rn, a7 as wt, aQ as ot, aR as Ct, aS as Et, aT as Dn, aU as An, aV as Nn, aW as Mn, u as Re, aX as Ln, aY as _n, aZ as kn, a_ as Tn, a$ as Hn, b0 as Vn, b1 as $n, b2 as Fn, b3 as Kn } from "./semaphor-ready-indicator-BSEdUq40.js";
|
|
5
5
|
import { C as It, A as Rt, D as ze, E as me, F as Dt, G as Bn, H as On, J as Pe, K as qn, M as At, N as Gn, O as Un } from "./code-editor-DJNOsgJH.js";
|
|
6
|
-
import { Q as Wn, R as Nt, T as Mt, U as Je, V as Te, W as Xn, X as Yn, Y as jn, S as Qn } from "./resolve-dashboard-input-context-
|
|
6
|
+
import { Q as Wn, R as Nt, T as Mt, U as Je, V as Te, W as Xn, X as Yn, Y as jn, S as Qn } from "./resolve-dashboard-input-context-Du0fjN3h.js";
|
|
7
7
|
import "./index-CuHybtft.js";
|
|
8
8
|
import "./validators-wtjw0aw6.js";
|
|
9
9
|
import "./matrix-operation-contract-Eb6elidS.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gT as co, cv as uo, bX as fo, aS as po, bb as mo, f as go, bP as yo, M as oe, gU as bo, gV as Ne, e1 as Rt, e4 as ho, bG as Co, gW as Io, at as vo, fH as Kt, fJ as Fo, gX as qt, O as So, fL as To, cW as Fe, s as _, fC as Se, n as Le, gY as Do, cQ as Nt, cS as Lt, cB as Mo, cV as Vo, cT as bt, cU as ko, b as Po, cD as xo, cP as wo, cN as Oo, a2 as q, gg as Ao, gZ as Te, g_ as jt, g$ as Eo, h0 as je, gv as De, h1 as Bo, h2 as ze, h3 as _o, h4 as Ro, h5 as Ko, h6 as qo, h7 as No, l as Ge, h8 as Lo, k as ee, r as jo, h as zo, h9 as U, gK as He, ha as ge, hb as zt, hc as Go, hd as Ho, he as $o, g7 as Uo, hf as Qo, hg as Wo, e as Yo, hh as Jo, hi as Gt, $ as Ht, hj as Xo, hk as Zo, hl as er, hm as $t, j as $e, cm as tr, a3 as nr, o as Ut, cl as or, gs as rr, q as ir, t as ht, C as sr, hn as ar, ho as lr, cn as cr, hp as ur } from "./resolve-dashboard-input-context-Du0fjN3h.js";
|
|
2
2
|
import { av as dr, H as re, a1 as fr, R as pr, I as Oe, S as mr, am as Ct, q as Qt, aa as gr, v as yr } from "./validators-wtjw0aw6.js";
|
|
3
3
|
import { v as Wt } from "./matrix-operation-contract-Eb6elidS.js";
|
|
4
4
|
import { S as Ue } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
@@ -7,7 +7,7 @@ import "./index-CuHybtft.js";
|
|
|
7
7
|
import { canonicalizeSupportedCurrencyCode as Yt } from "../value-format-preferences/index.js";
|
|
8
8
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
9
9
|
import { b as ye, r as hr, aW as Cr, i as Ir, aD as vr, aA as It } from "./temporal-input-presentation--2r9BLr0.js";
|
|
10
|
-
import { aB as Jt, aC as
|
|
10
|
+
import { aB as Jt, aC as Xt, aD as ke, $ as Fr, aE as Zt, aF as en, aA as tn, aG as nn, n as Sr, l as Tr, v as on, t as j, aH as rn, k as sn, C as Ae, aI as H, z as ie, i as an, o as Dr, u as Mr, B as Qe, aJ as Vr, ah as kr, F as ln, D as Pr, az as vt, N as cn, O as un, I as dn } from "./bookmark-state-Du3s13_V.js";
|
|
11
11
|
import "./index-RNaTnE3m.js";
|
|
12
12
|
import "./context-R31TSL5V.js";
|
|
13
13
|
import { i as We, b as fn, r as xr } from "./matrix-card-BSUeSXpD.js";
|
|
@@ -151,8 +151,8 @@ function Jr(e) {
|
|
|
151
151
|
}
|
|
152
152
|
return [n[0] >> 24 & 255, n[0] >> 16 & 255, n[0] >> 8 & 255, n[0] & 255, n[1] >> 24 & 255, n[1] >> 16 & 255, n[1] >> 8 & 255, n[1] & 255, n[2] >> 24 & 255, n[2] >> 16 & 255, n[2] >> 8 & 255, n[2] & 255, n[3] >> 24 & 255, n[3] >> 16 & 255, n[3] >> 8 & 255, n[3] & 255, n[4] >> 24 & 255, n[4] >> 16 & 255, n[4] >> 8 & 255, n[4] & 255];
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
function
|
|
154
|
+
const Xr = Wr("v5", 80, Jr), St = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Tt = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
|
|
155
|
+
function Zr(e) {
|
|
156
156
|
const t = [];
|
|
157
157
|
let n = 0;
|
|
158
158
|
for (; n < e.length; ) {
|
|
@@ -179,7 +179,7 @@ function pn(e) {
|
|
|
179
179
|
const i = (o = n[1]) == null ? void 0 : o.trim();
|
|
180
180
|
i && t.add(i);
|
|
181
181
|
}
|
|
182
|
-
for (const i of
|
|
182
|
+
for (const i of Zr(e))
|
|
183
183
|
for (Tt.lastIndex = 0; (n = Tt.exec(i)) !== null; ) {
|
|
184
184
|
const s = (r = n[2]) == null ? void 0 : r.trim();
|
|
185
185
|
s && t.add(s);
|
|
@@ -270,7 +270,7 @@ function nl(e, t) {
|
|
|
270
270
|
const l = c;
|
|
271
271
|
if (Object.assign(
|
|
272
272
|
l,
|
|
273
|
-
|
|
273
|
+
Xt(
|
|
274
274
|
l,
|
|
275
275
|
(f) => f && typeof f == "object" ? mn(f, t) : f
|
|
276
276
|
)
|
|
@@ -291,18 +291,18 @@ function nl(e, t) {
|
|
|
291
291
|
const oi = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
|
|
292
292
|
function ri(e) {
|
|
293
293
|
let t = 0;
|
|
294
|
-
return () =>
|
|
294
|
+
return () => Xr(`${e}#${t++}`, oi);
|
|
295
295
|
}
|
|
296
296
|
const ii = [
|
|
297
297
|
{ code: "matrix_definition_incomplete", label: "Matrix definition" }
|
|
298
298
|
], si = [
|
|
299
299
|
{ code: "connection_type_unresolved", label: "Connection type" }
|
|
300
|
-
],
|
|
300
|
+
], Z = (e) => !Array.isArray(e) || e.length === 0;
|
|
301
301
|
function ai(e) {
|
|
302
302
|
var i;
|
|
303
303
|
const t = e.config ?? {};
|
|
304
|
-
if ((i = e.sql) != null && i.trim() || !
|
|
305
|
-
const n = !
|
|
304
|
+
if ((i = e.sql) != null && i.trim() || !Z(t.pivotByColumns)) return "matrixTable";
|
|
305
|
+
const n = !Z(t.groupByColumns), o = !Z(t.metricColumns), r = e.type === "pivotTable" && (n || o) && Z(t.rowAggregates) && Z(t.columnAggregates);
|
|
306
306
|
return n && !o || r ? "table" : "matrixTable";
|
|
307
307
|
}
|
|
308
308
|
function li(e) {
|
|
@@ -394,7 +394,7 @@ function fi(e, t) {
|
|
|
394
394
|
return `${e} Δ`;
|
|
395
395
|
}
|
|
396
396
|
function il(e, t) {
|
|
397
|
-
return
|
|
397
|
+
return Zt(e, t);
|
|
398
398
|
}
|
|
399
399
|
function pi(e, t) {
|
|
400
400
|
return e.rawKey === t.rawKey && e.outputKey === t.outputKey;
|
|
@@ -1356,7 +1356,7 @@ function Gi(e) {
|
|
|
1356
1356
|
const { id: t, label: n, field: o, ...r } = e;
|
|
1357
1357
|
return {
|
|
1358
1358
|
...r,
|
|
1359
|
-
field:
|
|
1359
|
+
field: Xe(
|
|
1360
1360
|
o
|
|
1361
1361
|
)
|
|
1362
1362
|
};
|
|
@@ -1371,7 +1371,7 @@ function Ve(e) {
|
|
|
1371
1371
|
groups: o.map((i) => Ve(i))
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Xe(e) {
|
|
1375
1375
|
var o, r;
|
|
1376
1376
|
const { label: t, ...n } = e;
|
|
1377
1377
|
return {
|
|
@@ -1380,7 +1380,7 @@ function Ze(e) {
|
|
|
1380
1380
|
calculatedFormula: {
|
|
1381
1381
|
...e.calculatedFormula,
|
|
1382
1382
|
inputFields: e.calculatedFormula.inputFields.map(
|
|
1383
|
-
|
|
1383
|
+
Xe
|
|
1384
1384
|
)
|
|
1385
1385
|
}
|
|
1386
1386
|
} : {},
|
|
@@ -1395,7 +1395,7 @@ function Ze(e) {
|
|
|
1395
1395
|
};
|
|
1396
1396
|
}
|
|
1397
1397
|
function Hi(e) {
|
|
1398
|
-
const t = (n) => n == null ? void 0 : n.map(
|
|
1398
|
+
const t = (n) => n == null ? void 0 : n.map(Xe);
|
|
1399
1399
|
return {
|
|
1400
1400
|
...e,
|
|
1401
1401
|
groupByColumns: t(e.groupByColumns),
|
|
@@ -1609,13 +1609,13 @@ function bl(e) {
|
|
|
1609
1609
|
return ((r = o.comparison) == null ? void 0 : r.mode) === "explicit";
|
|
1610
1610
|
}
|
|
1611
1611
|
).some(
|
|
1612
|
-
(o) => !
|
|
1612
|
+
(o) => !Zt(e.comparisonMetadata, o)
|
|
1613
1613
|
);
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function Xi(e) {
|
|
1616
1616
|
return e.part === "base" && !!e.columnId;
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function Ze(e) {
|
|
1619
1619
|
const t = e.config ?? {};
|
|
1620
1620
|
return e.type === "detailTable" ? [{ role: "detail", fields: t.detailColumns ?? [] }] : [
|
|
1621
1621
|
{ role: "groupby", fields: t.groupByColumns ?? [] },
|
|
@@ -1636,9 +1636,9 @@ function xt(e) {
|
|
|
1636
1636
|
for (const n of e) t.set(n, (t.get(n) ?? 0) + 1);
|
|
1637
1637
|
return t;
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function Zi(e, t) {
|
|
1640
1640
|
var d, f;
|
|
1641
|
-
const n = [...t.keys], o = new Set(n), r = t.columnKeyMap, i =
|
|
1641
|
+
const n = [...t.keys], o = new Set(n), r = t.columnKeyMap, i = Ze(e).flatMap(
|
|
1642
1642
|
({ role: m, fields: g }) => g.flatMap((p) => {
|
|
1643
1643
|
const y = et(p, m);
|
|
1644
1644
|
return y ? [
|
|
@@ -1799,7 +1799,7 @@ function os(e, t, n) {
|
|
|
1799
1799
|
return o;
|
|
1800
1800
|
}
|
|
1801
1801
|
function rs(e) {
|
|
1802
|
-
const t =
|
|
1802
|
+
const t = Ze(e);
|
|
1803
1803
|
return [
|
|
1804
1804
|
...t.filter((n) => n.role === "metric"),
|
|
1805
1805
|
...t.filter((n) => n.role !== "metric")
|
|
@@ -1888,7 +1888,7 @@ function cs(e, t, n, o) {
|
|
|
1888
1888
|
function Cl(e) {
|
|
1889
1889
|
if (oe(e) !== "config") return;
|
|
1890
1890
|
const t = /* @__PURE__ */ new Set();
|
|
1891
|
-
for (const { role: n, fields: o } of
|
|
1891
|
+
for (const { role: n, fields: o } of Ze(e))
|
|
1892
1892
|
for (const r of o) {
|
|
1893
1893
|
const i = et(r, n);
|
|
1894
1894
|
i && t.add(j(i));
|
|
@@ -1901,7 +1901,7 @@ function Il(e) {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
function vl(e) {
|
|
1903
1903
|
var ut, dt, ft, pt, mt, gt, yt;
|
|
1904
|
-
const { card: t, result: n } = e, o = e.projection ?? "screen", r = oe(t) === "config", i = as(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (ut = e.settings) != null && ut.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = ss(r, e.paginationMode), c = n.columnKeyMap, l = r ?
|
|
1904
|
+
const { card: t, result: n } = e, o = e.projection ?? "screen", r = oe(t) === "config", i = as(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (ut = e.settings) != null && ut.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = ss(r, e.paginationMode), c = n.columnKeyMap, l = r ? Zi(t, n) : es(n), u = (b) => {
|
|
1905
1905
|
var S, V;
|
|
1906
1906
|
return b && ((V = (S = s == null ? void 0 : s.labels) == null ? void 0 : S[b]) == null ? void 0 : V.trim()) || void 0;
|
|
1907
1907
|
}, d = (b) => j({ kind: "metric", ...b }), { keys: f, exportLabels: m } = ns(
|
|
@@ -1976,7 +1976,7 @@ function vl(e) {
|
|
|
1976
1976
|
);
|
|
1977
1977
|
const J = m.get(b);
|
|
1978
1978
|
if (J) return J;
|
|
1979
|
-
const
|
|
1979
|
+
const X = Ii({
|
|
1980
1980
|
columnId: b,
|
|
1981
1981
|
card: t,
|
|
1982
1982
|
columnKeyMap: c,
|
|
@@ -1985,7 +1985,7 @@ function vl(e) {
|
|
|
1985
1985
|
// as dates (its temporal activation covers group columns only).
|
|
1986
1986
|
metricLabelOverride: (S == null ? void 0 : S.part) === "pivot-member" ? V : void 0
|
|
1987
1987
|
});
|
|
1988
|
-
return
|
|
1988
|
+
return X || (hn(b, t, c) ?? b);
|
|
1989
1989
|
}, R = O.map((b) => {
|
|
1990
1990
|
var K;
|
|
1991
1991
|
const S = p(b), V = (S == null ? void 0 : S.part) ?? ((K = l.owners.get(b)) == null ? void 0 : K.part) ?? "base";
|
|
@@ -1995,7 +1995,7 @@ function vl(e) {
|
|
|
1995
1995
|
part: V,
|
|
1996
1996
|
visible: !g(b) && !(S && T.has(S.columnId)),
|
|
1997
1997
|
label: E(b, S),
|
|
1998
|
-
resizable: !i &&
|
|
1998
|
+
resizable: !i && Xi({ part: V, columnId: S == null ? void 0 : S.columnId })
|
|
1999
1999
|
};
|
|
2000
2000
|
}), z = Object.fromEntries(
|
|
2001
2001
|
R.map((b) => [b.outputKey, b.label])
|
|
@@ -2026,7 +2026,7 @@ function vl(e) {
|
|
|
2026
2026
|
available: !0,
|
|
2027
2027
|
canReset: ct,
|
|
2028
2028
|
items: x.map((V) => {
|
|
2029
|
-
const K = l.entries.get(V), J = T.has(V),
|
|
2029
|
+
const K = l.entries.get(V), J = T.has(V), X = ao.get(V);
|
|
2030
2030
|
return {
|
|
2031
2031
|
columnId: V,
|
|
2032
2032
|
label: u(V) ?? K.authorLabel,
|
|
@@ -2034,7 +2034,7 @@ function vl(e) {
|
|
|
2034
2034
|
hidden: J,
|
|
2035
2035
|
isNew: F !== void 0 && !b.has(V),
|
|
2036
2036
|
canHide: !J && S > 1,
|
|
2037
|
-
...
|
|
2037
|
+
...X ? { sort: X } : {}
|
|
2038
2038
|
};
|
|
2039
2039
|
})
|
|
2040
2040
|
};
|
|
@@ -3553,7 +3553,7 @@ function Wn(e) {
|
|
|
3553
3553
|
function N(e) {
|
|
3554
3554
|
return typeof e == "string" ? e.trim() : "";
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function Xs(e) {
|
|
3557
3557
|
var t;
|
|
3558
3558
|
return (((t = e.semanticContext) == null ? void 0 : t.selectedEntities) || []).filter((n) => typeof n == "object" && n !== null).filter((n) => n.type === "dataset").map((n) => {
|
|
3559
3559
|
var o;
|
|
@@ -3564,11 +3564,11 @@ function Zs(e) {
|
|
|
3564
3564
|
};
|
|
3565
3565
|
}).filter((n) => n.domainId && n.datasetName);
|
|
3566
3566
|
}
|
|
3567
|
-
function
|
|
3567
|
+
function Zs(e) {
|
|
3568
3568
|
var c, l, u, d, f;
|
|
3569
3569
|
if (ee(e) || (c = e.sql) != null && c.trim())
|
|
3570
3570
|
return null;
|
|
3571
|
-
const t =
|
|
3571
|
+
const t = Xs(e), n = N((l = e.semanticContext) == null ? void 0 : l.semanticDomainId), o = N((u = e.fieldMeta) == null ? void 0 : u.entityId), r = N((d = e.fieldMeta) == null ? void 0 : d.entityName), i = N((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", s = t.find(
|
|
3572
3572
|
(m) => o && m.selectedEntityId === o
|
|
3573
3573
|
);
|
|
3574
3574
|
if (s)
|
|
@@ -3586,7 +3586,7 @@ function ea(e) {
|
|
|
3586
3586
|
const { filter: t, semanticExecutionPayload: n } = e;
|
|
3587
3587
|
if (!n)
|
|
3588
3588
|
return null;
|
|
3589
|
-
const o =
|
|
3589
|
+
const o = Zs(t);
|
|
3590
3590
|
return o && ((i = (r = n.domainsById[o.domainId]) == null ? void 0 : r.datasetsByName[o.datasetName]) == null ? void 0 : i.primaryDateField) || null;
|
|
3591
3591
|
}
|
|
3592
3592
|
function Yn(e) {
|
|
@@ -3786,12 +3786,12 @@ function sa(e, t, n = {}) {
|
|
|
3786
3786
|
} : e;
|
|
3787
3787
|
}
|
|
3788
3788
|
function Wl(e, t = {}) {
|
|
3789
|
-
return Jn(
|
|
3789
|
+
return Jn(Xn(e, t));
|
|
3790
3790
|
}
|
|
3791
3791
|
function Jn(e) {
|
|
3792
3792
|
return ra([e.authored, e.drill, e.selections]);
|
|
3793
3793
|
}
|
|
3794
|
-
function
|
|
3794
|
+
function Xn(e, t = {}) {
|
|
3795
3795
|
return {
|
|
3796
3796
|
authored: t.includeAuthoredFilters === !1 ? void 0 : Yo(e),
|
|
3797
3797
|
drill: xs(t.drill, e.id),
|
|
@@ -3819,7 +3819,7 @@ function ca(e) {
|
|
|
3819
3819
|
...t.map((r) => r.id),
|
|
3820
3820
|
...n.map((r) => r.id)
|
|
3821
3821
|
]);
|
|
3822
|
-
return
|
|
3822
|
+
return Zn(
|
|
3823
3823
|
e.card,
|
|
3824
3824
|
{
|
|
3825
3825
|
controlValues: Gt({
|
|
@@ -3834,7 +3834,7 @@ function ca(e) {
|
|
|
3834
3834
|
e.presentationControlIds
|
|
3835
3835
|
);
|
|
3836
3836
|
}
|
|
3837
|
-
function
|
|
3837
|
+
function Zn(e, t, n) {
|
|
3838
3838
|
const r = t.controlBindings.filter(
|
|
3839
3839
|
(f) => !Fe(f)
|
|
3840
3840
|
), i = new Set(
|
|
@@ -3885,7 +3885,7 @@ function ua({
|
|
|
3885
3885
|
const m = Tn(t);
|
|
3886
3886
|
for (const F of e.controlBindings || [])
|
|
3887
3887
|
Fe(F) && m.add(F.controlId);
|
|
3888
|
-
const { shouldApplyDashboardFilters: g } = la(n), p = d != null && d.inputs.length ? d : void 0, y =
|
|
3888
|
+
const { shouldApplyDashboardFilters: g } = la(n), p = d != null && d.inputs.length ? d : void 0, y = Xn(e, {
|
|
3889
3889
|
includeAuthoredFilters: f,
|
|
3890
3890
|
// Blocked and skipped conditions are already projected away, so a
|
|
3891
3891
|
// selection can only ever narrow this card on its own fields. Carried
|
|
@@ -3906,7 +3906,7 @@ function ua({
|
|
|
3906
3906
|
sql: e.sql,
|
|
3907
3907
|
normalizedPython: Le(e.python || "")
|
|
3908
3908
|
})
|
|
3909
|
-
}) || D, w = ia(I) || "", A = p ?
|
|
3909
|
+
}) || D, w = ia(I) || "", A = p ? Zn(
|
|
3910
3910
|
e,
|
|
3911
3911
|
{
|
|
3912
3912
|
controlValues: p.controlValues,
|
|
@@ -3945,7 +3945,7 @@ function ua({
|
|
|
3945
3945
|
...A,
|
|
3946
3946
|
resolvedFilters: I,
|
|
3947
3947
|
resolvedFilterParts: y,
|
|
3948
|
-
drillSteps: ((M = o == null ? void 0 : o.drill) == null ? void 0 : M.steps) ??
|
|
3948
|
+
drillSteps: ((M = o == null ? void 0 : o.drill) == null ? void 0 : M.steps) ?? Xo,
|
|
3949
3949
|
finalConfig: D,
|
|
3950
3950
|
queryRelevantConfig: C,
|
|
3951
3951
|
finalFiltersKey: w
|
|
@@ -4031,7 +4031,7 @@ function Ke(e, t) {
|
|
|
4031
4031
|
(u) => !i.has(u.filterId)
|
|
4032
4032
|
), c = s.filter(
|
|
4033
4033
|
(u) => i.has(u.filterId)
|
|
4034
|
-
), l =
|
|
4034
|
+
), l = Zo({
|
|
4035
4035
|
card: e,
|
|
4036
4036
|
inputs: o,
|
|
4037
4037
|
resolvedInputs: t.dashboardInputContext.resolvedInputs,
|
|
@@ -4302,7 +4302,7 @@ function Sa(e, t, n) {
|
|
|
4302
4302
|
globalCacheConfig: e.globalCacheConfig
|
|
4303
4303
|
};
|
|
4304
4304
|
}
|
|
4305
|
-
function
|
|
4305
|
+
function Xl(e, t) {
|
|
4306
4306
|
return io(
|
|
4307
4307
|
e,
|
|
4308
4308
|
t,
|
|
@@ -4612,7 +4612,7 @@ function io(e, t, n) {
|
|
|
4612
4612
|
resolvedPrimaryDateField: r
|
|
4613
4613
|
};
|
|
4614
4614
|
}
|
|
4615
|
-
function
|
|
4615
|
+
function Zl({
|
|
4616
4616
|
dashboard: e,
|
|
4617
4617
|
dashboardInputValues: t,
|
|
4618
4618
|
adHocFilterValues: n,
|
|
@@ -4869,7 +4869,7 @@ function Oa(e, t, n, o) {
|
|
|
4869
4869
|
} : f;
|
|
4870
4870
|
return m && (r[f.variableName] = g), g;
|
|
4871
4871
|
}, c = (f) => {
|
|
4872
|
-
Object.assign(f,
|
|
4872
|
+
Object.assign(f, Xt(f, (m) => a(m))), f.type === "link" && [...f.children, ...Array.isArray(f.url) ? f.url : []].forEach((m) => c(m)), f.type === "when" && [...f.then ?? [], ...f.else ?? []].forEach(c);
|
|
4873
4873
|
};
|
|
4874
4874
|
return (u = i.content) == null || u.forEach((f) => {
|
|
4875
4875
|
f.type === "variable" && (f.ref = a(f.ref));
|
|
@@ -4954,7 +4954,7 @@ export {
|
|
|
4954
4954
|
cl as a5,
|
|
4955
4955
|
nt as a6,
|
|
4956
4956
|
An as a7,
|
|
4957
|
-
|
|
4957
|
+
Xl as a8,
|
|
4958
4958
|
Sa as a9,
|
|
4959
4959
|
On as aA,
|
|
4960
4960
|
Yl as aB,
|
|
@@ -4987,14 +4987,14 @@ export {
|
|
|
4987
4987
|
wa as ab,
|
|
4988
4988
|
Oa as ac,
|
|
4989
4989
|
Aa as ad,
|
|
4990
|
-
|
|
4990
|
+
Xi as ae,
|
|
4991
4991
|
jl as af,
|
|
4992
4992
|
Nl as ag,
|
|
4993
4993
|
Bn as ah,
|
|
4994
4994
|
Ll as ai,
|
|
4995
4995
|
Li as aj,
|
|
4996
4996
|
pa as ak,
|
|
4997
|
-
|
|
4997
|
+
Zl as al,
|
|
4998
4998
|
aa as am,
|
|
4999
4999
|
Wl as an,
|
|
5000
5000
|
Dl as ao,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as v, g as N, a as y, b as D } from "./resolve-dashboard-input-context-
|
|
1
|
+
import { c as v, g as N, a as y, b as D } from "./resolve-dashboard-input-context-Du0fjN3h.js";
|
|
2
2
|
import { e as M } from "./validators-wtjw0aw6.js";
|
|
3
|
-
import { g as A, a as q, b as w, c as E } from "./filter-reach-copy-
|
|
3
|
+
import { g as A, a as q, b as w, c as E } from "./filter-reach-copy-jZGzK_IH.js";
|
|
4
4
|
import { g as L, m as x } from "./matrix-analytical-definition-C9xB_T84.js";
|
|
5
5
|
const O = [
|
|
6
6
|
{
|
package/dist/dashboard/index.js
CHANGED