react-semaphor 0.1.572 → 0.1.573
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 +62 -59
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{model-change-T1cRkh3m.js → add-to-dashboard-B6Ah8Lub.js} +121 -84
- package/dist/chunks/{assistant-chat-DF1-q82n.js → assistant-chat-D95DtCj7.js} +2411 -2313
- package/dist/chunks/{bookmark-impact-fdj8fY9i.js → bookmark-impact-DUWw3wlA.js} +1 -1
- package/dist/chunks/{card-filter-builder-BFT21WI-.js → card-filter-builder-B3bEPylu.js} +54 -54
- package/dist/chunks/{dashboard-jUhZ7T4f.js → dashboard-DdALjmc3.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DDXzTYuA.js → dashboard-briefing-launcher-D2vevpyl.js} +82 -82
- package/dist/chunks/{dashboard-controls-BwKQEoGp.js → dashboard-controls-DxrsGK9A.js} +7 -7
- package/dist/chunks/{dashboard-json-B3fR1_Oc.js → dashboard-json-rwds0HjB.js} +1 -1
- package/dist/chunks/{dates-DKkSDWHe.js → dates-DlYMDaF2.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-DGZABdS-.js → edit-dashboard-visual-BCDz5HOb.js} +1354 -1317
- package/dist/chunks/{filter-reach-copy-CWHV7GSb.js → filter-reach-copy-BTAXnbwQ.js} +2 -2
- package/dist/chunks/{index-CeeY4wjE.js → index-8BxDk8EP.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-R3EGbxfu.js → report-preferences-dialog-D9nBczmk.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-CBQF3obr.js → resolve-dashboard-input-context-DBFuNhZo.js} +3961 -3923
- package/dist/chunks/{saved-dashboard-context-_-7LKeK1.js → saved-dashboard-context-AChHk4tw.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-CEbA4CFb.js → semaphor-ready-indicator-BdOAS4Uw.js} +23554 -23073
- package/dist/chunks/{shelf-drop-preview-context-UqUUVSJq.js → shelf-drop-preview-context-B1goDUYE.js} +2 -2
- package/dist/chunks/{stored-dashboard-Bk3iCXtp.js → stored-dashboard-rpLzf4mk.js} +112 -112
- package/dist/chunks/{variable-draft-ggS3X7FG.js → variable-draft-DPSMDwqt.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1381 -1368
- package/dist/index.js +11 -11
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/dashboard/summary-card.d.ts +5 -0
- package/dist/types/lib/formatters/kpi-number-formatter.d.ts +12 -0
- package/dist/types/lib/types/explorer-types.d.ts +6 -0
- package/dist/types/shared/assistant-protocol/model-change.d.ts +52 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +49 -2
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +38 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g$ as co, cC as uo, c2 as fo, aU as po, be as mo, f as go, bW as yo, N as oe, h0 as bo, h1 as Ne, e8 as Rt, eb as ho, bN as Co, h2 as Io, av as vo, fS as Kt, fU as Fo, by as Le, h3 as qt, P as So, fW as To, d1 as Fe, s as _, fN as Se, n as je, h4 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, gp as Eo, h5 as Te, h6 as zt, h7 as Ao, h8 as ze, gE as De, h9 as Bo, ha as Ge, hb as _o, hc as Ro, hd as Ko, he as qo, hf as No, l as He, hg as Lo, k as ee, r as jo, h as zo, hh as $, gS as Ue, hi as ge, hj as Gt, hk as Go, J as Ho, hl as Uo, hm as $o, fM as Qo, hn as Wo, ho as Jo, e as Yo, hp as Zo, hq as Ht, a0 as Ut, hr as Xo, hs as er, ht as tr, hu as $t, j as $e, ct as nr, a5 as or, o as Qt, cs as rr, gB as ir, q as sr, t as ht, C as ar, hv as lr, hw as cr, cu as ur, hx as dr } from "./resolve-dashboard-input-context-DBFuNhZo.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 Ee, 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
12
|
import "./context-R31TSL5V.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 Er, d as Ar } 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 (!Ae(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
|
+
}, Ae = (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) => Ae(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) => Ae(e[r], t[r]));
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}, Ft = (e) => e !== null && typeof e == "object" && !Array.isArray(e), be = (e) => {
|
|
@@ -75,18 +75,18 @@ function Hr(e) {
|
|
|
75
75
|
const n = new Uint8Array(16);
|
|
76
76
|
return n[0] = (t = parseInt(e.slice(0, 8), 16)) >>> 24, n[1] = t >>> 16 & 255, n[2] = t >>> 8 & 255, n[3] = t & 255, n[4] = (t = parseInt(e.slice(9, 13), 16)) >>> 8, n[5] = t & 255, n[6] = (t = parseInt(e.slice(14, 18), 16)) >>> 8, n[7] = t & 255, n[8] = (t = parseInt(e.slice(19, 23), 16)) >>> 8, n[9] = t & 255, n[10] = (t = parseInt(e.slice(24, 36), 16)) / 1099511627776 & 255, n[11] = t / 4294967296 & 255, n[12] = t >>> 24 & 255, n[13] = t >>> 16 & 255, n[14] = t >>> 8 & 255, n[15] = t & 255, n;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ur(e) {
|
|
79
79
|
e = unescape(encodeURIComponent(e));
|
|
80
80
|
const t = [];
|
|
81
81
|
for (let n = 0; n < e.length; ++n)
|
|
82
82
|
t.push(e.charCodeAt(n));
|
|
83
83
|
return t;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const $r = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Qr = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
86
86
|
function Wr(e, t, n) {
|
|
87
87
|
function o(r, i, s, a) {
|
|
88
88
|
var c;
|
|
89
|
-
if (typeof r == "string" && (r =
|
|
89
|
+
if (typeof r == "string" && (r = Ur(r)), typeof i == "string" && (i = Hr(i)), ((c = i) === null || c === void 0 ? void 0 : c.length) !== 16)
|
|
90
90
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
91
91
|
let l = new Uint8Array(16 + r.length);
|
|
92
92
|
if (l.set(i), l.set(r, i.length), l = n(l), l[6] = l[6] & 15 | t, l[8] = l[8] & 63 | 128, s) {
|
|
@@ -101,7 +101,7 @@ function Wr(e, t, n) {
|
|
|
101
101
|
o.name = e;
|
|
102
102
|
} catch {
|
|
103
103
|
}
|
|
104
|
-
return o.DNS =
|
|
104
|
+
return o.DNS = $r, o.URL = Qr, o;
|
|
105
105
|
}
|
|
106
106
|
function Jr(e, t, n, o) {
|
|
107
107
|
switch (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 = Er({
|
|
604
604
|
members: c.members,
|
|
605
605
|
resolveTemporalFormat: (I) => {
|
|
606
606
|
var v;
|
|
@@ -971,13 +971,13 @@ function Mt(e) {
|
|
|
971
971
|
return [
|
|
972
972
|
...new Map(
|
|
973
973
|
e.map((t) => [
|
|
974
|
-
|
|
974
|
+
U(t),
|
|
975
975
|
t
|
|
976
976
|
])
|
|
977
977
|
).values()
|
|
978
978
|
];
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Ei(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 Ai(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, E;
|
|
998
|
+
return ((w = C.canonical) == null ? void 0 : w.type) === "number" || ((E = C.canonical) == null ? void 0 : E.type) === "currency";
|
|
999
999
|
}).map(
|
|
1000
1000
|
(C) => ({
|
|
1001
1001
|
kind: "matrix_measure",
|
|
@@ -1059,10 +1059,10 @@ function ul(e) {
|
|
|
1059
1059
|
var t;
|
|
1060
1060
|
return (t = e.card.sql) != null && t.trim() ? { kind: "column", columnKey: e.columnKey } : e.metricId ? { kind: "metric", metricId: e.metricId } : void 0;
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
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 Ai(e) {
|
|
1066
1066
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
1067
1067
|
return;
|
|
1068
1068
|
const t = e;
|
|
@@ -1147,10 +1147,10 @@ function pl(e) {
|
|
|
1147
1147
|
function Vn(e) {
|
|
1148
1148
|
return {
|
|
1149
1149
|
knownKeys: new Set(
|
|
1150
|
-
e.knownTargets.map(
|
|
1150
|
+
e.knownTargets.map(U)
|
|
1151
1151
|
),
|
|
1152
1152
|
eligibleKeys: new Set(
|
|
1153
|
-
e.eligibleTargets.map(
|
|
1153
|
+
e.eligibleTargets.map(U)
|
|
1154
1154
|
),
|
|
1155
1155
|
controlsById: new Map(
|
|
1156
1156
|
(e.controls || []).map((t) => [t.id, t])
|
|
@@ -1163,14 +1163,14 @@ 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 = Ai(
|
|
1167
1167
|
n.presentationTarget
|
|
1168
1168
|
);
|
|
1169
1169
|
if (!r)
|
|
1170
1170
|
return {
|
|
1171
1171
|
diagnostic: { code: "missing_target", controlId: o }
|
|
1172
1172
|
};
|
|
1173
|
-
const i =
|
|
1173
|
+
const i = U(r);
|
|
1174
1174
|
if (!t.knownKeys.has(i))
|
|
1175
1175
|
return {
|
|
1176
1176
|
diagnostic: { code: "stale_target", controlId: o }
|
|
@@ -1205,7 +1205,7 @@ function ml(e) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
function Bi(e) {
|
|
1207
1207
|
var r;
|
|
1208
|
-
const t = [], n =
|
|
1208
|
+
const t = [], n = U(e.target), o = Vn(e);
|
|
1209
1209
|
for (const i of e.bindings || []) {
|
|
1210
1210
|
const s = kn(i, o);
|
|
1211
1211
|
if ("diagnostic" in s) {
|
|
@@ -1213,7 +1213,7 @@ function Bi(e) {
|
|
|
1213
1213
|
continue;
|
|
1214
1214
|
}
|
|
1215
1215
|
const a = s.binding;
|
|
1216
|
-
if (!a ||
|
|
1216
|
+
if (!a || U(
|
|
1217
1217
|
a.presentationTarget
|
|
1218
1218
|
) !== n) continue;
|
|
1219
1219
|
const l = Yt(
|
|
@@ -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 = Ei(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,
|
|
@@ -1405,7 +1405,7 @@ function Hi(e) {
|
|
|
1405
1405
|
filters: e.filters ? Ve(e.filters) : void 0
|
|
1406
1406
|
};
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Ui(e, t, n) {
|
|
1409
1409
|
if (!e)
|
|
1410
1410
|
return JSON.stringify(e);
|
|
1411
1411
|
if (n === "matrixTable" && e.matrix) return _(Kr(e.matrix.spec));
|
|
@@ -1415,7 +1415,7 @@ function $i(e, t, n) {
|
|
|
1415
1415
|
filters: Ve(i.filters)
|
|
1416
1416
|
});
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function $i(e) {
|
|
1419
1419
|
if (!e)
|
|
1420
1420
|
return null;
|
|
1421
1421
|
const { format: t, ...n } = e;
|
|
@@ -1476,14 +1476,14 @@ function Wi(e, {
|
|
|
1476
1476
|
controlBindings: s
|
|
1477
1477
|
}),
|
|
1478
1478
|
_(
|
|
1479
|
-
|
|
1479
|
+
$i(c)
|
|
1480
1480
|
),
|
|
1481
1481
|
_(l ?? null),
|
|
1482
1482
|
zi,
|
|
1483
1483
|
_(u),
|
|
1484
1484
|
JSON.stringify(f),
|
|
1485
1485
|
JSON.stringify(m),
|
|
1486
|
-
|
|
1486
|
+
Ui(
|
|
1487
1487
|
h,
|
|
1488
1488
|
I,
|
|
1489
1489
|
e.type
|
|
@@ -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 E;
|
|
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
|
+
E = 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: E,
|
|
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(), A = (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: A(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 En(e) {
|
|
2152
2152
|
return nt(e) ? On(e) : !1;
|
|
2153
2153
|
}
|
|
2154
2154
|
function fs(e, t, n) {
|
|
2155
|
-
if (!
|
|
2155
|
+
if (!En(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 (!En(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
|
+
Ar(
|
|
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 !== Ee ? 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 === Ee)
|
|
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
|
+
}, E = p.target === "config_metric_selector" || p.target === "config_field_selector" ? p.mapping[h] : void 0, M = E && typeof E == "object" && "kind" in E && E.kind === "matrix_instance" ? E.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 A = (F == null ? void 0 : F.field) ?? (k ? w(k) : P.field), R = d(A, 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: A, 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 An(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 En(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 !== Ee ? [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), ...An(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), ...An(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 = Es(
|
|
2567
2567
|
r.filter,
|
|
2568
|
-
new Set(
|
|
2568
|
+
new Set(As(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 Es(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 As(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 Es(e, t) {
|
|
|
2587
2587
|
function Bs(e) {
|
|
2588
2588
|
return ot(e.operation) ? [rt(e.operation)] : [];
|
|
2589
2589
|
}
|
|
2590
|
-
function
|
|
2590
|
+
function El(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 = Eo(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 Al(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
|
+
...Ao({
|
|
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 Et = (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) => [Et(i), i])
|
|
3262
3262
|
), o = new Map(
|
|
3263
|
-
ne(t).map((i) => [
|
|
3263
|
+
ne(t).map((i) => [Et(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 At(e) {
|
|
3338
3338
|
const t = ee(e.filter);
|
|
3339
3339
|
return {
|
|
3340
3340
|
inputId: e.inputId,
|
|
@@ -3348,7 +3348,7 @@ function Et(e) {
|
|
|
3348
3348
|
}
|
|
3349
3349
|
};
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function Us(e) {
|
|
3352
3352
|
var r, i;
|
|
3353
3353
|
if ((r = e.card.sql) != null && r.trim())
|
|
3354
3354
|
return {
|
|
@@ -3378,7 +3378,7 @@ function $s(e) {
|
|
|
3378
3378
|
fieldCandidates: t,
|
|
3379
3379
|
resolution: {
|
|
3380
3380
|
status: "resolved",
|
|
3381
|
-
resolvedOwner:
|
|
3381
|
+
resolvedOwner: At(n)
|
|
3382
3382
|
}
|
|
3383
3383
|
};
|
|
3384
3384
|
const o = t.filter(
|
|
@@ -3389,7 +3389,7 @@ function $s(e) {
|
|
|
3389
3389
|
fieldCandidates: t,
|
|
3390
3390
|
resolution: {
|
|
3391
3391
|
status: "resolved",
|
|
3392
|
-
resolvedOwner:
|
|
3392
|
+
resolvedOwner: At(o[0].input)
|
|
3393
3393
|
}
|
|
3394
3394
|
} : o.length > 1 ? {
|
|
3395
3395
|
inputs: e.inputs,
|
|
@@ -3424,7 +3424,7 @@ function Gl(e) {
|
|
|
3424
3424
|
}
|
|
3425
3425
|
return t;
|
|
3426
3426
|
}
|
|
3427
|
-
const
|
|
3427
|
+
const $s = /* @__PURE__ */ new Set([
|
|
3428
3428
|
"between",
|
|
3429
3429
|
"not between",
|
|
3430
3430
|
"=",
|
|
@@ -3437,7 +3437,7 @@ const Us = /* @__PURE__ */ new Set([
|
|
|
3437
3437
|
"is not null"
|
|
3438
3438
|
]), Qs = /^(\d{4}-\d{2}-\d{2})T/, Ws = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
3439
3439
|
function lt(e) {
|
|
3440
|
-
return
|
|
3440
|
+
return $s.has(e);
|
|
3441
3441
|
}
|
|
3442
3442
|
function Js(e, t) {
|
|
3443
3443
|
if (e instanceof Date)
|
|
@@ -3453,13 +3453,13 @@ function Js(e, t) {
|
|
|
3453
3453
|
const o = Qs.exec(n);
|
|
3454
3454
|
return o ? o[1] : e;
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function Un(e, t) {
|
|
3457
3457
|
return Array.isArray(e) ? e.map(
|
|
3458
3458
|
(n) => Js(n, t)
|
|
3459
3459
|
) : e;
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3462
|
-
return typeof e.allowMinutePrecision == "boolean" ? e.allowMinutePrecision :
|
|
3461
|
+
function $n(e) {
|
|
3462
|
+
return typeof e.allowMinutePrecision == "boolean" ? e.allowMinutePrecision : Ue(
|
|
3463
3463
|
e.dashboard,
|
|
3464
3464
|
e.semanticExecutionPayload
|
|
3465
3465
|
).allEligibleTargetsAreDateTime;
|
|
@@ -3478,7 +3478,7 @@ function Qn(e) {
|
|
|
3478
3478
|
...n,
|
|
3479
3479
|
filterId: t.id
|
|
3480
3480
|
};
|
|
3481
|
-
const i = n, s = i.temporalPrecision === "minute" || ge(i.relativeMeta) === "minute", a = !r && s, c = i.operation === "is null" || i.operation === "is not null" ? [] : a ?
|
|
3481
|
+
const i = n, s = i.temporalPrecision === "minute" || ge(i.relativeMeta) === "minute", a = !r && s, c = i.operation === "is null" || i.operation === "is not null" ? [] : a ? Un(i.values, o) : i.values, l = r || ge(i.relativeMeta) !== "minute" ? i.relativeMeta : void 0, u = r && i.temporalPrecision === "minute" ? i.temporalPrecision : void 0, {
|
|
3482
3482
|
relativeMeta: d,
|
|
3483
3483
|
temporalPrecision: f,
|
|
3484
3484
|
values: m,
|
|
@@ -3493,10 +3493,10 @@ function Qn(e) {
|
|
|
3493
3493
|
};
|
|
3494
3494
|
}
|
|
3495
3495
|
function Ys(e) {
|
|
3496
|
-
const t =
|
|
3496
|
+
const t = $(e.filters);
|
|
3497
3497
|
if (!t)
|
|
3498
3498
|
return e.filterValues;
|
|
3499
|
-
const n =
|
|
3499
|
+
const n = $n(e);
|
|
3500
3500
|
return e.filterValues.map((o) => o.filterId !== t.id ? o : Qn({
|
|
3501
3501
|
globalDateFilter: t,
|
|
3502
3502
|
globalDateFilterValue: o,
|
|
@@ -3524,7 +3524,7 @@ function Wn(e) {
|
|
|
3524
3524
|
name: o.qualifiedFieldName || o.name,
|
|
3525
3525
|
operation: a.operation,
|
|
3526
3526
|
valueType: "date",
|
|
3527
|
-
values: a.operation === "is null" || a.operation === "is not null" ? [] : m ?
|
|
3527
|
+
values: a.operation === "is null" || a.operation === "is not null" ? [] : m ? Un(
|
|
3528
3528
|
a.values,
|
|
3529
3529
|
i
|
|
3530
3530
|
) : a.values,
|
|
@@ -3589,13 +3589,13 @@ function ea(e) {
|
|
|
3589
3589
|
return o && ((i = (r = n.domainsById[o.domainId]) == null ? void 0 : r.datasetsByName[o.datasetName]) == null ? void 0 : i.primaryDateField) || null;
|
|
3590
3590
|
}
|
|
3591
3591
|
function Jn(e) {
|
|
3592
|
-
const t =
|
|
3592
|
+
const t = $(e.filters);
|
|
3593
3593
|
return t ? e.filterValues.filter(
|
|
3594
3594
|
(n) => n.filterId !== t.id
|
|
3595
3595
|
) : e.filterValues;
|
|
3596
3596
|
}
|
|
3597
3597
|
function Hl(e) {
|
|
3598
|
-
const t =
|
|
3598
|
+
const t = $(e.filters), n = Jn({
|
|
3599
3599
|
filters: e.filters,
|
|
3600
3600
|
filterValues: e.filterValues
|
|
3601
3601
|
});
|
|
@@ -3618,7 +3618,7 @@ function Hl(e) {
|
|
|
3618
3618
|
}
|
|
3619
3619
|
function ta(e) {
|
|
3620
3620
|
var u;
|
|
3621
|
-
const t =
|
|
3621
|
+
const t = $(e.filters), n = t ? e.cardFilterValues.find(
|
|
3622
3622
|
(d) => d.filterId === t.id
|
|
3623
3623
|
) : void 0, o = t ? e.cardFilterValues.filter(
|
|
3624
3624
|
(d) => d.filterId !== t.id
|
|
@@ -3648,7 +3648,7 @@ function ta(e) {
|
|
|
3648
3648
|
effectiveFilterValue: f,
|
|
3649
3649
|
mappedFilterValue: (m = e.mappedFilterValuesByInputId) == null ? void 0 : m.get(d.inputId)
|
|
3650
3650
|
}] : [];
|
|
3651
|
-
})) || [], l =
|
|
3651
|
+
})) || [], l = Us({
|
|
3652
3652
|
inputs: c,
|
|
3653
3653
|
temporalBinding: r,
|
|
3654
3654
|
card: e.card
|
|
@@ -3659,8 +3659,8 @@ function ta(e) {
|
|
|
3659
3659
|
dateComparisonPlan: l
|
|
3660
3660
|
};
|
|
3661
3661
|
}
|
|
3662
|
-
function
|
|
3663
|
-
const t =
|
|
3662
|
+
function Ul(e) {
|
|
3663
|
+
const t = $(e.filters), n = $n(e), o = t ? e.filterValues.find(
|
|
3664
3664
|
(s) => s.filterId === t.id
|
|
3665
3665
|
) : void 0, r = Jn(e);
|
|
3666
3666
|
return !t || !o || !lt(o.operation) ? r : [
|
|
@@ -3679,7 +3679,7 @@ function $l(e) {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
class na extends Error {
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3682
|
+
function $l(e, t) {
|
|
3683
3683
|
const n = new Map((e ? H(e) : []).map(({ card: o }) => [o.id, o]));
|
|
3684
3684
|
return t && n.set(t.id, t), [...n.values()].flatMap((o) => {
|
|
3685
3685
|
const r = Le(o);
|
|
@@ -3693,7 +3693,7 @@ function oa(e, t, n) {
|
|
|
3693
3693
|
...n,
|
|
3694
3694
|
spec: o.spec,
|
|
3695
3695
|
catalog: t.map((u) => ({ ...u, id: u.resolvedField.id }))
|
|
3696
|
-
}), i = r ? { ...o, spec: r.spec } : o, s =
|
|
3696
|
+
}), i = r ? { ...o, spec: r.spec } : o, s = Uo(t), a = $o(t), c = (u) => {
|
|
3697
3697
|
const d = a(u, i.spec.source);
|
|
3698
3698
|
if (!(!d && u.derivedField)) {
|
|
3699
3699
|
if (!d) throw new na(`Matrix field metadata is unavailable: ${u.name}`);
|
|
@@ -3900,12 +3900,12 @@ function ua({
|
|
|
3900
3900
|
), D = us({ ...e, config: v }, r) ?? v, C = In(D, {
|
|
3901
3901
|
cardType: e.type,
|
|
3902
3902
|
dataSource: e.dataSource,
|
|
3903
|
-
temporalResultOwner:
|
|
3903
|
+
temporalResultOwner: Ut({
|
|
3904
3904
|
hasExecutableConfig: Se(D, e.type),
|
|
3905
3905
|
sql: e.sql,
|
|
3906
3906
|
normalizedPython: je(e.python || "")
|
|
3907
3907
|
})
|
|
3908
|
-
}) || D, w = ia(I) || "",
|
|
3908
|
+
}) || D, w = ia(I) || "", E = 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
|
+
...E,
|
|
3945
3945
|
resolvedFilters: I,
|
|
3946
3946
|
resolvedFilterParts: y,
|
|
3947
3947
|
drillSteps: ((M = o == null ? void 0 : o.drill) == null ? void 0 : M.steps) ?? Xo,
|
|
@@ -4118,7 +4118,7 @@ function ba({
|
|
|
4118
4118
|
(y) => y.status === "apply" ? [[y.inputId, y.filterValue]] : []
|
|
4119
4119
|
)
|
|
4120
4120
|
)
|
|
4121
|
-
}), f =
|
|
4121
|
+
}), f = $(c), m = !!(f && d.cardFilterValues.some(
|
|
4122
4122
|
(y) => y.filterId === f.id
|
|
4123
4123
|
)), g = d.resolvedPrimaryDateField && !((p = e.sql) != null && p.trim()) ? d.dateComparisonPlan.inputs.length ? fa({
|
|
4124
4124
|
card: e,
|
|
@@ -4172,7 +4172,7 @@ function ha(e, t, n) {
|
|
|
4172
4172
|
r.queryContext,
|
|
4173
4173
|
n.calendarContext,
|
|
4174
4174
|
{ resolvePaginationConfig: n.resolvePaginationConfig }
|
|
4175
|
-
), f = t.queryRelevantConfig, m = je(e.python || ""), g =
|
|
4175
|
+
), f = t.queryRelevantConfig, m = je(e.python || ""), g = Ut({
|
|
4176
4176
|
hasExecutableConfig: Se(f, e.type),
|
|
4177
4177
|
sql: e.sql,
|
|
4178
4178
|
normalizedPython: m
|
|
@@ -4226,11 +4226,11 @@ function va({
|
|
|
4226
4226
|
dashboardRuntimeValues: o,
|
|
4227
4227
|
calendar: r
|
|
4228
4228
|
}) {
|
|
4229
|
-
const i =
|
|
4229
|
+
const i = $t({
|
|
4230
4230
|
dashboard: t,
|
|
4231
4231
|
dashboardInputValues: o.dashboardInputValues,
|
|
4232
4232
|
transientContexts: void 0
|
|
4233
|
-
}) ?
|
|
4233
|
+
}) ? $e({
|
|
4234
4234
|
transientContexts: void 0,
|
|
4235
4235
|
dashboard: t,
|
|
4236
4236
|
sheetId: n.sheetId,
|
|
@@ -4293,7 +4293,7 @@ function Jl({
|
|
|
4293
4293
|
function Sa(e, t, n) {
|
|
4294
4294
|
return {
|
|
4295
4295
|
calendarContext: n ?? wr,
|
|
4296
|
-
allowGlobalDateMinutePrecision:
|
|
4296
|
+
allowGlobalDateMinutePrecision: Ue(
|
|
4297
4297
|
e,
|
|
4298
4298
|
t
|
|
4299
4299
|
).allEligibleTargetsAreDateTime,
|
|
@@ -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 E = Ms(C.config.spec, v), M = r.filter(
|
|
4355
|
+
(P) => P.field.source && E.some(
|
|
4356
|
+
(A) => Oe(A, P.field.source)
|
|
4357
4357
|
)
|
|
4358
4358
|
), F = oa(h, M, v), { params: k } = w, O = k.dashboardInputContext;
|
|
4359
4359
|
F.config = {
|
|
@@ -4437,28 +4437,28 @@ function Da({
|
|
|
4437
4437
|
])
|
|
4438
4438
|
), k = new Map(
|
|
4439
4439
|
M.map(({ card: T, value: P }) => {
|
|
4440
|
-
var
|
|
4440
|
+
var A;
|
|
4441
4441
|
return [
|
|
4442
4442
|
T.id,
|
|
4443
|
-
P.status === "ready" ? (
|
|
4443
|
+
P.status === "ready" ? (A = P.value.matrix) == null ? void 0 : A.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 A = T.id, R = P.status === "ready" ? P.value.assembled.context : P.context;
|
|
4449
|
+
if (!R) return [A];
|
|
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) ? [A] : [];
|
|
4457
4457
|
} catch {
|
|
4458
|
-
return F.set(
|
|
4458
|
+
return F.set(A, null), [A];
|
|
4459
4459
|
}
|
|
4460
4460
|
}
|
|
4461
|
-
), x =
|
|
4461
|
+
), x = Ue(
|
|
4462
4462
|
s,
|
|
4463
4463
|
o,
|
|
4464
4464
|
g,
|
|
@@ -4560,11 +4560,11 @@ function oo(e, t) {
|
|
|
4560
4560
|
}
|
|
4561
4561
|
function Va(e, t, n, o, r) {
|
|
4562
4562
|
var l, u;
|
|
4563
|
-
const { dashboard: i } = n, s = oo(i, e.id), a = s ? void 0 : n.transientContexts, c =
|
|
4563
|
+
const { dashboard: i } = n, s = oo(i, e.id), a = s ? void 0 : n.transientContexts, c = $t({
|
|
4564
4564
|
dashboard: i,
|
|
4565
4565
|
dashboardInputValues: o.dashboardInputValues,
|
|
4566
4566
|
transientContexts: a
|
|
4567
|
-
}) ?
|
|
4567
|
+
}) ? $e({
|
|
4568
4568
|
transientContexts: a,
|
|
4569
4569
|
dashboard: i,
|
|
4570
4570
|
sheetId: t,
|
|
@@ -4850,7 +4850,7 @@ function Oa(e, t, n, o) {
|
|
|
4850
4850
|
var l, u, d;
|
|
4851
4851
|
const r = {}, i = (l = e.preferences) == null ? void 0 : l.textVisualOptions;
|
|
4852
4852
|
if (!i) return r;
|
|
4853
|
-
const s =
|
|
4853
|
+
const s = $e({
|
|
4854
4854
|
// Authoring: carried drill context never applies to a dashboard being edited.
|
|
4855
4855
|
transientContexts: void 0,
|
|
4856
4856
|
dashboard: n,
|
|
@@ -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 Ea(e, t) {
|
|
4880
4880
|
var i;
|
|
4881
4881
|
const n = _t(e);
|
|
4882
4882
|
if (!n.some((s) => {
|
|
@@ -4901,17 +4901,17 @@ function Aa(e, t) {
|
|
|
4901
4901
|
}
|
|
4902
4902
|
return o;
|
|
4903
4903
|
}
|
|
4904
|
-
function
|
|
4904
|
+
function Aa(e) {
|
|
4905
4905
|
var n;
|
|
4906
4906
|
const t = (n = e.sheets) == null ? void 0 : n.map(
|
|
4907
|
-
(o) =>
|
|
4907
|
+
(o) => Ea(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
|
+
Aa(e)
|
|
4915
4915
|
).toStoredDashboard();
|
|
4916
4916
|
}
|
|
4917
4917
|
export {
|
|
@@ -4938,8 +4938,8 @@ export {
|
|
|
4938
4938
|
il as T,
|
|
4939
4939
|
fs as U,
|
|
4940
4940
|
ps as V,
|
|
4941
|
-
|
|
4942
|
-
|
|
4941
|
+
Ei as W,
|
|
4942
|
+
U as X,
|
|
4943
4943
|
gl as Y,
|
|
4944
4944
|
Bi as Z,
|
|
4945
4945
|
yl as _,
|
|
@@ -4952,12 +4952,12 @@ export {
|
|
|
4952
4952
|
wi as a4,
|
|
4953
4953
|
ll as a5,
|
|
4954
4954
|
nt as a6,
|
|
4955
|
-
|
|
4955
|
+
En as a7,
|
|
4956
4956
|
Yl as a8,
|
|
4957
4957
|
Sa as a9,
|
|
4958
4958
|
On as aA,
|
|
4959
4959
|
Wl as aB,
|
|
4960
|
-
|
|
4960
|
+
Ul as aC,
|
|
4961
4961
|
se as aD,
|
|
4962
4962
|
yn as aE,
|
|
4963
4963
|
rl as aF,
|
|
@@ -4966,7 +4966,7 @@ export {
|
|
|
4966
4966
|
Da as aI,
|
|
4967
4967
|
yi as aJ,
|
|
4968
4968
|
sl as aK,
|
|
4969
|
-
|
|
4969
|
+
$l as aL,
|
|
4970
4970
|
pn as aM,
|
|
4971
4971
|
fl as aN,
|
|
4972
4972
|
Hl as aO,
|
|
@@ -4985,7 +4985,7 @@ export {
|
|
|
4985
4985
|
_t as aa,
|
|
4986
4986
|
wa as ab,
|
|
4987
4987
|
Oa as ac,
|
|
4988
|
-
|
|
4988
|
+
Ea 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
|
+
Al 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
|
+
El as p,
|
|
5034
5034
|
Pa as q,
|
|
5035
5035
|
Bl as r,
|
|
5036
5036
|
Ds as s,
|