react-semaphor 0.1.578 → 0.1.580
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 +75 -70
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/add-to-dashboard-DhP8wVtM.js +291 -0
- package/dist/chunks/{assistant-chat-B_tmsxEK.js → assistant-chat-CUwGURJj.js} +2261 -2184
- package/dist/chunks/{bookmark-impact-DUWw3wlA.js → bookmark-impact-BNyR-yDX.js} +1 -1
- package/dist/chunks/{card-filter-builder-CwnMUZU2.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/{context-R31TSL5V.js → context-BTLBjQNh.js} +99 -83
- package/dist/chunks/{dashboard-BcIIBCTP.js → dashboard-DvcAk8uJ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BBpECqg2.js → dashboard-briefing-launcher-DBgS97ZH.js} +155 -155
- package/dist/chunks/{dashboard-controls-CONzvjmO.js → dashboard-controls-BiZ1rlNC.js} +7 -7
- package/dist/chunks/{dashboard-json-BF2chEVd.js → dashboard-json-B25xzYcJ.js} +1 -1
- package/dist/chunks/{dates-DlYMDaF2.js → dates-3Pah03_l.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-Bf-RcbuD.js → edit-dashboard-visual-DYuO3mEU.js} +9 -10
- package/dist/chunks/{filter-reach-copy-BTAXnbwQ.js → filter-reach-copy-CzLt96tq.js} +125 -125
- package/dist/chunks/{index-8BxDk8EP.js → index-BMZq6JT6.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-RN4g9PEN.js → report-preferences-dialog-DpAetrdY.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DBFuNhZo.js → resolve-dashboard-input-context-CNxtkCzj.js} +6266 -6191
- package/dist/chunks/{saved-dashboard-context-AChHk4tw.js → saved-dashboard-context-Bnt0H7mi.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-DtivanBy.js → semaphor-ready-indicator-Dwmvmf0S.js} +15010 -14990
- package/dist/chunks/{shelf-drop-preview-context-BTjYxbHC.js → shelf-drop-preview-context-CiveteBS.js} +2 -2
- package/dist/chunks/{stored-dashboard-rpLzf4mk.js → stored-dashboard-D3gu-D7A.js} +67 -67
- package/dist/chunks/{table-export-sheet-CP8zSOhj.js → table-export-sheet-BNGSJA2N.js} +1 -1
- package/dist/chunks/{variable-draft-DPSMDwqt.js → variable-draft-C3_RL2gI.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +357 -350
- package/dist/format-utils/index.js +4 -4
- package/dist/index.js +12 -12
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +5 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +2 -1
- package/dist/types/shared/assistant-protocol/model-change.d.ts +23 -3
- package/dist/types/shared/assistant-protocol/parts.d.ts +12 -2
- 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/dist/types/shared/usage-events/catalog.d.ts +5 -3
- package/dist/types/shared/usage-events/details.d.ts +66 -0
- package/dist/types/shared/usage-events/envelope.d.ts +5 -5
- package/dist/usage-events/index.js +154 -115
- package/package.json +1 -1
- package/dist/chunks/add-to-dashboard-B6Ah8Lub.js +0 -267
|
@@ -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 O, 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 { aW as In, af as ie, aX as Pt, aY as Rn, ag as wt, aZ as ot, a_ as Ct, a$ as Et, b0 as Dn, b1 as An, b2 as Nn, b3 as Mn, u as Re, b4 as Ln, b5 as _n, b6 as kn, b7 as Tn, b8 as Hn, b9 as Vn, ba as $n, bb as Fn, bc as Kn } from "./semaphor-ready-indicator-
|
|
4
|
+
import { aW as In, af as ie, aX as Pt, aY as Rn, ag as wt, aZ as ot, a_ as Ct, a$ as Et, b0 as Dn, b1 as An, b2 as Nn, b3 as Mn, u as Re, b4 as Ln, b5 as _n, b6 as kn, b7 as Tn, b8 as Hn, b9 as Vn, ba as $n, bb as Fn, bc as Kn } from "./semaphor-ready-indicator-Dwmvmf0S.js";
|
|
5
5
|
import { C as It, G as Rt, H as ze, J as me, K as Dt, M as Bn, O as qn, Q as Pe, U as On, V as At, W as Gn, Y as Un } from "./style-sheet-parts-C7qGZuH1.js";
|
|
6
|
-
import { R as Wn, S as Nt, U as Mt, V as Je, W as Te, X as Yn, Y as Xn, Z as jn, T as Qn } from "./resolve-dashboard-input-context-
|
|
6
|
+
import { R as Wn, S as Nt, U as Mt, V as Je, W as Te, X as Yn, Y as Xn, Z as jn, T as Qn } from "./resolve-dashboard-input-context-CNxtkCzj.js";
|
|
7
7
|
import { c as we } from "./pickers-DkqmtnTL.js";
|
|
8
8
|
import "./validators-B8fpdinG.js";
|
|
9
9
|
import "./matrix-operation-contract-DCVinw1o.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h6 as co, cC as uo, c2 as fo, aU as po, be as mo, f as go, bW as yo, N as oe, h7 as bo, h8 as Ne, ef as Rt, ei as ho, bN as Co, h9 as Io, av as vo, fZ as Kt, f$ as Fo, by as Le, ha as qt, P as So, g1 as To, d1 as Fe, s as _, fU as Se, n as je, hb as Do, cX as Nt, cZ as Lt, cI as Mo, d0 as Vo, c_ as bt, c$ as ko, b as Po, cK as xo, cW as wo, cU as Oo, bB as jt, a4 as q, gw as Ao, hc as Te, hd as zt, he as Eo, hf as ze, gL as De, hg as Bo, hh as Ge, hi as _o, hj as Ro, hk as Ko, hl as qo, hm as No, l as He, hn as Lo, k as ee, r as jo, h as zo, ho as $, gZ as Ue, hp as ge, hq as Gt, hr as Go, J as Ho, hs as Uo, ht as $o, fT as Qo, hu as Wo, hv as Jo, e as Yo, hw as Zo, hx as Ht, a0 as Ut, hy as Xo, hz as er, hA as tr, hB as $t, j as $e, ct as nr, a5 as or, o as Qt, cs as rr, gI as ir, q as sr, t as ht, C as ar, hC as lr, hD as cr, cu as ur, hE as dr } from "./resolve-dashboard-input-context-CNxtkCzj.js";
|
|
2
2
|
import { ak as fr, a5 as re, J as pr, v as mr, aw as Oe, w as gr, a7 as Ct, ay as Wt, U as yr, r as br } from "./validators-B8fpdinG.js";
|
|
3
3
|
import { q as Jt } from "./matrix-operation-contract-DCVinw1o.js";
|
|
4
4
|
import { S as Qe } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
@@ -6,13 +6,13 @@ import "./pickers-DkqmtnTL.js";
|
|
|
6
6
|
import { canonicalizeSupportedCurrencyCode as Yt } from "../value-format-preferences/index.js";
|
|
7
7
|
import { ZodError as hr } from "zod";
|
|
8
8
|
import { b as ye, r as Cr, aW as Ir, i as vr, aD as Fr, aA as It } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
9
|
-
import { aB as Zt, aC as Xt, aD as ke, a0 as Sr, aE as en, aF as tn, aA as nn, aG as on, n as Tr, l as Dr, v as rn, t as j, aH as sn, k as an, C as
|
|
9
|
+
import { aB as Zt, aC as Xt, aD as ke, a0 as Sr, aE as en, aF as tn, aA as nn, aG as on, n as Tr, l as Dr, v as rn, t as j, aH as sn, k as an, C as Ae, aI as H, z as ie, i as ln, o as Mr, u as Vr, B as We, aJ as kr, ai as Pr, F as cn, D as xr, J as vt, O as un, P as dn, I as fn } from "./bookmark-state-BEl_G9vr.js";
|
|
10
10
|
import "./schema-C9NPiIru.js";
|
|
11
11
|
import "./index-CV_Kzou0.js";
|
|
12
|
-
import "./context-
|
|
12
|
+
import "./context-BTLBjQNh.js";
|
|
13
13
|
import { D as wr } from "./report-runtime-context-BhPzLTbS.js";
|
|
14
14
|
import { r as Q, C as Or } from "./metric-comparison-n9NsIa-2.js";
|
|
15
|
-
import { p as
|
|
15
|
+
import { p as Ar, d as Er } from "./pivot-result-contract-expectations-C-HnUKYe.js";
|
|
16
16
|
import { isPdfTableCardType as Br, PDF_CAPACITY as _r } from "../pdf-export-policy/index.js";
|
|
17
17
|
import { c as Rr } from "./selection-filter-compiler-CUDRnUxc.js";
|
|
18
18
|
import { a as Kr, h as qr, s as Nr } from "./matrix-analytical-definition-dkS8szLM.js";
|
|
@@ -32,7 +32,7 @@ const jr = (e, t) => {
|
|
|
32
32
|
continue;
|
|
33
33
|
}
|
|
34
34
|
const i = e[r], s = t[r];
|
|
35
|
-
if (!
|
|
35
|
+
if (!Ee(i, s))
|
|
36
36
|
if (Array.isArray(i) && Array.isArray(s))
|
|
37
37
|
n[r] = s;
|
|
38
38
|
else if (Ft(i) && Ft(s)) {
|
|
@@ -42,13 +42,13 @@ const jr = (e, t) => {
|
|
|
42
42
|
n[r] = s;
|
|
43
43
|
}
|
|
44
44
|
return n;
|
|
45
|
-
},
|
|
45
|
+
}, Ee = (e, t) => {
|
|
46
46
|
if (e === t) return !0;
|
|
47
47
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
48
48
|
if (Array.isArray(e) && Array.isArray(t))
|
|
49
|
-
return e.length !== t.length ? !1 : e.every((r, i) =>
|
|
49
|
+
return e.length !== t.length ? !1 : e.every((r, i) => Ee(r, t[i]));
|
|
50
50
|
const n = Object.keys(e), o = Object.keys(t);
|
|
51
|
-
return n.length !== o.length ? !1 : n.every((r) =>
|
|
51
|
+
return n.length !== o.length ? !1 : n.every((r) => Ee(e[r], t[r]));
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}, Ft = (e) => e !== null && typeof e == "object" && !Array.isArray(e), be = (e) => {
|
|
@@ -600,7 +600,7 @@ function Ii(e) {
|
|
|
600
600
|
columnKeyMap: o
|
|
601
601
|
});
|
|
602
602
|
if (!a) return;
|
|
603
|
-
const { identity: c, pivotFields: l, authoredMetrics: u, authoredMetric: d } = a, m =
|
|
603
|
+
const { identity: c, pivotFields: l, authoredMetrics: u, authoredMetric: d } = a, m = Ar({
|
|
604
604
|
members: c.members,
|
|
605
605
|
resolveTemporalFormat: (I) => {
|
|
606
606
|
var v;
|
|
@@ -977,7 +977,7 @@ function Mt(e) {
|
|
|
977
977
|
).values()
|
|
978
978
|
];
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Ai(e, t = [], n) {
|
|
981
981
|
var D;
|
|
982
982
|
const o = !!((D = e.sql) != null && D.trim()), r = Kt(e.type), i = o && r && e.type !== "kpi" && e.type !== "matrixTable", s = wi(e), a = So(e), c = !o && e.type === "kpi" ? s.map(
|
|
983
983
|
(C) => Be(e, {
|
|
@@ -994,8 +994,8 @@ function Ei(e, t = [], n) {
|
|
|
994
994
|
measureId: C.measureId
|
|
995
995
|
})
|
|
996
996
|
), f = l.filter((C) => {
|
|
997
|
-
var w,
|
|
998
|
-
return ((w = C.canonical) == null ? void 0 : w.type) === "number" || ((
|
|
997
|
+
var w, A;
|
|
998
|
+
return ((w = C.canonical) == null ? void 0 : w.type) === "number" || ((A = C.canonical) == null ? void 0 : A.type) === "currency";
|
|
999
999
|
}).map(
|
|
1000
1000
|
(C) => ({
|
|
1001
1001
|
kind: "matrix_measure",
|
|
@@ -1062,7 +1062,7 @@ function ul(e) {
|
|
|
1062
1062
|
function U(e) {
|
|
1063
1063
|
return e.kind === "metric" ? `metric:${e.metricId}` : e.kind === "column" ? `column:${e.columnKey}` : `matrix_measure:${e.measureId}`;
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Ei(e) {
|
|
1066
1066
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
1067
1067
|
return;
|
|
1068
1068
|
const t = e;
|
|
@@ -1163,7 +1163,7 @@ function kn(e, t) {
|
|
|
1163
1163
|
const n = e, o = typeof n.controlId == "string" && n.controlId.trim() ? n.controlId : void 0;
|
|
1164
1164
|
if (!o)
|
|
1165
1165
|
return { diagnostic: { code: "invalid_binding_shape" } };
|
|
1166
|
-
const r =
|
|
1166
|
+
const r = Ei(
|
|
1167
1167
|
n.presentationTarget
|
|
1168
1168
|
);
|
|
1169
1169
|
if (!r)
|
|
@@ -1225,7 +1225,7 @@ function Bi(e) {
|
|
|
1225
1225
|
return { diagnostics: t };
|
|
1226
1226
|
}
|
|
1227
1227
|
function _i(e, t, n, o) {
|
|
1228
|
-
const r = { ...e, config: { ...e.config, matrix: t } }, i =
|
|
1228
|
+
const r = { ...e, config: { ...e.config, matrix: t } }, i = Ai(r, [], o), s = Sn(r, o), a = { ...t.presentation.measureFormats };
|
|
1229
1229
|
for (const c of s) {
|
|
1230
1230
|
const l = { kind: "matrix_measure", measureId: c.measureId }, { currency: u } = Bi({
|
|
1231
1231
|
...n,
|
|
@@ -1933,12 +1933,12 @@ function Il(e) {
|
|
|
1933
1933
|
], w = [
|
|
1934
1934
|
...new Set(C.filter((b) => !v.has(b)))
|
|
1935
1935
|
];
|
|
1936
|
-
let
|
|
1936
|
+
let A;
|
|
1937
1937
|
if (s != null && s.sort && a !== "page-only") {
|
|
1938
1938
|
const b = s.sort.filter(
|
|
1939
1939
|
(S) => v.has(S.columnId)
|
|
1940
1940
|
);
|
|
1941
|
-
|
|
1941
|
+
A = b.length || !s.sort.length ? b : void 0;
|
|
1942
1942
|
}
|
|
1943
1943
|
const M = Tr(
|
|
1944
1944
|
s ? {
|
|
@@ -1953,7 +1953,7 @@ function Il(e) {
|
|
|
1953
1953
|
([b]) => v.has(b)
|
|
1954
1954
|
)
|
|
1955
1955
|
),
|
|
1956
|
-
sort:
|
|
1956
|
+
sort: A,
|
|
1957
1957
|
widths: Object.fromEntries(
|
|
1958
1958
|
Object.entries(s.widths ?? {}).filter(
|
|
1959
1959
|
([b]) => v.has(b)
|
|
@@ -1964,7 +1964,7 @@ function Il(e) {
|
|
|
1964
1964
|
(b) => b.columnId ? [b.columnId] : []
|
|
1965
1965
|
), T = new Set((M == null ? void 0 : M.hidden) ?? []);
|
|
1966
1966
|
x.length && x.every((b) => T.has(b)) && T.delete(x[0]);
|
|
1967
|
-
const P = o === "screen" ? os(t, n, f) : /* @__PURE__ */ new Map(),
|
|
1967
|
+
const P = o === "screen" ? os(t, n, f) : /* @__PURE__ */ new Map(), E = (b, S) => {
|
|
1968
1968
|
const V = u(S == null ? void 0 : S.columnId);
|
|
1969
1969
|
if ((S == null ? void 0 : S.part) === "base" && V) return V;
|
|
1970
1970
|
const K = P.get(b);
|
|
@@ -1993,7 +1993,7 @@ function Il(e) {
|
|
|
1993
1993
|
...S ? { columnId: S.columnId } : {},
|
|
1994
1994
|
part: V,
|
|
1995
1995
|
visible: !g(b) && !(S && T.has(S.columnId)),
|
|
1996
|
-
label:
|
|
1996
|
+
label: E(b, S),
|
|
1997
1997
|
resizable: !i && Zi({ part: V, columnId: S == null ? void 0 : S.columnId })
|
|
1998
1998
|
};
|
|
1999
1999
|
}), z = Object.fromEntries(
|
|
@@ -2148,11 +2148,11 @@ function On(e) {
|
|
|
2148
2148
|
var t, n, o, r;
|
|
2149
2149
|
return ((r = (o = (n = (t = e.preferences) == null ? void 0 : t.tablePrefs) == null ? void 0 : n.tableStyle) == null ? void 0 : o.totals) == null ? void 0 : r.enabled) === !0;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function An(e) {
|
|
2152
2152
|
return nt(e) ? On(e) : !1;
|
|
2153
2153
|
}
|
|
2154
2154
|
function fs(e, t, n) {
|
|
2155
|
-
if (!
|
|
2155
|
+
if (!An(e))
|
|
2156
2156
|
return;
|
|
2157
2157
|
const o = tt(e, n).filter((r) => r.role !== "metric").map((r) => new Set(ae(r)));
|
|
2158
2158
|
return t.find(
|
|
@@ -2165,7 +2165,7 @@ function Tl({
|
|
|
2165
2165
|
visibleColumnIds: n,
|
|
2166
2166
|
totalsByColumnId: o
|
|
2167
2167
|
}) {
|
|
2168
|
-
if (!
|
|
2168
|
+
if (!An(e) || !o || Object.keys(o).length === 0)
|
|
2169
2169
|
return;
|
|
2170
2170
|
const r = fs(
|
|
2171
2171
|
e,
|
|
@@ -2204,7 +2204,7 @@ function ps(e, t, n) {
|
|
|
2204
2204
|
if (!nt(e) || !On(e))
|
|
2205
2205
|
return;
|
|
2206
2206
|
const o = tt(e, t), r = new Set(
|
|
2207
|
-
|
|
2207
|
+
Er(
|
|
2208
2208
|
o.filter((c) => c.role === "metric")
|
|
2209
2209
|
)
|
|
2210
2210
|
), i = o.filter((c) => c.role !== "metric"), s = n && i.find(
|
|
@@ -2399,7 +2399,7 @@ function Ts(e) {
|
|
|
2399
2399
|
if (!m.success) return u(m.error.message);
|
|
2400
2400
|
t = m.data;
|
|
2401
2401
|
const g = [...r, ...i].map((p) => {
|
|
2402
|
-
const y = Lt({ binding: p, definitions: n, controlValues: e.controlValues }), h = !p.matrixTargetId && y !== void 0 && y !==
|
|
2402
|
+
const y = Lt({ binding: p, definitions: n, controlValues: e.controlValues }), h = !p.matrixTargetId && y !== void 0 && y !== Ae ? f(m.data, p) : [];
|
|
2403
2403
|
return {
|
|
2404
2404
|
binding: p,
|
|
2405
2405
|
selectedValue: y,
|
|
@@ -2407,7 +2407,7 @@ function Ts(e) {
|
|
|
2407
2407
|
};
|
|
2408
2408
|
});
|
|
2409
2409
|
for (const { binding: p, targetId: y, selectedValue: h } of g) {
|
|
2410
|
-
if (h === void 0 || h ===
|
|
2410
|
+
if (h === void 0 || h === Ae)
|
|
2411
2411
|
continue;
|
|
2412
2412
|
const I = (F) => u(F, p.controlId), v = p.target === "config_metric_selector" || p.target === "config_aggregation", D = f(t, p);
|
|
2413
2413
|
(!y || !D.some((F) => F.id === y)) && I("Choose a valid Matrix level or measure target for this control.");
|
|
@@ -2418,7 +2418,7 @@ function Ts(e) {
|
|
|
2418
2418
|
if (k.length !== 1) return I(k.length ? "The selected field is ambiguous in the authorized Matrix field catalog." : "The selected field is not in the authorized Matrix field catalog.");
|
|
2419
2419
|
const O = gr.safeParse(k[0].field);
|
|
2420
2420
|
return O.success ? O.data : I(O.error.message);
|
|
2421
|
-
},
|
|
2421
|
+
}, A = p.target === "config_metric_selector" || p.target === "config_field_selector" ? p.mapping[h] : void 0, M = A && typeof A == "object" && "kind" in A && A.kind === "matrix_instance" ? A.id : void 0;
|
|
2422
2422
|
if (v) {
|
|
2423
2423
|
a.set(y, p.controlId);
|
|
2424
2424
|
const F = M === void 0 ? void 0 : m.data.measures.find(
|
|
@@ -2446,8 +2446,8 @@ function Ts(e) {
|
|
|
2446
2446
|
O !== void 0 && !Ss.has(O) && I("This time grain is not supported by Matrix.");
|
|
2447
2447
|
const x = (T) => T.map((P) => {
|
|
2448
2448
|
if (P.id !== y) return P;
|
|
2449
|
-
const
|
|
2450
|
-
return z && !Ct(R) && I("A time grain requires a temporal Matrix level."), { ...P, field:
|
|
2449
|
+
const E = (F == null ? void 0 : F.field) ?? (k ? w(k) : P.field), R = d(E, p.controlId), z = O ?? (k && Ct(R) ? P.grain : void 0);
|
|
2450
|
+
return z && !Ct(R) && I("A time grain requires a temporal Matrix level."), { ...P, field: E, grain: z };
|
|
2451
2451
|
});
|
|
2452
2452
|
t = {
|
|
2453
2453
|
...t,
|
|
@@ -2469,7 +2469,7 @@ function Ts(e) {
|
|
|
2469
2469
|
throw p;
|
|
2470
2470
|
}
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function En(e, t) {
|
|
2473
2473
|
const n = [], o = (r) => {
|
|
2474
2474
|
if (r.source) {
|
|
2475
2475
|
const i = yr.safeParse(r.source);
|
|
@@ -2480,18 +2480,18 @@ function An(e, t) {
|
|
|
2480
2480
|
};
|
|
2481
2481
|
for (const r of e) {
|
|
2482
2482
|
if (r.target !== "config_field_selector" && r.target !== "config_metric_selector") continue;
|
|
2483
|
-
const i = t == null ? void 0 : t.get(r), s = t ? i && i !==
|
|
2483
|
+
const i = t == null ? void 0 : t.get(r), s = t ? i && i !== Ae ? [r.mapping[i]] : [] : Object.values(r.mapping);
|
|
2484
2484
|
for (const a of s)
|
|
2485
2485
|
a && "role" in a && o(a);
|
|
2486
2486
|
}
|
|
2487
2487
|
return n;
|
|
2488
2488
|
}
|
|
2489
2489
|
function Ds(e, t = [], n = []) {
|
|
2490
|
-
return Wt([...jt(e), ...
|
|
2490
|
+
return Wt([...jt(e), ...En(t), ...n]);
|
|
2491
2491
|
}
|
|
2492
2492
|
function Ms(e, t = {}) {
|
|
2493
2493
|
const n = t.controlBindings ?? [], o = Nt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), r = new Map(n.filter((i) => i.target === "config_field_selector" || i.target === "config_metric_selector").map((i) => [i, Lt({ binding: i, definitions: o, controlValues: t.controlValues })]));
|
|
2494
|
-
return Wt([...jt(e), ...
|
|
2494
|
+
return Wt([...jt(e), ...En(n, r)]);
|
|
2495
2495
|
}
|
|
2496
2496
|
function Vs(e, t) {
|
|
2497
2497
|
return {
|
|
@@ -2563,21 +2563,21 @@ function Os(e) {
|
|
|
2563
2563
|
let t = !1;
|
|
2564
2564
|
const n = (o = e.inputs) == null ? void 0 : o.map((r) => {
|
|
2565
2565
|
if (r.kind !== "filter" || !r.filter) return r;
|
|
2566
|
-
const i =
|
|
2566
|
+
const i = As(
|
|
2567
2567
|
r.filter,
|
|
2568
|
-
new Set(
|
|
2568
|
+
new Set(Es(e.defaultInputValues, r))
|
|
2569
2569
|
);
|
|
2570
2570
|
return i === r.filter ? r : (t = !0, { ...r, filter: i });
|
|
2571
2571
|
});
|
|
2572
2572
|
return t ? { ...e, inputs: n } : e;
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function As(e, t) {
|
|
2575
2575
|
if (t.size !== 1 || !ot(e.operation))
|
|
2576
2576
|
return e;
|
|
2577
2577
|
const [n] = t;
|
|
2578
2578
|
return rt(e.operation) === n ? e : { ...e, operation: ws(n) };
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Es(e, t) {
|
|
2581
2581
|
var r;
|
|
2582
2582
|
const n = (i) => Object.values(i ?? {}).map((s) => s[t.id]);
|
|
2583
2583
|
return (t.runtimeScope === "shared" ? [(r = e == null ? void 0 : e.shared) == null ? void 0 : r[t.id]] : t.runtimeScope === "perSheet" ? n(e == null ? void 0 : e.bySheetId) : t.runtimeScope === "perCard" ? n(e == null ? void 0 : e.byCardId) : t.runtimeScope === "perDocumentSection" ? n(e == null ? void 0 : e.byDocumentSectionId) : []).flatMap(
|
|
@@ -2587,7 +2587,7 @@ function As(e, t) {
|
|
|
2587
2587
|
function Bs(e) {
|
|
2588
2588
|
return ot(e.operation) ? [rt(e.operation)] : [];
|
|
2589
2589
|
}
|
|
2590
|
-
function
|
|
2590
|
+
function Al(e) {
|
|
2591
2591
|
const t = Zt(e), o = q(t).issues.length ? t : Ba(t);
|
|
2592
2592
|
return ci(Os(o)).dashboard;
|
|
2593
2593
|
}
|
|
@@ -2598,7 +2598,7 @@ function it(e, t) {
|
|
|
2598
2598
|
continue;
|
|
2599
2599
|
const r = [];
|
|
2600
2600
|
for (const i of o.inlineFilters) {
|
|
2601
|
-
const s =
|
|
2601
|
+
const s = Ao(i, t);
|
|
2602
2602
|
s && r.push(s);
|
|
2603
2603
|
}
|
|
2604
2604
|
r.length > 0 && (n[o.id] = r);
|
|
@@ -2645,7 +2645,7 @@ function st(e, t, n) {
|
|
|
2645
2645
|
n
|
|
2646
2646
|
);
|
|
2647
2647
|
}
|
|
2648
|
-
function
|
|
2648
|
+
function El(e, t, n) {
|
|
2649
2649
|
return _n(e, t, n);
|
|
2650
2650
|
}
|
|
2651
2651
|
function _n(e, t, n) {
|
|
@@ -2720,7 +2720,7 @@ function Kn(e, t, n) {
|
|
|
2720
2720
|
{ hasExplicitRuntimeOverrides: t !== void 0 }
|
|
2721
2721
|
);
|
|
2722
2722
|
return {
|
|
2723
|
-
...
|
|
2723
|
+
...Eo({
|
|
2724
2724
|
dashboardValues: o.dashboardControlValues,
|
|
2725
2725
|
cardValuesMap: o.cardControlValuesMap
|
|
2726
2726
|
}),
|
|
@@ -3252,15 +3252,15 @@ function Ll(e, t, n) {
|
|
|
3252
3252
|
restore: o
|
|
3253
3253
|
};
|
|
3254
3254
|
}
|
|
3255
|
-
const
|
|
3255
|
+
const At = (e) => JSON.stringify([e.scope, e.target, e.inputId]);
|
|
3256
3256
|
function pe(e) {
|
|
3257
3257
|
return !e || e.status === "cleared" && !e.comparisonSelection;
|
|
3258
3258
|
}
|
|
3259
3259
|
function Hn(e, t) {
|
|
3260
3260
|
const n = new Map(
|
|
3261
|
-
ne(e).map((i) => [
|
|
3261
|
+
ne(e).map((i) => [At(i), i])
|
|
3262
3262
|
), o = new Map(
|
|
3263
|
-
ne(t).map((i) => [
|
|
3263
|
+
ne(t).map((i) => [At(i), i])
|
|
3264
3264
|
), r = {};
|
|
3265
3265
|
for (const [i, s] of o) {
|
|
3266
3266
|
const a = n.get(i);
|
|
@@ -3334,7 +3334,7 @@ function zl(e) {
|
|
|
3334
3334
|
});
|
|
3335
3335
|
return r;
|
|
3336
3336
|
}
|
|
3337
|
-
function
|
|
3337
|
+
function Et(e) {
|
|
3338
3338
|
const t = ee(e.filter);
|
|
3339
3339
|
return {
|
|
3340
3340
|
inputId: e.inputId,
|
|
@@ -3378,7 +3378,7 @@ function Us(e) {
|
|
|
3378
3378
|
fieldCandidates: t,
|
|
3379
3379
|
resolution: {
|
|
3380
3380
|
status: "resolved",
|
|
3381
|
-
resolvedOwner:
|
|
3381
|
+
resolvedOwner: Et(n)
|
|
3382
3382
|
}
|
|
3383
3383
|
};
|
|
3384
3384
|
const o = t.filter(
|
|
@@ -3389,7 +3389,7 @@ function Us(e) {
|
|
|
3389
3389
|
fieldCandidates: t,
|
|
3390
3390
|
resolution: {
|
|
3391
3391
|
status: "resolved",
|
|
3392
|
-
resolvedOwner:
|
|
3392
|
+
resolvedOwner: Et(o[0].input)
|
|
3393
3393
|
}
|
|
3394
3394
|
} : o.length > 1 ? {
|
|
3395
3395
|
inputs: e.inputs,
|
|
@@ -3905,7 +3905,7 @@ function ua({
|
|
|
3905
3905
|
sql: e.sql,
|
|
3906
3906
|
normalizedPython: je(e.python || "")
|
|
3907
3907
|
})
|
|
3908
|
-
}) || D, w = ia(I) || "",
|
|
3908
|
+
}) || D, w = ia(I) || "", A = p ? Xn(
|
|
3909
3909
|
e,
|
|
3910
3910
|
{
|
|
3911
3911
|
controlValues: p.controlValues,
|
|
@@ -3941,7 +3941,7 @@ function ua({
|
|
|
3941
3941
|
dateComparisonInputs: p.dateComparisonInputs
|
|
3942
3942
|
} : {}
|
|
3943
3943
|
},
|
|
3944
|
-
...
|
|
3944
|
+
...A,
|
|
3945
3945
|
resolvedFilters: I,
|
|
3946
3946
|
resolvedFilterParts: y,
|
|
3947
3947
|
drillSteps: ((M = o == null ? void 0 : o.drill) == null ? void 0 : M.steps) ?? Xo,
|
|
@@ -4351,9 +4351,9 @@ function Da({
|
|
|
4351
4351
|
message: "Matrix field metadata is required.",
|
|
4352
4352
|
context: v
|
|
4353
4353
|
};
|
|
4354
|
-
const
|
|
4355
|
-
(P) => P.field.source &&
|
|
4356
|
-
(
|
|
4354
|
+
const A = Ms(C.config.spec, v), M = r.filter(
|
|
4355
|
+
(P) => P.field.source && A.some(
|
|
4356
|
+
(E) => Oe(E, P.field.source)
|
|
4357
4357
|
)
|
|
4358
4358
|
), F = oa(h, M, v), { params: k } = w, O = k.dashboardInputContext;
|
|
4359
4359
|
F.config = {
|
|
@@ -4437,25 +4437,25 @@ function Da({
|
|
|
4437
4437
|
])
|
|
4438
4438
|
), k = new Map(
|
|
4439
4439
|
M.map(({ card: T, value: P }) => {
|
|
4440
|
-
var
|
|
4440
|
+
var E;
|
|
4441
4441
|
return [
|
|
4442
4442
|
T.id,
|
|
4443
|
-
P.status === "ready" ? (
|
|
4443
|
+
P.status === "ready" ? (E = P.value.matrix) == null ? void 0 : E.fields : void 0
|
|
4444
4444
|
];
|
|
4445
4445
|
})
|
|
4446
4446
|
), O = M.flatMap(
|
|
4447
4447
|
({ card: T, value: P }) => {
|
|
4448
|
-
const
|
|
4449
|
-
if (!R) return [
|
|
4448
|
+
const E = T.id, R = P.status === "ready" ? P.value.assembled.context : P.context;
|
|
4449
|
+
if (!R) return [E];
|
|
4450
4450
|
const z = P.status === "ready" ? P.value.assembled.card : T;
|
|
4451
4451
|
try {
|
|
4452
4452
|
const J = Ke(
|
|
4453
4453
|
z,
|
|
4454
4454
|
R.filterCompilationInput
|
|
4455
4455
|
);
|
|
4456
|
-
return J.status === "blocked" || J.filterValues.some((ce) => ce.filterId === g.id) ? [
|
|
4456
|
+
return J.status === "blocked" || J.filterValues.some((ce) => ce.filterId === g.id) ? [E] : [];
|
|
4457
4457
|
} catch {
|
|
4458
|
-
return F.set(
|
|
4458
|
+
return F.set(E, null), [E];
|
|
4459
4459
|
}
|
|
4460
4460
|
}
|
|
4461
4461
|
), x = Ue(
|
|
@@ -4876,7 +4876,7 @@ function Oa(e, t, n, o) {
|
|
|
4876
4876
|
f.type === "list" ? f.items.forEach((m) => m.forEach(c)) : f.children.forEach(c);
|
|
4877
4877
|
}), r;
|
|
4878
4878
|
}
|
|
4879
|
-
function
|
|
4879
|
+
function Aa(e, t) {
|
|
4880
4880
|
var i;
|
|
4881
4881
|
const n = _t(e);
|
|
4882
4882
|
if (!n.some((s) => {
|
|
@@ -4901,17 +4901,17 @@ function Ea(e, t) {
|
|
|
4901
4901
|
}
|
|
4902
4902
|
return o;
|
|
4903
4903
|
}
|
|
4904
|
-
function
|
|
4904
|
+
function Ea(e) {
|
|
4905
4905
|
var n;
|
|
4906
4906
|
const t = (n = e.sheets) == null ? void 0 : n.map(
|
|
4907
|
-
(o) =>
|
|
4907
|
+
(o) => Aa(o, e)
|
|
4908
4908
|
);
|
|
4909
4909
|
return t && t.some((o, r) => o !== e.sheets[r]) ? { ...e, sheets: t } : e;
|
|
4910
4910
|
}
|
|
4911
4911
|
function Ba(e) {
|
|
4912
4912
|
const t = q(e);
|
|
4913
4913
|
return t.issues.length === 0 && !t.needsUpgrade ? e : t.issues.length ? t.toStoredDashboard() : q(
|
|
4914
|
-
|
|
4914
|
+
Ea(e)
|
|
4915
4915
|
).toStoredDashboard();
|
|
4916
4916
|
}
|
|
4917
4917
|
export {
|
|
@@ -4938,7 +4938,7 @@ export {
|
|
|
4938
4938
|
il as T,
|
|
4939
4939
|
fs as U,
|
|
4940
4940
|
ps as V,
|
|
4941
|
-
|
|
4941
|
+
Ai as W,
|
|
4942
4942
|
U as X,
|
|
4943
4943
|
gl as Y,
|
|
4944
4944
|
Bi as Z,
|
|
@@ -4952,7 +4952,7 @@ export {
|
|
|
4952
4952
|
wi as a4,
|
|
4953
4953
|
ll as a5,
|
|
4954
4954
|
nt as a6,
|
|
4955
|
-
|
|
4955
|
+
An as a7,
|
|
4956
4956
|
Yl as a8,
|
|
4957
4957
|
Sa as a9,
|
|
4958
4958
|
On as aA,
|
|
@@ -4985,7 +4985,7 @@ export {
|
|
|
4985
4985
|
_t as aa,
|
|
4986
4986
|
wa as ab,
|
|
4987
4987
|
Oa as ac,
|
|
4988
|
-
|
|
4988
|
+
Aa as ad,
|
|
4989
4989
|
Zi as ae,
|
|
4990
4990
|
Ll as af,
|
|
4991
4991
|
ql as ag,
|
|
@@ -5014,7 +5014,7 @@ export {
|
|
|
5014
5014
|
Vl as b2,
|
|
5015
5015
|
gs as b3,
|
|
5016
5016
|
ne as b4,
|
|
5017
|
-
|
|
5017
|
+
El as b5,
|
|
5018
5018
|
zl as b6,
|
|
5019
5019
|
jl as b7,
|
|
5020
5020
|
Yi as c,
|
|
@@ -5030,7 +5030,7 @@ export {
|
|
|
5030
5030
|
Xl as m,
|
|
5031
5031
|
Rl as n,
|
|
5032
5032
|
st as o,
|
|
5033
|
-
|
|
5033
|
+
Al as p,
|
|
5034
5034
|
Pa as q,
|
|
5035
5035
|
Bl as r,
|
|
5036
5036
|
Ds as s,
|
|
@@ -2,7 +2,7 @@ var ft = Object.defineProperty;
|
|
|
2
2
|
var ht = (e, t, r) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ne = (e, t, r) => ht(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { z as S } from "zod";
|
|
5
|
-
import { e as ct } from "./comparison-window-caption-
|
|
5
|
+
import { e as ct } from "./comparison-window-caption-DdLqMgiG.js";
|
|
6
6
|
var E = Uint8Array, I = Uint16Array, pe = Int32Array, xe = new E([
|
|
7
7
|
0,
|
|
8
8
|
0,
|
|
@@ -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-CNxtkCzj.js";
|
|
2
2
|
import { d as M } from "./validators-B8fpdinG.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-CzLt96tq.js";
|
|
4
4
|
import { g as L, m as x } from "./matrix-analytical-definition-dkS8szLM.js";
|
|
5
5
|
const O = [
|
|
6
6
|
{
|
package/dist/dashboard/index.js
CHANGED