react-semaphor 0.1.556 → 0.1.557
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/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +19 -20
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +28 -29
- package/dist/briefings/index.js +55 -56
- package/dist/chunks/{assistant-chat-C7Acww1T.js → assistant-chat-WMTpYirZ.js} +78 -80
- package/dist/chunks/{bookmark-state-7iZErWnR.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/{comparison-window-caption-BseG5aOZ.js → comparison-window-caption-Dc7BaCMz.js} +186 -189
- package/dist/chunks/{custom-visual-inputs-ChuKjx27.js → custom-visual-inputs-CxYI-gFa.js} +1 -1
- package/dist/chunks/{dashboard-BU6rE5kV.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-qrYd2zkN.js → dashboard-briefing-launcher-C4EmOfxs.js} +147 -149
- package/dist/chunks/{dashboard-controls-BsapXI2H.js → dashboard-controls-DBWykmvL.js} +170 -172
- package/dist/chunks/{dashboard-json-CJqPqYnI.js → dashboard-json-DiX-p0F7.js} +20 -21
- package/dist/chunks/{document-dashboard-inputs-BNSprf5_.js → document-dashboard-inputs-DP5hquBR.js} +30 -30
- package/dist/chunks/{edit-dashboard-visual-CjAdV-WG.js → edit-dashboard-visual-n1jLV_7V.js} +4773 -4802
- package/dist/chunks/{filter-reach-copy-BTrqtFkh.js → filter-reach-copy-BB9iakLA.js} +147 -148
- package/dist/chunks/{filter-value-text-CJTJDCym.js → filter-value-text-CUBpotVN.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-CTVf3dG3.js → global-date-filter-utils-Cc5tqkoW.js} +585 -591
- package/dist/chunks/{index-B_vIRa-q.js → index-CgjhzkKM.js} +69 -70
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-Cg0ioFGQ.js → matrix-analytical-definition-4GTUDheD.js} +3 -3
- package/dist/chunks/{matrix-card-yYibXSw1.js → matrix-card-fS_4O7zA.js} +2 -2
- package/dist/chunks/{matrix-member-presentation-DEEauKXC.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js} +21 -21
- package/dist/chunks/{metric-comparison-BfcmwxM1.js → metric-comparison-C8LY7GG5.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-C2kjsCDf.js → pivot-result-contract-expectations-DMk-mKhG.js} +444 -395
- package/dist/chunks/{pivot-result-identity-CWi5WrrY.js → pivot-result-identity-CrQ54Xbj.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-DWzLIHc3.js → raw-temporal-presentation-DdEpgPRB.js} +24 -25
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BgM-iNWB.js → report-runtime-context-CohdtiMg.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Df8V5QHW.js → resolve-dashboard-input-context-Djl3kCFL.js} +224 -226
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-VvXI6r03.js → saved-dashboard-context-umlQFevH.js} +8 -8
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-fejZmdq9.js → semaphor-ready-indicator-4cOp6sla.js} +40458 -43400
- package/dist/chunks/{shelf-drop-preview-context-BuTCXe-S.js → shelf-drop-preview-context-DAtRuvR7.js} +6 -6
- package/dist/chunks/{source-entity-resolution-B46EZIzX.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-Bq92UGId.js → switch-9CJt5EF_.js} +1430 -1341
- package/dist/chunks/{table-export-sheet-noKl8-en.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-PpINOzw8.js → table-settings-DF1gdVQR.js} +2 -2
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types--0bgRCaO.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Cz-ve64t.js → use-create-flow-overlay-state-esyMT9vU.js} +124 -126
- package/dist/chunks/{validators-CZo_H4E6.js → validators-hmfNNQz8.js} +5 -5
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +130 -131
- package/dist/data-app-sdk/index.js +788 -4153
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.js +230 -233
- package/dist/index.js +216 -217
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +6 -6
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/package.json +1 -3
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +0 -56
- package/dist/chunks/raw-temporal-contract-CjHaUIsE.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_wrbIQt.js +0 -2261
- package/dist/chunks/selection-reducer-By4CSmEF.js +0 -111
- package/dist/chunks/temporal-bucket-DzyadxVY.js +0 -2071
- package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +0 -879
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { canonicalizeSupportedCurrencyCode as Kt } from "../value-format-preferences/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import { B as tr, J as nr, n as ir, q as rr, t as V, p as Zt, C as Ee, e as or, c as en, H as ar, z as tn, K as sr, M as nn } from "./table-settings-
|
|
4
|
-
import { a8 as U, ao as ie, ab as H, Q as lr, B as cr, E as ur, ad as yt, q as rn, Z as dr, c as Q, C as fr, v as pr } from "./validators-
|
|
5
|
-
import {
|
|
2
|
+
import { e6 as di, P as fi, e7 as j, e8 as ke, b4 as pi, aj as mi, aC as yi, g as gi, b2 as bi, r as oe, e9 as hi, cW as Ii, aS as Ci, ea as vi, du as Ot, eb as Ti, dv as Fi, bZ as qt, s as B, dm as Rt, n as Si, ec as xi, bT as Vt, bV as Lt, bD as Di, bY as ki, bW as ft, bX as Mi, bG as Ai, bF as Ei, bS as wi, bQ as Ni, v as _i, b as qe, ed as jt, cO as zt, ee as Bi, b6 as $t, b7 as Pi, b0 as Re, b5 as Ut, ef as Ki, eg as Oi, cP as qi, a as Ri, Y as K, a2 as Gt, a3 as Qt, c_ as Wt, cY as pt, O as Ht, eh as Vi, bs as Li, dI as Yt, dq as Me, dH as ji, ei as zi, i as Ve, bb as Le, M as $i, b8 as Ui, bc as Gi, bw as Qi, d as Jt, ej as Wi, d2 as je, d1 as Ae, ek as Hi, dX as Xt, cZ as Yi, el as mt, em as Ji, en as Xi, d5 as Zi, eo as er } from "./global-date-filter-utils-Cc5tqkoW.js";
|
|
3
|
+
import { B as tr, J as nr, n as ir, q as rr, t as V, p as Zt, C as Ee, e as or, c as en, H as ar, z as tn, K as sr, M as nn } from "./table-settings-DF1gdVQR.js";
|
|
4
|
+
import { a8 as U, ao as ie, ab as H, Q as lr, B as cr, E as ur, ad as yt, q as rn, Z as dr, c as Q, C as fr, v as pr } from "./validators-hmfNNQz8.js";
|
|
5
|
+
import { b as Ce, u as ze, v as mr, d as yr, t as we } from "./matrix-operation-contract-CpgLZ7E5.js";
|
|
6
6
|
import { S as $e } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
7
7
|
import { ZodError as gr } from "zod";
|
|
8
|
-
import {
|
|
9
|
-
import { i as ae } from "./temporal-
|
|
10
|
-
import { i as
|
|
11
|
-
import { z as vr } from "./temporal-input-presentation-CJWS4d0L.js";
|
|
8
|
+
import { j as br, B as hr, C as on, D as ve, f as Y, E as Ir, F as re, G as Cr, k as vr } from "./pivot-result-contract-expectations-DMk-mKhG.js";
|
|
9
|
+
import { i as ae, ae as Tr } from "./temporal-input-presentation-DoSniQj1.js";
|
|
10
|
+
import { i as Fr, b as an } from "./matrix-card-fS_4O7zA.js";
|
|
12
11
|
import "./index-dIV-Gdsb.js";
|
|
13
12
|
import "./index-CuHybtft.js";
|
|
14
13
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
15
|
-
import { g as
|
|
16
|
-
import { D as
|
|
17
|
-
import { r as
|
|
18
|
-
import { p as wr, d as Nr } from "./pivot-result-contract-expectations-fKBHFPfz.js";
|
|
14
|
+
import { g as Sr, f as xr, a as Dr, h as kr, j as Mr, e as Ar } from "./matrix-analytical-definition-4GTUDheD.js";
|
|
15
|
+
import { D as Er, C as sn, r as z, a as wr } from "./metric-comparison-C8LY7GG5.js";
|
|
16
|
+
import { r as Nr } from "./pivot-result-identity-CrQ54Xbj.js";
|
|
19
17
|
import { isPdfTableCardType as _r, FAST_PDF_POLICY as Br } from "../pdf-export-policy/index.js";
|
|
20
|
-
import { k as Pr, c as gt, g as Kr, p as bt, a as Or } from "./source-entity-resolution-
|
|
21
|
-
const
|
|
18
|
+
import { k as Pr, c as gt, g as Kr, p as bt, a as Or } from "./source-entity-resolution-DXW1HpKf.js";
|
|
19
|
+
const qr = (e, t) => {
|
|
22
20
|
const n = {};
|
|
23
21
|
if (e === null || t === null)
|
|
24
22
|
return t;
|
|
@@ -37,7 +35,7 @@ const Rr = (e, t) => {
|
|
|
37
35
|
if (Array.isArray(o) && Array.isArray(a))
|
|
38
36
|
n[r] = a;
|
|
39
37
|
else if (ht(o) && ht(a)) {
|
|
40
|
-
const s =
|
|
38
|
+
const s = qr(o, a);
|
|
41
39
|
Object.keys(s).length > 0 && (n[r] = s);
|
|
42
40
|
} else
|
|
43
41
|
n[r] = a;
|
|
@@ -65,9 +63,9 @@ const Rr = (e, t) => {
|
|
|
65
63
|
for (const n in e)
|
|
66
64
|
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = me(e[n]));
|
|
67
65
|
return t;
|
|
68
|
-
},
|
|
66
|
+
}, Rr = /^(?:[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;
|
|
69
67
|
function Vr(e) {
|
|
70
|
-
return typeof e == "string" &&
|
|
68
|
+
return typeof e == "string" && Rr.test(e);
|
|
71
69
|
}
|
|
72
70
|
function Lr(e) {
|
|
73
71
|
if (!Vr(e))
|
|
@@ -249,7 +247,7 @@ function Xr(e, t) {
|
|
|
249
247
|
i[o] = un(a, t);
|
|
250
248
|
return Object.keys(i).length && (n.inputAliases = i), n;
|
|
251
249
|
}
|
|
252
|
-
function
|
|
250
|
+
function El(e, t) {
|
|
253
251
|
var r, o, a, s;
|
|
254
252
|
const n = me(e);
|
|
255
253
|
n.controlBindings = Jr(
|
|
@@ -312,7 +310,7 @@ function dn(e) {
|
|
|
312
310
|
function fn(e) {
|
|
313
311
|
return j(e) === "boolean";
|
|
314
312
|
}
|
|
315
|
-
function
|
|
313
|
+
function wl(e, t, n, i, r, o, a) {
|
|
316
314
|
const { measures: s, dimensions: l } = e, u = s == null ? void 0 : s.map(
|
|
317
315
|
(p) => `${p.calc}(${p.name}) as ${p.calc}_${p.name.replace(/"/g, "")}`
|
|
318
316
|
).join(", "), c = (l == null ? void 0 : l.join(", ")) || "";
|
|
@@ -330,7 +328,7 @@ function _l(e, t, n, i, r, o, a) {
|
|
|
330
328
|
if (u && !c)
|
|
331
329
|
return m = `SELECT ${u} FROM ${f} LIMIT 100`, m;
|
|
332
330
|
}
|
|
333
|
-
function
|
|
331
|
+
function Nl(e, t, n = "AVG") {
|
|
334
332
|
var o, a, s, l;
|
|
335
333
|
let i = {};
|
|
336
334
|
const r = ye(e.column_name);
|
|
@@ -363,12 +361,12 @@ function Bl(e, t, n = "AVG") {
|
|
|
363
361
|
function eo(e) {
|
|
364
362
|
return Ue(e.dataType) ? "string" : Ge(e.dataType) ? "number" : dn(e.dataType) ? "date" : fn(e.dataType) ? "boolean" : "string";
|
|
365
363
|
}
|
|
366
|
-
function
|
|
364
|
+
function _l(e) {
|
|
367
365
|
let t;
|
|
368
366
|
const n = e.data_type.toLowerCase();
|
|
369
367
|
return Ue(n) ? t = "T" : Ge(n) ? t = "#" : dn(n) ? t = "D" : fn(n) ? t = "B" : t = "?", t;
|
|
370
368
|
}
|
|
371
|
-
function
|
|
369
|
+
function Bl(e, t) {
|
|
372
370
|
const { dimensions: n, measures: i } = t, r = n == null ? void 0 : n.includes(e.column_name), o = i == null ? void 0 : i.some((a) => a.name === e.column_name);
|
|
373
371
|
return r || o;
|
|
374
372
|
}
|
|
@@ -382,7 +380,7 @@ function no({
|
|
|
382
380
|
}) {
|
|
383
381
|
return n === "S3" || n === "API" ? t : e ? `${e}.${t}` : t;
|
|
384
382
|
}
|
|
385
|
-
function
|
|
383
|
+
function Pl({
|
|
386
384
|
schemaName: e,
|
|
387
385
|
tableName: t,
|
|
388
386
|
modelName: n,
|
|
@@ -421,7 +419,7 @@ function pn({
|
|
|
421
419
|
const io = (e) => {
|
|
422
420
|
const t = new Date(e);
|
|
423
421
|
return !isNaN(t.getTime());
|
|
424
|
-
}, ro = (e) => !isNaN(Number(e)) && !isNaN(parseFloat(e)),
|
|
422
|
+
}, ro = (e) => !isNaN(Number(e)) && !isNaN(parseFloat(e)), Kl = (e) => {
|
|
425
423
|
let t;
|
|
426
424
|
return typeof e == "number" ? t = "number" : typeof e == "string" ? io(e) ? t = "date" : ro(e) ? t = "number" : t = "string" : typeof e == "boolean" ? t = "boolean" : e instanceof Date ? t = "date" : t = "unknown", t;
|
|
427
425
|
}, oo = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
|
|
@@ -445,7 +443,7 @@ function mn(e) {
|
|
|
445
443
|
const r = i.card.type === "matrixTable" && gi(i.card).status !== "ready";
|
|
446
444
|
return { status: "routed", card: i.card, gaps: r ? [...i.gaps, ...so] : i.gaps };
|
|
447
445
|
}
|
|
448
|
-
function
|
|
446
|
+
function Ol(e) {
|
|
449
447
|
if (!e.cards) return e;
|
|
450
448
|
const t = e.cards.map((n) => mn(n).card);
|
|
451
449
|
return t.every((n, i) => n === e.cards[i]) ? e : { ...e, cards: t };
|
|
@@ -501,7 +499,7 @@ function fo(e) {
|
|
|
501
499
|
function po(e, t) {
|
|
502
500
|
return e.name === t.name && e.qualifiedEntityName === t.qualifiedEntityName;
|
|
503
501
|
}
|
|
504
|
-
function
|
|
502
|
+
function ql(e, t, n) {
|
|
505
503
|
var r, o;
|
|
506
504
|
if (n.sortPolicy === "dropUnrelatedSorts") {
|
|
507
505
|
const a = new Set(
|
|
@@ -529,7 +527,7 @@ function Vl(e, t, n) {
|
|
|
529
527
|
};
|
|
530
528
|
}
|
|
531
529
|
const mo = 6;
|
|
532
|
-
function
|
|
530
|
+
function Rl(e) {
|
|
533
531
|
if (!(e === void 0 || !Number.isFinite(e)) && Number.isInteger(e))
|
|
534
532
|
return Math.max(0, Math.min(mo, e));
|
|
535
533
|
}
|
|
@@ -541,12 +539,12 @@ function yo(e) {
|
|
|
541
539
|
var t;
|
|
542
540
|
return ((t = yn(e)) == null ? void 0 : t.kind) || "none";
|
|
543
541
|
}
|
|
544
|
-
function
|
|
542
|
+
function Vl(e) {
|
|
545
543
|
const t = yn(e);
|
|
546
544
|
return (t == null ? void 0 : t.kind) === "target" ? t.targetValue : void 0;
|
|
547
545
|
}
|
|
548
|
-
function
|
|
549
|
-
return (e == null ? void 0 : e.semanticComparisonPolarity) || (e == null ? void 0 : e.comparisonPolarity) ||
|
|
546
|
+
function Ll(e) {
|
|
547
|
+
return (e == null ? void 0 : e.semanticComparisonPolarity) || (e == null ? void 0 : e.comparisonPolarity) || Er;
|
|
550
548
|
}
|
|
551
549
|
function Qe(e, t) {
|
|
552
550
|
const n = Object.entries(e || {}).filter(
|
|
@@ -592,7 +590,7 @@ function hn(e) {
|
|
|
592
590
|
comparisonSeriesLabels: s
|
|
593
591
|
};
|
|
594
592
|
}
|
|
595
|
-
function
|
|
593
|
+
function jl(e) {
|
|
596
594
|
switch (e) {
|
|
597
595
|
case "previous_period":
|
|
598
596
|
return "Previous";
|
|
@@ -612,7 +610,7 @@ function In(e, t, n) {
|
|
|
612
610
|
function go(e, t) {
|
|
613
611
|
return `${e} Δ`;
|
|
614
612
|
}
|
|
615
|
-
function
|
|
613
|
+
function zl(e, t) {
|
|
616
614
|
return Qe(e, t);
|
|
617
615
|
}
|
|
618
616
|
function bo(e, t) {
|
|
@@ -633,7 +631,7 @@ function Cn(e) {
|
|
|
633
631
|
});
|
|
634
632
|
return a.length === 1 ? a[0] : void 0;
|
|
635
633
|
}
|
|
636
|
-
function
|
|
634
|
+
function $l(e, t) {
|
|
637
635
|
return t ? { ...e, config: t } : e;
|
|
638
636
|
}
|
|
639
637
|
function ho(e) {
|
|
@@ -668,7 +666,7 @@ function xe(e, t, n) {
|
|
|
668
666
|
[t]: n
|
|
669
667
|
} : null;
|
|
670
668
|
}
|
|
671
|
-
function
|
|
669
|
+
function Ul(e, t, n) {
|
|
672
670
|
if (!J(e) || !n) return null;
|
|
673
671
|
const i = e.config;
|
|
674
672
|
return e.type === "detailTable" ? xe(
|
|
@@ -701,7 +699,7 @@ function Co(e) {
|
|
|
701
699
|
var t, n, i, r, o, a;
|
|
702
700
|
return J(e) ? e.type === "detailTable" ? !!((n = (t = e.config) == null ? void 0 : t.detailColumns) != null && n.length) : !!((r = (i = e.config) == null ? void 0 : i.groupByColumns) != null && r.length || (a = (o = e.config) == null ? void 0 : o.metricColumns) != null && a.length) : !1;
|
|
703
701
|
}
|
|
704
|
-
function
|
|
702
|
+
function Gl(e, t) {
|
|
705
703
|
return Co(e) && !!t;
|
|
706
704
|
}
|
|
707
705
|
function pe(e, t, n) {
|
|
@@ -713,7 +711,7 @@ function pe(e, t, n) {
|
|
|
713
711
|
var s;
|
|
714
712
|
const a = (s = n.byMetricAlias) == null ? void 0 : s[o];
|
|
715
713
|
return a ? [a] : [];
|
|
716
|
-
}) : [], r =
|
|
714
|
+
}) : [], r = Nr(
|
|
717
715
|
n,
|
|
718
716
|
e.id,
|
|
719
717
|
t
|
|
@@ -820,7 +818,7 @@ function So(e) {
|
|
|
820
818
|
columnKeyMap: i
|
|
821
819
|
});
|
|
822
820
|
if (!s) return;
|
|
823
|
-
const { identity: l, pivotFields: u, authoredMetrics: c, authoredMetric: m } = s, f =
|
|
821
|
+
const { identity: l, pivotFields: u, authoredMetrics: c, authoredMetric: m } = s, f = br({
|
|
824
822
|
members: l.members,
|
|
825
823
|
resolveTemporalFormat: (C) => {
|
|
826
824
|
var v;
|
|
@@ -839,7 +837,7 @@ function So(e) {
|
|
|
839
837
|
), g = d ? [d] : f, h = a || (c.length > 1 ? (m == null ? void 0 : m.label) || (m == null ? void 0 : m.name) : void 0);
|
|
840
838
|
return [...g, ...h ? [h] : []].join(" / ");
|
|
841
839
|
}
|
|
842
|
-
function
|
|
840
|
+
function R(e, t, n, i) {
|
|
843
841
|
return e != null && e.length ? e.map(
|
|
844
842
|
(r) => se(
|
|
845
843
|
r,
|
|
@@ -854,17 +852,17 @@ function vt(e, t, n, i) {
|
|
|
854
852
|
const r = [], o = (a) => {
|
|
855
853
|
a && e.includes(a) && !r.includes(a) && r.push(a);
|
|
856
854
|
};
|
|
857
|
-
return t.type === "detailTable" ?
|
|
855
|
+
return t.type === "detailTable" ? R(
|
|
858
856
|
t.config.detailColumns,
|
|
859
857
|
e,
|
|
860
858
|
"detail",
|
|
861
859
|
i
|
|
862
|
-
).forEach(o) : (
|
|
860
|
+
).forEach(o) : (R(
|
|
863
861
|
t.config.groupByColumns,
|
|
864
862
|
e,
|
|
865
863
|
"groupby",
|
|
866
864
|
i
|
|
867
|
-
).forEach(o),
|
|
865
|
+
).forEach(o), R(
|
|
868
866
|
t.config.metricColumns,
|
|
869
867
|
e,
|
|
870
868
|
"metric",
|
|
@@ -881,13 +879,13 @@ function xo(e, t) {
|
|
|
881
879
|
const a = n.every(
|
|
882
880
|
(d) => o.some((g) => g.key === d)
|
|
883
881
|
), s = [
|
|
884
|
-
...
|
|
882
|
+
...R(
|
|
885
883
|
i.config.groupByColumns,
|
|
886
884
|
n,
|
|
887
885
|
"groupby",
|
|
888
886
|
r
|
|
889
887
|
),
|
|
890
|
-
...
|
|
888
|
+
...R(
|
|
891
889
|
i.config.metricColumns,
|
|
892
890
|
n,
|
|
893
891
|
"metric",
|
|
@@ -912,12 +910,12 @@ function xo(e, t) {
|
|
|
912
910
|
const c = [], m = (d) => {
|
|
913
911
|
d && n.includes(d) && !c.includes(d) && c.push(d);
|
|
914
912
|
};
|
|
915
|
-
return
|
|
913
|
+
return R(
|
|
916
914
|
i.config.groupByColumns,
|
|
917
915
|
n,
|
|
918
916
|
"groupby",
|
|
919
917
|
r
|
|
920
|
-
).forEach(m), u.forEach(m),
|
|
918
|
+
).forEach(m), u.forEach(m), R(
|
|
921
919
|
i.config.metricColumns,
|
|
922
920
|
n,
|
|
923
921
|
"metric",
|
|
@@ -1065,7 +1063,7 @@ function No(e, t) {
|
|
|
1065
1063
|
if (!(e != null && e.type) || e.type === "auto")
|
|
1066
1064
|
return;
|
|
1067
1065
|
if (e.type === "date")
|
|
1068
|
-
return
|
|
1066
|
+
return hr({
|
|
1069
1067
|
locale: e.locale,
|
|
1070
1068
|
pattern: e.dateFormat,
|
|
1071
1069
|
timezone: e.timezone,
|
|
@@ -1186,7 +1184,7 @@ function Sn(e, t) {
|
|
|
1186
1184
|
function Po(e) {
|
|
1187
1185
|
return !!(e && e.minimumFractionDigits === void 0 && e.maximumFractionDigits === void 0 && typeof e.currency == "string" && e.currency.length > 0 && typeof e.locale == "string" && e.locale.length > 0 && typeof e.showDataBar == "boolean" && typeof e.dataBarColor == "string" && e.dataBarColor.length > 0);
|
|
1188
1186
|
}
|
|
1189
|
-
function
|
|
1187
|
+
function Ql(e) {
|
|
1190
1188
|
const t = Sn(e, {
|
|
1191
1189
|
preserveOmittedProperties: !0
|
|
1192
1190
|
});
|
|
@@ -1196,7 +1194,7 @@ function Hl(e) {
|
|
|
1196
1194
|
maximumFractionDigits: t.minimumFractionDigits === void 0 && t.maximumFractionDigits === void 0 ? 2 : t.maximumFractionDigits
|
|
1197
1195
|
};
|
|
1198
1196
|
}
|
|
1199
|
-
function
|
|
1197
|
+
function Wl(e, t) {
|
|
1200
1198
|
const n = Y(e, t);
|
|
1201
1199
|
if (n) {
|
|
1202
1200
|
if (n.type === "date")
|
|
@@ -1243,7 +1241,7 @@ function Yl(e, t) {
|
|
|
1243
1241
|
};
|
|
1244
1242
|
}
|
|
1245
1243
|
}
|
|
1246
|
-
function
|
|
1244
|
+
function Hl(e, t) {
|
|
1247
1245
|
const n = Y(e, t);
|
|
1248
1246
|
return (n == null ? void 0 : n.type) === "duration" ? {
|
|
1249
1247
|
style: "duration",
|
|
@@ -1264,7 +1262,7 @@ function Jl(e, t) {
|
|
|
1264
1262
|
} : !n || !ae(n) ? void 0 : {
|
|
1265
1263
|
style: n.type === "currency" ? "currency" : n.type === "percent" ? "percent" : n.type === "scientific" ? "scientific" : "decimal",
|
|
1266
1264
|
currency: n.type === "currency" && n.currency || (t != null && t.preserveOmittedProperties ? void 0 : "USD"),
|
|
1267
|
-
locale: n.locale || (t != null && t.preserveOmittedProperties ? void 0 :
|
|
1265
|
+
locale: n.locale || (t != null && t.preserveOmittedProperties ? void 0 : Ir),
|
|
1268
1266
|
minimumFractionDigits: n.minimumFractionDigits ?? (t != null && t.preserveOmittedProperties ? void 0 : 0),
|
|
1269
1267
|
maximumFractionDigits: n.maximumFractionDigits ?? (t != null && t.preserveOmittedProperties ? void 0 : 2),
|
|
1270
1268
|
useGrouping: typeof n.useGrouping == "boolean" ? n.useGrouping : !0,
|
|
@@ -1280,7 +1278,7 @@ function Jl(e, t) {
|
|
|
1280
1278
|
dataBarMaxValue: void 0
|
|
1281
1279
|
};
|
|
1282
1280
|
}
|
|
1283
|
-
function
|
|
1281
|
+
function Yl(e) {
|
|
1284
1282
|
const t = Y(e);
|
|
1285
1283
|
if (!(!t || !ae(t)))
|
|
1286
1284
|
return {
|
|
@@ -1317,7 +1315,7 @@ function Oo(e) {
|
|
|
1317
1315
|
const t = (n = e == null ? void 0 : e.numberFormat) == null ? void 0 : n.style;
|
|
1318
1316
|
return t === void 0 || t === "decimal" || t === "currency";
|
|
1319
1317
|
}
|
|
1320
|
-
function
|
|
1318
|
+
function qo(e, t) {
|
|
1321
1319
|
const n = t == null ? void 0 : t.type;
|
|
1322
1320
|
if (n && n !== "none" && n !== "number")
|
|
1323
1321
|
return { currencyBindable: !1 };
|
|
@@ -1331,7 +1329,7 @@ function Ro(e, t) {
|
|
|
1331
1329
|
currencyBindable: be(s)
|
|
1332
1330
|
};
|
|
1333
1331
|
}
|
|
1334
|
-
function
|
|
1332
|
+
function Ro(e, t) {
|
|
1335
1333
|
var l, u;
|
|
1336
1334
|
const n = Y(t.format, {
|
|
1337
1335
|
preserveOmittedProperties: !0
|
|
@@ -1373,13 +1371,13 @@ function _e(e, t = {}) {
|
|
|
1373
1371
|
};
|
|
1374
1372
|
}
|
|
1375
1373
|
function Dn(e, t = []) {
|
|
1376
|
-
const n =
|
|
1374
|
+
const n = Fr(e);
|
|
1377
1375
|
if (n.status !== "ready") return [];
|
|
1378
1376
|
const { spec: i, presentation: r } = n.config, o = Ti(t);
|
|
1379
1377
|
return i.measures.map((a) => {
|
|
1380
1378
|
var p, d;
|
|
1381
|
-
const s = a.kind === "aggregate" ? o(a.field, i.source) : void 0, l = a.kind === "calculated" ? a.definition.format : ((p = a.field.derivedField) == null ? void 0 : p.format) ?? (s == null ? void 0 : s.format) ?? (s == null ? void 0 : s.resolvedField.format), u =
|
|
1382
|
-
return { measureId: a.id, label:
|
|
1379
|
+
const s = a.kind === "aggregate" ? o(a.field, i.source) : void 0, l = a.kind === "calculated" ? a.definition.format : ((p = a.field.derivedField) == null ? void 0 : p.format) ?? (s == null ? void 0 : s.format) ?? (s == null ? void 0 : s.resolvedField.format), u = Cr(r.measureFormats[a.id], l), c = a.kind === "calculated" ? a.definition.dataType : ["MIN", "MAX"].includes(a.aggregate) ? ((d = a.field.derivedField) == null ? void 0 : d.dataType) ?? (s == null ? void 0 : s.resolvedField.dataType) ?? a.field.dataType : "number", m = H(c) === "number", y = a.kind === "calculated" || !!(s || a.field.derivedField || a.field.name === "*"), f = u && ae(u) ? u : !u && m && y ? { type: "number" } : void 0;
|
|
1380
|
+
return { measureId: a.id, label: Tr(a, r), canonical: f };
|
|
1383
1381
|
});
|
|
1384
1382
|
}
|
|
1385
1383
|
function Vo(e) {
|
|
@@ -1389,7 +1387,7 @@ function Vo(e) {
|
|
|
1389
1387
|
function Lo(e) {
|
|
1390
1388
|
return new Set(
|
|
1391
1389
|
nr(e).flatMap(
|
|
1392
|
-
(t) => (t.controlBindings || []).filter(
|
|
1390
|
+
(t) => (t.controlBindings || []).filter(qt).map((n) => n.controlId)
|
|
1393
1391
|
)
|
|
1394
1392
|
);
|
|
1395
1393
|
}
|
|
@@ -1446,10 +1444,10 @@ function zo(e, t = [], n) {
|
|
|
1446
1444
|
), f = e.type === "matrixTable" ? [] : e.type === "kpi" ? l.filter((I) => I.currencyBindable).flatMap(
|
|
1447
1445
|
(I) => I.target ? [I.target] : []
|
|
1448
1446
|
) : (i || !r ? [] : a).filter(
|
|
1449
|
-
(I) => (Fi(e.type) ?
|
|
1447
|
+
(I) => (Fi(e.type) ? qo(
|
|
1450
1448
|
I,
|
|
1451
1449
|
jo(s, I)
|
|
1452
|
-
) :
|
|
1450
|
+
) : Ro(e, I)).currencyBindable
|
|
1453
1451
|
).map(
|
|
1454
1452
|
(I) => ({
|
|
1455
1453
|
kind: "metric",
|
|
@@ -1491,13 +1489,13 @@ function zo(e, t = [], n) {
|
|
|
1491
1489
|
])
|
|
1492
1490
|
};
|
|
1493
1491
|
}
|
|
1494
|
-
function
|
|
1492
|
+
function Jl(e, t) {
|
|
1495
1493
|
const n = _e(e, {
|
|
1496
1494
|
resultColumnKey: t
|
|
1497
1495
|
});
|
|
1498
1496
|
return n.currencyBindable ? n.target : void 0;
|
|
1499
1497
|
}
|
|
1500
|
-
function
|
|
1498
|
+
function Xl(e) {
|
|
1501
1499
|
var t;
|
|
1502
1500
|
return (t = e.card.sql) != null && t.trim() ? { kind: "column", columnKey: e.columnKey } : e.metricId ? { kind: "metric", metricId: e.metricId } : void 0;
|
|
1503
1501
|
}
|
|
@@ -1537,7 +1535,7 @@ function kn(e) {
|
|
|
1537
1535
|
currencies: t
|
|
1538
1536
|
};
|
|
1539
1537
|
}
|
|
1540
|
-
function
|
|
1538
|
+
function Zl(e) {
|
|
1541
1539
|
return "control" in kn(e);
|
|
1542
1540
|
}
|
|
1543
1541
|
function Mn(e) {
|
|
@@ -1563,7 +1561,7 @@ function Mn(e) {
|
|
|
1563
1561
|
)
|
|
1564
1562
|
};
|
|
1565
1563
|
}
|
|
1566
|
-
function
|
|
1564
|
+
function ec(e) {
|
|
1567
1565
|
return Mn({
|
|
1568
1566
|
...e,
|
|
1569
1567
|
referencedControlIds: new Set(
|
|
@@ -1574,7 +1572,7 @@ function nc(e) {
|
|
|
1574
1572
|
)
|
|
1575
1573
|
});
|
|
1576
1574
|
}
|
|
1577
|
-
function
|
|
1575
|
+
function tc(e) {
|
|
1578
1576
|
var t;
|
|
1579
1577
|
return Mn({
|
|
1580
1578
|
...e,
|
|
@@ -1638,7 +1636,7 @@ function En(e, t) {
|
|
|
1638
1636
|
}
|
|
1639
1637
|
};
|
|
1640
1638
|
}
|
|
1641
|
-
function
|
|
1639
|
+
function nc(e) {
|
|
1642
1640
|
const t = An(e);
|
|
1643
1641
|
return (e.bindings || []).flatMap((n) => {
|
|
1644
1642
|
const i = En(n, t);
|
|
@@ -1666,7 +1664,7 @@ function Uo(e) {
|
|
|
1666
1664
|
}
|
|
1667
1665
|
return { diagnostics: t };
|
|
1668
1666
|
}
|
|
1669
|
-
function
|
|
1667
|
+
function ic(e, t, n, i) {
|
|
1670
1668
|
const r = { ...e, config: { ...e.config, matrix: t } }, o = zo(r, [], i), a = Dn(r, i), s = { ...t.presentation.measureFormats };
|
|
1671
1669
|
for (const l of a) {
|
|
1672
1670
|
const u = { kind: "matrix_measure", measureId: l.measureId }, { currency: c } = Uo({
|
|
@@ -1777,7 +1775,7 @@ function St(e = [], t) {
|
|
|
1777
1775
|
}
|
|
1778
1776
|
function Ho(e = [], t) {
|
|
1779
1777
|
return e.filter(
|
|
1780
|
-
(n) => (t == null ? void 0 : t.includePresentation) || !
|
|
1778
|
+
(n) => (t == null ? void 0 : t.includePresentation) || !qt(n)
|
|
1781
1779
|
).map((n) => Wo(n, t)).sort(
|
|
1782
1780
|
(n, i) => B(n).localeCompare(B(i))
|
|
1783
1781
|
);
|
|
@@ -1850,7 +1848,7 @@ function ea(e) {
|
|
|
1850
1848
|
function ta(e, t, n) {
|
|
1851
1849
|
if (!e)
|
|
1852
1850
|
return JSON.stringify(e);
|
|
1853
|
-
if (n === "matrixTable" && e.matrix) return B(
|
|
1851
|
+
if (n === "matrixTable" && e.matrix) return B(Sr(e.matrix.spec));
|
|
1854
1852
|
const { matrix: i, ...r } = e, o = t ? ea(r) : r;
|
|
1855
1853
|
return JSON.stringify({
|
|
1856
1854
|
...o,
|
|
@@ -1935,7 +1933,7 @@ function ra(e, {
|
|
|
1935
1933
|
}
|
|
1936
1934
|
function oa(e, t, n) {
|
|
1937
1935
|
var s, l, u;
|
|
1938
|
-
const i = ra(e, t), r = B(i), o = ((s = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : s.call(n, r)) ?? e.paginationConfig, a = xt(e) &&
|
|
1936
|
+
const i = ra(e, t), r = B(i), o = ((s = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : s.call(n, r)) ?? e.paginationConfig, a = xt(e) && Rt(e.config) || xt(e) && e.sql && ((u = (l = e.preferences) == null ? void 0 : l.tablePrefs) == null ? void 0 : u.enableDevModePagination);
|
|
1939
1937
|
return {
|
|
1940
1938
|
queryKey: [
|
|
1941
1939
|
...i,
|
|
@@ -1945,7 +1943,7 @@ function oa(e, t, n) {
|
|
|
1945
1943
|
paginationConfig: o
|
|
1946
1944
|
};
|
|
1947
1945
|
}
|
|
1948
|
-
function
|
|
1946
|
+
function rc(e, t, n, i) {
|
|
1949
1947
|
return oa(
|
|
1950
1948
|
e,
|
|
1951
1949
|
{
|
|
@@ -2026,7 +2024,7 @@ function wn(e) {
|
|
|
2026
2024
|
columnPresentationOwners: m
|
|
2027
2025
|
};
|
|
2028
2026
|
}
|
|
2029
|
-
function
|
|
2027
|
+
function oc(e) {
|
|
2030
2028
|
var t, n;
|
|
2031
2029
|
return wn({
|
|
2032
2030
|
comparisonMetadata: e.comparisonMetadata,
|
|
@@ -2042,7 +2040,7 @@ function sc(e) {
|
|
|
2042
2040
|
}
|
|
2043
2041
|
});
|
|
2044
2042
|
}
|
|
2045
|
-
function
|
|
2043
|
+
function ac(e) {
|
|
2046
2044
|
var n;
|
|
2047
2045
|
return (((n = e.card.config) == null ? void 0 : n.metricColumns) || []).filter(
|
|
2048
2046
|
(i) => {
|
|
@@ -2170,7 +2168,7 @@ function sa(e) {
|
|
|
2170
2168
|
}
|
|
2171
2169
|
return { entries: t, owners: n };
|
|
2172
2170
|
}
|
|
2173
|
-
function
|
|
2171
|
+
function sc(e) {
|
|
2174
2172
|
const t = /* @__PURE__ */ new Set();
|
|
2175
2173
|
for (const n of e ?? [])
|
|
2176
2174
|
if (n && typeof n == "object")
|
|
@@ -2247,7 +2245,7 @@ function fa(e, t, n) {
|
|
|
2247
2245
|
if (!t.length) return [];
|
|
2248
2246
|
const i = da(e), r = [], o = /* @__PURE__ */ new Set();
|
|
2249
2247
|
for (const a of t) {
|
|
2250
|
-
const s =
|
|
2248
|
+
const s = xr(i, a);
|
|
2251
2249
|
if (!s) continue;
|
|
2252
2250
|
const l = i[s.group], u = Xe(l.fields[s.index], l.role);
|
|
2253
2251
|
if (!u) continue;
|
|
@@ -2323,7 +2321,7 @@ function ga(e, t, n, i) {
|
|
|
2323
2321
|
...fe(e.slice(o + 1), t, n)
|
|
2324
2322
|
];
|
|
2325
2323
|
}
|
|
2326
|
-
function
|
|
2324
|
+
function lc(e) {
|
|
2327
2325
|
if (oe(e) !== "config") return;
|
|
2328
2326
|
const t = /* @__PURE__ */ new Set();
|
|
2329
2327
|
for (const { role: n, fields: i } of Je(e))
|
|
@@ -2333,11 +2331,11 @@ function uc(e) {
|
|
|
2333
2331
|
}
|
|
2334
2332
|
return t;
|
|
2335
2333
|
}
|
|
2336
|
-
function
|
|
2334
|
+
function cc(e) {
|
|
2337
2335
|
const t = Zt(e);
|
|
2338
2336
|
return (t == null ? void 0 : t.kind) === "metric" && t.metricId === $e;
|
|
2339
2337
|
}
|
|
2340
|
-
function
|
|
2338
|
+
function uc(e) {
|
|
2341
2339
|
var lt, ct, ut, dt;
|
|
2342
2340
|
const { card: t, result: n } = e, i = e.projection ?? "screen", r = oe(t) === "config", o = ma(t), a = o === "card-type" ? void 0 : o === "author-disabled" ? (lt = e.settings) != null && lt.sort ? { sort: e.settings.sort } : void 0 : e.settings, s = pa(r, e.paginationMode), l = n.columnKeyMap, u = r ? aa(t, n) : sa(n), c = (b) => {
|
|
2343
2341
|
var T, x;
|
|
@@ -2400,11 +2398,11 @@ function fc(e) {
|
|
|
2400
2398
|
const O = i === "screen" ? ua(t, n, y) : /* @__PURE__ */ new Map(), ce = (b, T) => {
|
|
2401
2399
|
const x = c(T == null ? void 0 : T.columnId);
|
|
2402
2400
|
if ((T == null ? void 0 : T.part) === "base" && x) return x;
|
|
2403
|
-
const
|
|
2404
|
-
if (
|
|
2401
|
+
const q = O.get(b);
|
|
2402
|
+
if (q)
|
|
2405
2403
|
return go(
|
|
2406
|
-
((T == null ? void 0 : T.part) === "comparison" ? x : void 0) ?? (
|
|
2407
|
-
|
|
2404
|
+
((T == null ? void 0 : T.part) === "comparison" ? x : void 0) ?? (q.metric.label || q.metric.name),
|
|
2405
|
+
q.kind
|
|
2408
2406
|
);
|
|
2409
2407
|
const Z = f.get(b);
|
|
2410
2408
|
if (Z) return Z;
|
|
@@ -2450,11 +2448,11 @@ function fc(e) {
|
|
|
2450
2448
|
available: !0,
|
|
2451
2449
|
canReset: st,
|
|
2452
2450
|
items: M.map((x) => {
|
|
2453
|
-
const
|
|
2451
|
+
const q = u.entries.get(x), Z = A.has(x), ee = ci.get(x);
|
|
2454
2452
|
return {
|
|
2455
2453
|
columnId: x,
|
|
2456
|
-
label: c(x) ??
|
|
2457
|
-
authorLabel:
|
|
2454
|
+
label: c(x) ?? q.authorLabel,
|
|
2455
|
+
authorLabel: q.authorLabel,
|
|
2458
2456
|
hidden: Z,
|
|
2459
2457
|
isNew: F !== void 0 && !b.has(x),
|
|
2460
2458
|
canHide: !Z && T > 1,
|
|
@@ -2477,7 +2475,7 @@ function fc(e) {
|
|
|
2477
2475
|
author: { order: C }
|
|
2478
2476
|
};
|
|
2479
2477
|
}
|
|
2480
|
-
function
|
|
2478
|
+
function dc(e, t) {
|
|
2481
2479
|
var n;
|
|
2482
2480
|
return (n = _n(e, t)) == null ? void 0 : n.field;
|
|
2483
2481
|
}
|
|
@@ -2495,14 +2493,14 @@ function _n(e, t) {
|
|
|
2495
2493
|
return;
|
|
2496
2494
|
return r.length === 1 ? { field: r[0], role: o } : void 0;
|
|
2497
2495
|
}
|
|
2498
|
-
function
|
|
2496
|
+
function fc(e, t) {
|
|
2499
2497
|
const n = t == null ? void 0 : t.sort;
|
|
2500
2498
|
if (!n || !e.config || e.type !== "table" && e.type !== "detailTable" || oe(e) !== "config")
|
|
2501
2499
|
return e.config;
|
|
2502
2500
|
const i = n.flatMap((r) => {
|
|
2503
2501
|
const o = _n(e, r.columnId);
|
|
2504
2502
|
if (!o) return [];
|
|
2505
|
-
const a =
|
|
2503
|
+
const a = Dr(o.field, o.role);
|
|
2506
2504
|
return Nn(e, a) ? [] : [
|
|
2507
2505
|
{
|
|
2508
2506
|
...o.field,
|
|
@@ -2553,12 +2551,12 @@ function Ze(e, t) {
|
|
|
2553
2551
|
...o.map((a) => ({ ...a, role: "metric" }))
|
|
2554
2552
|
].filter((a) => !!a.id);
|
|
2555
2553
|
}
|
|
2556
|
-
function
|
|
2554
|
+
function pc(e, t) {
|
|
2557
2555
|
return t ? !le(e).some(
|
|
2558
2556
|
(n) => t[n] === !1
|
|
2559
2557
|
) : !0;
|
|
2560
2558
|
}
|
|
2561
|
-
function
|
|
2559
|
+
function mc(e, t) {
|
|
2562
2560
|
for (const n of le(e))
|
|
2563
2561
|
if (t != null && t[n])
|
|
2564
2562
|
return n;
|
|
@@ -2583,7 +2581,7 @@ function ha(e, t, n) {
|
|
|
2583
2581
|
(r) => i.some((o) => o.has(r))
|
|
2584
2582
|
);
|
|
2585
2583
|
}
|
|
2586
|
-
function
|
|
2584
|
+
function yc({
|
|
2587
2585
|
card: e,
|
|
2588
2586
|
effectiveCardConfig: t,
|
|
2589
2587
|
visibleColumnIds: n,
|
|
@@ -2605,7 +2603,7 @@ function bc({
|
|
|
2605
2603
|
])
|
|
2606
2604
|
);
|
|
2607
2605
|
}
|
|
2608
|
-
function
|
|
2606
|
+
function gc(e) {
|
|
2609
2607
|
var t, n, i, r, o, a;
|
|
2610
2608
|
return et(e) ? {
|
|
2611
2609
|
...e,
|
|
@@ -2628,7 +2626,7 @@ function Ia(e, t, n) {
|
|
|
2628
2626
|
if (!et(e) || !Bn(e))
|
|
2629
2627
|
return;
|
|
2630
2628
|
const i = Ze(e, t), r = new Set(
|
|
2631
|
-
|
|
2629
|
+
vr(
|
|
2632
2630
|
i.filter((l) => l.role === "metric")
|
|
2633
2631
|
)
|
|
2634
2632
|
), o = i.filter((l) => l.role !== "metric"), a = n && o.find(
|
|
@@ -2659,7 +2657,7 @@ function Ia(e, t, n) {
|
|
|
2659
2657
|
columns: s
|
|
2660
2658
|
} : void 0;
|
|
2661
2659
|
}
|
|
2662
|
-
function
|
|
2660
|
+
function bc(e) {
|
|
2663
2661
|
var t, n, i, r, o, a;
|
|
2664
2662
|
return {
|
|
2665
2663
|
...e,
|
|
@@ -2678,7 +2676,7 @@ function Ic(e) {
|
|
|
2678
2676
|
}
|
|
2679
2677
|
};
|
|
2680
2678
|
}
|
|
2681
|
-
const
|
|
2679
|
+
const hc = 1e4, Ca = 500, va = 250;
|
|
2682
2680
|
function Pe(e) {
|
|
2683
2681
|
return e.type === "table" || e.type === "detailTable";
|
|
2684
2682
|
}
|
|
@@ -2686,7 +2684,7 @@ function Ta(e) {
|
|
|
2686
2684
|
var t, n, i;
|
|
2687
2685
|
return !!((t = e.sql) != null && t.trim() && Pe(e) && ((i = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && i.enableDevModePagination));
|
|
2688
2686
|
}
|
|
2689
|
-
function
|
|
2687
|
+
function Ic(e) {
|
|
2690
2688
|
return e === "export-full-with-cap" ? Ca : va;
|
|
2691
2689
|
}
|
|
2692
2690
|
function Fa({
|
|
@@ -2696,14 +2694,14 @@ function Fa({
|
|
|
2696
2694
|
documentTableDataPolicy: i
|
|
2697
2695
|
}) {
|
|
2698
2696
|
var l, u;
|
|
2699
|
-
const r = n && i !== void 0 && Pe(e), o = t && !r, a =
|
|
2697
|
+
const r = n && i !== void 0 && Pe(e), o = t && !r, a = Rt(e.config) && Pe(e) && !e.sql, s = r ? Ta(e) : !!(e.sql && ((u = (l = e.preferences) == null ? void 0 : l.tablePrefs) != null && u.enableDevModePagination));
|
|
2700
2698
|
return !o && (a || s);
|
|
2701
2699
|
}
|
|
2702
2700
|
function Sa(e) {
|
|
2703
2701
|
var t, n, i;
|
|
2704
2702
|
return ((t = e.paginationConfig) == null ? void 0 : t.pageSize) || ((i = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : i.pageSize) || 50;
|
|
2705
2703
|
}
|
|
2706
|
-
function
|
|
2704
|
+
function Cc({
|
|
2707
2705
|
current: e,
|
|
2708
2706
|
defaultPageSize: t,
|
|
2709
2707
|
queryInputIdentity: n
|
|
@@ -2716,10 +2714,10 @@ function Tc({
|
|
|
2716
2714
|
pageSize: (e == null ? void 0 : e.pageSize) ?? t
|
|
2717
2715
|
};
|
|
2718
2716
|
}
|
|
2719
|
-
function
|
|
2717
|
+
function vc(e, t, n) {
|
|
2720
2718
|
return (e == null ? void 0 : e.queryInputIdentity) === n && e.page === t.page && e.pageSize === t.pageSize;
|
|
2721
2719
|
}
|
|
2722
|
-
function
|
|
2720
|
+
function Tc(e, t) {
|
|
2723
2721
|
return !e || !t || e.page === t.page && e.pageSize === t.pageSize ? e : {
|
|
2724
2722
|
...e,
|
|
2725
2723
|
page: t.page,
|
|
@@ -2727,10 +2725,10 @@ function Sc(e, t) {
|
|
|
2727
2725
|
hasPrevPage: t.page > 1
|
|
2728
2726
|
};
|
|
2729
2727
|
}
|
|
2730
|
-
function
|
|
2728
|
+
function Fc(e) {
|
|
2731
2729
|
return { page: 1, pageSize: Sa(e) };
|
|
2732
2730
|
}
|
|
2733
|
-
function
|
|
2731
|
+
function Sc(e) {
|
|
2734
2732
|
var a, s, l, u, c;
|
|
2735
2733
|
const { card: t } = e, n = Fa({
|
|
2736
2734
|
card: t,
|
|
@@ -2765,7 +2763,7 @@ function Da(e, t) {
|
|
|
2765
2763
|
selectedEntities: []
|
|
2766
2764
|
};
|
|
2767
2765
|
}
|
|
2768
|
-
function
|
|
2766
|
+
function xc(e, t, n = {}) {
|
|
2769
2767
|
const i = xa(e, n);
|
|
2770
2768
|
if (!i)
|
|
2771
2769
|
throw new Error("No connection ID found for card");
|
|
@@ -2788,7 +2786,7 @@ const ka = /* @__PURE__ */ new Set([
|
|
|
2788
2786
|
"minute",
|
|
2789
2787
|
"second"
|
|
2790
2788
|
]);
|
|
2791
|
-
function
|
|
2789
|
+
function Dc(e) {
|
|
2792
2790
|
let t = e.spec;
|
|
2793
2791
|
const n = Vt(
|
|
2794
2792
|
e.controlDefinitions || [],
|
|
@@ -2910,10 +2908,10 @@ function Kn(e, t) {
|
|
|
2910
2908
|
}
|
|
2911
2909
|
return n;
|
|
2912
2910
|
}
|
|
2913
|
-
function
|
|
2911
|
+
function kc(e, t = [], n = []) {
|
|
2914
2912
|
return rn([...an(e), ...Kn(t), ...n]);
|
|
2915
2913
|
}
|
|
2916
|
-
function
|
|
2914
|
+
function Mc(e, t = {}) {
|
|
2917
2915
|
const n = t.controlBindings ?? [], i = Vt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), r = new Map(n.filter((o) => o.target === "config_field_selector" || o.target === "config_metric_selector").map((o) => [o, Lt({ binding: o, definitions: i, controlValues: t.controlValues })]));
|
|
2918
2916
|
return rn([...an(e), ...Kn(n, r)]);
|
|
2919
2917
|
}
|
|
@@ -3022,7 +3020,7 @@ function Pa(e) {
|
|
|
3022
3020
|
formattedColumnName: r
|
|
3023
3021
|
};
|
|
3024
3022
|
}
|
|
3025
|
-
function
|
|
3023
|
+
function Ac({
|
|
3026
3024
|
field: e,
|
|
3027
3025
|
dataSource: t,
|
|
3028
3026
|
connectionId: n,
|
|
@@ -3049,19 +3047,19 @@ function wc({
|
|
|
3049
3047
|
...s === "date" ? { dateSelectionMode: "range" } : { type: "single" }
|
|
3050
3048
|
};
|
|
3051
3049
|
}
|
|
3052
|
-
function
|
|
3050
|
+
function Ec(e, t) {
|
|
3053
3051
|
return e.kind === "filter" && Ba(e.filter, t);
|
|
3054
3052
|
}
|
|
3055
|
-
function
|
|
3053
|
+
function wc(e) {
|
|
3056
3054
|
return j(e.dataType) === "date" ? ["label", "start", "end", "range"] : ["label", "value"];
|
|
3057
3055
|
}
|
|
3058
|
-
function
|
|
3056
|
+
function Nc(e) {
|
|
3059
3057
|
return Ka(e) ? ["label", "value"] : ["value"];
|
|
3060
3058
|
}
|
|
3061
3059
|
function Ka(e) {
|
|
3062
3060
|
return e.type === "enum" || e.type === "multi_enum" || e.type === "field_selector" || e.type === "metric_selector" || e.type === "aggregation_selector" || e.type === "grain_selector";
|
|
3063
3061
|
}
|
|
3064
|
-
function
|
|
3062
|
+
function _c(e) {
|
|
3065
3063
|
return e.map((t) => `Skipped filter ${t.filterId || t.name || "unknown"}: ${t.reason}`);
|
|
3066
3064
|
}
|
|
3067
3065
|
function On(e) {
|
|
@@ -3076,7 +3074,7 @@ function ne(e) {
|
|
|
3076
3074
|
const i = /* @__PURE__ */ new Set();
|
|
3077
3075
|
return i.add(t), n.length === 1 || (n.length >= 2 && i.add(n.slice(-2).join(".")), n.length >= 3 && i.add(n.slice(-3).join("."))), Array.from(i);
|
|
3078
3076
|
}
|
|
3079
|
-
function
|
|
3077
|
+
function qn(e) {
|
|
3080
3078
|
const t = e.table || e.name;
|
|
3081
3079
|
return e.database && e.schema ? `${e.database}.${e.schema}.${t}` : e.schema ? `${e.schema}.${t}` : e.database ? `${e.database}.${t}` : t;
|
|
3082
3080
|
}
|
|
@@ -3108,7 +3106,7 @@ function Oa(e, t) {
|
|
|
3108
3106
|
(f = t.cardDataSource) == null ? void 0 : f.connectionType
|
|
3109
3107
|
), u = [
|
|
3110
3108
|
...(((p = t.cardDataSource) == null ? void 0 : p.selectedEntities) || []).map(
|
|
3111
|
-
(d) =>
|
|
3109
|
+
(d) => qn(d)
|
|
3112
3110
|
),
|
|
3113
3111
|
t.targetQualifiedTableName,
|
|
3114
3112
|
...t.additionalAllowedIdentifiers || []
|
|
@@ -3132,7 +3130,7 @@ function Oa(e, t) {
|
|
|
3132
3130
|
)
|
|
3133
3131
|
);
|
|
3134
3132
|
}
|
|
3135
|
-
function
|
|
3133
|
+
function qa(e) {
|
|
3136
3134
|
const t = /* @__PURE__ */ new Set(), n = (r) => {
|
|
3137
3135
|
ne(r).forEach((o) => t.add(o));
|
|
3138
3136
|
}, i = (r) => {
|
|
@@ -3144,7 +3142,7 @@ function tt(e) {
|
|
|
3144
3142
|
var i;
|
|
3145
3143
|
const t = /* @__PURE__ */ new Set();
|
|
3146
3144
|
if ((((i = e.cardDataSource) == null ? void 0 : i.selectedEntities) || []).forEach((r) => {
|
|
3147
|
-
|
|
3145
|
+
qa(r).forEach((o) => t.add(o)), ne(qn(r)).forEach(
|
|
3148
3146
|
(o) => t.add(o)
|
|
3149
3147
|
);
|
|
3150
3148
|
}), ne(e.targetQualifiedTableName).forEach(
|
|
@@ -3176,11 +3174,11 @@ function Ke(e) {
|
|
|
3176
3174
|
}
|
|
3177
3175
|
return Array.from(n);
|
|
3178
3176
|
}
|
|
3179
|
-
function
|
|
3177
|
+
function Rn(e) {
|
|
3180
3178
|
const t = e.fieldMeta;
|
|
3181
3179
|
return t ? Q(t) : !1;
|
|
3182
3180
|
}
|
|
3183
|
-
function
|
|
3181
|
+
function Ra(e) {
|
|
3184
3182
|
return e ? [e.baseEntity, ...e.joins.flatMap((t) => [t.source, t.target])].flatMap((t) => {
|
|
3185
3183
|
const n = t;
|
|
3186
3184
|
return [
|
|
@@ -3191,7 +3189,7 @@ function qa(e) {
|
|
|
3191
3189
|
].filter(Boolean);
|
|
3192
3190
|
}) : [];
|
|
3193
3191
|
}
|
|
3194
|
-
function
|
|
3192
|
+
function Bc(e, t) {
|
|
3195
3193
|
var a;
|
|
3196
3194
|
if (((a = t.cardDataSource) == null ? void 0 : a.mode) !== "database" || t.cardDataSource.semanticDomainId)
|
|
3197
3195
|
return { applicableFilters: e, skippedFilters: [] };
|
|
@@ -3203,7 +3201,7 @@ function Kc(e, t) {
|
|
|
3203
3201
|
};
|
|
3204
3202
|
for (const s of e) {
|
|
3205
3203
|
const l = Ke(s);
|
|
3206
|
-
if (!
|
|
3204
|
+
if (!Rn(s) || !o(s.fieldMeta) || !n.size || !l.length || l.some((c) => n.has(c))) {
|
|
3207
3205
|
i.push(s);
|
|
3208
3206
|
continue;
|
|
3209
3207
|
}
|
|
@@ -3213,7 +3211,7 @@ function Kc(e, t) {
|
|
|
3213
3211
|
return { applicableFilters: i, skippedFilters: r };
|
|
3214
3212
|
}
|
|
3215
3213
|
function Vn(e, t, n) {
|
|
3216
|
-
const i = n.size > 0, r = t.allowCalculated !== !1, a = (t.phase ?? "post_join") === "post_join", s = e.name, l =
|
|
3214
|
+
const i = n.size > 0, r = t.allowCalculated !== !1, a = (t.phase ?? "post_join") === "post_join", s = e.name, l = Rn(e);
|
|
3217
3215
|
if (l && !r) return { kind: "skip", reason: "unsupported_calculated_filter" };
|
|
3218
3216
|
if (l && !e.fieldMeta) return { kind: "skip", reason: "missing_metadata" };
|
|
3219
3217
|
const u = Oa(e, t);
|
|
@@ -3255,7 +3253,7 @@ function La(e) {
|
|
|
3255
3253
|
return {
|
|
3256
3254
|
cardDataSource: e.dataSource ?? null,
|
|
3257
3255
|
allowCalculated: !0,
|
|
3258
|
-
additionalAllowedIdentifiers:
|
|
3256
|
+
additionalAllowedIdentifiers: Ra(e.joinPlan ?? null),
|
|
3259
3257
|
phase: e.joinPlan ? "post_join" : "pre_join"
|
|
3260
3258
|
};
|
|
3261
3259
|
}
|
|
@@ -3429,7 +3427,7 @@ function $n(e, t) {
|
|
|
3429
3427
|
function Un(e) {
|
|
3430
3428
|
const { valueField: t, valueSources: n, sourceIndex: i } = e, r = [], o = (a) => {
|
|
3431
3429
|
if (!Ut(a, t)) return;
|
|
3432
|
-
const s =
|
|
3430
|
+
const s = Re(
|
|
3433
3431
|
i,
|
|
3434
3432
|
a.field.source
|
|
3435
3433
|
);
|
|
@@ -3473,7 +3471,7 @@ function Ya(e, t, n) {
|
|
|
3473
3471
|
};
|
|
3474
3472
|
}
|
|
3475
3473
|
function Gn(e) {
|
|
3476
|
-
const t =
|
|
3474
|
+
const t = Re(
|
|
3477
3475
|
e.sourceIndex,
|
|
3478
3476
|
e.target.field.source
|
|
3479
3477
|
);
|
|
@@ -3494,7 +3492,7 @@ function Ja(e, t) {
|
|
|
3494
3492
|
var n;
|
|
3495
3493
|
return t.kind !== "config" ? [] : (((n = e.application) == null ? void 0 : n.cards) || []).flatMap((i) => {
|
|
3496
3494
|
if (i.kind !== "bound") return [];
|
|
3497
|
-
const r =
|
|
3495
|
+
const r = Re(
|
|
3498
3496
|
t,
|
|
3499
3497
|
i.target.field.source
|
|
3500
3498
|
);
|
|
@@ -3513,7 +3511,7 @@ function Qn(e, t) {
|
|
|
3513
3511
|
var n;
|
|
3514
3512
|
return ((n = e.application) == null ? void 0 : n.cards.some((i) => i.cardId === t && i.kind === "excluded")) ?? !1;
|
|
3515
3513
|
}
|
|
3516
|
-
function Wn(e, t, n =
|
|
3514
|
+
function Wn(e, t, n = qe(t), i) {
|
|
3517
3515
|
var m, y;
|
|
3518
3516
|
const r = t.id;
|
|
3519
3517
|
if (Qn(e, r)) return { status: "excluded" };
|
|
@@ -3546,7 +3544,7 @@ function Wn(e, t, n = Re(t), i) {
|
|
|
3546
3544
|
function Xa(e, t, n) {
|
|
3547
3545
|
var r;
|
|
3548
3546
|
if (n.kind !== "config" || !zt(t)) return !1;
|
|
3549
|
-
const i =
|
|
3547
|
+
const i = qi(e);
|
|
3550
3548
|
return !i || i.domainId !== ((r = t.dataSource) == null ? void 0 : r.semanticDomainId) ? !1 : !n.executableSources.some(
|
|
3551
3549
|
(o) => o.kind === "semantic" && (o.datasetName === i.datasetName || o.datasetId === i.datasetName)
|
|
3552
3550
|
);
|
|
@@ -3562,7 +3560,7 @@ function Hn(e) {
|
|
|
3562
3560
|
values: []
|
|
3563
3561
|
});
|
|
3564
3562
|
}
|
|
3565
|
-
function
|
|
3563
|
+
function Pc(e, t) {
|
|
3566
3564
|
return Za(e, t).reach;
|
|
3567
3565
|
}
|
|
3568
3566
|
function Za(e, t, n) {
|
|
@@ -3597,14 +3595,14 @@ function Za(e, t, n) {
|
|
|
3597
3595
|
}
|
|
3598
3596
|
}
|
|
3599
3597
|
}
|
|
3600
|
-
function
|
|
3598
|
+
function Kc({
|
|
3601
3599
|
card: e,
|
|
3602
3600
|
inputs: t,
|
|
3603
3601
|
resolvedInputs: n,
|
|
3604
3602
|
activeFilterValues: i = [],
|
|
3605
3603
|
shouldApplyDashboardFilters: r
|
|
3606
3604
|
}) {
|
|
3607
|
-
const o =
|
|
3605
|
+
const o = qe(e), a = new Map(
|
|
3608
3606
|
n.map((c) => [c.id, c])
|
|
3609
3607
|
), s = new Map(
|
|
3610
3608
|
i.map((c) => [
|
|
@@ -3630,7 +3628,7 @@ function Rc({
|
|
|
3630
3628
|
continue;
|
|
3631
3629
|
}
|
|
3632
3630
|
const y = a.get(c.id), f = (y == null ? void 0 : y.filterValue) || s.get(c.filter.id);
|
|
3633
|
-
if (!r && !
|
|
3631
|
+
if (!r && !Ri(c)) {
|
|
3634
3632
|
l.push({
|
|
3635
3633
|
status: "skip",
|
|
3636
3634
|
inputId: c.id,
|
|
@@ -3784,7 +3782,7 @@ function rt(e) {
|
|
|
3784
3782
|
function es(e) {
|
|
3785
3783
|
return e === "exclude" ? "not in" : "in";
|
|
3786
3784
|
}
|
|
3787
|
-
function
|
|
3785
|
+
function Oc(e) {
|
|
3788
3786
|
var n;
|
|
3789
3787
|
const t = (n = e.liveValue) == null ? void 0 : n.operation;
|
|
3790
3788
|
return it(t) ? rt(t) : e.pendingMode ?? e.authoredMode;
|
|
@@ -3818,7 +3816,7 @@ function is(e, t) {
|
|
|
3818
3816
|
function rs(e) {
|
|
3819
3817
|
return it(e.operation) ? [rt(e.operation)] : [];
|
|
3820
3818
|
}
|
|
3821
|
-
function
|
|
3819
|
+
function qc(e) {
|
|
3822
3820
|
const n = K(e).issues.length ? e : ps(e);
|
|
3823
3821
|
return co(ts(n)).dashboard;
|
|
3824
3822
|
}
|
|
@@ -3857,7 +3855,7 @@ function ls(e, t, n) {
|
|
|
3857
3855
|
}
|
|
3858
3856
|
});
|
|
3859
3857
|
}
|
|
3860
|
-
function
|
|
3858
|
+
function Rc(e, t, n) {
|
|
3861
3859
|
const i = K(e);
|
|
3862
3860
|
let r = {};
|
|
3863
3861
|
const o = [], a = [];
|
|
@@ -3886,7 +3884,7 @@ function Lc(e, t, n) {
|
|
|
3886
3884
|
}
|
|
3887
3885
|
return { slots: r, adHocFilterValues: o, droppedFilterIds: a };
|
|
3888
3886
|
}
|
|
3889
|
-
function
|
|
3887
|
+
function Vc(e) {
|
|
3890
3888
|
const { dashboard: t, sheetId: n } = e, i = [];
|
|
3891
3889
|
if (n)
|
|
3892
3890
|
for (const { input: r } of Li(t, n, e.sheetKind)) {
|
|
@@ -3901,7 +3899,7 @@ function jc(e) {
|
|
|
3901
3899
|
}
|
|
3902
3900
|
return [...i, ...as(e.adHocFilterValues, n)];
|
|
3903
3901
|
}
|
|
3904
|
-
function
|
|
3902
|
+
function Lc(e, t) {
|
|
3905
3903
|
switch (t.runtimeScope) {
|
|
3906
3904
|
case "shared":
|
|
3907
3905
|
return [{}];
|
|
@@ -4032,7 +4030,7 @@ function Jn(e, t = {}) {
|
|
|
4032
4030
|
const n = [], i = [...t.existingInputs || []];
|
|
4033
4031
|
for (const r of e.inlineFilters || []) {
|
|
4034
4032
|
const o = r.title || r.column || r.id, a = ys(r), s = {
|
|
4035
|
-
id:
|
|
4033
|
+
id: kr(e.id, r.id),
|
|
4036
4034
|
kind: "filter",
|
|
4037
4035
|
label: o,
|
|
4038
4036
|
variableName: r.variableName ? Me(
|
|
@@ -4054,7 +4052,7 @@ function Jn(e, t = {}) {
|
|
|
4054
4052
|
}
|
|
4055
4053
|
for (const r of e.controls || []) {
|
|
4056
4054
|
const o = r.label || r.id, a = {
|
|
4057
|
-
id:
|
|
4055
|
+
id: Mr(e.id, r.id),
|
|
4058
4056
|
kind: "control",
|
|
4059
4057
|
label: o,
|
|
4060
4058
|
variableName: Me(
|
|
@@ -4109,7 +4107,7 @@ function Xn(e, t = {}) {
|
|
|
4109
4107
|
const n = [], i = [...t.existingInputs || []];
|
|
4110
4108
|
for (const r of e.controls || []) {
|
|
4111
4109
|
const o = r.label || r.id, a = {
|
|
4112
|
-
id:
|
|
4110
|
+
id: Ar(r.id),
|
|
4113
4111
|
kind: "control",
|
|
4114
4112
|
label: o,
|
|
4115
4113
|
variableName: Me(
|
|
@@ -4269,7 +4267,7 @@ function Ts(e, t) {
|
|
|
4269
4267
|
}
|
|
4270
4268
|
};
|
|
4271
4269
|
}
|
|
4272
|
-
function
|
|
4270
|
+
function jc(e) {
|
|
4273
4271
|
var l;
|
|
4274
4272
|
const { namespace: t, contextMode: n } = e, i = Zn(t, n);
|
|
4275
4273
|
if (n === "none") return i;
|
|
@@ -4352,7 +4350,7 @@ function Fs(e) {
|
|
|
4352
4350
|
})
|
|
4353
4351
|
);
|
|
4354
4352
|
}
|
|
4355
|
-
function
|
|
4353
|
+
function zc(e) {
|
|
4356
4354
|
var t;
|
|
4357
4355
|
return (t = e == null ? void 0 : e[0]) == null ? void 0 : t.contextMode;
|
|
4358
4356
|
}
|
|
@@ -4421,7 +4419,7 @@ function Es(e, t) {
|
|
|
4421
4419
|
value: { kind: "selection", selection: n.data }
|
|
4422
4420
|
};
|
|
4423
4421
|
}
|
|
4424
|
-
function
|
|
4422
|
+
function $c(e) {
|
|
4425
4423
|
if (!Array.isArray(e)) return;
|
|
4426
4424
|
const t = e.flatMap((n) => {
|
|
4427
4425
|
if (!P(n) || typeof n.namespace != "string" || !n.namespace || !xs.includes(n.contextMode))
|
|
@@ -4474,7 +4472,7 @@ function Gc(e) {
|
|
|
4474
4472
|
});
|
|
4475
4473
|
return t.length ? t : void 0;
|
|
4476
4474
|
}
|
|
4477
|
-
function
|
|
4475
|
+
function Uc({
|
|
4478
4476
|
dashboard: e,
|
|
4479
4477
|
dashboardInputValues: t,
|
|
4480
4478
|
transientContexts: n
|
|
@@ -4582,7 +4580,7 @@ function _t({
|
|
|
4582
4580
|
};
|
|
4583
4581
|
}
|
|
4584
4582
|
const Bt = /* @__PURE__ */ new WeakMap();
|
|
4585
|
-
function
|
|
4583
|
+
function Gc(e) {
|
|
4586
4584
|
const t = Bt.get(e);
|
|
4587
4585
|
if (t) return t;
|
|
4588
4586
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -4714,7 +4712,7 @@ function Bs(e, t, n) {
|
|
|
4714
4712
|
return e.sheetId === r.id ? e : De;
|
|
4715
4713
|
}
|
|
4716
4714
|
}
|
|
4717
|
-
const
|
|
4715
|
+
const Qc = {};
|
|
4718
4716
|
function Ps(e) {
|
|
4719
4717
|
return { id: ze(e), runtimeScope: "shared" };
|
|
4720
4718
|
}
|
|
@@ -4751,7 +4749,7 @@ function Os(e, t) {
|
|
|
4751
4749
|
const i = Ce.safeParse(n.value.selection);
|
|
4752
4750
|
return i.success && i.data.sourceCardId === t ? i.data : void 0;
|
|
4753
4751
|
}
|
|
4754
|
-
function
|
|
4752
|
+
function qs(e) {
|
|
4755
4753
|
var i;
|
|
4756
4754
|
const t = Object.keys(((i = e.dashboardInputValues) == null ? void 0 : i.shared) ?? {}).filter(
|
|
4757
4755
|
mr
|
|
@@ -4770,7 +4768,7 @@ function Rs(e) {
|
|
|
4770
4768
|
return s && l ? [{ input: l, value: s, sourceCard: a }] : [];
|
|
4771
4769
|
});
|
|
4772
4770
|
}
|
|
4773
|
-
function
|
|
4771
|
+
function Rs(e) {
|
|
4774
4772
|
const { card: t, input: n } = e;
|
|
4775
4773
|
return t.id === n.sourceCardId ? "sourceCard" : t.respondsToSelections === !1 ? "receiverOptedOut" : Jt(
|
|
4776
4774
|
{ scope: n.settings.targets },
|
|
@@ -4848,13 +4846,13 @@ function js(e, t, n) {
|
|
|
4848
4846
|
};
|
|
4849
4847
|
}
|
|
4850
4848
|
function zs(e) {
|
|
4851
|
-
const { card: t, input: n, value: i } = e, r = { inputId: n.id, sourceCardId: n.sourceCardId }, o =
|
|
4849
|
+
const { card: t, input: n, value: i } = e, r = { inputId: n.id, sourceCardId: n.sourceCardId }, o = qe(t), a = /* @__PURE__ */ new Map();
|
|
4852
4850
|
for (const c of i.tuples)
|
|
4853
4851
|
for (const m of c.conditions) {
|
|
4854
4852
|
const y = we(m.field);
|
|
4855
4853
|
a.has(y) || a.set(y, m.field);
|
|
4856
4854
|
}
|
|
4857
|
-
const s =
|
|
4855
|
+
const s = Rs({
|
|
4858
4856
|
card: t,
|
|
4859
4857
|
target: e.target ?? {},
|
|
4860
4858
|
input: n,
|
|
@@ -4989,7 +4987,7 @@ function Us(e) {
|
|
|
4989
4987
|
const { card: t } = e;
|
|
4990
4988
|
if (!t) return [];
|
|
4991
4989
|
const n = [
|
|
4992
|
-
...
|
|
4990
|
+
...qs(e),
|
|
4993
4991
|
...Fs(e.transientContexts)
|
|
4994
4992
|
];
|
|
4995
4993
|
if (!n.length) return [];
|
|
@@ -5071,7 +5069,7 @@ function ai(e) {
|
|
|
5071
5069
|
throw new Error(
|
|
5072
5070
|
`Dashboard input "${e.input.id}" carries comparison state but is not a supported dashboard date filter.`
|
|
5073
5071
|
);
|
|
5074
|
-
const f =
|
|
5072
|
+
const f = wr(
|
|
5075
5073
|
s.comparisonSelection,
|
|
5076
5074
|
`dashboardInputValues.${e.input.id}.comparisonSelection`
|
|
5077
5075
|
);
|
|
@@ -5330,96 +5328,96 @@ export {
|
|
|
5330
5328
|
ao as A,
|
|
5331
5329
|
lo as B,
|
|
5332
5330
|
mn as C,
|
|
5333
|
-
|
|
5331
|
+
Ol as D,
|
|
5334
5332
|
co as E,
|
|
5335
5333
|
fo as F,
|
|
5336
5334
|
ps as G,
|
|
5337
5335
|
ls as H,
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5336
|
+
Rc as I,
|
|
5337
|
+
Vc as J,
|
|
5338
|
+
Lc as K,
|
|
5341
5339
|
oo as L,
|
|
5342
5340
|
os as M,
|
|
5343
5341
|
as as N,
|
|
5344
5342
|
Xr as O,
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5343
|
+
El as P,
|
|
5344
|
+
ql as Q,
|
|
5345
|
+
Dc as R,
|
|
5346
|
+
_c as S,
|
|
5347
|
+
Ra as T,
|
|
5348
|
+
Bc as U,
|
|
5351
5349
|
Va as V,
|
|
5352
5350
|
La as W,
|
|
5353
5351
|
ja as X,
|
|
5354
5352
|
Os as Y,
|
|
5355
|
-
|
|
5353
|
+
Qc as Z,
|
|
5356
5354
|
Ps as _,
|
|
5357
5355
|
me as a,
|
|
5358
5356
|
cs as a$,
|
|
5359
5357
|
ws as a0,
|
|
5360
5358
|
Ks as a1,
|
|
5361
|
-
|
|
5359
|
+
$c as a2,
|
|
5362
5360
|
yo as a3,
|
|
5363
|
-
|
|
5361
|
+
zc as a4,
|
|
5364
5362
|
cn as a5,
|
|
5365
5363
|
Lo as a6,
|
|
5366
5364
|
He as a7,
|
|
5367
|
-
|
|
5365
|
+
fc as a8,
|
|
5368
5366
|
Eo as a9,
|
|
5369
|
-
|
|
5367
|
+
Xl as aA,
|
|
5370
5368
|
Dn as aB,
|
|
5371
5369
|
_e as aC,
|
|
5372
|
-
|
|
5370
|
+
$l as aD,
|
|
5373
5371
|
ha as aE,
|
|
5374
5372
|
Ia as aF,
|
|
5375
5373
|
zo as aG,
|
|
5376
5374
|
W as aH,
|
|
5377
|
-
|
|
5375
|
+
oc as aI,
|
|
5378
5376
|
Uo as aJ,
|
|
5379
|
-
|
|
5380
|
-
|
|
5377
|
+
ac as aK,
|
|
5378
|
+
Ac as aL,
|
|
5381
5379
|
rt as aM,
|
|
5382
5380
|
it as aN,
|
|
5383
|
-
|
|
5381
|
+
qr as aO,
|
|
5384
5382
|
wa as aP,
|
|
5385
5383
|
Na as aQ,
|
|
5386
5384
|
_a as aR,
|
|
5387
5385
|
Ba as aS,
|
|
5388
|
-
|
|
5389
|
-
|
|
5386
|
+
Zl as aT,
|
|
5387
|
+
nc as aU,
|
|
5390
5388
|
Vo as aV,
|
|
5391
5389
|
_o as aW,
|
|
5392
5390
|
et as aX,
|
|
5393
5391
|
Pn as aY,
|
|
5394
|
-
|
|
5392
|
+
Ll as aZ,
|
|
5395
5393
|
Et as a_,
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5394
|
+
Kc as aa,
|
|
5395
|
+
Uc as ab,
|
|
5396
|
+
Sc as ac,
|
|
5397
|
+
Fc as ad,
|
|
5398
|
+
ic as ae,
|
|
5399
|
+
Nc as af,
|
|
5400
|
+
wc as ag,
|
|
5401
|
+
Ec as ah,
|
|
5402
|
+
lc as ai,
|
|
5403
|
+
cc as aj,
|
|
5404
|
+
dc as ak,
|
|
5407
5405
|
xt as al,
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5406
|
+
uc as am,
|
|
5407
|
+
sc as an,
|
|
5408
|
+
Ro as ao,
|
|
5409
|
+
qo as ap,
|
|
5410
|
+
Wl as aq,
|
|
5413
5411
|
No as ar,
|
|
5414
5412
|
Ko as as,
|
|
5415
5413
|
Po as at,
|
|
5416
5414
|
Sn as au,
|
|
5417
|
-
|
|
5418
|
-
|
|
5415
|
+
Ql as av,
|
|
5416
|
+
Hl as aw,
|
|
5419
5417
|
Bo as ax,
|
|
5420
5418
|
Fn as ay,
|
|
5421
|
-
|
|
5422
|
-
|
|
5419
|
+
Rl as az,
|
|
5420
|
+
xc as b,
|
|
5423
5421
|
us as b0,
|
|
5424
5422
|
ds as b1,
|
|
5425
5423
|
_t as b2,
|
|
@@ -5428,73 +5426,73 @@ export {
|
|
|
5428
5426
|
ai as b5,
|
|
5429
5427
|
Js as b6,
|
|
5430
5428
|
Yo as b7,
|
|
5431
|
-
|
|
5429
|
+
yc as b8,
|
|
5432
5430
|
Fa as b9,
|
|
5433
5431
|
Aa as bA,
|
|
5434
5432
|
ys as bB,
|
|
5435
|
-
|
|
5436
|
-
|
|
5433
|
+
Vl as bC,
|
|
5434
|
+
tc as bD,
|
|
5437
5435
|
Fs as bE,
|
|
5438
5436
|
Bs as bF,
|
|
5439
5437
|
Vs as bG,
|
|
5440
|
-
|
|
5438
|
+
Yl as bH,
|
|
5441
5439
|
Pa as bI,
|
|
5442
|
-
|
|
5443
|
-
|
|
5440
|
+
gc as bJ,
|
|
5441
|
+
bc as bK,
|
|
5444
5442
|
Ze as bL,
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5443
|
+
pc as bM,
|
|
5444
|
+
mc as bN,
|
|
5445
|
+
Ic as bO,
|
|
5446
|
+
hc as bP,
|
|
5449
5447
|
va as bQ,
|
|
5450
5448
|
Sa as ba,
|
|
5451
|
-
|
|
5452
|
-
|
|
5449
|
+
Cc as bb,
|
|
5450
|
+
vc as bc,
|
|
5453
5451
|
Pe as bd,
|
|
5454
5452
|
Ta as be,
|
|
5455
5453
|
xa as bf,
|
|
5456
|
-
|
|
5454
|
+
Tc as bg,
|
|
5457
5455
|
hn as bh,
|
|
5458
5456
|
bn as bi,
|
|
5459
|
-
|
|
5457
|
+
Jl as bj,
|
|
5460
5458
|
Bn as bk,
|
|
5461
5459
|
gn as bl,
|
|
5462
5460
|
se as bm,
|
|
5463
5461
|
In as bn,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5462
|
+
zl as bo,
|
|
5463
|
+
jl as bp,
|
|
5464
|
+
Gl as bq,
|
|
5465
|
+
jc as br,
|
|
5468
5466
|
zs as bs,
|
|
5469
|
-
|
|
5467
|
+
qs as bt,
|
|
5470
5468
|
Co as bu,
|
|
5471
|
-
|
|
5469
|
+
Ul as bv,
|
|
5472
5470
|
ln as bw,
|
|
5473
|
-
|
|
5474
|
-
|
|
5471
|
+
ec as bx,
|
|
5472
|
+
Oc as by,
|
|
5475
5473
|
es as bz,
|
|
5476
|
-
|
|
5474
|
+
rc as c,
|
|
5477
5475
|
Ge as d,
|
|
5478
5476
|
Yr as e,
|
|
5479
5477
|
ye as f,
|
|
5480
5478
|
dn as g,
|
|
5481
5479
|
fn as h,
|
|
5482
5480
|
Ue as i,
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5481
|
+
wl as j,
|
|
5482
|
+
Nl as k,
|
|
5483
|
+
Gc as l,
|
|
5486
5484
|
eo as m,
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5485
|
+
_l as n,
|
|
5486
|
+
Bl as o,
|
|
5487
|
+
qc as p,
|
|
5490
5488
|
to as q,
|
|
5491
5489
|
$s as r,
|
|
5492
|
-
|
|
5490
|
+
Pl as s,
|
|
5493
5491
|
pn as t,
|
|
5494
|
-
|
|
5492
|
+
Kl as u,
|
|
5495
5493
|
Za as v,
|
|
5496
5494
|
Wn as w,
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5495
|
+
kc as x,
|
|
5496
|
+
Mc as y,
|
|
5497
|
+
Pc as z
|
|
5500
5498
|
};
|