react-semaphor 0.1.585 → 0.1.586
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +102 -100
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-BdbLmAnK.js → assistant-chat-BU5gchFy.js} +6 -6
- package/dist/chunks/{bookmark-impact-BhT3k379.js → bookmark-impact-ZPSGncK6.js} +1 -1
- package/dist/chunks/{card-filter-builder-CEcKF6Fw.js → card-filter-builder-HELJWA4D.js} +165 -165
- package/dist/chunks/{dashboard-MPku_x1M.js → dashboard-BXP-ZxSY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CkFNlkr1.js → dashboard-briefing-launcher-BGj42whr.js} +7 -7
- package/dist/chunks/{dashboard-controls-Clt4ovXS.js → dashboard-controls-zvbRp6D2.js} +7 -7
- package/dist/chunks/{dashboard-json-DSmXazIg.js → dashboard-json-CykexgqL.js} +1 -1
- package/dist/chunks/{dates-CYZW9owO.js → dates-CaqZtq01.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-Dn2ECRbX.js → edit-dashboard-visual-C82JNxbt.js} +501 -501
- package/dist/chunks/{filter-reach-copy-CmJpPa4G.js → filter-reach-copy-ZERaFKsN.js} +880 -863
- package/dist/chunks/{index-0WYn6RMz.js → index-otMIColV.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-QjBgUYhP.js → matrix-analytical-definition-DOVSFFuf.js} +179 -169
- package/dist/chunks/{report-preferences-dialog-BRaeufEi.js → report-preferences-dialog-B-CoyS1x.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-Cn9jumxl.js → resolve-dashboard-input-context-BTTdKXH0.js} +10325 -10247
- package/dist/chunks/{saved-dashboard-context-CfqkUMzR.js → saved-dashboard-context-B-rosN4W.js} +75 -72
- package/dist/chunks/{semaphor-ready-indicator-D6WjdTGl.js → semaphor-ready-indicator-Cy1n_04D.js} +22649 -22461
- package/dist/chunks/{shelf-drop-preview-context-Bbbrr9u4.js → shelf-drop-preview-context-Bmz54WYm.js} +2 -2
- package/dist/chunks/{stored-dashboard-sPkTjxYf.js → stored-dashboard-rDJ8sw6J.js} +600 -595
- package/dist/chunks/{variable-draft-D1RotIEG.js → variable-draft-DvngkRMl.js} +3 -3
- package/dist/chunks/{visual-choice-JiJ-_3bi.js → visual-choice-BBPizkRo.js} +74 -72
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +328 -320
- package/dist/index.js +11 -11
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +86 -3
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +49 -27
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +30 -2
- package/dist/types/shared/analytics-protocol/click-reach-filter-id.d.ts +9 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-card-decision.d.ts +102 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +13 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ho as ro, cD as io, c3 as so, aV as ao, bf as lo, f as co, bX as uo, N as ne, hp as fo, hq as qe, ej as Et, em as po, bO as mo, hr as go, aw as yo, gs as At, gu as bo, bz as Ne, hs as _t, P as ho, gw as Co, d5 as ve, s as _, gn as Fe, n as Le, ht as Io, gA as vo, c$ as Rt, d1 as Kt, cM as Fo, d4 as So, d2 as mt, d3 as Do, b as To, cO as Mo, c_ as Vo, cY as ko, bC as qt, a4 as q, h0 as xo, hu as Se, hv as Nt, hw as Po, hx as je, hf as De, hy as wo, hz as ze, hA as Oo, hB as Bo, hC as Eo, hD as Ao, hE as _o, l as Ge, hF as Ro, k as Z, r as Ko, h as qo, hG as Q, ge as He, hH as me, hI as Lt, hJ as No, J as Lo, hK as jo, hL as zo, g7 as Go, hM as Ho, hN as Uo, e as Qo, hO as $o, hP as jt, a0 as zt, hQ as Wo, hR as Jo, hS as Yo, hT as Gt, j as Ue, cu as Xo, a5 as Zo, o as Ht, ct as er, hc as tr, q as nr, t as gt, C as or, hU as rr, hV as ir, cv as sr, hW as ar } from "./resolve-dashboard-input-context-BTTdKXH0.js";
|
|
2
2
|
import { ak as lr, a5 as oe, J as cr, v as dr, aw as we, w as ur, a7 as yt, ay as Ut, U as fr, r as pr } from "./validators-CJ8Jh0E8.js";
|
|
3
3
|
import { r as Qt } from "./matrix-operation-contract-BM5TveR3.js";
|
|
4
4
|
import { S as Qe } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
@@ -6,18 +6,18 @@ import "./pickers-DkqmtnTL.js";
|
|
|
6
6
|
import { canonicalizeSupportedCurrencyCode as $t } from "../value-format-preferences/index.js";
|
|
7
7
|
import { ZodError as mr } from "zod";
|
|
8
8
|
import { c as ge, r as gr, b3 as yr, i as br, aM as hr, aK as bt } from "./pivot-result-contract-expectations-Bx_BCu-7.js";
|
|
9
|
-
import { aB as
|
|
9
|
+
import { aB as Wt, aC as Jt, aD as Ve, a0 as Cr, aE as Yt, aF as Xt, aA as Zt, aG as en, n as Ir, l as vr, v as tn, t as j, aH as nn, k as on, C as Oe, aI as H, z as re, i as rn, o as Fr, u as Sr, B as $e, aJ as Dr, ai as Tr, F as sn, D as Mr, J as ht, O as an, P as ln, I as cn } from "./bookmark-state-CL4WEpgB.js";
|
|
10
10
|
import "./schema-C9NPiIru.js";
|
|
11
11
|
import "./index-CV_Kzou0.js";
|
|
12
12
|
import "./context-BTLBjQNh.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { a as
|
|
18
|
-
import { r as
|
|
19
|
-
import { p as
|
|
20
|
-
const
|
|
13
|
+
import { a as Vr, k as kr, s as xr, i as Pr } from "./matrix-analytical-definition-DOVSFFuf.js";
|
|
14
|
+
import { D as wr } from "./report-runtime-context-NlOXwyRB.js";
|
|
15
|
+
import { isPdfTableCardType as Or, PDF_CAPACITY as Br } from "../pdf-export-policy/index.js";
|
|
16
|
+
import { t as Er, c as Ar } from "./selection-filter-compiler-BReJy-uv.js";
|
|
17
|
+
import { a as ie, C as _r } from "./metric-comparison-ZmurmEIs.js";
|
|
18
|
+
import { r as Rr } from "./pivot-result-identity-Bvs6Uq3v.js";
|
|
19
|
+
import { p as Kr } from "./pivot-header-presentation-CdeTU96P.js";
|
|
20
|
+
const qr = (e, t) => {
|
|
21
21
|
const n = {};
|
|
22
22
|
if (e === null || t === null)
|
|
23
23
|
return t;
|
|
@@ -36,7 +36,7 @@ const Kr = (e, t) => {
|
|
|
36
36
|
if (Array.isArray(i) && Array.isArray(s))
|
|
37
37
|
n[r] = s;
|
|
38
38
|
else if (Ct(i) && Ct(s)) {
|
|
39
|
-
const a =
|
|
39
|
+
const a = qr(i, s);
|
|
40
40
|
Object.keys(a).length > 0 && (n[r] = a);
|
|
41
41
|
} else
|
|
42
42
|
n[r] = s;
|
|
@@ -64,29 +64,29 @@ const Kr = (e, t) => {
|
|
|
64
64
|
for (const n in e)
|
|
65
65
|
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ye(e[n]));
|
|
66
66
|
return t;
|
|
67
|
-
},
|
|
68
|
-
function Nr(e) {
|
|
69
|
-
return typeof e == "string" && qr.test(e);
|
|
70
|
-
}
|
|
67
|
+
}, Nr = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
71
68
|
function Lr(e) {
|
|
72
|
-
|
|
69
|
+
return typeof e == "string" && Nr.test(e);
|
|
70
|
+
}
|
|
71
|
+
function jr(e) {
|
|
72
|
+
if (!Lr(e))
|
|
73
73
|
throw TypeError("Invalid UUID");
|
|
74
74
|
let t;
|
|
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 zr(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
|
|
86
|
-
function
|
|
85
|
+
const Gr = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Hr = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
86
|
+
function Ur(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 = zr(r)), typeof i == "string" && (i = jr(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,9 +101,9 @@ function Hr(e, t, n) {
|
|
|
101
101
|
o.name = e;
|
|
102
102
|
} catch {
|
|
103
103
|
}
|
|
104
|
-
return o.DNS =
|
|
104
|
+
return o.DNS = Gr, o.URL = Hr, o;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Qr(e, t, n, o) {
|
|
107
107
|
switch (e) {
|
|
108
108
|
case 0:
|
|
109
109
|
return t & n ^ ~t & o;
|
|
@@ -118,7 +118,7 @@ function Ur(e, t, n, o) {
|
|
|
118
118
|
function ke(e, t) {
|
|
119
119
|
return e << t | e >>> 32 - t;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function $r(e) {
|
|
122
122
|
const t = [1518500249, 1859775393, 2400959708, 3395469782], n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
123
123
|
if (typeof e == "string") {
|
|
124
124
|
const s = unescape(encodeURIComponent(e));
|
|
@@ -143,14 +143,14 @@ function Qr(e) {
|
|
|
143
143
|
a[m] = ke(a[m - 3] ^ a[m - 8] ^ a[m - 14] ^ a[m - 16], 1);
|
|
144
144
|
let c = n[0], l = n[1], d = n[2], u = n[3], f = n[4];
|
|
145
145
|
for (let m = 0; m < 80; ++m) {
|
|
146
|
-
const g = Math.floor(m / 20), p = ke(c, 5) +
|
|
146
|
+
const g = Math.floor(m / 20), p = ke(c, 5) + Qr(g, l, d, u) + f + t[g] + a[m] >>> 0;
|
|
147
147
|
f = u, u = d, d = ke(l, 30) >>> 0, l = c, c = p;
|
|
148
148
|
}
|
|
149
149
|
n[0] = n[0] + c >>> 0, n[1] = n[1] + l >>> 0, n[2] = n[2] + d >>> 0, n[3] = n[3] + u >>> 0, n[4] = n[4] + f >>> 0;
|
|
150
150
|
}
|
|
151
151
|
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];
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const Wr = Ur("v5", 80, $r), It = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, vt = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
|
|
154
154
|
function Jr(e) {
|
|
155
155
|
const t = [];
|
|
156
156
|
let n = 0;
|
|
@@ -185,7 +185,7 @@ function dn(e) {
|
|
|
185
185
|
}
|
|
186
186
|
return Array.from(t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function We(e) {
|
|
189
189
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
190
190
|
for (const o of e.controlBindings || [])
|
|
191
191
|
t.add(o.controlId), o.target === "sql_param" && n.set(o.paramId, o.controlId);
|
|
@@ -193,7 +193,7 @@ function Je(e) {
|
|
|
193
193
|
t.add(n.get(o) ?? o);
|
|
194
194
|
return Array.from(t);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Yr(e) {
|
|
197
197
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
198
198
|
for (const o of e.controlBindings || [])
|
|
199
199
|
o.target === "sql_param" && n.set(o.paramId, o.controlId);
|
|
@@ -204,12 +204,12 @@ function Wr(e) {
|
|
|
204
204
|
});
|
|
205
205
|
return Array.from(t.values());
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Xr(e, t) {
|
|
208
208
|
var r;
|
|
209
209
|
const n = (r = e.controlBindings) == null ? void 0 : r.map((i) => ({
|
|
210
210
|
...i,
|
|
211
211
|
controlId: t.get(i.controlId) ?? i.controlId
|
|
212
|
-
})), o =
|
|
212
|
+
})), o = Yr(e).flatMap(
|
|
213
213
|
({ paramId: i, controlId: s }) => {
|
|
214
214
|
var c;
|
|
215
215
|
const a = t.get(s);
|
|
@@ -228,7 +228,7 @@ function un(e, t) {
|
|
|
228
228
|
inputId: ((a = t.inputIds) == null ? void 0 : a[i.inputId]) ?? i.inputId
|
|
229
229
|
} : i;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Zr(e, t) {
|
|
232
232
|
var r;
|
|
233
233
|
const n = {};
|
|
234
234
|
for (const i of [
|
|
@@ -248,10 +248,10 @@ function Xr(e, t) {
|
|
|
248
248
|
o[i] = un(s, t);
|
|
249
249
|
return Object.keys(o).length && (n.inputAliases = o), n;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function $a(e, t) {
|
|
252
252
|
var r, i, s, a;
|
|
253
|
-
const n = ye(
|
|
254
|
-
n.controlBindings =
|
|
253
|
+
const n = ye(Wt(e));
|
|
254
|
+
n.controlBindings = Xr(
|
|
255
255
|
e,
|
|
256
256
|
new Map(Object.entries(t.controlIds ?? {}))
|
|
257
257
|
);
|
|
@@ -269,7 +269,7 @@ function Qa(e, t) {
|
|
|
269
269
|
const l = c;
|
|
270
270
|
if (Object.assign(
|
|
271
271
|
l,
|
|
272
|
-
|
|
272
|
+
Jt(
|
|
273
273
|
l,
|
|
274
274
|
(f) => f && typeof f == "object" ? un(f, t) : f
|
|
275
275
|
)
|
|
@@ -287,24 +287,24 @@ function Qa(e, t) {
|
|
|
287
287
|
c.cardId = ((a = t.cardIds) == null ? void 0 : a[c.cardId]) ?? c.cardId;
|
|
288
288
|
return n;
|
|
289
289
|
}
|
|
290
|
-
const
|
|
291
|
-
function
|
|
290
|
+
const ei = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
|
|
291
|
+
function ti(e) {
|
|
292
292
|
let t = 0;
|
|
293
|
-
return () =>
|
|
293
|
+
return () => Wr(`${e}#${t++}`, ei);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const ni = [
|
|
296
296
|
{ code: "matrix_definition_incomplete", label: "Matrix definition" }
|
|
297
|
-
],
|
|
297
|
+
], oi = [
|
|
298
298
|
{ code: "connection_type_unresolved", label: "Connection type" }
|
|
299
299
|
], X = (e) => !Array.isArray(e) || e.length === 0;
|
|
300
|
-
function
|
|
300
|
+
function ri(e) {
|
|
301
301
|
var i;
|
|
302
302
|
const t = e.config ?? {};
|
|
303
303
|
if ((i = e.sql) != null && i.trim() || !X(t.pivotByColumns)) return "matrixTable";
|
|
304
304
|
const n = !X(t.groupByColumns), o = !X(t.metricColumns), r = e.type === "pivotTable" && (n || o) && X(t.rowAggregates) && X(t.columnAggregates);
|
|
305
305
|
return n && !o || r ? "table" : "matrixTable";
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function ii(e) {
|
|
308
308
|
var r;
|
|
309
309
|
const t = e.dataSource;
|
|
310
310
|
if (!t || (r = t.connectionType) != null && r.trim()) return e;
|
|
@@ -317,7 +317,7 @@ function fn(e) {
|
|
|
317
317
|
var s, a;
|
|
318
318
|
const t = e;
|
|
319
319
|
if (!so(t)) return { status: "not_legacy", card: e };
|
|
320
|
-
const n =
|
|
320
|
+
const n = ii(t), o = ri(t) === "table" ? ao(n, "table") : lo(n, "matrixTable", { createId: ti(t.id) });
|
|
321
321
|
if (o.status !== "changed") throw new Error(`Card ${t.id} could not leave ${t.type}.`);
|
|
322
322
|
const r = o.card.type === "matrixTable" && co(o.card).status !== "ready", i = !!n.dataSource && !((a = (s = n.dataSource) == null ? void 0 : s.connectionType) != null && a.trim());
|
|
323
323
|
return {
|
|
@@ -325,27 +325,27 @@ function fn(e) {
|
|
|
325
325
|
card: o.card,
|
|
326
326
|
gaps: [
|
|
327
327
|
...o.gaps,
|
|
328
|
-
...r ?
|
|
329
|
-
...i ?
|
|
328
|
+
...r ? ni : [],
|
|
329
|
+
...i ? oi : []
|
|
330
330
|
]
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Wa(e) {
|
|
334
334
|
if (!e.cards) return e;
|
|
335
335
|
const t = e.cards.map((n) => fn(n).card);
|
|
336
336
|
return t.every((n, o) => n === e.cards[o]) ? e : { ...e, cards: t };
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function si(e) {
|
|
339
339
|
const t = [];
|
|
340
340
|
return { dashboard: Cr(e, (o, r) => {
|
|
341
341
|
const i = fn(o);
|
|
342
342
|
return i.status === "routed" && i.gaps.length && t.push({ location: r, gaps: i.gaps }), i.card;
|
|
343
343
|
}), routedWithGaps: t };
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function ai(e, t) {
|
|
346
346
|
return e.name === t.name && e.qualifiedEntityName === t.qualifiedEntityName;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function li(e, t, n) {
|
|
349
349
|
var r, i;
|
|
350
350
|
if (n.sortPolicy === "dropUnrelatedSorts") {
|
|
351
351
|
const s = new Set(
|
|
@@ -364,7 +364,7 @@ function ai(e, t, n) {
|
|
|
364
364
|
...e,
|
|
365
365
|
groupByColumns: [t],
|
|
366
366
|
sortByColumns: (i = e.sortByColumns) == null ? void 0 : i.map(
|
|
367
|
-
(s) => o &&
|
|
367
|
+
(s) => o && ai(s, o) ? {
|
|
368
368
|
...t,
|
|
369
369
|
role: "sortby",
|
|
370
370
|
direction: s.direction
|
|
@@ -389,13 +389,13 @@ function pn(e, t, n) {
|
|
|
389
389
|
if (((o = n == null ? void 0 : n.output) == null ? void 0 : o.availability.status) === "available" && n.output.comparisonColumnKey)
|
|
390
390
|
return n.output.comparisonColumnKey;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function ci(e, t) {
|
|
393
393
|
return `${e} Δ`;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Ya(e, t) {
|
|
396
396
|
return Yt(e, t);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function di(e, t) {
|
|
399
399
|
return e.rawKey === t.rawKey && e.outputKey === t.outputKey;
|
|
400
400
|
}
|
|
401
401
|
function mn(e) {
|
|
@@ -409,14 +409,14 @@ function mn(e) {
|
|
|
409
409
|
var d;
|
|
410
410
|
if (r && c.id !== r) return !1;
|
|
411
411
|
const l = (d = n.byMetricAlias) == null ? void 0 : d[ie(c)];
|
|
412
|
-
return !!(l &&
|
|
412
|
+
return !!(l && di(i, l));
|
|
413
413
|
});
|
|
414
414
|
return s.length === 1 ? s[0] : void 0;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Xa(e, t) {
|
|
417
417
|
return t ? { ...e, config: t } : e;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function ui(e) {
|
|
420
420
|
return [
|
|
421
421
|
e.alias,
|
|
422
422
|
e.name,
|
|
@@ -427,7 +427,7 @@ function di(e) {
|
|
|
427
427
|
function $(e) {
|
|
428
428
|
return e != null && e.config ? ne(e) === "config" : !1;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function fi(e, t, n, o) {
|
|
431
431
|
if (t === -1 || n === -1 || t === n)
|
|
432
432
|
return null;
|
|
433
433
|
const r = [...e], [i] = r.splice(t, 1), s = o === "before" ? n > t ? n - 1 : n : n > t ? n : n + 1;
|
|
@@ -440,7 +440,7 @@ function xe(e, t, n) {
|
|
|
440
440
|
), r = e.findIndex(
|
|
441
441
|
(i) => n(i).includes(t.targetColumnId)
|
|
442
442
|
);
|
|
443
|
-
return
|
|
443
|
+
return fi(e, o, r, t.side);
|
|
444
444
|
}
|
|
445
445
|
function Pe(e, t, n) {
|
|
446
446
|
return n ? {
|
|
@@ -448,7 +448,7 @@ function Pe(e, t, n) {
|
|
|
448
448
|
[t]: n
|
|
449
449
|
} : null;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Za(e, t, n) {
|
|
452
452
|
if (!$(e) || !n) return null;
|
|
453
453
|
const o = e.config;
|
|
454
454
|
return e.type === "detailTable" ? Pe(
|
|
@@ -477,12 +477,12 @@ function Xa(e, t, n) {
|
|
|
477
477
|
)
|
|
478
478
|
);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function pi(e) {
|
|
481
481
|
var t, n, o, r, i, s;
|
|
482
482
|
return $(e) ? e.type === "detailTable" ? !!((n = (t = e.config) == null ? void 0 : t.detailColumns) != null && n.length) : !!((r = (o = e.config) == null ? void 0 : o.groupByColumns) != null && r.length || (s = (i = e.config) == null ? void 0 : i.metricColumns) != null && s.length) : !1;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
return
|
|
484
|
+
function el(e, t) {
|
|
485
|
+
return pi(e) && !!t;
|
|
486
486
|
}
|
|
487
487
|
function pe(e, t, n) {
|
|
488
488
|
if (!n) return [];
|
|
@@ -493,7 +493,7 @@ function pe(e, t, n) {
|
|
|
493
493
|
var a;
|
|
494
494
|
const s = (a = n.byMetricAlias) == null ? void 0 : a[i];
|
|
495
495
|
return s ? [s] : [];
|
|
496
|
-
}) : [], r =
|
|
496
|
+
}) : [], r = Rr(
|
|
497
497
|
n,
|
|
498
498
|
e.id,
|
|
499
499
|
t
|
|
@@ -508,7 +508,7 @@ function se(e, t, n, o) {
|
|
|
508
508
|
);
|
|
509
509
|
return o ? r.find(
|
|
510
510
|
(i) => n.includes(i)
|
|
511
|
-
) :
|
|
511
|
+
) : ui(e).find(
|
|
512
512
|
(i) => n.includes(i)
|
|
513
513
|
);
|
|
514
514
|
}
|
|
@@ -529,12 +529,12 @@ function gn(e, t, n) {
|
|
|
529
529
|
) === e && typeof s.label == "string" && s.label.length > 0)
|
|
530
530
|
return s.label;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function mi(e, t) {
|
|
533
533
|
if (!e) return;
|
|
534
534
|
const n = JSON.stringify(t), o = t.every((r) => r !== null) ? t.join("__") : void 0;
|
|
535
535
|
return e[n] || (o ? e[o] : void 0);
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function gi(e, t, n) {
|
|
538
538
|
if (!e) return;
|
|
539
539
|
let o = e, r = !1;
|
|
540
540
|
return t.forEach((i, s) => {
|
|
@@ -547,7 +547,7 @@ function mi(e, t, n) {
|
|
|
547
547
|
});
|
|
548
548
|
}), r && o.trim() ? o : void 0;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function yi(e) {
|
|
551
551
|
const t = (e.card.config.metricColumns || []).filter(
|
|
552
552
|
(n) => n.id === e.metricId && ie(n) === e.metricAlias
|
|
553
553
|
);
|
|
@@ -558,7 +558,7 @@ function gi(e) {
|
|
|
558
558
|
metricId: e.metricId
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Je(e) {
|
|
562
562
|
var s;
|
|
563
563
|
const t = (s = e.resultColumn) == null ? void 0 : s.pivotIdentity, n = e.card.config.pivotByColumns || [];
|
|
564
564
|
if (!t || n.length === 0 || t.members.length !== n.length || t.members.some(
|
|
@@ -568,7 +568,7 @@ function We(e) {
|
|
|
568
568
|
}
|
|
569
569
|
))
|
|
570
570
|
return;
|
|
571
|
-
const o = e.card.config.metricColumns || [], r =
|
|
571
|
+
const o = e.card.config.metricColumns || [], r = yi({
|
|
572
572
|
card: e.card,
|
|
573
573
|
columnKeyMap: e.columnKeyMap,
|
|
574
574
|
metricId: t.metricId,
|
|
@@ -583,7 +583,7 @@ function We(e) {
|
|
|
583
583
|
authoredMetric: r
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function bi(e) {
|
|
587
587
|
const {
|
|
588
588
|
columnId: t,
|
|
589
589
|
card: n,
|
|
@@ -594,13 +594,13 @@ function yi(e) {
|
|
|
594
594
|
} = e;
|
|
595
595
|
if (!$(n) || n.type !== "table")
|
|
596
596
|
return;
|
|
597
|
-
const a =
|
|
597
|
+
const a = Je({
|
|
598
598
|
resultColumn: r == null ? void 0 : r.find((I) => I.key === t),
|
|
599
599
|
card: n,
|
|
600
600
|
columnKeyMap: o
|
|
601
601
|
});
|
|
602
602
|
if (!a) return;
|
|
603
|
-
const { identity: c, pivotFields: l, authoredMetrics: d, authoredMetric: u } = a, m =
|
|
603
|
+
const { identity: c, pivotFields: l, authoredMetrics: d, authoredMetric: u } = a, m = Kr({
|
|
604
604
|
members: c.members,
|
|
605
605
|
resolveTemporalFormat: (I) => {
|
|
606
606
|
var v;
|
|
@@ -612,7 +612,7 @@ function yi(e) {
|
|
|
612
612
|
}
|
|
613
613
|
}).memberLabels.map(
|
|
614
614
|
(I) => I || "(Blank)"
|
|
615
|
-
), g = c.members.map((I) => I.value), p =
|
|
615
|
+
), g = c.members.map((I) => I.value), p = mi(u == null ? void 0 : u.valueAliases, g) || gi(
|
|
616
616
|
u == null ? void 0 : u.aliasTemplate,
|
|
617
617
|
l,
|
|
618
618
|
m
|
|
@@ -653,7 +653,7 @@ function Ft(e, t, n, o) {
|
|
|
653
653
|
i(s), i(n == null ? void 0 : n(s));
|
|
654
654
|
})), e.forEach(i), r;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function hi(e, t) {
|
|
657
657
|
var f, m, g;
|
|
658
658
|
const { keys: n, card: o, columnKeyMap: r, resultColumns: i } = e;
|
|
659
659
|
if (!((f = o.config.pivotByColumns) != null && f.length)) return null;
|
|
@@ -680,7 +680,7 @@ function bi(e, t) {
|
|
|
680
680
|
(p) => p.pivotIdentity && n.includes(p.key)
|
|
681
681
|
);
|
|
682
682
|
if (c.some(
|
|
683
|
-
(p) => !
|
|
683
|
+
(p) => !Je({
|
|
684
684
|
resultColumn: p,
|
|
685
685
|
card: o,
|
|
686
686
|
columnKeyMap: r
|
|
@@ -706,7 +706,7 @@ function bi(e, t) {
|
|
|
706
706
|
u(p), u(t(p));
|
|
707
707
|
}), n.forEach(u), d;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Ci(e) {
|
|
710
710
|
var c;
|
|
711
711
|
const { keys: t, card: n, comparisonMetadata: o, columnKeyMap: r, resultColumns: i } = e;
|
|
712
712
|
if ((n == null ? void 0 : n.type) !== "table")
|
|
@@ -736,7 +736,7 @@ function hi(e) {
|
|
|
736
736
|
});
|
|
737
737
|
const a = (l) => s.get(l) ?? null;
|
|
738
738
|
if ($(n)) {
|
|
739
|
-
const l =
|
|
739
|
+
const l = hi(
|
|
740
740
|
{ keys: t, card: n, columnKeyMap: r, resultColumns: i },
|
|
741
741
|
a
|
|
742
742
|
);
|
|
@@ -775,12 +775,12 @@ function yn(e, t) {
|
|
|
775
775
|
(n) => Et(ee(be([n])[0]), n.format, t)
|
|
776
776
|
);
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Ii(e, t) {
|
|
779
779
|
return e == null ? void 0 : e.map(
|
|
780
780
|
(n) => po(ee(be([n])[0]), n.format, t)
|
|
781
781
|
);
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function vi(e, t) {
|
|
784
784
|
const { dateFormat: n, customFormat: o, ...r } = he(e.field);
|
|
785
785
|
return {
|
|
786
786
|
...e,
|
|
@@ -791,7 +791,7 @@ function Te(e, t = !1) {
|
|
|
791
791
|
if (e)
|
|
792
792
|
return {
|
|
793
793
|
...e,
|
|
794
|
-
conditions: e.conditions.map((n) =>
|
|
794
|
+
conditions: e.conditions.map((n) => vi(n, t)),
|
|
795
795
|
groups: e.groups.map((n) => Te(n, t))
|
|
796
796
|
};
|
|
797
797
|
}
|
|
@@ -808,7 +808,7 @@ function ee(e) {
|
|
|
808
808
|
filters: Te(t.parameters.filters)
|
|
809
809
|
}), t;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Fi(e, t) {
|
|
812
812
|
return t.cardType === "detailTable" || !mo(t.cardType) || t.temporalResultOwner !== "config" ? yn(e, "grouped") : e == null ? void 0 : e.map((n) => {
|
|
813
813
|
const o = go(n), r = he(o ?? n);
|
|
814
814
|
if (!o)
|
|
@@ -821,16 +821,16 @@ function bn(e, t) {
|
|
|
821
821
|
if (!e)
|
|
822
822
|
return;
|
|
823
823
|
const n = { type: t.cardType, config: e };
|
|
824
|
-
return qe(n) ?
|
|
824
|
+
return qe(n) ? Si(n, t) : e.matrix === void 0 ? {} : { matrix: e.matrix };
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Si(e, t = {}) {
|
|
827
827
|
var i, s, a;
|
|
828
828
|
const n = e.config;
|
|
829
829
|
if (!n) return;
|
|
830
830
|
const o = { ...t, cardType: e.type };
|
|
831
831
|
return {
|
|
832
832
|
...n,
|
|
833
|
-
groupByColumns:
|
|
833
|
+
groupByColumns: Fi(n.groupByColumns, o),
|
|
834
834
|
metricColumns: (i = be(n.metricColumns)) == null ? void 0 : i.map(
|
|
835
835
|
ee
|
|
836
836
|
),
|
|
@@ -838,24 +838,24 @@ function Fi(e, t = {}) {
|
|
|
838
838
|
sortByColumns: (s = be(n.sortByColumns)) == null ? void 0 : s.map(
|
|
839
839
|
ee
|
|
840
840
|
),
|
|
841
|
-
detailColumns:
|
|
841
|
+
detailColumns: Ii(n.detailColumns, (a = o.dataSource) == null ? void 0 : a.connectionType),
|
|
842
842
|
filters: Te(n.filters)
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
845
|
function Ce(e) {
|
|
846
846
|
return (e == null ? void 0 : e.type) === "number" || (e == null ? void 0 : e.type) === "currency";
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Di(e) {
|
|
849
849
|
return (e == null ? void 0 : e.type) === "number";
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function Ti(e) {
|
|
852
852
|
var n;
|
|
853
|
-
if (!
|
|
853
|
+
if (!Di(e))
|
|
854
854
|
return !1;
|
|
855
855
|
const t = (n = e == null ? void 0 : e.numberFormat) == null ? void 0 : n.style;
|
|
856
856
|
return t === void 0 || t === "decimal" || t === "currency";
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function Mi(e, t) {
|
|
859
859
|
const n = t == null ? void 0 : t.type;
|
|
860
860
|
if (n && n !== "none" && n !== "number")
|
|
861
861
|
return { currencyBindable: !1 };
|
|
@@ -869,7 +869,7 @@ function Ti(e, t) {
|
|
|
869
869
|
currencyBindable: Ce(a)
|
|
870
870
|
};
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Vi(e, t) {
|
|
873
873
|
const n = ge(t.format, {
|
|
874
874
|
preserveOmittedProperties: !0
|
|
875
875
|
}), o = oe(t.dataType) === "number" ? { type: "number" } : void 0, r = n || o;
|
|
@@ -918,7 +918,7 @@ function hn(e, t, n) {
|
|
|
918
918
|
function Cn(e, t, n) {
|
|
919
919
|
return e.kind === "calculated" ? e.definition.format : hn(e.field, t, n);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function tl(e, t) {
|
|
922
922
|
const n = _t(t), o = (r, i) => Object.fromEntries(r.flatMap((s) => {
|
|
923
923
|
const a = i(s);
|
|
924
924
|
return a ? [[s.id, a]] : [];
|
|
@@ -938,7 +938,7 @@ function In(e, t = []) {
|
|
|
938
938
|
return { measureId: s.id, label: hr(s, r), canonical: f };
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function ki(e) {
|
|
942
942
|
var t, n;
|
|
943
943
|
return e.type === "detailTable" ? ((t = e.config) == null ? void 0 : t.detailColumns) || [] : ((n = e.config) == null ? void 0 : n.metricColumns) || [];
|
|
944
944
|
}
|
|
@@ -949,7 +949,7 @@ function vn(e) {
|
|
|
949
949
|
)
|
|
950
950
|
);
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function xi(e, t) {
|
|
953
953
|
const n = [
|
|
954
954
|
t.id,
|
|
955
955
|
t.alias,
|
|
@@ -977,9 +977,9 @@ function St(e) {
|
|
|
977
977
|
).values()
|
|
978
978
|
];
|
|
979
979
|
}
|
|
980
|
-
function
|
|
981
|
-
var
|
|
982
|
-
const o = !!((
|
|
980
|
+
function Pi(e, t = [], n) {
|
|
981
|
+
var M;
|
|
982
|
+
const o = !!((M = e.sql) != null && M.trim()), r = At(e.type), i = o && r && e.type !== "kpi" && e.type !== "matrixTable", s = ki(e), a = ho(e), c = !o && e.type === "kpi" ? s.map(
|
|
983
983
|
(C) => Ee(e, {
|
|
984
984
|
column: { kind: "field", fieldId: C.id }
|
|
985
985
|
})
|
|
@@ -1004,10 +1004,10 @@ function xi(e, t = [], n) {
|
|
|
1004
1004
|
), m = e.type === "matrixTable" ? [] : e.type === "kpi" ? c.filter((C) => C.currencyBindable).flatMap(
|
|
1005
1005
|
(C) => C.target ? [C.target] : []
|
|
1006
1006
|
) : (o || !r ? [] : s).filter(
|
|
1007
|
-
(C) => (Co(e.type) ?
|
|
1007
|
+
(C) => (Co(e.type) ? Mi(
|
|
1008
1008
|
C,
|
|
1009
|
-
|
|
1010
|
-
) :
|
|
1009
|
+
xi(a, C)
|
|
1010
|
+
) : Vi(e, C)).currencyBindable
|
|
1011
1011
|
).map(
|
|
1012
1012
|
(C) => ({
|
|
1013
1013
|
kind: "metric",
|
|
@@ -1019,7 +1019,7 @@ function xi(e, t = [], n) {
|
|
|
1019
1019
|
columnKey: C
|
|
1020
1020
|
})
|
|
1021
1021
|
), y = (i ? g : []).filter(
|
|
1022
|
-
(C) =>
|
|
1022
|
+
(C) => Ti(
|
|
1023
1023
|
a[C]
|
|
1024
1024
|
)
|
|
1025
1025
|
).map(
|
|
@@ -1049,20 +1049,20 @@ function xi(e, t = [], n) {
|
|
|
1049
1049
|
])
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function nl(e, t) {
|
|
1053
1053
|
const n = Ee(e, {
|
|
1054
1054
|
resultColumnKey: t
|
|
1055
1055
|
});
|
|
1056
1056
|
return n.currencyBindable ? n.target : void 0;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function ol(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
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 wi(e) {
|
|
1066
1066
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
1067
1067
|
return;
|
|
1068
1068
|
const t = e;
|
|
@@ -1095,7 +1095,7 @@ function Fn(e) {
|
|
|
1095
1095
|
currencies: t
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function rl(e) {
|
|
1099
1099
|
return "control" in Fn(e);
|
|
1100
1100
|
}
|
|
1101
1101
|
function Sn(e) {
|
|
@@ -1121,23 +1121,23 @@ function Sn(e) {
|
|
|
1121
1121
|
)
|
|
1122
1122
|
};
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function il(e) {
|
|
1125
1125
|
return Sn({
|
|
1126
1126
|
...e,
|
|
1127
1127
|
referencedControlIds: new Set(
|
|
1128
|
-
|
|
1128
|
+
We({
|
|
1129
1129
|
sql: e.filterSql,
|
|
1130
1130
|
controlBindings: []
|
|
1131
1131
|
})
|
|
1132
1132
|
)
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function sl(e) {
|
|
1136
1136
|
var t;
|
|
1137
1137
|
return Sn({
|
|
1138
1138
|
...e,
|
|
1139
1139
|
referencedControlIds: new Set(
|
|
1140
|
-
|
|
1140
|
+
We({
|
|
1141
1141
|
sql: (t = e.source) == null ? void 0 : t.sql,
|
|
1142
1142
|
controlBindings: []
|
|
1143
1143
|
})
|
|
@@ -1163,7 +1163,7 @@ function Tn(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 = wi(
|
|
1167
1167
|
n.presentationTarget
|
|
1168
1168
|
);
|
|
1169
1169
|
if (!r)
|
|
@@ -1196,14 +1196,14 @@ function Tn(e, t) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function al(e) {
|
|
1200
1200
|
const t = Dn(e);
|
|
1201
1201
|
return (e.bindings || []).flatMap((n) => {
|
|
1202
1202
|
const o = Tn(n, t);
|
|
1203
1203
|
return "diagnostic" in o ? [o.diagnostic] : [];
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Oi(e) {
|
|
1207
1207
|
var r;
|
|
1208
1208
|
const t = [], n = U(e.target), o = Dn(e);
|
|
1209
1209
|
for (const i of e.bindings || []) {
|
|
@@ -1224,10 +1224,10 @@ function wi(e) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
return { diagnostics: t };
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1228
|
-
const r = { ...e, config: { ...e.config, matrix: t } }, i =
|
|
1227
|
+
function Bi(e, t, n, o) {
|
|
1228
|
+
const r = { ...e, config: { ...e.config, matrix: t } }, i = Pi(r, [], o), s = In(r, o), a = { ...t.presentation.measureFormats };
|
|
1229
1229
|
for (const c of s) {
|
|
1230
|
-
const l = { kind: "matrix_measure", measureId: c.measureId }, { currency: d } =
|
|
1230
|
+
const l = { kind: "matrix_measure", measureId: c.measureId }, { currency: d } = Oi({
|
|
1231
1231
|
...n,
|
|
1232
1232
|
...i,
|
|
1233
1233
|
bindings: e.controlBindings,
|
|
@@ -1239,7 +1239,7 @@ function Oi(e, t, n, o) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
return { ...t.presentation, measureFormats: a };
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Ei(e, t) {
|
|
1243
1243
|
if (!e || typeof e != "object" || !("kind" in e))
|
|
1244
1244
|
return e;
|
|
1245
1245
|
switch (e.kind) {
|
|
@@ -1284,12 +1284,12 @@ function Bi(e, t) {
|
|
|
1284
1284
|
return e;
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Ai(e, t) {
|
|
1288
1288
|
return {
|
|
1289
1289
|
id: e.id,
|
|
1290
1290
|
scope: e.scope,
|
|
1291
1291
|
type: e.type,
|
|
1292
|
-
source:
|
|
1292
|
+
source: Ei(e.source, t),
|
|
1293
1293
|
initialValueStrategy: e.initialValueStrategy,
|
|
1294
1294
|
defaultValue: e.defaultValue,
|
|
1295
1295
|
requiredAtExecution: e.requiredAtExecution,
|
|
@@ -1304,7 +1304,7 @@ function Ei(e, t) {
|
|
|
1304
1304
|
} : {}
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function _i(e, t) {
|
|
1308
1308
|
return e.target === "sql_param" || e.target === "presentation_currency" ? e : e.target === "config_field_selector" && !(t != null && t.includePresentation) ? {
|
|
1309
1309
|
...e,
|
|
1310
1310
|
mapping: Object.fromEntries(
|
|
@@ -1329,29 +1329,29 @@ function Ai(e, t) {
|
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
1331
|
function Tt(e = [], t) {
|
|
1332
|
-
return [...e].map((n) =>
|
|
1332
|
+
return [...e].map((n) => Ai(n, t)).sort(
|
|
1333
1333
|
(n, o) => n.id.localeCompare(o.id) || n.scope.localeCompare(o.scope) || n.type.localeCompare(o.type)
|
|
1334
1334
|
);
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function Ri(e = [], t) {
|
|
1337
1337
|
return e.filter(
|
|
1338
1338
|
(n) => (t == null ? void 0 : t.includePresentation) || !ve(n)
|
|
1339
|
-
).map((n) =>
|
|
1339
|
+
).map((n) => _i(n, t)).sort(
|
|
1340
1340
|
(n, o) => _(n).localeCompare(_(o))
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Ki(e, t) {
|
|
1344
1344
|
return e ? _({
|
|
1345
1345
|
controlDefinitions: Tt(e.controlDefinitions, t),
|
|
1346
1346
|
cardControlDefinitions: Tt(
|
|
1347
1347
|
e.cardControlDefinitions,
|
|
1348
1348
|
t
|
|
1349
1349
|
),
|
|
1350
|
-
controlBindings:
|
|
1350
|
+
controlBindings: Ri(e.controlBindings, t)
|
|
1351
1351
|
}) : "__none__";
|
|
1352
1352
|
}
|
|
1353
|
-
const
|
|
1354
|
-
function
|
|
1353
|
+
const qi = ["table", "detailTable"], Mt = (e) => qi.includes(e.type), Ni = "calendar-context";
|
|
1354
|
+
function Li(e) {
|
|
1355
1355
|
const { id: t, label: n, field: o, ...r } = e;
|
|
1356
1356
|
return {
|
|
1357
1357
|
...r,
|
|
@@ -1366,7 +1366,7 @@ function Me(e) {
|
|
|
1366
1366
|
const { id: t, conditions: n, groups: o, ...r } = e;
|
|
1367
1367
|
return {
|
|
1368
1368
|
...r,
|
|
1369
|
-
conditions: n.map(
|
|
1369
|
+
conditions: n.map(Li),
|
|
1370
1370
|
groups: o.map((i) => Me(i))
|
|
1371
1371
|
};
|
|
1372
1372
|
}
|
|
@@ -1393,7 +1393,7 @@ function Ye(e) {
|
|
|
1393
1393
|
} : {}
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function ji(e) {
|
|
1397
1397
|
const t = (n) => n == null ? void 0 : n.map(Ye);
|
|
1398
1398
|
return {
|
|
1399
1399
|
...e,
|
|
@@ -1405,23 +1405,23 @@ function Li(e) {
|
|
|
1405
1405
|
filters: e.filters ? Me(e.filters) : void 0
|
|
1406
1406
|
};
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function zi(e, t, n) {
|
|
1409
1409
|
if (!e)
|
|
1410
1410
|
return JSON.stringify(e);
|
|
1411
|
-
if (n === "matrixTable" && e.matrix) return _(
|
|
1412
|
-
const { matrix: o, ...r } = e, i = t ?
|
|
1411
|
+
if (n === "matrixTable" && e.matrix) return _(Vr(e.matrix.spec));
|
|
1412
|
+
const { matrix: o, ...r } = e, i = t ? ji(r) : r;
|
|
1413
1413
|
return JSON.stringify({
|
|
1414
1414
|
...i,
|
|
1415
1415
|
filters: Me(i.filters)
|
|
1416
1416
|
});
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Gi(e) {
|
|
1419
1419
|
if (!e)
|
|
1420
1420
|
return null;
|
|
1421
1421
|
const { format: t, ...n } = e;
|
|
1422
1422
|
return n;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function Hi(e, t) {
|
|
1425
1425
|
const n = /* @__PURE__ */ new Map();
|
|
1426
1426
|
for (const r of (t == null ? void 0 : t.controlDefinitions) || [])
|
|
1427
1427
|
n.set(r.id, r.type);
|
|
@@ -1437,7 +1437,7 @@ function Gi(e, t) {
|
|
|
1437
1437
|
);
|
|
1438
1438
|
return _(o);
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Ui(e, {
|
|
1441
1441
|
finalFiltersKey: t,
|
|
1442
1442
|
cardFilterValues: n,
|
|
1443
1443
|
controlValues: o,
|
|
@@ -1451,8 +1451,8 @@ function Hi(e, {
|
|
|
1451
1451
|
}) {
|
|
1452
1452
|
const { filterColumns: u, ...f } = e.queryConfig || {}, m = u == null ? void 0 : u.filter(
|
|
1453
1453
|
(v) => {
|
|
1454
|
-
var
|
|
1455
|
-
return (C = (
|
|
1454
|
+
var M, C;
|
|
1455
|
+
return (C = (M = e.queryConfig) == null ? void 0 : M.filters) == null ? void 0 : C.some((w) => w.filterColumnName === v.name);
|
|
1456
1456
|
}
|
|
1457
1457
|
), g = (e == null ? void 0 : e.sql) || "", p = Le((e == null ? void 0 : e.python) || ""), y = ["table", "detailTable", "matrixTable"].includes(
|
|
1458
1458
|
e.type
|
|
@@ -1466,24 +1466,24 @@ function Hi(e, {
|
|
|
1466
1466
|
g,
|
|
1467
1467
|
p,
|
|
1468
1468
|
JSON.stringify(n),
|
|
1469
|
-
|
|
1469
|
+
Hi(o, {
|
|
1470
1470
|
controlDefinitions: r,
|
|
1471
1471
|
cardControlDefinitions: i
|
|
1472
1472
|
}),
|
|
1473
|
-
|
|
1473
|
+
Ki({
|
|
1474
1474
|
controlDefinitions: r,
|
|
1475
1475
|
cardControlDefinitions: i,
|
|
1476
1476
|
controlBindings: s
|
|
1477
1477
|
}),
|
|
1478
1478
|
_(
|
|
1479
|
-
|
|
1479
|
+
Gi(c)
|
|
1480
1480
|
),
|
|
1481
1481
|
_(l ?? null),
|
|
1482
|
-
|
|
1482
|
+
Ni,
|
|
1483
1483
|
_(d),
|
|
1484
1484
|
JSON.stringify(f),
|
|
1485
1485
|
JSON.stringify(m),
|
|
1486
|
-
|
|
1486
|
+
zi(
|
|
1487
1487
|
h,
|
|
1488
1488
|
I,
|
|
1489
1489
|
e.type
|
|
@@ -1491,9 +1491,9 @@ function Hi(e, {
|
|
|
1491
1491
|
t
|
|
1492
1492
|
];
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function Qi(e, t, n) {
|
|
1495
1495
|
var a, c, l;
|
|
1496
|
-
const o =
|
|
1496
|
+
const o = Ui(e, t), r = _(o), i = ((a = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : a.call(n, r)) ?? e.paginationConfig, s = Mt(e) && Fe(e.config) || Mt(e) && e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : l.enableDevModePagination);
|
|
1497
1497
|
return {
|
|
1498
1498
|
queryKey: [
|
|
1499
1499
|
...o,
|
|
@@ -1503,8 +1503,8 @@ function Ui(e, t, n) {
|
|
|
1503
1503
|
paginationConfig: i
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1506
|
+
function $i(e, t, n, o) {
|
|
1507
|
+
return Qi(
|
|
1508
1508
|
e,
|
|
1509
1509
|
{
|
|
1510
1510
|
finalFiltersKey: t.finalFiltersKey,
|
|
@@ -1523,7 +1523,7 @@ function Qi(e, t, n, o) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
function Mn(e) {
|
|
1525
1525
|
const t = {
|
|
1526
|
-
...
|
|
1526
|
+
..._r,
|
|
1527
1527
|
...e.presentation
|
|
1528
1528
|
}, n = t.displayMode, {
|
|
1529
1529
|
bookkeepingKeys: o,
|
|
@@ -1584,7 +1584,7 @@ function Mn(e) {
|
|
|
1584
1584
|
columnPresentationOwners: u
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function ll(e) {
|
|
1588
1588
|
var t, n;
|
|
1589
1589
|
return Mn({
|
|
1590
1590
|
comparisonMetadata: e.comparisonMetadata,
|
|
@@ -1600,7 +1600,7 @@ function al(e) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
});
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function cl(e) {
|
|
1604
1604
|
var n;
|
|
1605
1605
|
return (((n = e.card.config) == null ? void 0 : n.metricColumns) || []).filter(
|
|
1606
1606
|
(o) => {
|
|
@@ -1611,7 +1611,7 @@ function ll(e) {
|
|
|
1611
1611
|
(o) => !Yt(e.comparisonMetadata, o)
|
|
1612
1612
|
);
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Wi(e) {
|
|
1615
1615
|
return e.part === "base" && !!e.columnId;
|
|
1616
1616
|
}
|
|
1617
1617
|
function Xe(e) {
|
|
@@ -1674,7 +1674,7 @@ function Ji(e, t) {
|
|
|
1674
1674
|
for (const g of t.columns) {
|
|
1675
1675
|
if (!g.pivotIdentity || !o.has(g.key) || l.has(g.key))
|
|
1676
1676
|
continue;
|
|
1677
|
-
const p =
|
|
1677
|
+
const p = Je({
|
|
1678
1678
|
resultColumn: g,
|
|
1679
1679
|
card: m,
|
|
1680
1680
|
columnKeyMap: r
|
|
@@ -1718,7 +1718,7 @@ function Ji(e, t) {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
return { entries: c, owners: l };
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function Yi(e) {
|
|
1722
1722
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
1723
1723
|
for (const o of e.keys) {
|
|
1724
1724
|
const r = { kind: "result", key: o }, i = j(r);
|
|
@@ -1731,19 +1731,19 @@ function Wi(e) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
return { entries: t, owners: n };
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function dl(e) {
|
|
1735
1735
|
const t = /* @__PURE__ */ new Set();
|
|
1736
1736
|
for (const n of e ?? [])
|
|
1737
1737
|
if (n && typeof n == "object")
|
|
1738
1738
|
for (const o of Object.keys(n)) t.add(o);
|
|
1739
1739
|
return [...t];
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function Xi(e, t) {
|
|
1742
1742
|
if (e.toLowerCase() !== "count") return !1;
|
|
1743
1743
|
const n = t == null ? void 0 : t.find((o) => (o == null ? void 0 : o[e]) != null);
|
|
1744
1744
|
return n ? typeof n[e] == "number" : !1;
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function Zi(e, t, n, o) {
|
|
1747
1747
|
var c, l, d, u;
|
|
1748
1748
|
let r = [...t.keys], i = /* @__PURE__ */ new Map();
|
|
1749
1749
|
const s = t.comparisonMetadata;
|
|
@@ -1761,8 +1761,8 @@ function Xi(e, t, n, o) {
|
|
|
1761
1761
|
r = r.filter((m) => !f.excludedKeys.has(m)), i = f.columnLabels;
|
|
1762
1762
|
}
|
|
1763
1763
|
const a = e.config;
|
|
1764
|
-
return e.type === "table" && !((d = a == null ? void 0 : a.metricColumns) != null && d.length) && ((u = a == null ? void 0 : a.groupByColumns) != null && u.length) && !e.sql && (r = r.filter((f) => !
|
|
1765
|
-
keys:
|
|
1764
|
+
return e.type === "table" && !((d = a == null ? void 0 : a.metricColumns) != null && d.length) && ((u = a == null ? void 0 : a.groupByColumns) != null && u.length) && !e.sql && (r = r.filter((f) => !Xi(f, t.rows))), {
|
|
1765
|
+
keys: Ci({
|
|
1766
1766
|
keys: r,
|
|
1767
1767
|
card: e,
|
|
1768
1768
|
comparisonMetadata: s,
|
|
@@ -1772,7 +1772,7 @@ function Xi(e, t, n, o) {
|
|
|
1772
1772
|
exportLabels: i
|
|
1773
1773
|
};
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function es(e, t, n) {
|
|
1776
1776
|
var r, i;
|
|
1777
1777
|
const o = /* @__PURE__ */ new Map();
|
|
1778
1778
|
if (e.type !== "table" || !nn((r = e.preferences) == null ? void 0 : r.comparisonPresentation))
|
|
@@ -1797,18 +1797,18 @@ function Zi(e, t, n) {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
return o;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function ts(e) {
|
|
1801
1801
|
const t = Xe(e);
|
|
1802
1802
|
return [
|
|
1803
1803
|
...t.filter((n) => n.role === "metric"),
|
|
1804
1804
|
...t.filter((n) => n.role !== "metric")
|
|
1805
1805
|
];
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function ns(e, t, n) {
|
|
1808
1808
|
if (!t.length) return [];
|
|
1809
|
-
const o =
|
|
1809
|
+
const o = ts(e), r = [], i = /* @__PURE__ */ new Set();
|
|
1810
1810
|
for (const s of t) {
|
|
1811
|
-
const a =
|
|
1811
|
+
const a = kr(o, s);
|
|
1812
1812
|
if (!a) continue;
|
|
1813
1813
|
const c = o[a.group], l = Ze(c.fields[a.index], c.role);
|
|
1814
1814
|
if (!l) continue;
|
|
@@ -1820,14 +1820,14 @@ function ts(e, t, n) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
return r;
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function os(e, t) {
|
|
1824
1824
|
return e ? "query" : t === "server" ? "page-only" : "browser";
|
|
1825
1825
|
}
|
|
1826
1826
|
function Vn(e, t) {
|
|
1827
1827
|
var n, o, r;
|
|
1828
1828
|
return !!t && ((r = (o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.columnVisibility) == null ? void 0 : r[t]) === !1;
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function rs(e) {
|
|
1831
1831
|
return e.type !== "table" && e.type !== "detailTable" ? "card-type" : tn(e) ? void 0 : "author-disabled";
|
|
1832
1832
|
}
|
|
1833
1833
|
function Ae(e, t) {
|
|
@@ -1854,10 +1854,10 @@ function de(e, t, n) {
|
|
|
1854
1854
|
s.splice(d, 0, a);
|
|
1855
1855
|
}), s.flatMap((a) => a.keys);
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function is(e) {
|
|
1858
1858
|
return e != null && e.pivotIdentity ? JSON.stringify(e.pivotIdentity.members.map((t) => t.value)) : void 0;
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function ss(e, t, n, o) {
|
|
1861
1861
|
const r = e.findIndex(
|
|
1862
1862
|
(l) => {
|
|
1863
1863
|
var d;
|
|
@@ -1875,7 +1875,7 @@ function is(e, t, n, o) {
|
|
|
1875
1875
|
), a = [];
|
|
1876
1876
|
let c;
|
|
1877
1877
|
for (const l of e.slice(r, i + 1)) {
|
|
1878
|
-
const d =
|
|
1878
|
+
const d = is(s.get(l)) ?? `key:${l}`;
|
|
1879
1879
|
(!a.length || d !== c) && a.push([]), a[a.length - 1].push(l), c = d;
|
|
1880
1880
|
}
|
|
1881
1881
|
return [
|
|
@@ -1884,7 +1884,7 @@ function is(e, t, n, o) {
|
|
|
1884
1884
|
...de(e.slice(i + 1), t, n)
|
|
1885
1885
|
];
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function ul(e) {
|
|
1888
1888
|
if (ne(e) !== "config") return;
|
|
1889
1889
|
const t = /* @__PURE__ */ new Set();
|
|
1890
1890
|
for (const { role: n, fields: o } of Xe(e))
|
|
@@ -1894,33 +1894,33 @@ function dl(e) {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
return t;
|
|
1896
1896
|
}
|
|
1897
|
-
function
|
|
1897
|
+
function fl(e) {
|
|
1898
1898
|
const t = on(e);
|
|
1899
1899
|
return (t == null ? void 0 : t.kind) === "metric" && t.metricId === Qe;
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function pl(e) {
|
|
1902
1902
|
var at, lt, ct, dt, ut, ft, pt;
|
|
1903
|
-
const { card: t, result: n } = e, o = e.projection ?? "screen", r = ne(t) === "config", i =
|
|
1904
|
-
var
|
|
1905
|
-
return b && ((
|
|
1906
|
-
}, u = (b) => j({ kind: "metric", ...b }), { keys: f, exportLabels: m } =
|
|
1903
|
+
const { card: t, result: n } = e, o = e.projection ?? "screen", r = ne(t) === "config", i = rs(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (at = e.settings) != null && at.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = os(r, e.paginationMode), c = n.columnKeyMap, l = r ? Ji(t, n) : Yi(n), d = (b) => {
|
|
1904
|
+
var F, k;
|
|
1905
|
+
return b && ((k = (F = s == null ? void 0 : s.labels) == null ? void 0 : F[b]) == null ? void 0 : k.trim()) || void 0;
|
|
1906
|
+
}, u = (b) => j({ kind: "metric", ...b }), { keys: f, exportLabels: m } = Zi(
|
|
1907
1907
|
t,
|
|
1908
1908
|
n,
|
|
1909
1909
|
o,
|
|
1910
1910
|
(b) => {
|
|
1911
|
-
var
|
|
1912
|
-
const
|
|
1913
|
-
return d(l.entries.has(
|
|
1911
|
+
var k;
|
|
1912
|
+
const F = u(b);
|
|
1913
|
+
return d(l.entries.has(F) ? F : void 0) ?? ((k = l.entries.get(F)) == null ? void 0 : k.authorLabel);
|
|
1914
1914
|
}
|
|
1915
1915
|
), g = (b) => Vn(t, b), p = (b) => {
|
|
1916
|
-
const
|
|
1917
|
-
if (!
|
|
1918
|
-
const
|
|
1919
|
-
if (!(!
|
|
1920
|
-
return
|
|
1916
|
+
const F = l.owners.get(b);
|
|
1917
|
+
if (!F || i === "card-type") return;
|
|
1918
|
+
const k = l.entries.get(F.columnId);
|
|
1919
|
+
if (!(!k || k.baseKey && g(k.baseKey)))
|
|
1920
|
+
return F;
|
|
1921
1921
|
}, y = f.filter((b) => !g(b)), I = Ae(y, p).flatMap(
|
|
1922
1922
|
(b) => b.columnId ? [b.columnId] : []
|
|
1923
|
-
), v = new Set(I),
|
|
1923
|
+
), v = new Set(I), M = r ? ns(
|
|
1924
1924
|
t,
|
|
1925
1925
|
((lt = t.config) == null ? void 0 : lt.sortByColumns) ?? [],
|
|
1926
1926
|
l.entries
|
|
@@ -1936,11 +1936,11 @@ function fl(e) {
|
|
|
1936
1936
|
let B;
|
|
1937
1937
|
if (s != null && s.sort && a !== "page-only") {
|
|
1938
1938
|
const b = s.sort.filter(
|
|
1939
|
-
(
|
|
1939
|
+
(F) => v.has(F.columnId)
|
|
1940
1940
|
);
|
|
1941
1941
|
B = b.length || !s.sort.length ? b : void 0;
|
|
1942
1942
|
}
|
|
1943
|
-
const
|
|
1943
|
+
const V = Ir(
|
|
1944
1944
|
s ? {
|
|
1945
1945
|
order: (ct = s.order) == null ? void 0 : ct.filter(
|
|
1946
1946
|
(b) => v.has(b)
|
|
@@ -1960,79 +1960,79 @@ function fl(e) {
|
|
|
1960
1960
|
)
|
|
1961
1961
|
)
|
|
1962
1962
|
} : void 0
|
|
1963
|
-
),
|
|
1963
|
+
), S = V == null ? void 0 : V.order, T = S ? ss(y, p, S, n.columns) : y, O = S ? [...T, ...f.filter(g)] : f, P = Ae(T, p).flatMap(
|
|
1964
1964
|
(b) => b.columnId ? [b.columnId] : []
|
|
1965
|
-
), D = new Set((
|
|
1965
|
+
), D = new Set((V == null ? void 0 : V.hidden) ?? []);
|
|
1966
1966
|
P.length && P.every((b) => D.has(b)) && D.delete(P[0]);
|
|
1967
|
-
const x = o === "screen" ?
|
|
1968
|
-
const
|
|
1969
|
-
if ((
|
|
1967
|
+
const x = o === "screen" ? es(t, n, f) : /* @__PURE__ */ new Map(), E = (b, F) => {
|
|
1968
|
+
const k = d(F == null ? void 0 : F.columnId);
|
|
1969
|
+
if ((F == null ? void 0 : F.part) === "base" && k) return k;
|
|
1970
1970
|
const K = x.get(b);
|
|
1971
1971
|
if (K)
|
|
1972
|
-
return
|
|
1973
|
-
((
|
|
1972
|
+
return ci(
|
|
1973
|
+
((F == null ? void 0 : F.part) === "comparison" ? k : void 0) ?? (K.metric.label || K.metric.name),
|
|
1974
1974
|
K.kind
|
|
1975
1975
|
);
|
|
1976
|
-
const
|
|
1977
|
-
if (
|
|
1978
|
-
const Y =
|
|
1976
|
+
const J = m.get(b);
|
|
1977
|
+
if (J) return J;
|
|
1978
|
+
const Y = bi({
|
|
1979
1979
|
columnId: b,
|
|
1980
1980
|
card: t,
|
|
1981
1981
|
columnKeyMap: c,
|
|
1982
1982
|
resultColumns: n.columns,
|
|
1983
1983
|
// No temporal presentation: a flat table never formats pivot members
|
|
1984
1984
|
// as dates (its temporal activation covers group columns only).
|
|
1985
|
-
metricLabelOverride: (
|
|
1985
|
+
metricLabelOverride: (F == null ? void 0 : F.part) === "pivot-member" ? k : void 0
|
|
1986
1986
|
});
|
|
1987
1987
|
return Y || (gn(b, t, c) ?? b);
|
|
1988
1988
|
}, R = O.map((b) => {
|
|
1989
1989
|
var K;
|
|
1990
|
-
const
|
|
1990
|
+
const F = p(b), k = (F == null ? void 0 : F.part) ?? ((K = l.owners.get(b)) == null ? void 0 : K.part) ?? "base";
|
|
1991
1991
|
return {
|
|
1992
1992
|
outputKey: b,
|
|
1993
|
-
...
|
|
1994
|
-
part:
|
|
1995
|
-
visible: !g(b) && !(
|
|
1996
|
-
label: E(b,
|
|
1997
|
-
resizable: !i &&
|
|
1993
|
+
...F ? { columnId: F.columnId } : {},
|
|
1994
|
+
part: k,
|
|
1995
|
+
visible: !g(b) && !(F && D.has(F.columnId)),
|
|
1996
|
+
label: E(b, F),
|
|
1997
|
+
resizable: !i && Wi({ part: k, columnId: F == null ? void 0 : F.columnId })
|
|
1998
1998
|
};
|
|
1999
1999
|
}), z = Object.fromEntries(
|
|
2000
2000
|
R.map((b) => [b.outputKey, b.label])
|
|
2001
|
-
),
|
|
2001
|
+
), W = {
|
|
2002
2002
|
...((ft = (ut = t.preferences) == null ? void 0 : ut.tablePrefs) == null ? void 0 : ft.columnSizing) ?? {}
|
|
2003
2003
|
};
|
|
2004
2004
|
for (const b of R) {
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2005
|
+
const F = b.resizable ? (pt = V == null ? void 0 : V.widths) == null ? void 0 : pt[b.columnId] : void 0;
|
|
2006
|
+
F !== void 0 && (W[b.outputKey] = F);
|
|
2007
2007
|
}
|
|
2008
|
-
const le = a === "page-only" ? [] : a === "query" ?
|
|
2008
|
+
const le = a === "page-only" ? [] : a === "query" ? M : (V == null ? void 0 : V.sort) ?? [], no = new Map(
|
|
2009
2009
|
le.map((b) => [b.columnId, b.direction])
|
|
2010
2010
|
), oo = le.flatMap((b) => {
|
|
2011
|
-
var
|
|
2012
|
-
const
|
|
2013
|
-
return
|
|
2014
|
-
}), st = !i && vr(
|
|
2011
|
+
var k;
|
|
2012
|
+
const F = (k = l.entries.get(b.columnId)) == null ? void 0 : k.baseKey;
|
|
2013
|
+
return F && y.includes(F) ? [{ outputKey: F, desc: b.direction === "desc" }] : [];
|
|
2014
|
+
}), st = !i && vr(V);
|
|
2015
2015
|
let ce;
|
|
2016
2016
|
if (i)
|
|
2017
2017
|
ce = { available: !1, reason: i };
|
|
2018
2018
|
else if (!P.length)
|
|
2019
2019
|
ce = { available: !1, reason: "no-addressable-columns" };
|
|
2020
2020
|
else {
|
|
2021
|
-
const b = new Set(
|
|
2022
|
-
(
|
|
2021
|
+
const b = new Set(S ?? []), F = P.filter(
|
|
2022
|
+
(k) => !D.has(k)
|
|
2023
2023
|
).length;
|
|
2024
2024
|
ce = {
|
|
2025
2025
|
available: !0,
|
|
2026
2026
|
canReset: st,
|
|
2027
|
-
items: P.map((
|
|
2028
|
-
const K = l.entries.get(
|
|
2027
|
+
items: P.map((k) => {
|
|
2028
|
+
const K = l.entries.get(k), J = D.has(k), Y = no.get(k);
|
|
2029
2029
|
return {
|
|
2030
|
-
columnId:
|
|
2031
|
-
label: d(
|
|
2030
|
+
columnId: k,
|
|
2031
|
+
label: d(k) ?? K.authorLabel,
|
|
2032
2032
|
authorLabel: K.authorLabel,
|
|
2033
|
-
hidden:
|
|
2034
|
-
isNew:
|
|
2035
|
-
canHide: !
|
|
2033
|
+
hidden: J,
|
|
2034
|
+
isNew: S !== void 0 && !b.has(k),
|
|
2035
|
+
canHide: !J && F > 1,
|
|
2036
2036
|
...Y ? { sort: Y } : {}
|
|
2037
2037
|
};
|
|
2038
2038
|
})
|
|
@@ -2042,18 +2042,18 @@ function fl(e) {
|
|
|
2042
2042
|
columns: R,
|
|
2043
2043
|
visibleKeys: R.filter((b) => b.visible).map((b) => b.outputKey),
|
|
2044
2044
|
labels: z,
|
|
2045
|
-
columnSizing:
|
|
2045
|
+
columnSizing: W,
|
|
2046
2046
|
sortMode: a,
|
|
2047
2047
|
clientSort: oo,
|
|
2048
2048
|
panel: ce,
|
|
2049
|
-
...
|
|
2049
|
+
...V ? { settings: V } : {},
|
|
2050
2050
|
dropped: w,
|
|
2051
2051
|
isCustomized: st,
|
|
2052
2052
|
canSort: i !== "card-type" && a !== "page-only",
|
|
2053
2053
|
author: { order: I }
|
|
2054
2054
|
};
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function ml(e, t) {
|
|
2057
2057
|
var n;
|
|
2058
2058
|
return (n = kn(e, t)) == null ? void 0 : n.field;
|
|
2059
2059
|
}
|
|
@@ -2071,14 +2071,14 @@ function kn(e, t) {
|
|
|
2071
2071
|
return;
|
|
2072
2072
|
return r.length === 1 ? { field: r[0], role: i } : void 0;
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function as(e, t) {
|
|
2075
2075
|
const n = t == null ? void 0 : t.sort;
|
|
2076
2076
|
if (!n || !e.config || e.type !== "table" && e.type !== "detailTable" || ne(e) !== "config")
|
|
2077
2077
|
return e.config;
|
|
2078
2078
|
const o = n.flatMap((r) => {
|
|
2079
2079
|
const i = kn(e, r.columnId);
|
|
2080
2080
|
if (!i) return [];
|
|
2081
|
-
const s =
|
|
2081
|
+
const s = xr(i.field, i.role);
|
|
2082
2082
|
return Vn(e, s) ? [] : [
|
|
2083
2083
|
{
|
|
2084
2084
|
...i.field,
|
|
@@ -2090,32 +2090,32 @@ function ss(e, t) {
|
|
|
2090
2090
|
});
|
|
2091
2091
|
return n.length > 0 && o.length === 0 ? e.config : { ...e.config, sortByColumns: o };
|
|
2092
2092
|
}
|
|
2093
|
-
const
|
|
2093
|
+
const ls = 500, cs = 250;
|
|
2094
2094
|
function _e(e) {
|
|
2095
2095
|
return e.type === "table" || e.type === "detailTable";
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function ds(e) {
|
|
2098
2098
|
var t, n, o;
|
|
2099
2099
|
return !!((t = e.sql) != null && t.trim() && _e(e) && ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && o.enableDevModePagination));
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2102
|
-
return e === "export-full-with-cap" ?
|
|
2101
|
+
function gl(e) {
|
|
2102
|
+
return e === "export-full-with-cap" ? ls : cs;
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2104
|
+
function us({
|
|
2105
2105
|
card: e,
|
|
2106
2106
|
isTablePrintMode: t,
|
|
2107
2107
|
isDocumentSectionRuntime: n,
|
|
2108
2108
|
documentTableDataPolicy: o
|
|
2109
2109
|
}) {
|
|
2110
2110
|
var c, l;
|
|
2111
|
-
const r = n && o !== void 0 && _e(e), i = t && !r, s = Fe(e.config) && _e(e) && !e.sql, a = r ?
|
|
2111
|
+
const r = n && o !== void 0 && _e(e), i = t && !r, s = Fe(e.config) && _e(e) && !e.sql, a = r ? ds(e) : !!(e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) != null && l.enableDevModePagination));
|
|
2112
2112
|
return !i && (s || a);
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function fs(e) {
|
|
2115
2115
|
var t, n, o;
|
|
2116
2116
|
return ((t = e.paginationConfig) == null ? void 0 : t.pageSize) || ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.pageSize) || 50;
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function yl({
|
|
2119
2119
|
current: e,
|
|
2120
2120
|
defaultPageSize: t,
|
|
2121
2121
|
queryInputIdentity: n
|
|
@@ -2128,10 +2128,10 @@ function gl({
|
|
|
2128
2128
|
pageSize: (e == null ? void 0 : e.pageSize) ?? t
|
|
2129
2129
|
};
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function bl(e, t, n) {
|
|
2132
2132
|
return (e == null ? void 0 : e.queryInputIdentity) === n && e.page === t.page && e.pageSize === t.pageSize;
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function hl(e, t) {
|
|
2135
2135
|
return !e || !t || e.page === t.page && e.pageSize === t.pageSize ? e : {
|
|
2136
2136
|
...e,
|
|
2137
2137
|
page: t.page,
|
|
@@ -2139,20 +2139,20 @@ function bl(e, t) {
|
|
|
2139
2139
|
hasPrevPage: t.page > 1
|
|
2140
2140
|
};
|
|
2141
2141
|
}
|
|
2142
|
-
function fs(e) {
|
|
2143
|
-
return { page: 1, pageSize: us(e) };
|
|
2144
|
-
}
|
|
2145
2142
|
function ps(e) {
|
|
2143
|
+
return { page: 1, pageSize: fs(e) };
|
|
2144
|
+
}
|
|
2145
|
+
function ms(e) {
|
|
2146
2146
|
var s, a, c, l, d;
|
|
2147
|
-
const { card: t } = e, n =
|
|
2147
|
+
const { card: t } = e, n = us({
|
|
2148
2148
|
card: t,
|
|
2149
2149
|
isTablePrintMode: ((s = e.display) == null ? void 0 : s.isTablePrintMode) ?? !1,
|
|
2150
2150
|
isDocumentSectionRuntime: !!e.documentSection,
|
|
2151
2151
|
documentTableDataPolicy: (a = e.documentSection) == null ? void 0 : a.documentTableDataPolicy
|
|
2152
|
-
}), { page: o } = e, r = e.documentSection && !e.documentSection.totalsRow ? void 0 : vo(t, e.finalConfig), i = !!((c = e.display) != null && c.deliveryStrict && e.display.isTablePrintMode && !e.documentSection &&
|
|
2152
|
+
}), { page: o } = e, r = e.documentSection && !e.documentSection.totalsRow ? void 0 : vo(t, e.finalConfig), i = !!((c = e.display) != null && c.deliveryStrict && e.display.isTablePrintMode && !e.documentSection && Or(t.type));
|
|
2153
2153
|
return {
|
|
2154
2154
|
...r ? { tableTotalsRequest: r } : {},
|
|
2155
|
-
...i ? { sourceRowProbe: { limit:
|
|
2155
|
+
...i ? { sourceRowProbe: { limit: Br.maxTableRows } } : {},
|
|
2156
2156
|
...n ? {
|
|
2157
2157
|
pagination: {
|
|
2158
2158
|
page: (o == null ? void 0 : o.page) || 1,
|
|
@@ -2161,14 +2161,14 @@ function ps(e) {
|
|
|
2161
2161
|
} : {}
|
|
2162
2162
|
};
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function gs(e, t = {}) {
|
|
2165
2165
|
var r, i, s;
|
|
2166
2166
|
const n = ((r = e.connectionId) == null ? void 0 : r.trim()) || void 0;
|
|
2167
2167
|
if (t.editorDevMode) return n;
|
|
2168
2168
|
const o = ((s = (i = e.dataSource) == null ? void 0 : i.connectionId) == null ? void 0 : s.trim()) || void 0;
|
|
2169
2169
|
return e.sql ? n || o : o || n;
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function ys(e, t) {
|
|
2172
2172
|
var n;
|
|
2173
2173
|
return {
|
|
2174
2174
|
connectionId: t,
|
|
@@ -2177,8 +2177,8 @@ function gs(e, t) {
|
|
|
2177
2177
|
selectedEntities: []
|
|
2178
2178
|
};
|
|
2179
2179
|
}
|
|
2180
|
-
function
|
|
2181
|
-
const o =
|
|
2180
|
+
function Cl(e, t, n = {}) {
|
|
2181
|
+
const o = gs(e, n);
|
|
2182
2182
|
if (!o)
|
|
2183
2183
|
throw new Error("No connection ID found for card");
|
|
2184
2184
|
const r = t.cardDataSource || e.dataSource;
|
|
@@ -2186,11 +2186,11 @@ function hl(e, t, n = {}) {
|
|
|
2186
2186
|
connectionId: o,
|
|
2187
2187
|
requestPayloadBase: {
|
|
2188
2188
|
...t,
|
|
2189
|
-
cardDataSource: n.liveDataSource ? r : r ||
|
|
2189
|
+
cardDataSource: n.liveDataSource ? r : r || ys(e, o)
|
|
2190
2190
|
}
|
|
2191
2191
|
};
|
|
2192
2192
|
}
|
|
2193
|
-
const
|
|
2193
|
+
const bs = /* @__PURE__ */ new Set([
|
|
2194
2194
|
"day",
|
|
2195
2195
|
"week",
|
|
2196
2196
|
"month",
|
|
@@ -2200,7 +2200,7 @@ const ys = /* @__PURE__ */ new Set([
|
|
|
2200
2200
|
"minute",
|
|
2201
2201
|
"second"
|
|
2202
2202
|
]);
|
|
2203
|
-
function
|
|
2203
|
+
function hs(e) {
|
|
2204
2204
|
let t = e.spec;
|
|
2205
2205
|
const n = Rt(
|
|
2206
2206
|
e.controlDefinitions || [],
|
|
@@ -2245,44 +2245,44 @@ function bs(e) {
|
|
|
2245
2245
|
for (const { binding: p, targetId: y, selectedValue: h } of g) {
|
|
2246
2246
|
if (h === void 0 || h === Oe)
|
|
2247
2247
|
continue;
|
|
2248
|
-
const I = (
|
|
2249
|
-
(!y || !
|
|
2248
|
+
const I = (S) => d(S, p.controlId), v = p.target === "config_metric_selector" || p.target === "config_aggregation", M = f(t, p);
|
|
2249
|
+
(!y || !M.some((S) => S.id === y)) && I("Choose a valid Matrix level or measure target for this control.");
|
|
2250
2250
|
const C = `${p.target}:${y}`;
|
|
2251
2251
|
s.has(C) && I("Multiple controls cannot replace the same Matrix target."), s.add(C);
|
|
2252
|
-
const w = (
|
|
2253
|
-
const
|
|
2254
|
-
if (
|
|
2255
|
-
const O = ur.safeParse(
|
|
2252
|
+
const w = (S) => {
|
|
2253
|
+
const T = (l().byId.get(S.id) ?? []).filter((P) => !S.source || we(S.source, P.field.source ?? e.spec.source));
|
|
2254
|
+
if (T.length !== 1) return I(T.length ? "The selected field is ambiguous in the authorized Matrix field catalog." : "The selected field is not in the authorized Matrix field catalog.");
|
|
2255
|
+
const O = ur.safeParse(T[0].field);
|
|
2256
2256
|
return O.success ? O.data : I(O.error.message);
|
|
2257
|
-
}, B = p.target === "config_metric_selector" || p.target === "config_field_selector" ? p.mapping[h] : void 0,
|
|
2257
|
+
}, B = p.target === "config_metric_selector" || p.target === "config_field_selector" ? p.mapping[h] : void 0, V = B && typeof B == "object" && "kind" in B && B.kind === "matrix_instance" ? B.id : void 0;
|
|
2258
2258
|
if (v) {
|
|
2259
2259
|
a.set(y, p.controlId);
|
|
2260
|
-
const
|
|
2261
|
-
(D) => D.id ===
|
|
2260
|
+
const S = V === void 0 ? void 0 : m.data.measures.find(
|
|
2261
|
+
(D) => D.id === V && D.kind === "aggregate"
|
|
2262
2262
|
);
|
|
2263
|
-
|
|
2264
|
-
const
|
|
2263
|
+
V !== void 0 && !S && I("The selected Matrix aggregate measure is no longer available.");
|
|
2264
|
+
const T = p.target === "config_metric_selector" && !S ? So({ binding: p, selectedValue: h }) : void 0, O = ((S == null ? void 0 : S.kind) === "aggregate" ? S.aggregate : T == null ? void 0 : T.aggregate) ?? (p.target === "config_aggregation" ? mt({ binding: p, selectedValue: h }) : void 0), P = O === void 0 ? void 0 : dr.safeParse(O);
|
|
2265
2265
|
P && !P.success && I("This aggregation is not supported by Matrix."), t = {
|
|
2266
2266
|
...t,
|
|
2267
2267
|
measures: t.measures.map(
|
|
2268
2268
|
(D) => D.id !== y || D.kind !== "aggregate" ? D : {
|
|
2269
2269
|
...D,
|
|
2270
|
-
...
|
|
2271
|
-
...(
|
|
2270
|
+
...T ? { field: w(T) } : {},
|
|
2271
|
+
...(S == null ? void 0 : S.kind) === "aggregate" ? { field: S.field } : {},
|
|
2272
2272
|
aggregate: P != null && P.success ? P.data : D.aggregate
|
|
2273
2273
|
}
|
|
2274
2274
|
)
|
|
2275
2275
|
};
|
|
2276
2276
|
} else {
|
|
2277
|
-
const
|
|
2278
|
-
(D) => D.id ===
|
|
2277
|
+
const S = V === void 0 ? void 0 : [...m.data.rows, ...m.data.columns].find(
|
|
2278
|
+
(D) => D.id === V
|
|
2279
2279
|
);
|
|
2280
|
-
|
|
2281
|
-
const
|
|
2282
|
-
O !== void 0 && !
|
|
2280
|
+
V !== void 0 && !S && I("The selected Matrix level is no longer available.");
|
|
2281
|
+
const T = p.target === "config_field_selector" && !S ? Do({ binding: p, selectedValue: h }) : void 0, O = p.target === "config_grain" ? mt({ binding: p, selectedValue: h }) : S ? S.grain : T == null ? void 0 : T.granularity;
|
|
2282
|
+
O !== void 0 && !bs.has(O) && I("This time grain is not supported by Matrix.");
|
|
2283
2283
|
const P = (D) => D.map((x) => {
|
|
2284
2284
|
if (x.id !== y) return x;
|
|
2285
|
-
const E = (
|
|
2285
|
+
const E = (S == null ? void 0 : S.field) ?? (T ? w(T) : x.field), R = u(E, p.controlId), z = O ?? (T && yt(R) ? x.grain : void 0);
|
|
2286
2286
|
return z && !yt(R) && I("A time grain requires a temporal Matrix level."), { ...x, field: E, grain: z };
|
|
2287
2287
|
});
|
|
2288
2288
|
t = {
|
|
@@ -2322,24 +2322,24 @@ function xn(e, t) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
return n;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Cs(e, t = [], n = []) {
|
|
2326
2326
|
return Ut([...qt(e), ...xn(t), ...n]);
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function Is(e, t = {}) {
|
|
2329
2329
|
const n = t.controlBindings ?? [], o = Rt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), r = new Map(n.filter((i) => i.target === "config_field_selector" || i.target === "config_metric_selector").map((i) => [i, Kt({ binding: i, definitions: o, controlValues: t.controlValues })]));
|
|
2330
2330
|
return Ut([...qt(e), ...xn(n, r)]);
|
|
2331
2331
|
}
|
|
2332
|
-
function Is(e, t) {
|
|
2333
|
-
return qe(e) ? vs(e, t) : e.config ?? {};
|
|
2334
|
-
}
|
|
2335
2332
|
function vs(e, t) {
|
|
2333
|
+
return qe(e) ? Fs(e, t) : e.config ?? {};
|
|
2334
|
+
}
|
|
2335
|
+
function Fs(e, t) {
|
|
2336
2336
|
var o;
|
|
2337
2337
|
const n = (o = t == null ? void 0 : t.steps[t.steps.length - 1]) == null ? void 0 : o.toField;
|
|
2338
|
-
return n ?
|
|
2338
|
+
return n ? li(e.config ?? {}, n, {
|
|
2339
2339
|
sortPolicy: "retargetDimensionSort"
|
|
2340
2340
|
}) : e.config ?? {};
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function Ss(e, t) {
|
|
2343
2343
|
const n = (e == null ? void 0 : e.steps) ?? [];
|
|
2344
2344
|
if (n.length !== 0)
|
|
2345
2345
|
return {
|
|
@@ -2358,7 +2358,7 @@ function Fs(e, t) {
|
|
|
2358
2358
|
logicalOperator: "AND",
|
|
2359
2359
|
negate: !1,
|
|
2360
2360
|
conditions: o.conditions.map(
|
|
2361
|
-
(i) =>
|
|
2361
|
+
(i) => Er(
|
|
2362
2362
|
i,
|
|
2363
2363
|
`${i.field.id}-${i.value}`
|
|
2364
2364
|
)
|
|
@@ -2375,46 +2375,46 @@ function et(e) {
|
|
|
2375
2375
|
function tt(e) {
|
|
2376
2376
|
return e === "not in" ? "exclude" : "include";
|
|
2377
2377
|
}
|
|
2378
|
-
function
|
|
2378
|
+
function Ds(e) {
|
|
2379
2379
|
return e === "exclude" ? "not in" : "in";
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Il(e) {
|
|
2382
2382
|
var n;
|
|
2383
2383
|
const t = (n = e.liveValue) == null ? void 0 : n.operation;
|
|
2384
2384
|
return et(t) ? tt(t) : e.pendingMode ?? e.authoredMode;
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function Ts(e) {
|
|
2387
2387
|
var o;
|
|
2388
2388
|
let t = !1;
|
|
2389
2389
|
const n = (o = e.inputs) == null ? void 0 : o.map((r) => {
|
|
2390
2390
|
if (r.kind !== "filter" || !r.filter) return r;
|
|
2391
|
-
const i =
|
|
2391
|
+
const i = Ms(
|
|
2392
2392
|
r.filter,
|
|
2393
|
-
new Set(
|
|
2393
|
+
new Set(Vs(e.defaultInputValues, r))
|
|
2394
2394
|
);
|
|
2395
2395
|
return i === r.filter ? r : (t = !0, { ...r, filter: i });
|
|
2396
2396
|
});
|
|
2397
2397
|
return t ? { ...e, inputs: n } : e;
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function Ms(e, t) {
|
|
2400
2400
|
if (t.size !== 1 || !et(e.operation))
|
|
2401
2401
|
return e;
|
|
2402
2402
|
const [n] = t;
|
|
2403
|
-
return tt(e.operation) === n ? e : { ...e, operation:
|
|
2403
|
+
return tt(e.operation) === n ? e : { ...e, operation: Ds(n) };
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function Vs(e, t) {
|
|
2406
2406
|
var r;
|
|
2407
2407
|
const n = (i) => Object.values(i ?? {}).map((s) => s[t.id]);
|
|
2408
2408
|
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(
|
|
2409
|
-
(i) => (i == null ? void 0 : i.status) === "set" && i.value.kind === "filter" ?
|
|
2409
|
+
(i) => (i == null ? void 0 : i.status) === "set" && i.value.kind === "filter" ? ks(i.value.filterValue) : []
|
|
2410
2410
|
);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2412
|
+
function ks(e) {
|
|
2413
2413
|
return et(e.operation) ? [tt(e.operation)] : [];
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2416
|
-
const t =
|
|
2417
|
-
return
|
|
2415
|
+
function vl(e) {
|
|
2416
|
+
const t = Wt(e), o = q(t).issues.length ? t : ka(t);
|
|
2417
|
+
return si(Ts(o)).dashboard;
|
|
2418
2418
|
}
|
|
2419
2419
|
function nt(e, t) {
|
|
2420
2420
|
const n = {};
|
|
@@ -2470,7 +2470,7 @@ function ot(e, t, n) {
|
|
|
2470
2470
|
n
|
|
2471
2471
|
);
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function Fl(e, t, n) {
|
|
2474
2474
|
return wn(e, t, n);
|
|
2475
2475
|
}
|
|
2476
2476
|
function wn(e, t, n) {
|
|
@@ -2530,7 +2530,7 @@ function On(e, t) {
|
|
|
2530
2530
|
inlineFilterValues: r
|
|
2531
2531
|
};
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function xs(e, t) {
|
|
2534
2534
|
if (!t.size) return [...e];
|
|
2535
2535
|
const n = e.filter((r) => !t.has(r.filterId)), o = [...t.values()].filter(
|
|
2536
2536
|
(r) => r !== null
|
|
@@ -2552,16 +2552,16 @@ function Bn(e, t, n) {
|
|
|
2552
2552
|
...n
|
|
2553
2553
|
};
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function Ps(e, t) {
|
|
2556
2556
|
if (!t.size) return;
|
|
2557
2557
|
const n = Object.fromEntries(
|
|
2558
2558
|
Object.entries(e).map(([o, r]) => [o, [...r]])
|
|
2559
2559
|
);
|
|
2560
2560
|
for (const [o, r] of t)
|
|
2561
|
-
n[o] =
|
|
2561
|
+
n[o] = xs(n[o] ?? [], r);
|
|
2562
2562
|
return n;
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function ws(e, t, n) {
|
|
2565
2565
|
const o = new Map(
|
|
2566
2566
|
H(e).map(({ card: s }) => [
|
|
2567
2567
|
s.id,
|
|
@@ -2581,7 +2581,7 @@ function Ps(e, t, n) {
|
|
|
2581
2581
|
}
|
|
2582
2582
|
return r ? i : void 0;
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function Sl(e) {
|
|
2585
2585
|
const { dashboard: t, capture: n, calendar: o } = e, r = to(t, n.filterValues, {
|
|
2586
2586
|
calendar: o
|
|
2587
2587
|
}), i = n.dashboardInputExecutionSnapshot, s = n.controlValues, a = {
|
|
@@ -2611,15 +2611,15 @@ function Fl(e) {
|
|
|
2611
2611
|
...c != null && c.length ? { transientContexts: c } : {}
|
|
2612
2612
|
};
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function Dl(e, t) {
|
|
2615
2615
|
const { controlContractOverrides: n, cardId: o } = t;
|
|
2616
2616
|
if (!n || (n.controlDefinitions !== void 0 && (e.controls = n.controlDefinitions), typeof o != "string" || o.trim().length === 0))
|
|
2617
2617
|
return e;
|
|
2618
2618
|
const r = re(e, o);
|
|
2619
2619
|
return r && (n.cardControlDefinitions !== void 0 && (r.controls = n.cardControlDefinitions), n.controlBindings !== void 0 && (r.controlBindings = n.controlBindings)), e;
|
|
2620
2620
|
}
|
|
2621
|
-
const
|
|
2622
|
-
function
|
|
2621
|
+
const Os = ["bySheetId", "byCardId", "byDocumentSectionId"];
|
|
2622
|
+
function Bs(e, t) {
|
|
2623
2623
|
const n = q(e);
|
|
2624
2624
|
let o = !1;
|
|
2625
2625
|
const r = (s) => {
|
|
@@ -2635,7 +2635,7 @@ function Os(e, t) {
|
|
|
2635
2635
|
...t,
|
|
2636
2636
|
...t.shared ? { shared: r(t.shared) } : {}
|
|
2637
2637
|
};
|
|
2638
|
-
for (const s of
|
|
2638
|
+
for (const s of Os) {
|
|
2639
2639
|
const a = t[s];
|
|
2640
2640
|
a && (i[s] = Object.fromEntries(
|
|
2641
2641
|
Object.entries(a).map(([c, l]) => [c, r(l) ?? {}])
|
|
@@ -2643,7 +2643,7 @@ function Os(e, t) {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
return o ? i : t;
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function Es(e) {
|
|
2647
2647
|
var t, n;
|
|
2648
2648
|
return ((n = (t = e.sheets) == null ? void 0 : t[0]) == null ? void 0 : n.id) ?? null;
|
|
2649
2649
|
}
|
|
@@ -2651,10 +2651,10 @@ function ae(e, t) {
|
|
|
2651
2651
|
var n;
|
|
2652
2652
|
return !!t && !!((n = e.sheets) != null && n.some((o) => o.id === t));
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function Tl(e) {
|
|
2655
2655
|
const { dashboard: t, host: n, calendar: o } = e, r = to(t, n.filterValues, {
|
|
2656
2656
|
calendar: o
|
|
2657
|
-
}).slots, i = n.controlValues, s = ae(t, n.selectedSheetId) ? n.selectedSheetId :
|
|
2657
|
+
}).slots, i = n.controlValues, s = ae(t, n.selectedSheetId) ? n.selectedSheetId : Es(t);
|
|
2658
2658
|
return {
|
|
2659
2659
|
hostInputValues: r,
|
|
2660
2660
|
controlOverrides: i,
|
|
@@ -2683,7 +2683,7 @@ function An(e, t) {
|
|
|
2683
2683
|
const o = re(e, n);
|
|
2684
2684
|
return o ? Ro(o, e) ? "applies" : "not-eligible" : "removed";
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function Ml(e, t) {
|
|
2687
2687
|
const n = An(e, t);
|
|
2688
2688
|
return n ? n === "applies" : Ge(e).some(
|
|
2689
2689
|
(o) => o.id === t
|
|
@@ -2785,7 +2785,7 @@ function A(e, t, n, o = {}) {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
return i;
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function As(e, t, n) {
|
|
2789
2789
|
if (t) {
|
|
2790
2790
|
if (ae(e, t)) return t;
|
|
2791
2791
|
n.push({
|
|
@@ -2839,11 +2839,11 @@ function G(e, t) {
|
|
|
2839
2839
|
function kt(e, t, n, o) {
|
|
2840
2840
|
const { dashboard: r, baseline: i } = e, s = [], a = rn(t.state, $e), c = a.ok ? a.value : {};
|
|
2841
2841
|
for (const g of a.ok ? a.issues : [])
|
|
2842
|
-
s.push(
|
|
2842
|
+
s.push(_s(g));
|
|
2843
2843
|
const l = En(r), d = On(
|
|
2844
2844
|
l.compatibility,
|
|
2845
2845
|
_n(r, l, c.inputs, s)
|
|
2846
|
-
), u =
|
|
2846
|
+
), u = As(r, c.selectedSheetId, s) ?? i.selectedSheetId, f = A(
|
|
2847
2847
|
r,
|
|
2848
2848
|
c.tableSettings,
|
|
2849
2849
|
s
|
|
@@ -2867,7 +2867,7 @@ function kt(e, t, n, o) {
|
|
|
2867
2867
|
d.runtime
|
|
2868
2868
|
),
|
|
2869
2869
|
...qn(
|
|
2870
|
-
|
|
2870
|
+
Ps(
|
|
2871
2871
|
nt(r, e.calendar),
|
|
2872
2872
|
d.inlineFilterValues
|
|
2873
2873
|
)
|
|
@@ -2887,7 +2887,7 @@ function kt(e, t, n, o) {
|
|
|
2887
2887
|
notices: s
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function _s(e) {
|
|
2891
2891
|
return {
|
|
2892
2892
|
kind: "setting-no-longer-applies",
|
|
2893
2893
|
target: e.target,
|
|
@@ -2911,12 +2911,12 @@ function xt(e, t, n) {
|
|
|
2911
2911
|
// Live slots stay, except a filter value this template no longer accepts:
|
|
2912
2912
|
// that filter loads its new default, as the old list did. The resolver
|
|
2913
2913
|
// ignores slots this template no longer has.
|
|
2914
|
-
dashboardInputValues:
|
|
2914
|
+
dashboardInputValues: Bs(
|
|
2915
2915
|
o,
|
|
2916
2916
|
t.dashboardInputValues
|
|
2917
2917
|
),
|
|
2918
2918
|
...qn(
|
|
2919
|
-
|
|
2919
|
+
ws(
|
|
2920
2920
|
o,
|
|
2921
2921
|
nt(o, e.calendar),
|
|
2922
2922
|
t.inlineFilterValuesMap ?? {}
|
|
@@ -2931,7 +2931,7 @@ function xt(e, t, n) {
|
|
|
2931
2931
|
)
|
|
2932
2932
|
};
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function Vl(e) {
|
|
2935
2935
|
const { dashboard: t, baseline: n, event: o } = e, r = e.rememberedTableSettings;
|
|
2936
2936
|
switch (o.kind) {
|
|
2937
2937
|
case "initial-load":
|
|
@@ -3022,7 +3022,7 @@ function Ml(e) {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
}
|
|
3024
3024
|
}
|
|
3025
|
-
function
|
|
3025
|
+
function kl(e) {
|
|
3026
3026
|
const { dashboard: t, calendar: n } = e, o = e.hostControlValues, r = {
|
|
3027
3027
|
...e.baseline,
|
|
3028
3028
|
controlOverrides: o,
|
|
@@ -3066,7 +3066,7 @@ function Vl(e) {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
};
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function xl(e, t, n) {
|
|
3070
3070
|
const o = Rn(n.values);
|
|
3071
3071
|
return {
|
|
3072
3072
|
...o,
|
|
@@ -3099,7 +3099,7 @@ function Nn(e, t) {
|
|
|
3099
3099
|
o.has(i) || fe(s.slot) || Ie(r, s, { status: "cleared" });
|
|
3100
3100
|
return Se(r);
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3102
|
+
function Pl(e) {
|
|
3103
3103
|
const { dashboard: t, baseline: n, current: o } = e, r = Nn(n.materializedInputs, o.inputs), i = A(
|
|
3104
3104
|
t,
|
|
3105
3105
|
o.tableSettings,
|
|
@@ -3112,13 +3112,13 @@ function xl(e) {
|
|
|
3112
3112
|
...Object.keys(i).length ? { tableSettings: i } : {}
|
|
3113
3113
|
};
|
|
3114
3114
|
}
|
|
3115
|
-
function
|
|
3115
|
+
function Rs(e) {
|
|
3116
3116
|
const t = /* @__PURE__ */ new Map();
|
|
3117
3117
|
for (const n of Ge(e))
|
|
3118
3118
|
n.label && t.set(n.id, n.label);
|
|
3119
3119
|
return t;
|
|
3120
3120
|
}
|
|
3121
|
-
function
|
|
3121
|
+
function Ks(e, t, n) {
|
|
3122
3122
|
var r, i;
|
|
3123
3123
|
const o = Qt(n);
|
|
3124
3124
|
if (o) {
|
|
@@ -3127,16 +3127,16 @@ function Rs(e, t, n) {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
return t.get(n) ?? n;
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function wl(e) {
|
|
3131
3131
|
var l, d;
|
|
3132
|
-
const { dashboard: t, opened: n, current: o } = e, r = [], i =
|
|
3132
|
+
const { dashboard: t, opened: n, current: o } = e, r = [], i = Rs(t), s = /* @__PURE__ */ new Set();
|
|
3133
3133
|
for (const u of te(
|
|
3134
3134
|
Nn(n.inputs, o.inputs)
|
|
3135
3135
|
))
|
|
3136
3136
|
s.has(u.inputId) || (s.add(u.inputId), r.push({
|
|
3137
3137
|
target: "input",
|
|
3138
3138
|
inputId: u.inputId,
|
|
3139
|
-
label:
|
|
3139
|
+
label: Ks(t, i, u.inputId)
|
|
3140
3140
|
}));
|
|
3141
3141
|
(n.selectedSheetId ?? null) !== (o.selectedSheetId ?? null) && r.push({ target: "sheet" });
|
|
3142
3142
|
const a = A(
|
|
@@ -3173,7 +3173,7 @@ function wt(e) {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3176
|
+
function qs(e) {
|
|
3177
3177
|
var r, i;
|
|
3178
3178
|
if ((r = e.card.sql) != null && r.trim())
|
|
3179
3179
|
return {
|
|
@@ -3227,7 +3227,7 @@ function Ks(e) {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
} : { inputs: e.inputs, fieldCandidates: t, resolution: { status: "none" } };
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3230
|
+
function Ol(e) {
|
|
3231
3231
|
var n, o;
|
|
3232
3232
|
const t = {
|
|
3233
3233
|
ownerCardCount: 0,
|
|
@@ -3249,7 +3249,7 @@ function wl(e) {
|
|
|
3249
3249
|
}
|
|
3250
3250
|
return t;
|
|
3251
3251
|
}
|
|
3252
|
-
const
|
|
3252
|
+
const Ns = /* @__PURE__ */ new Set([
|
|
3253
3253
|
"between",
|
|
3254
3254
|
"not between",
|
|
3255
3255
|
"=",
|
|
@@ -3260,27 +3260,27 @@ const qs = /* @__PURE__ */ new Set([
|
|
|
3260
3260
|
"<=",
|
|
3261
3261
|
"is null",
|
|
3262
3262
|
"is not null"
|
|
3263
|
-
]),
|
|
3263
|
+
]), Ls = /^(\d{4}-\d{2}-\d{2})T/, js = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
3264
3264
|
function it(e) {
|
|
3265
|
-
return
|
|
3265
|
+
return Ns.has(e);
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function zs(e, t) {
|
|
3268
3268
|
if (e instanceof Date)
|
|
3269
3269
|
return Number.isNaN(e.getTime()) ? e : t ? bt(e, t, "yyyy-MM-dd") : e.toISOString().slice(0, 10);
|
|
3270
3270
|
if (typeof e != "string")
|
|
3271
3271
|
return e;
|
|
3272
3272
|
const n = e.trim();
|
|
3273
|
-
if (t &&
|
|
3273
|
+
if (t && js.test(n)) {
|
|
3274
3274
|
const r = new Date(n);
|
|
3275
3275
|
if (!Number.isNaN(r.getTime()))
|
|
3276
3276
|
return bt(r, t, "yyyy-MM-dd");
|
|
3277
3277
|
}
|
|
3278
|
-
const o =
|
|
3278
|
+
const o = Ls.exec(n);
|
|
3279
3279
|
return o ? o[1] : e;
|
|
3280
3280
|
}
|
|
3281
3281
|
function Ln(e, t) {
|
|
3282
3282
|
return Array.isArray(e) ? e.map(
|
|
3283
|
-
(n) =>
|
|
3283
|
+
(n) => zs(n, t)
|
|
3284
3284
|
) : e;
|
|
3285
3285
|
}
|
|
3286
3286
|
function jn(e) {
|
|
@@ -3317,7 +3317,7 @@ function zn(e) {
|
|
|
3317
3317
|
...d ? { temporalPrecision: d } : {}
|
|
3318
3318
|
};
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3320
|
+
function Gs(e) {
|
|
3321
3321
|
const t = Q(e.filters);
|
|
3322
3322
|
if (!t)
|
|
3323
3323
|
return e.filterValues;
|
|
@@ -3377,7 +3377,7 @@ function Gn(e) {
|
|
|
3377
3377
|
function N(e) {
|
|
3378
3378
|
return typeof e == "string" ? e.trim() : "";
|
|
3379
3379
|
}
|
|
3380
|
-
function
|
|
3380
|
+
function Hs(e) {
|
|
3381
3381
|
var t;
|
|
3382
3382
|
return (((t = e.semanticContext) == null ? void 0 : t.selectedEntities) || []).filter((n) => typeof n == "object" && n !== null).filter((n) => n.type === "dataset").map((n) => {
|
|
3383
3383
|
var o;
|
|
@@ -3388,11 +3388,11 @@ function Gs(e) {
|
|
|
3388
3388
|
};
|
|
3389
3389
|
}).filter((n) => n.domainId && n.datasetName);
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function Us(e) {
|
|
3392
3392
|
var c, l, d, u, f;
|
|
3393
3393
|
if (Z(e) || (c = e.sql) != null && c.trim())
|
|
3394
3394
|
return null;
|
|
3395
|
-
const t =
|
|
3395
|
+
const t = Hs(e), n = N((l = e.semanticContext) == null ? void 0 : l.semanticDomainId), o = N((d = e.fieldMeta) == null ? void 0 : d.entityId), r = N((u = e.fieldMeta) == null ? void 0 : u.entityName), i = N((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", s = t.find(
|
|
3396
3396
|
(m) => o && m.selectedEntityId === o
|
|
3397
3397
|
);
|
|
3398
3398
|
if (s)
|
|
@@ -3405,12 +3405,12 @@ function Hs(e) {
|
|
|
3405
3405
|
datasetName: r
|
|
3406
3406
|
} : null);
|
|
3407
3407
|
}
|
|
3408
|
-
function
|
|
3408
|
+
function Qs(e) {
|
|
3409
3409
|
var r, i;
|
|
3410
3410
|
const { filter: t, semanticExecutionPayload: n } = e;
|
|
3411
3411
|
if (!n)
|
|
3412
3412
|
return null;
|
|
3413
|
-
const o =
|
|
3413
|
+
const o = Us(t);
|
|
3414
3414
|
return o && ((i = (r = n.domainsById[o.domainId]) == null ? void 0 : r.datasetsByName[o.datasetName]) == null ? void 0 : i.primaryDateField) || null;
|
|
3415
3415
|
}
|
|
3416
3416
|
function Hn(e) {
|
|
@@ -3419,7 +3419,7 @@ function Hn(e) {
|
|
|
3419
3419
|
(n) => n.filterId !== t.id
|
|
3420
3420
|
) : e.filterValues;
|
|
3421
3421
|
}
|
|
3422
|
-
function
|
|
3422
|
+
function Bl(e) {
|
|
3423
3423
|
const t = Q(e.filters), n = Hn({
|
|
3424
3424
|
filters: e.filters,
|
|
3425
3425
|
filterValues: e.filterValues
|
|
@@ -3428,7 +3428,7 @@ function Ol(e) {
|
|
|
3428
3428
|
return n;
|
|
3429
3429
|
const o = e.filterValues.find(
|
|
3430
3430
|
(s) => s.filterId === t.id
|
|
3431
|
-
), r =
|
|
3431
|
+
), r = Qs({
|
|
3432
3432
|
filter: e.filter,
|
|
3433
3433
|
semanticExecutionPayload: e.semanticExecutionPayload
|
|
3434
3434
|
}), i = Gn({
|
|
@@ -3441,7 +3441,7 @@ function Ol(e) {
|
|
|
3441
3441
|
});
|
|
3442
3442
|
return i ? [i, ...n] : n;
|
|
3443
3443
|
}
|
|
3444
|
-
function
|
|
3444
|
+
function $s(e) {
|
|
3445
3445
|
var d;
|
|
3446
3446
|
const t = Q(e.filters), n = t ? e.cardFilterValues.find(
|
|
3447
3447
|
(u) => u.filterId === t.id
|
|
@@ -3473,7 +3473,7 @@ function Qs(e) {
|
|
|
3473
3473
|
effectiveFilterValue: f,
|
|
3474
3474
|
mappedFilterValue: (m = e.mappedFilterValuesByInputId) == null ? void 0 : m.get(u.inputId)
|
|
3475
3475
|
}] : [];
|
|
3476
|
-
})) || [], l =
|
|
3476
|
+
})) || [], l = qs({
|
|
3477
3477
|
inputs: c,
|
|
3478
3478
|
temporalBinding: r,
|
|
3479
3479
|
card: e.card
|
|
@@ -3484,7 +3484,7 @@ function Qs(e) {
|
|
|
3484
3484
|
dateComparisonPlan: l
|
|
3485
3485
|
};
|
|
3486
3486
|
}
|
|
3487
|
-
function
|
|
3487
|
+
function El(e) {
|
|
3488
3488
|
const t = Q(e.filters), n = jn(e), o = t ? e.filterValues.find(
|
|
3489
3489
|
(s) => s.filterId === t.id
|
|
3490
3490
|
) : void 0, r = Hn(e);
|
|
@@ -3502,26 +3502,26 @@ function Bl(e) {
|
|
|
3502
3502
|
...r
|
|
3503
3503
|
];
|
|
3504
3504
|
}
|
|
3505
|
-
class
|
|
3505
|
+
class Ws extends Error {
|
|
3506
3506
|
}
|
|
3507
|
-
function
|
|
3507
|
+
function Al(e, t) {
|
|
3508
3508
|
const n = new Map((e ? H(e) : []).map(({ card: o }) => [o.id, o]));
|
|
3509
3509
|
return t && n.set(t.id, t), [...n.values()].flatMap((o) => {
|
|
3510
3510
|
const r = Ne(o);
|
|
3511
|
-
return r.status === "ready" ?
|
|
3511
|
+
return r.status === "ready" ? Cs(r.config.spec, o.controlBindings) : [];
|
|
3512
3512
|
});
|
|
3513
3513
|
}
|
|
3514
3514
|
function Js(e, t, n) {
|
|
3515
3515
|
const o = Lo(e);
|
|
3516
3516
|
if (!o) throw new Error("Matrix card definition is required.");
|
|
3517
|
-
const r = n &&
|
|
3517
|
+
const r = n && hs({
|
|
3518
3518
|
...n,
|
|
3519
3519
|
spec: o.spec,
|
|
3520
3520
|
catalog: t.map((d) => ({ ...d, id: d.resolvedField.id }))
|
|
3521
3521
|
}), i = r ? { ...o, spec: r.spec } : o, s = jo(t), a = zo(t), c = (d) => {
|
|
3522
3522
|
const u = a(d, i.spec.source);
|
|
3523
3523
|
if (!(!u && d.derivedField)) {
|
|
3524
|
-
if (!u) throw new
|
|
3524
|
+
if (!u) throw new Ws(`Matrix field metadata is unavailable: ${d.name}`);
|
|
3525
3525
|
return { ...u, ...d.derivedField ? { derivedField: d.derivedField } : {} };
|
|
3526
3526
|
}
|
|
3527
3527
|
}, l = {
|
|
@@ -3543,7 +3543,7 @@ function Js(e, t, n) {
|
|
|
3543
3543
|
};
|
|
3544
3544
|
return { config: i, fields: l, resolveField: s };
|
|
3545
3545
|
}
|
|
3546
|
-
function
|
|
3546
|
+
function Ys(e) {
|
|
3547
3547
|
const t = e.filter(Boolean);
|
|
3548
3548
|
if (t.length !== 0)
|
|
3549
3549
|
return t.length === 1 ? t[0] : {
|
|
@@ -3554,7 +3554,7 @@ function Ws(e) {
|
|
|
3554
3554
|
groups: t
|
|
3555
3555
|
};
|
|
3556
3556
|
}
|
|
3557
|
-
function
|
|
3557
|
+
function Xs(e) {
|
|
3558
3558
|
if (!e) return;
|
|
3559
3559
|
const t = (n) => ({
|
|
3560
3560
|
logicalOperator: n.logicalOperator,
|
|
@@ -3573,7 +3573,7 @@ function Ys(e) {
|
|
|
3573
3573
|
});
|
|
3574
3574
|
return JSON.stringify(t(e));
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3576
|
+
function Zs(e, t, n = {}) {
|
|
3577
3577
|
const o = e.metricColumns || [];
|
|
3578
3578
|
if (o.length === 0) return e;
|
|
3579
3579
|
const r = Ho.includes(
|
|
@@ -3609,36 +3609,36 @@ function Xs(e, t, n = {}) {
|
|
|
3609
3609
|
metricColumns: c
|
|
3610
3610
|
} : e;
|
|
3611
3611
|
}
|
|
3612
|
-
function
|
|
3612
|
+
function _l(e, t = {}) {
|
|
3613
3613
|
return Un(Qn(e, t));
|
|
3614
3614
|
}
|
|
3615
3615
|
function Un(e) {
|
|
3616
|
-
return
|
|
3616
|
+
return Ys([e.authored, e.drill, e.selections]);
|
|
3617
3617
|
}
|
|
3618
3618
|
function Qn(e, t = {}) {
|
|
3619
3619
|
return {
|
|
3620
3620
|
authored: t.includeAuthoredFilters === !1 ? void 0 : Qo(e),
|
|
3621
|
-
drill:
|
|
3622
|
-
selections:
|
|
3621
|
+
drill: Ss(t.drill, e.id),
|
|
3622
|
+
selections: Ar(t.selections ?? [])
|
|
3623
3623
|
};
|
|
3624
3624
|
}
|
|
3625
|
-
function
|
|
3626
|
-
const o =
|
|
3627
|
-
return qe(e) ?
|
|
3625
|
+
function ea(e, t, n) {
|
|
3626
|
+
const o = vs(e, t);
|
|
3627
|
+
return qe(e) ? Zs(
|
|
3628
3628
|
{ ...o, filters: n },
|
|
3629
3629
|
e.type,
|
|
3630
3630
|
// A data variable's card keeps its own period comparison (P3b-03).
|
|
3631
3631
|
{ keepsPeriodComparison: Tr(e) }
|
|
3632
3632
|
) : o;
|
|
3633
3633
|
}
|
|
3634
|
-
function
|
|
3634
|
+
function ta(e) {
|
|
3635
3635
|
const t = $o(e);
|
|
3636
3636
|
return {
|
|
3637
3637
|
contextMode: t,
|
|
3638
3638
|
shouldApplyDashboardFilters: !t || t === "full"
|
|
3639
3639
|
};
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3641
|
+
function na(e) {
|
|
3642
3642
|
const t = e.dashboardControls || [], n = e.card.controls || [], o = /* @__PURE__ */ new Set([
|
|
3643
3643
|
...t.map((r) => r.id),
|
|
3644
3644
|
...n.map((r) => r.id)
|
|
@@ -3662,7 +3662,7 @@ function $n(e, t, n) {
|
|
|
3662
3662
|
const r = t.controlBindings.filter(
|
|
3663
3663
|
(f) => !ve(f)
|
|
3664
3664
|
), i = new Set(
|
|
3665
|
-
|
|
3665
|
+
We({
|
|
3666
3666
|
sql: e.sql,
|
|
3667
3667
|
controlBindings: r
|
|
3668
3668
|
})
|
|
@@ -3690,7 +3690,7 @@ function $n(e, t, n) {
|
|
|
3690
3690
|
controlBindings: d
|
|
3691
3691
|
};
|
|
3692
3692
|
}
|
|
3693
|
-
function
|
|
3693
|
+
function oa({
|
|
3694
3694
|
card: e,
|
|
3695
3695
|
dashboard: t,
|
|
3696
3696
|
transientContexts: n,
|
|
@@ -3705,32 +3705,29 @@ function na({
|
|
|
3705
3705
|
dashboardInputContext: u,
|
|
3706
3706
|
includeAuthoredFilters: f
|
|
3707
3707
|
}) {
|
|
3708
|
-
var
|
|
3708
|
+
var S;
|
|
3709
3709
|
const m = vn(t);
|
|
3710
|
-
for (const
|
|
3711
|
-
ve(
|
|
3712
|
-
const { shouldApplyDashboardFilters: g } =
|
|
3710
|
+
for (const T of e.controlBindings || [])
|
|
3711
|
+
ve(T) && m.add(T.controlId);
|
|
3712
|
+
const { shouldApplyDashboardFilters: g } = ta(n), p = u != null && u.inputs.length ? u : void 0, y = ((u == null ? void 0 : u.selections) ?? []).filter(
|
|
3713
|
+
(T) => T.status === "apply"
|
|
3714
|
+
), h = Qn(e, {
|
|
3713
3715
|
includeAuthoredFilters: f,
|
|
3714
|
-
|
|
3715
|
-
// selection can only ever narrow this card on its own fields. Carried
|
|
3716
|
-
// selections are among them.
|
|
3717
|
-
selections: ((u == null ? void 0 : u.selections) ?? []).filter(
|
|
3718
|
-
(F) => F.status === "apply"
|
|
3719
|
-
),
|
|
3716
|
+
selections: y,
|
|
3720
3717
|
drill: o == null ? void 0 : o.drill
|
|
3721
|
-
}),
|
|
3718
|
+
}), I = Un(h), v = f === !1 ? Te(I, !0) : I, M = ea(
|
|
3722
3719
|
e,
|
|
3723
3720
|
o == null ? void 0 : o.drill,
|
|
3724
|
-
|
|
3725
|
-
),
|
|
3721
|
+
v
|
|
3722
|
+
), C = as({ ...e, config: M }, r) ?? M, w = bn(C, {
|
|
3726
3723
|
cardType: e.type,
|
|
3727
3724
|
dataSource: e.dataSource,
|
|
3728
3725
|
temporalResultOwner: zt({
|
|
3729
|
-
hasExecutableConfig: Fe(
|
|
3726
|
+
hasExecutableConfig: Fe(C, e.type),
|
|
3730
3727
|
sql: e.sql,
|
|
3731
3728
|
normalizedPython: Le(e.python || "")
|
|
3732
3729
|
})
|
|
3733
|
-
}) ||
|
|
3730
|
+
}) || C, B = Xs(v) || "", V = p ? $n(
|
|
3734
3731
|
e,
|
|
3735
3732
|
{
|
|
3736
3733
|
controlValues: p.controlValues,
|
|
@@ -3739,7 +3736,7 @@ function na({
|
|
|
3739
3736
|
controlBindings: p.controlBindings
|
|
3740
3737
|
},
|
|
3741
3738
|
m
|
|
3742
|
-
) :
|
|
3739
|
+
) : na({
|
|
3743
3740
|
card: e,
|
|
3744
3741
|
presentationControlIds: m,
|
|
3745
3742
|
dashboardControls: c,
|
|
@@ -3751,6 +3748,9 @@ function na({
|
|
|
3751
3748
|
adHocFilterValues: i || [],
|
|
3752
3749
|
selectedSheetId: s,
|
|
3753
3750
|
inlineFilterValues: (a == null ? void 0 : a[e.id]) || [],
|
|
3751
|
+
// Outside the input-context gate: a dashboard whose only input is a
|
|
3752
|
+
// click still sends them.
|
|
3753
|
+
selectionFilterValues: y.flatMap((T) => T.filterValues),
|
|
3754
3754
|
shouldApplyDashboardFilters: g,
|
|
3755
3755
|
...p ? {
|
|
3756
3756
|
dashboardInputContext: {
|
|
@@ -3766,24 +3766,24 @@ function na({
|
|
|
3766
3766
|
dateComparisonInputs: p.dateComparisonInputs
|
|
3767
3767
|
} : {}
|
|
3768
3768
|
},
|
|
3769
|
-
...
|
|
3770
|
-
resolvedFilters:
|
|
3771
|
-
resolvedFilterParts:
|
|
3772
|
-
drillSteps: ((
|
|
3773
|
-
finalConfig:
|
|
3774
|
-
queryRelevantConfig:
|
|
3775
|
-
finalFiltersKey:
|
|
3769
|
+
...V,
|
|
3770
|
+
resolvedFilters: v,
|
|
3771
|
+
resolvedFilterParts: h,
|
|
3772
|
+
drillSteps: ((S = o == null ? void 0 : o.drill) == null ? void 0 : S.steps) ?? Wo,
|
|
3773
|
+
finalConfig: C,
|
|
3774
|
+
queryRelevantConfig: w,
|
|
3775
|
+
finalFiltersKey: B
|
|
3776
3776
|
};
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function ra(e, t) {
|
|
3779
3779
|
return !!t && e.endsWith(t);
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3781
|
+
function Wn(e, t) {
|
|
3782
3782
|
return (e ?? []).filter(
|
|
3783
|
-
(n) =>
|
|
3783
|
+
(n) => ra(n.filterId, t)
|
|
3784
3784
|
);
|
|
3785
3785
|
}
|
|
3786
|
-
function
|
|
3786
|
+
function Jn(e, t, n) {
|
|
3787
3787
|
var o;
|
|
3788
3788
|
if (t)
|
|
3789
3789
|
return {
|
|
@@ -3792,18 +3792,18 @@ function Wn(e, t, n) {
|
|
|
3792
3792
|
...n ? { owner: n } : {}
|
|
3793
3793
|
};
|
|
3794
3794
|
}
|
|
3795
|
-
function
|
|
3795
|
+
function ia(e) {
|
|
3796
3796
|
if (e.resolution.status === "resolved")
|
|
3797
|
-
return
|
|
3797
|
+
return Jn(
|
|
3798
3798
|
e.card,
|
|
3799
3799
|
e.resolution.resolvedOwner.selection,
|
|
3800
3800
|
e.resolution.resolvedOwner.owner
|
|
3801
3801
|
);
|
|
3802
3802
|
}
|
|
3803
|
-
function
|
|
3803
|
+
function sa(e) {
|
|
3804
3804
|
return `Set ${e.join(", ")} to run this card.`;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3806
|
+
function aa({
|
|
3807
3807
|
dashboardInputContext: e,
|
|
3808
3808
|
shouldApplyDashboardFilters: t
|
|
3809
3809
|
}) {
|
|
@@ -3818,7 +3818,7 @@ function sa({
|
|
|
3818
3818
|
(o) => n.has(o.filterId)
|
|
3819
3819
|
);
|
|
3820
3820
|
}
|
|
3821
|
-
function
|
|
3821
|
+
function la({
|
|
3822
3822
|
dashboardInputFilterValues: e,
|
|
3823
3823
|
adHocFilterValues: t
|
|
3824
3824
|
}) {
|
|
@@ -3830,57 +3830,58 @@ function aa({
|
|
|
3830
3830
|
return n;
|
|
3831
3831
|
}
|
|
3832
3832
|
function Re(e, t) {
|
|
3833
|
-
const n = t.shouldApplyDashboardFilters ?
|
|
3833
|
+
const n = t.shouldApplyDashboardFilters ? Wn(t.adHocFilterValues, t.selectedSheetId) : [], o = t.selectionFilterValues ?? [];
|
|
3834
3834
|
if (!t.dashboardInputContext)
|
|
3835
3835
|
return {
|
|
3836
3836
|
status: "ready",
|
|
3837
|
-
filterValues: [...n, ...t.inlineFilterValues],
|
|
3837
|
+
filterValues: [...n, ...t.inlineFilterValues, ...o],
|
|
3838
3838
|
mappingDispositions: []
|
|
3839
3839
|
};
|
|
3840
|
-
const
|
|
3841
|
-
(
|
|
3842
|
-
), r = new Set(
|
|
3843
|
-
o.map((d) => d.filter.id)
|
|
3840
|
+
const r = t.dashboardInputContext.inputs.filter(
|
|
3841
|
+
(u) => u.kind === "filter" && !!u.application
|
|
3844
3842
|
), i = new Set(
|
|
3843
|
+
r.map((u) => u.filter.id)
|
|
3844
|
+
), s = new Set(
|
|
3845
3845
|
t.dashboardInputContext.inputs.flatMap(
|
|
3846
|
-
(
|
|
3847
|
-
var
|
|
3848
|
-
return
|
|
3846
|
+
(u) => {
|
|
3847
|
+
var f;
|
|
3848
|
+
return u.kind === "filter" && ((f = u.compatibility) == null ? void 0 : f.source) === "cardInlineFilter" ? [u.filter.id] : [];
|
|
3849
3849
|
}
|
|
3850
3850
|
)
|
|
3851
|
-
),
|
|
3851
|
+
), a = aa({
|
|
3852
3852
|
dashboardInputContext: t.dashboardInputContext,
|
|
3853
3853
|
shouldApplyDashboardFilters: t.shouldApplyDashboardFilters
|
|
3854
|
-
}).filter((
|
|
3855
|
-
(
|
|
3856
|
-
),
|
|
3857
|
-
(
|
|
3858
|
-
),
|
|
3854
|
+
}).filter((u) => !i.has(u.filterId)), c = a.filter(
|
|
3855
|
+
(u) => !s.has(u.filterId)
|
|
3856
|
+
), l = a.filter(
|
|
3857
|
+
(u) => s.has(u.filterId)
|
|
3858
|
+
), d = Jo({
|
|
3859
3859
|
card: e,
|
|
3860
|
-
inputs:
|
|
3860
|
+
inputs: r,
|
|
3861
3861
|
resolvedInputs: t.dashboardInputContext.resolvedInputs,
|
|
3862
3862
|
activeFilterValues: t.dashboardInputContext.activeFilters,
|
|
3863
3863
|
shouldApplyDashboardFilters: t.shouldApplyDashboardFilters
|
|
3864
3864
|
});
|
|
3865
|
-
return
|
|
3865
|
+
return d.status === "blocked" ? {
|
|
3866
3866
|
status: "blocked",
|
|
3867
|
-
mappingDispositions:
|
|
3867
|
+
mappingDispositions: d.dispositions
|
|
3868
3868
|
} : {
|
|
3869
3869
|
status: "ready",
|
|
3870
3870
|
filterValues: [
|
|
3871
|
-
...
|
|
3871
|
+
...la({
|
|
3872
3872
|
dashboardInputFilterValues: [
|
|
3873
|
-
...
|
|
3874
|
-
...
|
|
3873
|
+
...c,
|
|
3874
|
+
...d.filterValues
|
|
3875
3875
|
],
|
|
3876
3876
|
adHocFilterValues: n
|
|
3877
3877
|
}),
|
|
3878
|
-
...
|
|
3878
|
+
...l,
|
|
3879
|
+
...o
|
|
3879
3880
|
],
|
|
3880
|
-
mappingDispositions:
|
|
3881
|
+
mappingDispositions: d.dispositions
|
|
3881
3882
|
};
|
|
3882
3883
|
}
|
|
3883
|
-
function
|
|
3884
|
+
function ca(e, t) {
|
|
3884
3885
|
const n = e.dashboardInputContext;
|
|
3885
3886
|
if (!n) return [];
|
|
3886
3887
|
const o = new Set(
|
|
@@ -3894,7 +3895,7 @@ function la(e, t) {
|
|
|
3894
3895
|
return s ? s.kind === "filter" && (!e.shouldApplyDashboardFilters && !sn(s) || o.has(s.id)) ? [] : [i.label] : [];
|
|
3895
3896
|
});
|
|
3896
3897
|
}
|
|
3897
|
-
function
|
|
3898
|
+
function da({
|
|
3898
3899
|
card: e,
|
|
3899
3900
|
cardConfig: t,
|
|
3900
3901
|
input: n,
|
|
@@ -3907,7 +3908,7 @@ function ca({
|
|
|
3907
3908
|
var p;
|
|
3908
3909
|
const c = n.dashboardInputContext ? n.dashboardInputContext.inputs.flatMap(
|
|
3909
3910
|
(y) => y.kind === "filter" ? [y.filter] : []
|
|
3910
|
-
) : [], l = Re(e, n), d =
|
|
3911
|
+
) : [], l = Re(e, n), d = ca(
|
|
3911
3912
|
n,
|
|
3912
3913
|
l.mappingDispositions
|
|
3913
3914
|
);
|
|
@@ -3927,7 +3928,7 @@ function ca({
|
|
|
3927
3928
|
mappingDispositions: l.mappingDispositions,
|
|
3928
3929
|
missingRequiredLabels: []
|
|
3929
3930
|
};
|
|
3930
|
-
const u =
|
|
3931
|
+
const u = $s({
|
|
3931
3932
|
card: e,
|
|
3932
3933
|
cardConfig: t,
|
|
3933
3934
|
filters: c,
|
|
@@ -3945,10 +3946,10 @@ function ca({
|
|
|
3945
3946
|
)
|
|
3946
3947
|
}), f = Q(c), m = !!(f && u.cardFilterValues.some(
|
|
3947
3948
|
(y) => y.filterId === f.id
|
|
3948
|
-
)), g = u.resolvedPrimaryDateField && !((p = e.sql) != null && p.trim()) ? u.dateComparisonPlan.inputs.length ?
|
|
3949
|
+
)), g = u.resolvedPrimaryDateField && !((p = e.sql) != null && p.trim()) ? u.dateComparisonPlan.inputs.length ? ia({
|
|
3949
3950
|
card: e,
|
|
3950
3951
|
resolution: u.dateComparisonPlan.resolution
|
|
3951
|
-
}) : m ?
|
|
3952
|
+
}) : m ? Jn(
|
|
3952
3953
|
e,
|
|
3953
3954
|
n.globalDateComparisonSelection
|
|
3954
3955
|
) : void 0 : void 0;
|
|
@@ -3961,7 +3962,7 @@ function ca({
|
|
|
3961
3962
|
};
|
|
3962
3963
|
}
|
|
3963
3964
|
function Yn(e, t, n) {
|
|
3964
|
-
const o =
|
|
3965
|
+
const o = da({
|
|
3965
3966
|
resolvedFields: t.resolvedDateFields,
|
|
3966
3967
|
...n,
|
|
3967
3968
|
card: e,
|
|
@@ -3980,7 +3981,7 @@ function Yn(e, t, n) {
|
|
|
3980
3981
|
dateComparisonInputs: r.dateComparisonInputs
|
|
3981
3982
|
}, compiledFilters: o };
|
|
3982
3983
|
}
|
|
3983
|
-
function
|
|
3984
|
+
function ua(e, t, n) {
|
|
3984
3985
|
const o = Yo(e), r = Yn(e, t, {
|
|
3985
3986
|
resolvedPrimaryDateField: n.resolvedPrimaryDateField,
|
|
3986
3987
|
timezone: n.calendarContext.tz,
|
|
@@ -3992,7 +3993,7 @@ function da(e, t, n) {
|
|
|
3992
3993
|
cardFilterValues: s,
|
|
3993
3994
|
resolvedPrimaryDateField: a,
|
|
3994
3995
|
globalDateComparison: c
|
|
3995
|
-
} = i, { queryKey: l, queryInputIdentity: d, paginationConfig: u } =
|
|
3996
|
+
} = i, { queryKey: l, queryInputIdentity: d, paginationConfig: u } = $i(
|
|
3996
3997
|
e,
|
|
3997
3998
|
r.queryContext,
|
|
3998
3999
|
n.calendarContext,
|
|
@@ -4033,18 +4034,18 @@ function da(e, t, n) {
|
|
|
4033
4034
|
}
|
|
4034
4035
|
};
|
|
4035
4036
|
}
|
|
4036
|
-
const Ot = [],
|
|
4037
|
-
function
|
|
4037
|
+
const Ot = [], fa = [], pa = {};
|
|
4038
|
+
function Rl(e, t) {
|
|
4038
4039
|
return {
|
|
4039
4040
|
sheetId: e.sheetId,
|
|
4040
4041
|
sectionId: e.sectionId,
|
|
4041
4042
|
documentFilterValues: e.documentFilterValues ?? Ot,
|
|
4042
|
-
documentControlDefinitions: e.documentControlDefinitions ??
|
|
4043
|
-
documentControlValues: e.documentControlValues ??
|
|
4043
|
+
documentControlDefinitions: e.documentControlDefinitions ?? fa,
|
|
4044
|
+
documentControlValues: e.documentControlValues ?? pa,
|
|
4044
4045
|
editorFilterValues: t ?? Ot
|
|
4045
4046
|
};
|
|
4046
4047
|
}
|
|
4047
|
-
function
|
|
4048
|
+
function ma({
|
|
4048
4049
|
card: e,
|
|
4049
4050
|
dashboard: t,
|
|
4050
4051
|
runtime: n,
|
|
@@ -4072,7 +4073,7 @@ function pa({
|
|
|
4072
4073
|
...n.documentFilterValues
|
|
4073
4074
|
];
|
|
4074
4075
|
return {
|
|
4075
|
-
card: a ? e :
|
|
4076
|
+
card: a ? e : ga(
|
|
4076
4077
|
e,
|
|
4077
4078
|
n.documentControlDefinitions
|
|
4078
4079
|
),
|
|
@@ -4090,7 +4091,7 @@ function pa({
|
|
|
4090
4091
|
dashboardInputContext: s
|
|
4091
4092
|
};
|
|
4092
4093
|
}
|
|
4093
|
-
function
|
|
4094
|
+
function ga(e, t) {
|
|
4094
4095
|
if (t.length === 0)
|
|
4095
4096
|
return e;
|
|
4096
4097
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -4103,7 +4104,7 @@ function ma(e, t) {
|
|
|
4103
4104
|
controls: Array.from(n.values())
|
|
4104
4105
|
};
|
|
4105
4106
|
}
|
|
4106
|
-
function
|
|
4107
|
+
function Kl({
|
|
4107
4108
|
card: e,
|
|
4108
4109
|
place: t,
|
|
4109
4110
|
source: n
|
|
@@ -4115,9 +4116,9 @@ function Rl({
|
|
|
4115
4116
|
inputContext: o.inputContext
|
|
4116
4117
|
};
|
|
4117
4118
|
}
|
|
4118
|
-
function
|
|
4119
|
+
function ya(e, t, n) {
|
|
4119
4120
|
return {
|
|
4120
|
-
calendarContext: n ??
|
|
4121
|
+
calendarContext: n ?? wr,
|
|
4121
4122
|
allowGlobalDateMinutePrecision: He(
|
|
4122
4123
|
e,
|
|
4123
4124
|
t
|
|
@@ -4126,17 +4127,17 @@ function ga(e, t, n) {
|
|
|
4126
4127
|
globalCacheConfig: e.globalCacheConfig
|
|
4127
4128
|
};
|
|
4128
4129
|
}
|
|
4129
|
-
function
|
|
4130
|
+
function ql(e, t) {
|
|
4130
4131
|
return eo(
|
|
4131
4132
|
e,
|
|
4132
4133
|
t,
|
|
4133
4134
|
t.allowGlobalDateMinutePrecision
|
|
4134
4135
|
);
|
|
4135
4136
|
}
|
|
4136
|
-
function
|
|
4137
|
+
function ba(e, t, n = {}) {
|
|
4137
4138
|
const o = Zn(e, t);
|
|
4138
4139
|
return {
|
|
4139
|
-
...
|
|
4140
|
+
...ua(e.card, e.context, {
|
|
4140
4141
|
resolvedPrimaryDateField: o,
|
|
4141
4142
|
calendarContext: t.calendarContext,
|
|
4142
4143
|
allowGlobalDateMinutePrecision: t.allowGlobalDateMinutePrecision,
|
|
@@ -4146,7 +4147,7 @@ function ya(e, t, n = {}) {
|
|
|
4146
4147
|
resolvedPrimaryDateField: o
|
|
4147
4148
|
};
|
|
4148
4149
|
}
|
|
4149
|
-
function
|
|
4150
|
+
function ha({
|
|
4150
4151
|
card: e,
|
|
4151
4152
|
place: t,
|
|
4152
4153
|
source: n,
|
|
@@ -4156,7 +4157,7 @@ function ba({
|
|
|
4156
4157
|
}) {
|
|
4157
4158
|
var p, y;
|
|
4158
4159
|
const { dashboard: s } = n, a = e.id, c = (h, I) => {
|
|
4159
|
-
var
|
|
4160
|
+
var M;
|
|
4160
4161
|
let v;
|
|
4161
4162
|
try {
|
|
4162
4163
|
const C = Ne(h);
|
|
@@ -4176,45 +4177,45 @@ function ba({
|
|
|
4176
4177
|
message: "Matrix field metadata is required.",
|
|
4177
4178
|
context: v
|
|
4178
4179
|
};
|
|
4179
|
-
const B =
|
|
4180
|
+
const B = Is(C.config.spec, v), V = r.filter(
|
|
4180
4181
|
(x) => x.field.source && B.some(
|
|
4181
4182
|
(E) => we(E, x.field.source)
|
|
4182
4183
|
)
|
|
4183
|
-
),
|
|
4184
|
-
|
|
4185
|
-
...
|
|
4186
|
-
presentation:
|
|
4184
|
+
), S = Js(h, V, v), { params: T } = w, O = T.dashboardInputContext;
|
|
4185
|
+
S.config = {
|
|
4186
|
+
...S.config,
|
|
4187
|
+
presentation: Bi(
|
|
4187
4188
|
h,
|
|
4188
|
-
|
|
4189
|
+
S.config,
|
|
4189
4190
|
{
|
|
4190
4191
|
controls: O ? [
|
|
4191
4192
|
...O.controlDefinitions,
|
|
4192
4193
|
...O.cardControlDefinitions
|
|
4193
4194
|
] : [
|
|
4194
|
-
...
|
|
4195
|
-
...
|
|
4195
|
+
...T.dashboardControls ?? s.controls ?? [],
|
|
4196
|
+
...T.card.controls ?? []
|
|
4196
4197
|
],
|
|
4197
4198
|
values: (O == null ? void 0 : O.controlValues) ?? {
|
|
4198
|
-
...
|
|
4199
|
-
...(
|
|
4199
|
+
...T.dashboardControlValues,
|
|
4200
|
+
...(M = T.cardControlValuesMap) == null ? void 0 : M[h.id]
|
|
4200
4201
|
}
|
|
4201
4202
|
},
|
|
4202
|
-
|
|
4203
|
+
V
|
|
4203
4204
|
)
|
|
4204
4205
|
};
|
|
4205
4206
|
const P = {
|
|
4206
4207
|
...h,
|
|
4207
|
-
config: { matrix:
|
|
4208
|
+
config: { matrix: S.config }
|
|
4208
4209
|
}, D = Ke(P, I, n, !1);
|
|
4209
4210
|
return {
|
|
4210
4211
|
status: "ready",
|
|
4211
4212
|
value: {
|
|
4212
4213
|
assembled: {
|
|
4213
4214
|
card: P,
|
|
4214
|
-
context: { ...D.context, resolvedDateFields:
|
|
4215
|
+
context: { ...D.context, resolvedDateFields: S.fields },
|
|
4215
4216
|
inputContext: D.inputContext
|
|
4216
4217
|
},
|
|
4217
|
-
matrix:
|
|
4218
|
+
matrix: S
|
|
4218
4219
|
}
|
|
4219
4220
|
};
|
|
4220
4221
|
} catch (C) {
|
|
@@ -4235,7 +4236,7 @@ function ba({
|
|
|
4235
4236
|
missingRequiredLabels: [],
|
|
4236
4237
|
message: l.message
|
|
4237
4238
|
};
|
|
4238
|
-
const { assembled: d, matrix: u } = l.value, f =
|
|
4239
|
+
const { assembled: d, matrix: u } = l.value, f = ya(
|
|
4239
4240
|
s,
|
|
4240
4241
|
o,
|
|
4241
4242
|
n.calendar
|
|
@@ -4246,7 +4247,7 @@ function ba({
|
|
|
4246
4247
|
if (I) {
|
|
4247
4248
|
const w = (p = m.dashboardInputContext) == null ? void 0 : p.inputs.find(
|
|
4248
4249
|
(D) => D.kind === "filter" && D.filter.id === g.id
|
|
4249
|
-
),
|
|
4250
|
+
), V = Zo(s, g).filter(
|
|
4250
4251
|
({ card: D, sheet: x }) => !w || Mr(w, {
|
|
4251
4252
|
cardId: D.id,
|
|
4252
4253
|
sheetId: x.id,
|
|
@@ -4255,40 +4256,40 @@ function ba({
|
|
|
4255
4256
|
).map(({ card: D, sheet: x }) => ({
|
|
4256
4257
|
card: D,
|
|
4257
4258
|
value: D.id === a ? l : c(D, { kind: "sheet", sheetId: x.id })
|
|
4258
|
-
})),
|
|
4259
|
-
|
|
4259
|
+
})), S = new Map(
|
|
4260
|
+
V.map(({ card: D, value: x }) => [
|
|
4260
4261
|
D.id,
|
|
4261
4262
|
x.status === "ready" ? x.value.assembled.card : null
|
|
4262
4263
|
])
|
|
4263
|
-
),
|
|
4264
|
-
|
|
4264
|
+
), T = new Map(
|
|
4265
|
+
V.map(({ card: D, value: x }) => {
|
|
4265
4266
|
var E;
|
|
4266
4267
|
return [
|
|
4267
4268
|
D.id,
|
|
4268
4269
|
x.status === "ready" ? (E = x.value.matrix) == null ? void 0 : E.fields : void 0
|
|
4269
4270
|
];
|
|
4270
4271
|
})
|
|
4271
|
-
), O =
|
|
4272
|
+
), O = V.flatMap(
|
|
4272
4273
|
({ card: D, value: x }) => {
|
|
4273
4274
|
const E = D.id, R = x.status === "ready" ? x.value.assembled.context : x.context;
|
|
4274
4275
|
if (!R) return [E];
|
|
4275
4276
|
const z = x.status === "ready" ? x.value.assembled.card : D;
|
|
4276
4277
|
try {
|
|
4277
|
-
const
|
|
4278
|
+
const W = Re(
|
|
4278
4279
|
z,
|
|
4279
4280
|
R.filterCompilationInput
|
|
4280
4281
|
);
|
|
4281
|
-
return
|
|
4282
|
+
return W.status === "blocked" || W.filterValues.some((le) => le.filterId === g.id) ? [E] : [];
|
|
4282
4283
|
} catch {
|
|
4283
|
-
return
|
|
4284
|
+
return S.set(E, null), [E];
|
|
4284
4285
|
}
|
|
4285
4286
|
}
|
|
4286
4287
|
), P = He(
|
|
4287
4288
|
s,
|
|
4288
4289
|
o,
|
|
4289
4290
|
g,
|
|
4290
|
-
|
|
4291
|
-
|
|
4291
|
+
S,
|
|
4292
|
+
T,
|
|
4292
4293
|
O
|
|
4293
4294
|
);
|
|
4294
4295
|
if ((y = P.unresolvedCardIds) != null && y.length)
|
|
@@ -4302,20 +4303,20 @@ function ba({
|
|
|
4302
4303
|
};
|
|
4303
4304
|
v = P.allEligibleTargetsAreDateTime;
|
|
4304
4305
|
}
|
|
4305
|
-
const
|
|
4306
|
-
if (
|
|
4306
|
+
const M = eo(d, f, v);
|
|
4307
|
+
if (M.status === "blocked")
|
|
4307
4308
|
return {
|
|
4308
4309
|
status: "blocked",
|
|
4309
|
-
cardId:
|
|
4310
|
-
mappingDispositions:
|
|
4311
|
-
reason:
|
|
4312
|
-
missingRequiredLabels:
|
|
4313
|
-
...
|
|
4314
|
-
...
|
|
4310
|
+
cardId: M.cardId,
|
|
4311
|
+
mappingDispositions: M.mappingDispositions,
|
|
4312
|
+
reason: M.reason,
|
|
4313
|
+
missingRequiredLabels: M.missingRequiredLabels,
|
|
4314
|
+
...M.reason === "requiredInput" ? { message: sa(M.missingRequiredLabels) } : {},
|
|
4315
|
+
...M.resolvedPrimaryDateField ? { resolvedPrimaryDateField: M.resolvedPrimaryDateField } : {}
|
|
4315
4316
|
};
|
|
4316
|
-
const C = i && !u ?
|
|
4317
|
+
const C = i && !u ? ba(d, f) : void 0;
|
|
4317
4318
|
return {
|
|
4318
|
-
...
|
|
4319
|
+
...M,
|
|
4319
4320
|
...u ? { matrix: u } : {},
|
|
4320
4321
|
// The whole request a card runs with: the contract's payload and its
|
|
4321
4322
|
// extras (server pagination, table totals) from the one extras owner,
|
|
@@ -4323,11 +4324,11 @@ function ba({
|
|
|
4323
4324
|
...(C == null ? void 0 : C.status) === "ready" ? {
|
|
4324
4325
|
request: {
|
|
4325
4326
|
...C.requestPayloadBase,
|
|
4326
|
-
...
|
|
4327
|
+
...ms({
|
|
4327
4328
|
card: d.card,
|
|
4328
4329
|
finalConfig: d.context.finalConfig,
|
|
4329
4330
|
documentSection: t.kind === "documentSection" ? {} : void 0,
|
|
4330
|
-
page:
|
|
4331
|
+
page: ps(d.card)
|
|
4331
4332
|
})
|
|
4332
4333
|
}
|
|
4333
4334
|
} : {}
|
|
@@ -4343,7 +4344,7 @@ function ba({
|
|
|
4343
4344
|
};
|
|
4344
4345
|
}
|
|
4345
4346
|
}
|
|
4346
|
-
function
|
|
4347
|
+
function Ca(e) {
|
|
4347
4348
|
const t = e.editor ? {
|
|
4348
4349
|
...e.inlineFilterValuesMap,
|
|
4349
4350
|
...Object.fromEntries(
|
|
@@ -4362,8 +4363,8 @@ function ha(e) {
|
|
|
4362
4363
|
}
|
|
4363
4364
|
function Ke(e, t, n, o) {
|
|
4364
4365
|
var l, d;
|
|
4365
|
-
const { dashboard: r } = n, i =
|
|
4366
|
-
...
|
|
4366
|
+
const { dashboard: r } = n, i = Ca(n), s = t.kind === "documentSection" ? {
|
|
4367
|
+
...ma({
|
|
4367
4368
|
card: e,
|
|
4368
4369
|
dashboard: r,
|
|
4369
4370
|
runtime: t.section,
|
|
@@ -4372,7 +4373,7 @@ function Ke(e, t, n, o) {
|
|
|
4372
4373
|
}),
|
|
4373
4374
|
selectedSheetId: t.section.sheetId,
|
|
4374
4375
|
includeAuthoredFilters: o
|
|
4375
|
-
} :
|
|
4376
|
+
} : Ia(e, t.sheetId, n, i, o), a = oa(s), c = (l = e.config) == null ? void 0 : l.rowLimit;
|
|
4376
4377
|
return (d = e.sql) != null && d.trim() && c && Xn(r, e.id) && (a.sqlRowLimit = c), {
|
|
4377
4378
|
card: s.card,
|
|
4378
4379
|
params: s,
|
|
@@ -4383,7 +4384,7 @@ function Ke(e, t, n, o) {
|
|
|
4383
4384
|
function Xn(e, t) {
|
|
4384
4385
|
return (e.variables ?? []).some((n) => n.id === t);
|
|
4385
4386
|
}
|
|
4386
|
-
function
|
|
4387
|
+
function Ia(e, t, n, o, r) {
|
|
4387
4388
|
var l, d;
|
|
4388
4389
|
const { dashboard: i } = n, s = Xn(i, e.id), a = s ? void 0 : n.transientContexts, c = Gt({
|
|
4389
4390
|
dashboard: i,
|
|
@@ -4436,7 +4437,7 @@ function eo(e, t, n) {
|
|
|
4436
4437
|
resolvedPrimaryDateField: r
|
|
4437
4438
|
};
|
|
4438
4439
|
}
|
|
4439
|
-
function
|
|
4440
|
+
function Nl({
|
|
4440
4441
|
dashboard: e,
|
|
4441
4442
|
dashboardInputValues: t,
|
|
4442
4443
|
adHocFilterValues: n,
|
|
@@ -4450,13 +4451,13 @@ function ql({
|
|
|
4450
4451
|
}) {
|
|
4451
4452
|
const d = e ? [...er(e)] : void 0, u = r ?? null, f = (I) => {
|
|
4452
4453
|
var v;
|
|
4453
|
-
return e ?
|
|
4454
|
+
return e ? Sa({
|
|
4454
4455
|
dashboard: e,
|
|
4455
4456
|
runtimeValues: { dashboardInputValues: t },
|
|
4456
4457
|
adHocFilterValues: n,
|
|
4457
4458
|
sheetId: I,
|
|
4458
4459
|
sheetKind: Ht(
|
|
4459
|
-
(v = e.sheets) == null ? void 0 : v.find((
|
|
4460
|
+
(v = e.sheets) == null ? void 0 : v.find((M) => M.id === I)
|
|
4460
4461
|
) ? "document" : "dashboard",
|
|
4461
4462
|
calendar: o
|
|
4462
4463
|
}) : [];
|
|
@@ -4478,7 +4479,7 @@ function ql({
|
|
|
4478
4479
|
const y = tr({
|
|
4479
4480
|
filterDefinitions: d,
|
|
4480
4481
|
filterValues: m
|
|
4481
|
-
}), h =
|
|
4482
|
+
}), h = Gs({
|
|
4482
4483
|
filters: d,
|
|
4483
4484
|
filterValues: y,
|
|
4484
4485
|
dashboard: e,
|
|
@@ -4491,7 +4492,7 @@ function ql({
|
|
|
4491
4492
|
controlValues: g
|
|
4492
4493
|
};
|
|
4493
4494
|
}
|
|
4494
|
-
function
|
|
4495
|
+
function Ll({
|
|
4495
4496
|
dashboard: e,
|
|
4496
4497
|
cardId: t,
|
|
4497
4498
|
transientContexts: n,
|
|
@@ -4511,14 +4512,14 @@ function Nl({
|
|
|
4511
4512
|
editor: y,
|
|
4512
4513
|
withRequest: h
|
|
4513
4514
|
}) {
|
|
4514
|
-
var
|
|
4515
|
+
var M;
|
|
4515
4516
|
if (!e)
|
|
4516
4517
|
return null;
|
|
4517
|
-
m && !ht(e, t) && g && (e = { ...e, sheets: (
|
|
4518
|
+
m && !ht(e, t) && g && (e = { ...e, sheets: (M = e.sheets) == null ? void 0 : M.map((C) => C.id === g ? { ...C, cards: [...C.cards ?? [], m] } : C) });
|
|
4518
4519
|
const I = ht(e, t);
|
|
4519
4520
|
if (!I)
|
|
4520
4521
|
return null;
|
|
4521
|
-
const v =
|
|
4522
|
+
const v = ha({
|
|
4522
4523
|
card: m ?? I.card,
|
|
4523
4524
|
place: p ? { kind: "documentSection", section: p } : { kind: "sheet", sheetId: I.sheet.id },
|
|
4524
4525
|
source: {
|
|
@@ -4553,7 +4554,7 @@ function Nl({
|
|
|
4553
4554
|
...v.request ? { request: v.request } : {}
|
|
4554
4555
|
};
|
|
4555
4556
|
}
|
|
4556
|
-
function
|
|
4557
|
+
function va(e, t, n) {
|
|
4557
4558
|
const o = t === "date" && "relativeMeta" in e ? pr(e.relativeMeta) : void 0;
|
|
4558
4559
|
if (!o) return { values: e.values };
|
|
4559
4560
|
const r = ir(o, n ?? void 0), i = e.operation === "between" || e.operation === "not between";
|
|
@@ -4563,7 +4564,7 @@ function Ia(e, t, n) {
|
|
|
4563
4564
|
..."temporalPrecision" in e && e.temporalPrecision === "minute" ? { temporalPrecision: "minute" } : {}
|
|
4564
4565
|
};
|
|
4565
4566
|
}
|
|
4566
|
-
function
|
|
4567
|
+
function Fa(e, t, n) {
|
|
4567
4568
|
const o = t, r = or(e);
|
|
4568
4569
|
return rr({
|
|
4569
4570
|
definition: e,
|
|
@@ -4576,7 +4577,7 @@ function va(e, t, n) {
|
|
|
4576
4577
|
dataType: e.dataType,
|
|
4577
4578
|
fieldMeta: e.fieldMeta,
|
|
4578
4579
|
semanticContext: e.semanticContext,
|
|
4579
|
-
...
|
|
4580
|
+
...va(o, r, n)
|
|
4580
4581
|
}
|
|
4581
4582
|
});
|
|
4582
4583
|
}
|
|
@@ -4585,13 +4586,17 @@ function to(e, t, n) {
|
|
|
4585
4586
|
let r = {};
|
|
4586
4587
|
const i = [], s = [];
|
|
4587
4588
|
for (const a of t ?? []) {
|
|
4589
|
+
if (Pr(a.filterId)) {
|
|
4590
|
+
s.push(a.filterId);
|
|
4591
|
+
continue;
|
|
4592
|
+
}
|
|
4588
4593
|
const c = o.findFilterInput({ filterId: a.filterId }), l = c == null ? void 0 : c.input;
|
|
4589
4594
|
if (l || i.push(a), !l || l.runtimeScope === "perCard" || l.runtimeScope === "perDocumentSection") {
|
|
4590
4595
|
s.push(a.filterId);
|
|
4591
4596
|
continue;
|
|
4592
4597
|
}
|
|
4593
4598
|
const d = nr(
|
|
4594
|
-
|
|
4599
|
+
Fa(l.filter, a, n.calendar)
|
|
4595
4600
|
);
|
|
4596
4601
|
if (d) {
|
|
4597
4602
|
if (l.runtimeScope === "shared") {
|
|
@@ -4609,7 +4614,7 @@ function to(e, t, n) {
|
|
|
4609
4614
|
}
|
|
4610
4615
|
return { slots: r, adHocFilterValues: i, droppedFilterIds: s };
|
|
4611
4616
|
}
|
|
4612
|
-
function
|
|
4617
|
+
function Sa(e) {
|
|
4613
4618
|
const { dashboard: t, sheetId: n } = e, o = [];
|
|
4614
4619
|
if (n)
|
|
4615
4620
|
for (const { input: r } of sr(t, n, e.sheetKind)) {
|
|
@@ -4622,9 +4627,9 @@ function Fa(e) {
|
|
|
4622
4627
|
});
|
|
4623
4628
|
i.kind === "filter" && i.filterValue && o.push(i.filterValue);
|
|
4624
4629
|
}
|
|
4625
|
-
return [...o, ...
|
|
4630
|
+
return [...o, ...Wn(e.adHocFilterValues, n)];
|
|
4626
4631
|
}
|
|
4627
|
-
function
|
|
4632
|
+
function jl(e, t) {
|
|
4628
4633
|
switch (t.runtimeScope) {
|
|
4629
4634
|
case "shared":
|
|
4630
4635
|
return [{}];
|
|
@@ -4660,7 +4665,7 @@ function Bt(e) {
|
|
|
4660
4665
|
)
|
|
4661
4666
|
];
|
|
4662
4667
|
}
|
|
4663
|
-
function
|
|
4668
|
+
function Da(e, t) {
|
|
4664
4669
|
var n, o;
|
|
4665
4670
|
return {
|
|
4666
4671
|
sheetId: e.id,
|
|
@@ -4671,7 +4676,7 @@ function Sa(e, t) {
|
|
|
4671
4676
|
)) == null ? void 0 : o.id
|
|
4672
4677
|
};
|
|
4673
4678
|
}
|
|
4674
|
-
function
|
|
4679
|
+
function Ta(e, t, n, o) {
|
|
4675
4680
|
var l, d, u;
|
|
4676
4681
|
const r = {}, i = (l = e.preferences) == null ? void 0 : l.textVisualOptions;
|
|
4677
4682
|
if (!i) return r;
|
|
@@ -4679,7 +4684,7 @@ function Da(e, t, n, o) {
|
|
|
4679
4684
|
// Authoring: carried drill context never applies to a dashboard being edited.
|
|
4680
4685
|
transientContexts: void 0,
|
|
4681
4686
|
dashboard: n,
|
|
4682
|
-
...
|
|
4687
|
+
...Da(o, t),
|
|
4683
4688
|
card: t,
|
|
4684
4689
|
runtimeValues: {},
|
|
4685
4690
|
// Aliases only: no input value is read.
|
|
@@ -4693,7 +4698,7 @@ function Da(e, t, n, o) {
|
|
|
4693
4698
|
} : f;
|
|
4694
4699
|
return m && (r[f.variableName] = g), g;
|
|
4695
4700
|
}, c = (f) => {
|
|
4696
|
-
Object.assign(f,
|
|
4701
|
+
Object.assign(f, Jt(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);
|
|
4697
4702
|
};
|
|
4698
4703
|
return (d = i.content) == null || d.forEach((f) => {
|
|
4699
4704
|
f.type === "variable" && (f.ref = a(f.ref));
|
|
@@ -4701,7 +4706,7 @@ function Da(e, t, n, o) {
|
|
|
4701
4706
|
f.type === "list" ? f.items.forEach((m) => m.forEach(c)) : f.children.forEach(c);
|
|
4702
4707
|
}), r;
|
|
4703
4708
|
}
|
|
4704
|
-
function
|
|
4709
|
+
function Ma(e, t) {
|
|
4705
4710
|
var i;
|
|
4706
4711
|
const n = Bt(e);
|
|
4707
4712
|
if (!n.some((s) => {
|
|
@@ -4711,7 +4716,7 @@ function Ta(e, t) {
|
|
|
4711
4716
|
return e;
|
|
4712
4717
|
const o = ye(e), r = Bt(o);
|
|
4713
4718
|
for (let s = 0; s < r.length; s++) {
|
|
4714
|
-
const a =
|
|
4719
|
+
const a = Ta(
|
|
4715
4720
|
r[s],
|
|
4716
4721
|
n[s],
|
|
4717
4722
|
t,
|
|
@@ -4719,140 +4724,140 @@ function Ta(e, t) {
|
|
|
4719
4724
|
);
|
|
4720
4725
|
(i = e.frames) != null && i.some(
|
|
4721
4726
|
(c) => c.visualId && c.cards.some((l) => l.id === r[s].id)
|
|
4722
|
-
) && (r[s].linkedReferenceOverrides =
|
|
4727
|
+
) && (r[s].linkedReferenceOverrides = Zr(
|
|
4723
4728
|
r[s].linkedReferenceOverrides,
|
|
4724
4729
|
{ inputAliases: a }
|
|
4725
4730
|
));
|
|
4726
4731
|
}
|
|
4727
4732
|
return o;
|
|
4728
4733
|
}
|
|
4729
|
-
function
|
|
4734
|
+
function Va(e) {
|
|
4730
4735
|
var n;
|
|
4731
4736
|
const t = (n = e.sheets) == null ? void 0 : n.map(
|
|
4732
|
-
(o) =>
|
|
4737
|
+
(o) => Ma(o, e)
|
|
4733
4738
|
);
|
|
4734
4739
|
return t && t.some((o, r) => o !== e.sheets[r]) ? { ...e, sheets: t } : e;
|
|
4735
4740
|
}
|
|
4736
|
-
function
|
|
4741
|
+
function ka(e) {
|
|
4737
4742
|
const t = q(e);
|
|
4738
4743
|
return t.issues.length === 0 && !t.needsUpgrade ? e : t.issues.length ? t.toStoredDashboard() : q(
|
|
4739
|
-
|
|
4744
|
+
Va(e)
|
|
4740
4745
|
).toStoredDashboard();
|
|
4741
4746
|
}
|
|
4742
4747
|
export {
|
|
4743
|
-
|
|
4748
|
+
qr as $,
|
|
4744
4749
|
to as A,
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4750
|
+
Sa as B,
|
|
4751
|
+
jl as C,
|
|
4752
|
+
ra as D,
|
|
4753
|
+
Wn as E,
|
|
4754
|
+
Zr as F,
|
|
4755
|
+
$a as G,
|
|
4756
|
+
li as H,
|
|
4757
|
+
hs as I,
|
|
4753
4758
|
Mt as J,
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4759
|
+
pl as K,
|
|
4760
|
+
ei as L,
|
|
4761
|
+
dl as M,
|
|
4762
|
+
Vi as N,
|
|
4763
|
+
Mi as O,
|
|
4764
|
+
Di as P,
|
|
4765
|
+
ol as Q,
|
|
4761
4766
|
In as R,
|
|
4762
4767
|
Ee as S,
|
|
4763
|
-
|
|
4764
|
-
|
|
4768
|
+
Xa as T,
|
|
4769
|
+
Pi as U,
|
|
4765
4770
|
U as V,
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4771
|
+
ll as W,
|
|
4772
|
+
Oi as X,
|
|
4773
|
+
cl as Y,
|
|
4769
4774
|
tt as Z,
|
|
4770
4775
|
et as _,
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4776
|
+
Ks as a,
|
|
4777
|
+
rl as a0,
|
|
4778
|
+
al as a1,
|
|
4779
|
+
ki as a2,
|
|
4780
|
+
tl as a3,
|
|
4781
|
+
ql as a4,
|
|
4782
|
+
ya as a5,
|
|
4778
4783
|
Bt as a6,
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4784
|
+
Da as a7,
|
|
4785
|
+
Ta as a8,
|
|
4786
|
+
Ma as a9,
|
|
4782
4787
|
Ja as aA,
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
+
el as aB,
|
|
4789
|
+
ha as aC,
|
|
4790
|
+
pi as aD,
|
|
4791
|
+
Za as aE,
|
|
4792
|
+
Al as aF,
|
|
4788
4793
|
dn as aG,
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
+
il as aH,
|
|
4795
|
+
Bl as aI,
|
|
4796
|
+
Il as aJ,
|
|
4797
|
+
Ds as aK,
|
|
4798
|
+
Ol as aL,
|
|
4794
4799
|
zn as aM,
|
|
4795
4800
|
Re as aN,
|
|
4796
|
-
|
|
4797
|
-
|
|
4801
|
+
nl as aO,
|
|
4802
|
+
Ws as aP,
|
|
4798
4803
|
Gn as aQ,
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4804
|
+
We as aR,
|
|
4805
|
+
sl as aS,
|
|
4806
|
+
gl as aT,
|
|
4807
|
+
cs as aU,
|
|
4803
4808
|
te as aV,
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4809
|
+
Fl as aW,
|
|
4810
|
+
wl as aX,
|
|
4811
|
+
Pl as aY,
|
|
4812
|
+
Wi as aa,
|
|
4813
|
+
xl as ab,
|
|
4814
|
+
Vl as ac,
|
|
4810
4815
|
Pn as ad,
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4816
|
+
kl as ae,
|
|
4817
|
+
Ki as af,
|
|
4818
|
+
sa as ag,
|
|
4819
|
+
Nl as ah,
|
|
4820
|
+
ea as ai,
|
|
4821
|
+
_l as aj,
|
|
4822
|
+
Kl as ak,
|
|
4823
|
+
us as al,
|
|
4824
|
+
fs as am,
|
|
4825
|
+
ba as an,
|
|
4826
|
+
yl as ao,
|
|
4827
|
+
bl as ap,
|
|
4828
|
+
ms as aq,
|
|
4824
4829
|
_e as ar,
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
+
ds as as,
|
|
4831
|
+
gs as at,
|
|
4832
|
+
hl as au,
|
|
4833
|
+
Rl as av,
|
|
4834
|
+
El as aw,
|
|
4830
4835
|
se as ax,
|
|
4831
4836
|
pn as ay,
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4837
|
+
Ya as az,
|
|
4838
|
+
ul as b,
|
|
4839
|
+
$i as c,
|
|
4840
|
+
ta as d,
|
|
4841
|
+
Yr as e,
|
|
4842
|
+
ml as f,
|
|
4843
|
+
Cl as g,
|
|
4844
|
+
Ml as h,
|
|
4845
|
+
fl as i,
|
|
4846
|
+
Dl as j,
|
|
4842
4847
|
ye as k,
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4848
|
+
Rs as l,
|
|
4849
|
+
Ll as m,
|
|
4850
|
+
Tl as n,
|
|
4846
4851
|
ot as o,
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4852
|
+
vl as p,
|
|
4853
|
+
Fa as q,
|
|
4854
|
+
Sl as r,
|
|
4855
|
+
Cs as s,
|
|
4856
|
+
Is as t,
|
|
4857
|
+
ti as u,
|
|
4858
|
+
ri as v,
|
|
4854
4859
|
fn as w,
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4860
|
+
Wa as x,
|
|
4861
|
+
si as y,
|
|
4862
|
+
ka as z
|
|
4858
4863
|
};
|