react-semaphor 0.1.563 → 0.1.564
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-iIp02_77.js → assistant-chat-D1BEEHUF.js} +103 -103
- package/dist/chunks/{bookmark-impact-D4Kl4amw.js → bookmark-impact-XOsVUAqW.js} +1 -1
- package/dist/chunks/{dashboard-CmqeP3QZ.js → dashboard-DfYsASNd.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-TYlSW77S.js → dashboard-briefing-launcher-lvYfJoUQ.js} +1429 -1379
- package/dist/chunks/{dashboard-controls-B253nJS-.js → dashboard-controls-CJ8Dz50D.js} +58 -58
- package/dist/chunks/{dashboard-json-osQuinUZ.js → dashboard-json-D3uZxGO-.js} +1 -1
- package/dist/chunks/{dates-DFY7Gfss.js → dates-EvDtT25n.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-CMar-NhA.js → edit-dashboard-visual-CgHJXBQv.js} +8 -8
- package/dist/chunks/{filter-reach-copy-CvV7W5dd.js → filter-reach-copy-Cmb05jlE.js} +106 -106
- package/dist/chunks/{global-date-filter-utils-N1kcsOFE.js → global-date-filter-utils-ruJYwjgZ.js} +3034 -3023
- package/dist/chunks/{index-CNGkfUp4.js → index-CAgf2x4E.js} +2 -2
- package/dist/chunks/index-RNaTnE3m.js +585 -0
- package/dist/chunks/{report-preferences-dialog-l54wJyYE.js → report-preferences-dialog-DMqxSU4X.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DaDrZGuA.js → resolve-dashboard-input-context-i_jCSYae.js} +370 -370
- package/dist/chunks/{saved-dashboard-context-DFYBrE6O.js → saved-dashboard-context-Dg3oDmH_.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-C3EQEiD9.js → semaphor-ready-indicator-CFeCIuaw.js} +8045 -8041
- package/dist/chunks/{shelf-drop-preview-context-BODiBlqT.js → shelf-drop-preview-context-cEyVkKTF.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-BXY8-Cyz.js → use-create-flow-overlay-state-Dl6DCxh8.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +615 -594
- package/dist/index.js +13 -13
- package/dist/layouts/index.js +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/activity/activity-bell.d.ts +5 -1
- package/dist/types/components/activity/activity-types.d.ts +12 -4
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -1
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-CJW5BdWT.js +0 -583
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { a9 as
|
|
2
|
-
import {
|
|
3
|
-
import { H as
|
|
1
|
+
import { a9 as _n, aa as An, ab as Rn, ac as Et, ad as En, ae as Vn, af as Kn, ag as Ln, ah as Bn, ai as Vt, aj as $n, ak as qn, al as zn, am as Ie, an as Un, ao as jn, ap as Gn, k as Wn, aq as Hn, H as Yn, L as Qn, ar as Jn, as as Xn } from "./resolve-dashboard-input-context-i_jCSYae.js";
|
|
2
|
+
import { eX as Kt, bo as de, eY as Zn, eZ as er, e_ as tr, e$ as nr, W as j, f0 as Lt, bq as rr, f1 as ir, f2 as Ke, ao as Le, f3 as ar, bs as or, f4 as sr, f5 as lr, R as Be, f6 as cr, bz as ur, X as dr, f7 as fr, S as mr, f8 as S, a$ as $e, f9 as Y, fa as P, fb as pr, fc as hr, fd as dt, fe as gr, ff as ft, fg as yr, aL as T, fh as Bt, aX as qe, fi as br, fj as vr, ch as $t, fk as qt, fl as zt, eR as Ut, fm as mt, a5 as G, fn as ze, fo as pt, fp as Ue, fq as ht, fr as gt, eU as Fr, c1 as je, fs as Cr, ft as Ir, fu as xr, fv as ee, c4 as yt, fw as Sr, ab as jt, ac as Gt, d as wr, c8 as Tr, fx as Dr, c9 as kr, fy as Mr, fz as Or, fA as Nr, fB as Pr, j as Wt, fC as _r, fD as Ar, fE as Rr, fF as Oe, fG as Er, fH as xe, d3 as Ht, fI as bt, fJ as Vr, cD as Kr, d6 as vt, d5 as Lr, fK as Br, d$ as $r, e1 as qr, aA as zr, e4 as Ur, ad as Ft, aQ as jr, ex as Gr, fL as Wr, fM as Hr, co as Ct } from "./global-date-filter-utils-ruJYwjgZ.js";
|
|
3
|
+
import { H as Yt, f as Yr, e as Qr, G as Qt, aA as Jr, v as Xr, a_ as Jt, aX as Ne, aV as $, aY as Zr, a$ as ei } from "./validators-BIM0FE31.js";
|
|
4
4
|
import { r as Se } from "./matrix-operation-contract-DsLdFdSa.js";
|
|
5
5
|
import { r as ti, C as ni } from "./metric-comparison-Bnso1cm1.js";
|
|
6
6
|
import { t as It } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
7
7
|
import "zod";
|
|
8
|
-
import { b as W, i as R, aI as ri, aJ as ii, m as ai, h as oi, d as
|
|
8
|
+
import { b as W, i as R, aI as ri, aJ as ii, m as ai, h as oi, d as Pe, e as si, Q as N, ae as li, al as ci, c as ui, ag as di, W as fi, w as mi, a4 as pi } from "./temporal-input-presentation-sk9gqLi6.js";
|
|
9
9
|
import "../value-format-preferences/index.js";
|
|
10
10
|
import { y as hi, z as ge } from "./bookmark-state-CWeoGbrx.js";
|
|
11
11
|
import { g as gi } from "./_commonjsHelpers-DimLPMtv.js";
|
|
12
12
|
import "./index-CuHybtft.js";
|
|
13
|
-
import "./index-
|
|
13
|
+
import "./index-RNaTnE3m.js";
|
|
14
14
|
import "./context-R31TSL5V.js";
|
|
15
15
|
import { a as yi } from "./source-entity-resolution-DdDVXFB8.js";
|
|
16
16
|
import { R as bi } from "./matrix-analytical-definition-hEucouWM.js";
|
|
17
|
-
import { r as
|
|
17
|
+
import { r as _e } from "./pivot-result-identity-Dq5jm-EC.js";
|
|
18
18
|
import { r as Xt } from "./applied-constraints-DU-wndZ7.js";
|
|
19
19
|
const vi = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, Fi = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, Ci = /\bwhere\b/i;
|
|
20
20
|
function Ii(e) {
|
|
@@ -117,13 +117,13 @@ const xt = [10, 20, 50, 100, 500, 1e3], Si = 50;
|
|
|
117
117
|
function wi(e) {
|
|
118
118
|
return e && e > 0 ? e : Si;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Yo(e) {
|
|
121
121
|
const t = wi(e), n = [...xt];
|
|
122
122
|
return xt.includes(
|
|
123
123
|
t
|
|
124
124
|
) || (n.push(t), n.sort((r, i) => r - i)), n;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Qo(e) {
|
|
127
127
|
var t, n;
|
|
128
128
|
return !!((e.type === "table" || e.type === "detailTable") && e.sql && !Kt(e.config) && !((n = (t = e.preferences) == null ? void 0 : t.tablePrefs) != null && n.forceClientPagination));
|
|
129
129
|
}
|
|
@@ -134,7 +134,7 @@ function Ti(e, t) {
|
|
|
134
134
|
if ((i = (r = e.preferences) == null ? void 0 : r.tablePrefs) != null && i.forceClientPagination)
|
|
135
135
|
return "client";
|
|
136
136
|
const n = Kt(e.config);
|
|
137
|
-
return e.sql && !n ? (o = (a = e.preferences) == null ? void 0 : a.tablePrefs) != null && o.enableDevModePagination ? "server" : "client" : n &&
|
|
137
|
+
return e.sql && !n ? (o = (a = e.preferences) == null ? void 0 : a.tablePrefs) != null && o.enableDevModePagination ? "server" : "client" : n && _n(e) ? "server" : "client";
|
|
138
138
|
}
|
|
139
139
|
const en = Object.freeze({}), Jo = {
|
|
140
140
|
access: "session-only",
|
|
@@ -195,7 +195,7 @@ function Ni(e) {
|
|
|
195
195
|
de(e, { preserveOmittedProperties: !0 })
|
|
196
196
|
);
|
|
197
197
|
}
|
|
198
|
-
const ye = Oi, es = Ni,
|
|
198
|
+
const ye = Oi, es = Ni, Pi = () => ({
|
|
199
199
|
urlTemplate: "{value}",
|
|
200
200
|
// Default: use cell value as-is
|
|
201
201
|
labelType: "value",
|
|
@@ -233,7 +233,7 @@ const ye = Oi, es = Ni, _i = () => ({
|
|
|
233
233
|
sourceTimezone: "auto"
|
|
234
234
|
// Default to auto (use explicit timezone if present, otherwise assume UTC)
|
|
235
235
|
},
|
|
236
|
-
linkFormat:
|
|
236
|
+
linkFormat: Pi()
|
|
237
237
|
});
|
|
238
238
|
function ts(e, t, n, r) {
|
|
239
239
|
return t && t !== "auto" ? t : n;
|
|
@@ -287,7 +287,7 @@ function We(e, t = "auto", n = {}) {
|
|
|
287
287
|
case "currency":
|
|
288
288
|
return rn(e, n);
|
|
289
289
|
case "percent":
|
|
290
|
-
return
|
|
290
|
+
return _i(e, n);
|
|
291
291
|
case "date":
|
|
292
292
|
return Ai(e, n);
|
|
293
293
|
case "scientific":
|
|
@@ -299,13 +299,13 @@ function We(e, t = "auto", n = {}) {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
function nn(e, t = {}) {
|
|
302
|
-
return e < 0 && !!t.prefix && !t.negativeInParentheses ? `-${
|
|
302
|
+
return e < 0 && !!t.prefix && !t.negativeInParentheses ? `-${Pe(
|
|
303
303
|
Math.abs(e),
|
|
304
304
|
fe(t, {
|
|
305
305
|
min: 0,
|
|
306
306
|
max: 0
|
|
307
307
|
})
|
|
308
|
-
)}` :
|
|
308
|
+
)}` : Pe(
|
|
309
309
|
e,
|
|
310
310
|
fe(t, {
|
|
311
311
|
min: 0,
|
|
@@ -323,9 +323,9 @@ function rn(e, t = {}) {
|
|
|
323
323
|
currency: t.currency || "USD"
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function _i(e, t = {}) {
|
|
327
327
|
const n = tn(t, { min: 1, max: 1 }), i = typeof t.multiplyBy == "number" && Number.isFinite(t.multiplyBy) ? t.multiplyBy : t.percentValueMode === "whole" ? 1 : 100, a = e * i;
|
|
328
|
-
return
|
|
328
|
+
return Pe(a, {
|
|
329
329
|
locale: t.locale,
|
|
330
330
|
minimumFractionDigits: n.minimumFractionDigits,
|
|
331
331
|
maximumFractionDigits: n.maximumFractionDigits,
|
|
@@ -602,7 +602,7 @@ function ie(e, t) {
|
|
|
602
602
|
return n;
|
|
603
603
|
}
|
|
604
604
|
function $i(e) {
|
|
605
|
-
return !!e && !(e != null && e.format) &&
|
|
605
|
+
return !!e && !(e != null && e.format) && Yt(e == null ? void 0 : e.dataType) === "number";
|
|
606
606
|
}
|
|
607
607
|
const qi = {
|
|
608
608
|
style: "decimal"
|
|
@@ -812,11 +812,11 @@ function wt(e) {
|
|
|
812
812
|
if (t)
|
|
813
813
|
return JSON.stringify(t);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Yi(e, t) {
|
|
816
816
|
const n = wt(e), r = wt(t);
|
|
817
817
|
return !!(n && r && n === r);
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Qi(e) {
|
|
820
820
|
if (e.length === 0)
|
|
821
821
|
return;
|
|
822
822
|
const t = e.map(
|
|
@@ -828,7 +828,7 @@ function Yi(e) {
|
|
|
828
828
|
return;
|
|
829
829
|
const r = t, [i] = r;
|
|
830
830
|
return r.every(
|
|
831
|
-
(o) =>
|
|
831
|
+
(o) => Yi(i, o)
|
|
832
832
|
) ? i : void 0;
|
|
833
833
|
}
|
|
834
834
|
function ve(e) {
|
|
@@ -837,7 +837,7 @@ function ve(e) {
|
|
|
837
837
|
formatOptions: e.overrideFormatOptions || void 0,
|
|
838
838
|
source: "override"
|
|
839
839
|
};
|
|
840
|
-
const t =
|
|
840
|
+
const t = Qi(
|
|
841
841
|
e.metrics || []
|
|
842
842
|
);
|
|
843
843
|
return Ae(t) ? {
|
|
@@ -873,7 +873,7 @@ function un(e) {
|
|
|
873
873
|
const s = Le(n, i);
|
|
874
874
|
return n === "radar" ? r === "y" ? a : [] : r !== s ? [] : a;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function Ye(e) {
|
|
877
877
|
const { card: t, chartType: n, axis: r, preferences: i, axisConfig: a } = e, o = un({
|
|
878
878
|
card: t,
|
|
879
879
|
chartType: n,
|
|
@@ -908,7 +908,7 @@ function Ji(e) {
|
|
|
908
908
|
})
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Qe(e, t, n) {
|
|
912
912
|
return t === Le(n, e) ? ar(n, e) : t === "x" ? e == null ? void 0 : e.xAxisConfig : t === "y2" ? e == null ? void 0 : e.secondaryYAxisConfig : e == null ? void 0 : e.yAxisConfig;
|
|
913
913
|
}
|
|
914
914
|
function Je(e) {
|
|
@@ -937,12 +937,12 @@ function ls(e) {
|
|
|
937
937
|
});
|
|
938
938
|
if (a.source === "override")
|
|
939
939
|
return a;
|
|
940
|
-
const o = e.axis || Je({ chartType: n, preferences: r }), s =
|
|
940
|
+
const o = e.axis || Je({ chartType: n, preferences: r }), s = Ye({
|
|
941
941
|
card: t,
|
|
942
942
|
chartType: n,
|
|
943
943
|
axis: o,
|
|
944
944
|
preferences: r,
|
|
945
|
-
axisConfig:
|
|
945
|
+
axisConfig: Qe(r, o, n),
|
|
946
946
|
numericPresentation: e.numericPresentation
|
|
947
947
|
});
|
|
948
948
|
return s.source === "override" ? s : a;
|
|
@@ -970,12 +970,12 @@ function cs(e) {
|
|
|
970
970
|
};
|
|
971
971
|
if (c.source === "override" || !dn(a))
|
|
972
972
|
return c;
|
|
973
|
-
const u =
|
|
973
|
+
const u = Ye({
|
|
974
974
|
card: t,
|
|
975
975
|
chartType: a,
|
|
976
976
|
axis: o,
|
|
977
977
|
preferences: r,
|
|
978
|
-
axisConfig:
|
|
978
|
+
axisConfig: Qe(
|
|
979
979
|
r,
|
|
980
980
|
o,
|
|
981
981
|
a
|
|
@@ -1030,12 +1030,12 @@ function us(e) {
|
|
|
1030
1030
|
);
|
|
1031
1031
|
i = (c == null ? void 0 : c.yAxisId) === "y2" ? "y2" : "y";
|
|
1032
1032
|
}
|
|
1033
|
-
const a =
|
|
1033
|
+
const a = Ye({
|
|
1034
1034
|
card: e.card,
|
|
1035
1035
|
chartType: r,
|
|
1036
1036
|
axis: i,
|
|
1037
1037
|
preferences: e.preferences,
|
|
1038
|
-
axisConfig:
|
|
1038
|
+
axisConfig: Qe(
|
|
1039
1039
|
e.preferences,
|
|
1040
1040
|
i,
|
|
1041
1041
|
r
|
|
@@ -1484,7 +1484,7 @@ function oa(e) {
|
|
|
1484
1484
|
...F ? { metricId: F.metricId, metricAlias: F.metricAlias } : {}
|
|
1485
1485
|
}, I = (z = t.sql) != null && z.trim() ? void 0 : ie(t, g), M = I ? { kind: "metric", metricId: I.id } : { kind: "column", columnKey: v }, D = c.has(
|
|
1486
1486
|
Ie(M)
|
|
1487
|
-
),
|
|
1487
|
+
), _ = u(M), q = j(t)[v], H = {
|
|
1488
1488
|
dashboardId: e.dashboardId,
|
|
1489
1489
|
cardId: t.id
|
|
1490
1490
|
}, E = { kind: "column", columnKey: v }, O = I && (!q || q.inheritMetricFormat === !0) ? W(I.format, {
|
|
@@ -1522,7 +1522,7 @@ function oa(e) {
|
|
|
1522
1522
|
target: M,
|
|
1523
1523
|
resultColumnKeys: a,
|
|
1524
1524
|
valueFormatPreferences: e.reportContext.valueFormat,
|
|
1525
|
-
boundCurrency:
|
|
1525
|
+
boundCurrency: _
|
|
1526
1526
|
}) : void 0) ?? pe({
|
|
1527
1527
|
card: t,
|
|
1528
1528
|
...g,
|
|
@@ -1531,7 +1531,7 @@ function oa(e) {
|
|
|
1531
1531
|
}), X = (k == null ? void 0 : k.type) === "duration" ? k : k ? N(
|
|
1532
1532
|
k,
|
|
1533
1533
|
e.reportContext.valueFormat,
|
|
1534
|
-
|
|
1534
|
+
_
|
|
1535
1535
|
) : N(
|
|
1536
1536
|
{
|
|
1537
1537
|
type: "number",
|
|
@@ -1643,8 +1643,8 @@ function hs(e) {
|
|
|
1643
1643
|
} : { status: "refused", reason: "columns_unresolved" };
|
|
1644
1644
|
}
|
|
1645
1645
|
function la(e, t, n) {
|
|
1646
|
-
if (
|
|
1647
|
-
|
|
1646
|
+
if (Yr(
|
|
1647
|
+
Qr(t),
|
|
1648
1648
|
e.aggregateOrigin
|
|
1649
1649
|
))
|
|
1650
1650
|
return { aggregate: void 0, aggregateOrigin: void 0 };
|
|
@@ -1741,16 +1741,16 @@ function fa(e, t) {
|
|
|
1741
1741
|
"This sheet is a document: it has no grid to arrange.",
|
|
1742
1742
|
"Arrange a grid sheet; Document sheets are laid out in the editor."
|
|
1743
1743
|
);
|
|
1744
|
-
const a =
|
|
1744
|
+
const a = Y(i, { kind: "arrange", keepOrder: t.keepOrder === !0 });
|
|
1745
1745
|
return {
|
|
1746
1746
|
dashboard: { ...e, sheets: n.map((o, s) => s === r ? a : o) },
|
|
1747
|
-
clauses: [
|
|
1747
|
+
clauses: [P.arranged(i.title || "the dashboard", t.keepOrder === !0, !(i.frames ?? []).length)]
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
1750
|
function ma(e) {
|
|
1751
1751
|
return !!(e && Object.prototype.hasOwnProperty.call(e, "calculatedFields"));
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function Q(...e) {
|
|
1754
1754
|
return pr(e.flatMap((t) => t || []));
|
|
1755
1755
|
}
|
|
1756
1756
|
function te(e, t) {
|
|
@@ -1775,7 +1775,7 @@ function pa(e) {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
function ha(e) {
|
|
1777
1777
|
if (e !== void 0)
|
|
1778
|
-
return
|
|
1778
|
+
return Q(
|
|
1779
1779
|
e.map((t) => te(t, "dashboard"))
|
|
1780
1780
|
);
|
|
1781
1781
|
}
|
|
@@ -1785,7 +1785,7 @@ function vs(e) {
|
|
|
1785
1785
|
var a;
|
|
1786
1786
|
return t.push(...pa(i)), {
|
|
1787
1787
|
...i,
|
|
1788
|
-
calculatedFields:
|
|
1788
|
+
calculatedFields: Q(
|
|
1789
1789
|
Xe(i),
|
|
1790
1790
|
mn(i)
|
|
1791
1791
|
),
|
|
@@ -1797,7 +1797,7 @@ function vs(e) {
|
|
|
1797
1797
|
return {
|
|
1798
1798
|
...e,
|
|
1799
1799
|
calculatedFields: ha(
|
|
1800
|
-
|
|
1800
|
+
Q(
|
|
1801
1801
|
(r = e.calculatedFields) == null ? void 0 : r.map(
|
|
1802
1802
|
(i) => te(i, "dashboard")
|
|
1803
1803
|
),
|
|
@@ -1814,7 +1814,7 @@ function Dt(e, t) {
|
|
|
1814
1814
|
const n = t ? e.frames.find((a) => a.id === t) : void 0, r = e.frames.filter(
|
|
1815
1815
|
(a) => !t || a.id !== t
|
|
1816
1816
|
);
|
|
1817
|
-
return
|
|
1817
|
+
return Q(
|
|
1818
1818
|
n == null ? void 0 : n.calculatedFields,
|
|
1819
1819
|
...r.map((a) => a.calculatedFields)
|
|
1820
1820
|
);
|
|
@@ -1825,18 +1825,18 @@ function Fs(e, t) {
|
|
|
1825
1825
|
function Cs(e, t) {
|
|
1826
1826
|
if (!e)
|
|
1827
1827
|
return [];
|
|
1828
|
-
const n = Xe(e), r = mn(e), i =
|
|
1828
|
+
const n = Xe(e), r = mn(e), i = Q(
|
|
1829
1829
|
n,
|
|
1830
1830
|
r
|
|
1831
1831
|
);
|
|
1832
|
-
return ma(e) ? i.length === 0 ? [] : r.length === 0 ? i :
|
|
1832
|
+
return ma(e) ? i.length === 0 ? [] : r.length === 0 ? i : Q(
|
|
1833
1833
|
i,
|
|
1834
1834
|
Dt(e, t)
|
|
1835
1835
|
) : Dt(e, t);
|
|
1836
1836
|
}
|
|
1837
1837
|
function ga(e) {
|
|
1838
1838
|
if (e !== void 0)
|
|
1839
|
-
return
|
|
1839
|
+
return Q(
|
|
1840
1840
|
e.map((t) => te(t, "sheet"))
|
|
1841
1841
|
);
|
|
1842
1842
|
}
|
|
@@ -1867,13 +1867,13 @@ function ya(e, t) {
|
|
|
1867
1867
|
const o = r.frames[a], s = dt(r), l = (g) => g.calculatedFields === void 0 ? g : { ...g, calculatedFields: void 0 }, c = t.rewrittenFrames, u = c && c.length > 0 ? (() => {
|
|
1868
1868
|
const g = c.map((I) => I.id === i.id ? i : I);
|
|
1869
1869
|
return g.some((I) => I.id === i.id) ? g : [i, ...g];
|
|
1870
|
-
})() : [i], f = new Map(u.map((g) => [g.id, g])), d =
|
|
1870
|
+
})() : [i], f = new Map(u.map((g) => [g.id, g])), d = Y(r, { kind: "frame_updated", frame: i, resizeForNewKind: t.resizeLayouts });
|
|
1871
1871
|
let m = /* @__PURE__ */ new Set();
|
|
1872
1872
|
const h = gr.produce(e, (g) => {
|
|
1873
1873
|
const I = g.sheets[n];
|
|
1874
1874
|
d.layouts !== r.layouts && (I.layouts = ft(d.layouts)), d.customizedBreakpoints !== r.customizedBreakpoints && (I.customizedBreakpoints = d.customizedBreakpoints), t.sheetCalculatedFields !== void 0 && (I.calculatedFields = ga(t.sheetCalculatedFields)), I.frames = I.frames.map((D) => {
|
|
1875
|
-
const
|
|
1876
|
-
return
|
|
1875
|
+
const _ = f.get(D.id);
|
|
1876
|
+
return _ ? ft(l(_)) : D.calculatedFields === void 0 ? D : { ...D, calculatedFields: void 0 };
|
|
1877
1877
|
});
|
|
1878
1878
|
const M = dt(I);
|
|
1879
1879
|
m = new Set([...s].filter((D) => !M.has(D))), yr(g, m), t.dashboardCalculatedFields && (g.calculatedFields = t.dashboardCalculatedFields);
|
|
@@ -1881,11 +1881,11 @@ function ya(e, t) {
|
|
|
1881
1881
|
...m.size ? [{ kind: "cards_removed", cardIds: [...m] }] : [],
|
|
1882
1882
|
{ kind: "frame_committed", sheetId: t.sheetId, before: o, after: b }
|
|
1883
1883
|
], y = ((v = i.cards) == null ? void 0 : v.find((g) => g.id === i.activeCardId)) ?? ((F = i.cards) == null ? void 0 : F[0]);
|
|
1884
|
-
return { dashboard: h, runtimeEffects: p, clauses: [
|
|
1884
|
+
return { dashboard: h, runtimeEffects: p, clauses: [P.committed(y == null ? void 0 : y.title)] };
|
|
1885
1885
|
}
|
|
1886
1886
|
function ba(e, t) {
|
|
1887
1887
|
const n = { ...e }, r = [];
|
|
1888
|
-
return t.title !== void 0 && t.title !== e.title && (n.title = t.title, r.push(
|
|
1888
|
+
return t.title !== void 0 && t.title !== e.title && (n.title = t.title, r.push(P.plain("dashboard", `renames the dashboard to ${T(t.title)}`))), t.description === null && e.description ? (delete n.description, r.push(P.plain("dashboard", "removes the dashboard's description"))) : typeof t.description == "string" && t.description !== e.description && (n.description = t.description, r.push(P.plain("dashboard", "changes the dashboard's description"))), { dashboard: n, clauses: r.length ? r : [P.plain("dashboard", "changes nothing on the dashboard")] };
|
|
1889
1889
|
}
|
|
1890
1890
|
function va(e, t, n) {
|
|
1891
1891
|
const r = e.sheets ?? [], i = r.findIndex((s) => s.id === t), a = r[i];
|
|
@@ -1905,7 +1905,7 @@ function Ee(e) {
|
|
|
1905
1905
|
const { visualId: t, ...n } = e;
|
|
1906
1906
|
return n;
|
|
1907
1907
|
}
|
|
1908
|
-
const pn = (e) => e.cards.find((t) => t.id === e.activeCardId) ?? e.cards[0], Te = (e) =>
|
|
1908
|
+
const pn = (e) => e.cards.find((t) => t.id === e.activeCardId) ?? e.cards[0], Te = (e) => P.plain("detached", `makes ${e} local to this report; it no longer follows its library visual`);
|
|
1909
1909
|
function Fa(e, t) {
|
|
1910
1910
|
var h;
|
|
1911
1911
|
const { sheets: n, sheetIndex: r, sheet: i, cards: a } = va(e, t.sheetId, t.cardIds), o = le(i, t.cardIds[0]).id;
|
|
@@ -1916,21 +1916,21 @@ function Fa(e, t) {
|
|
|
1916
1916
|
if (p.id === o) continue;
|
|
1917
1917
|
const y = Bt(p, b);
|
|
1918
1918
|
if (!y.cards.length) {
|
|
1919
|
-
p.visualId && l.push(Te(T(p.cards[0].title))), s =
|
|
1919
|
+
p.visualId && l.push(Te(T(p.cards[0].title))), s = Y(s, { kind: "frame_removed", frameId: p.id });
|
|
1920
1920
|
continue;
|
|
1921
1921
|
}
|
|
1922
|
-
p.visualId && l.push(Te(`the tile of ${T((h = pn(y)) == null ? void 0 : h.title)}`)), s =
|
|
1922
|
+
p.visualId && l.push(Te(`the tile of ${T((h = pn(y)) == null ? void 0 : h.title)}`)), s = Y(s, { kind: "frame_updated", frame: p.visualId ? Ee(y) : y, resizeForNewKind: !0 });
|
|
1923
1923
|
}
|
|
1924
1924
|
const c = le(s, t.cardIds[0]), u = new Set(t.cardIds), f = {
|
|
1925
1925
|
...c,
|
|
1926
1926
|
cards: [...a, ...c.cards.filter((b) => !u.has(b.id))],
|
|
1927
1927
|
activeCardId: t.cardIds[0]
|
|
1928
1928
|
};
|
|
1929
|
-
c.visualId && l.push(Te("the tabs")), s =
|
|
1929
|
+
c.visualId && l.push(Te("the tabs")), s = Y(s, { kind: "frame_updated", frame: c.visualId ? Ee(f) : f, resizeForNewKind: !0 });
|
|
1930
1930
|
const d = a.map((b) => T(b.title)), m = [...new Map(l.map((b) => [b.lead, b])).values()];
|
|
1931
1931
|
return {
|
|
1932
1932
|
dashboard: { ...e, sheets: n.map((b, p) => p === r ? s : b) },
|
|
1933
|
-
clauses: [
|
|
1933
|
+
clauses: [P.plain("layout", `puts ${qe(d)} in one spot as tabs, ${d[0]} first`), ...m],
|
|
1934
1934
|
detached: m.length > 0
|
|
1935
1935
|
};
|
|
1936
1936
|
}
|
|
@@ -1945,12 +1945,12 @@ function Ca(e, t) {
|
|
|
1945
1945
|
if (a.cards.length < 2)
|
|
1946
1946
|
throw new S("frame_not_found", `${T(o.title)} already has its own spot.`);
|
|
1947
1947
|
const s = Bt(a, t.cardId);
|
|
1948
|
-
let l =
|
|
1948
|
+
let l = Y(i, {
|
|
1949
1949
|
kind: "frame_updated",
|
|
1950
1950
|
frame: a.visualId ? Ee(s) : s,
|
|
1951
1951
|
resizeForNewKind: !0
|
|
1952
1952
|
});
|
|
1953
|
-
l =
|
|
1953
|
+
l = Y(l, {
|
|
1954
1954
|
kind: "frame_added",
|
|
1955
1955
|
frame: { id: t.newFrameId, cards: [o], activeCardId: o.id },
|
|
1956
1956
|
placement: { position: { beside: a.id } }
|
|
@@ -1959,8 +1959,8 @@ function Ca(e, t) {
|
|
|
1959
1959
|
return {
|
|
1960
1960
|
dashboard: { ...e, sheets: n.map((f, d) => d === r ? l : f) },
|
|
1961
1961
|
clauses: [
|
|
1962
|
-
|
|
1963
|
-
...c ? [
|
|
1962
|
+
P.plain("layout", `gives ${T(o.title)} its own spot beside ${T((u = pn(s)) == null ? void 0 : u.title)}`),
|
|
1963
|
+
...c ? [P.plain("detached", "makes both spots local to this report; they no longer follow their library visual")] : []
|
|
1964
1964
|
],
|
|
1965
1965
|
detached: c
|
|
1966
1966
|
};
|
|
@@ -2054,7 +2054,7 @@ function Ta(e, t) {
|
|
|
2054
2054
|
return {
|
|
2055
2055
|
dashboard: { ...e, sheets: [...n, o] },
|
|
2056
2056
|
created: [{ kind: "sheet", id: r, title: i, ...t.changeIndex !== void 0 ? { changeIndex: t.changeIndex } : {} }],
|
|
2057
|
-
clauses: [
|
|
2057
|
+
clauses: [P.plain("sheet", `adds the sheet ${T(i)}`)]
|
|
2058
2058
|
};
|
|
2059
2059
|
}
|
|
2060
2060
|
function Da(e, t) {
|
|
@@ -2064,7 +2064,7 @@ function Da(e, t) {
|
|
|
2064
2064
|
const i = n[r];
|
|
2065
2065
|
return {
|
|
2066
2066
|
dashboard: { ...e, sheets: n.map((a, o) => o === r ? { ...a, title: t.title } : a) },
|
|
2067
|
-
clauses: [
|
|
2067
|
+
clauses: [P.plain("sheet", `renames the sheet ${T(i.title)} to ${T(t.title)}`)]
|
|
2068
2068
|
};
|
|
2069
2069
|
}
|
|
2070
2070
|
function ka(e, t, n) {
|
|
@@ -2165,14 +2165,14 @@ function Oa(e, t, n, r = { calendar: null }) {
|
|
|
2165
2165
|
...w,
|
|
2166
2166
|
...n.variableName !== void 0 ? { variableName: h } : {},
|
|
2167
2167
|
...F !== void 0 ? { title: F } : {}
|
|
2168
|
-
}), M = Array.isArray(e.inputs) ? [...e.inputs] : [], D = M.findIndex((w) => w.id === s.id),
|
|
2169
|
-
if (D < 0 || (
|
|
2168
|
+
}), M = Array.isArray(e.inputs) ? [...e.inputs] : [], D = M.findIndex((w) => w.id === s.id), _ = M[D];
|
|
2169
|
+
if (D < 0 || (_ == null ? void 0 : _.kind) !== "filter" || !_.filter)
|
|
2170
2170
|
return o("This filter can not be edited here.");
|
|
2171
2171
|
const q = v(
|
|
2172
2172
|
g ? {
|
|
2173
|
-
...
|
|
2173
|
+
..._,
|
|
2174
2174
|
filter: I(c)
|
|
2175
|
-
} :
|
|
2175
|
+
} : _
|
|
2176
2176
|
);
|
|
2177
2177
|
f && (q.exports = qt(c)), M[D] = q;
|
|
2178
2178
|
const H = je({
|
|
@@ -2190,7 +2190,7 @@ function Oa(e, t, n, r = { calendar: null }) {
|
|
|
2190
2190
|
return o(
|
|
2191
2191
|
((it = O.issues[0]) == null ? void 0 : it.message) ?? "These settings could not be saved."
|
|
2192
2192
|
);
|
|
2193
|
-
const X = n.variableName !== void 0 || n.scope !== void 0 ?
|
|
2193
|
+
const X = n.variableName !== void 0 || n.scope !== void 0 ? Pa(E, k.input) : void 0;
|
|
2194
2194
|
if (X)
|
|
2195
2195
|
return o(
|
|
2196
2196
|
`Another filter on the same cards is already named "${X}". Choose another name.`
|
|
@@ -2203,7 +2203,7 @@ function Oa(e, t, n, r = { calendar: null }) {
|
|
|
2203
2203
|
defaultInputValues: E.defaultInputValues,
|
|
2204
2204
|
dashboardInputValues: {}
|
|
2205
2205
|
};
|
|
2206
|
-
const
|
|
2206
|
+
const Pn = ((at = n.values) == null ? void 0 : at.target) ?? {}, A = Ra(
|
|
2207
2207
|
l,
|
|
2208
2208
|
c,
|
|
2209
2209
|
{
|
|
@@ -2214,7 +2214,7 @@ function Oa(e, t, n, r = { calendar: null }) {
|
|
|
2214
2214
|
defaultComparisonSelection: n.values.defaultComparisonSelection ?? void 0
|
|
2215
2215
|
} : {}
|
|
2216
2216
|
},
|
|
2217
|
-
|
|
2217
|
+
Pn,
|
|
2218
2218
|
r.calendar ?? void 0
|
|
2219
2219
|
);
|
|
2220
2220
|
if (A.defaultValueChanged || A.selectionIdentityChanged || A.defaultComparisonChanged) {
|
|
@@ -2239,7 +2239,7 @@ function Oa(e, t, n, r = { calendar: null }) {
|
|
|
2239
2239
|
});
|
|
2240
2240
|
}
|
|
2241
2241
|
if (n.scope && k.input.runtimeScope !== "shared") {
|
|
2242
|
-
const w =
|
|
2242
|
+
const w = _a(
|
|
2243
2243
|
E,
|
|
2244
2244
|
s,
|
|
2245
2245
|
k.input,
|
|
@@ -2317,7 +2317,7 @@ function Na(e) {
|
|
|
2317
2317
|
function De(e, t, n) {
|
|
2318
2318
|
n !== void 0 && (n === null ? delete e[t] : e[t] = n);
|
|
2319
2319
|
}
|
|
2320
|
-
function
|
|
2320
|
+
function Pa(e, t) {
|
|
2321
2321
|
const n = [
|
|
2322
2322
|
...G(e).inputs.map((i) => i.input),
|
|
2323
2323
|
...(Array.isArray(e.inputs) ? e.inputs : []).filter(
|
|
@@ -2334,7 +2334,7 @@ function _a(e, t) {
|
|
|
2334
2334
|
)
|
|
2335
2335
|
) ? t.variableName : void 0;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function _a(e, t, n, r) {
|
|
2338
2338
|
var u, f;
|
|
2339
2339
|
const i = [], a = jt(e), o = (d) => kt(t, d, a), s = (d) => kt(n, d, a), l = [];
|
|
2340
2340
|
if (n.runtimeScope === "perSheet")
|
|
@@ -2468,13 +2468,13 @@ function Ea(e, t, n) {
|
|
|
2468
2468
|
const r = G(e), i = r.findFilterInput({ inputId: t });
|
|
2469
2469
|
return i ? r.reachedCards({ inputId: t }).filter(
|
|
2470
2470
|
(a) => ["bound", "automatic", "sql", "relationshipApplied"].includes(
|
|
2471
|
-
|
|
2471
|
+
Yn(i.input, a.card, n).reach
|
|
2472
2472
|
)
|
|
2473
2473
|
).length : 0;
|
|
2474
2474
|
}
|
|
2475
2475
|
function Va(e, t) {
|
|
2476
2476
|
const n = G(e), r = n.findFilterInput({ inputId: t });
|
|
2477
|
-
return r ? n.reachedCards({ inputId: t }).filter((i) =>
|
|
2477
|
+
return r ? n.reachedCards({ inputId: t }).filter((i) => Qn(r.input, i.card) === "relationship").length : 0;
|
|
2478
2478
|
}
|
|
2479
2479
|
function bn(e, t) {
|
|
2480
2480
|
if (t.scope.kind === "allSheets") return "every sheet";
|
|
@@ -2495,7 +2495,7 @@ function Fn(e) {
|
|
|
2495
2495
|
if ((r = e.filter) != null && r.defaultDateFilter) return "a default period";
|
|
2496
2496
|
}
|
|
2497
2497
|
function ae(e) {
|
|
2498
|
-
return
|
|
2498
|
+
return P.plain("filter", e);
|
|
2499
2499
|
}
|
|
2500
2500
|
function Ka(e, t) {
|
|
2501
2501
|
const { input: n } = t, r = J(e);
|
|
@@ -2636,7 +2636,7 @@ function ja(e, t) {
|
|
|
2636
2636
|
clauses: [ae(`stops ${T(n.label)} from filtering ${T(yn(e, t.cardId))}`)]
|
|
2637
2637
|
};
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function Ps(e, t, n) {
|
|
2640
2640
|
let r = e;
|
|
2641
2641
|
const i = [], a = [], o = [], s = [];
|
|
2642
2642
|
let l = !1;
|
|
@@ -2727,7 +2727,7 @@ function Wa(e) {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
return t.map(({ clauses: n, ...r }) => ({
|
|
2729
2729
|
...r,
|
|
2730
|
-
sentence:
|
|
2730
|
+
sentence: Pr(Ha(n))
|
|
2731
2731
|
}));
|
|
2732
2732
|
}
|
|
2733
2733
|
function Ha(e) {
|
|
@@ -2756,7 +2756,7 @@ function re(e) {
|
|
|
2756
2756
|
e.tableName
|
|
2757
2757
|
].join(":");
|
|
2758
2758
|
}
|
|
2759
|
-
function
|
|
2759
|
+
function Ya(e, t) {
|
|
2760
2760
|
if (e.kind === "semantic")
|
|
2761
2761
|
return {
|
|
2762
2762
|
status: "ready",
|
|
@@ -2788,14 +2788,14 @@ function Qa(e, t) {
|
|
|
2788
2788
|
})
|
|
2789
2789
|
};
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function _s(e, t = /* @__PURE__ */ new Map()) {
|
|
2792
2792
|
const n = /* @__PURE__ */ new Map();
|
|
2793
2793
|
for (const { card: r } of e) {
|
|
2794
2794
|
const i = Wt(r), a = i.kind === "config" ? i.executableSources : i.kind === "sql" ? i.pinnedCatalogSources.map((o) => o.source) : [];
|
|
2795
2795
|
for (const o of a) {
|
|
2796
2796
|
const s = re(o);
|
|
2797
2797
|
if (!n.has(s)) {
|
|
2798
|
-
const l =
|
|
2798
|
+
const l = Ya(
|
|
2799
2799
|
o,
|
|
2800
2800
|
o.connectionId ? t.get(o.connectionId) : void 0
|
|
2801
2801
|
);
|
|
@@ -2809,7 +2809,7 @@ function Ps(e, t = /* @__PURE__ */ new Map()) {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
return Array.from(n.values());
|
|
2811
2811
|
}
|
|
2812
|
-
function
|
|
2812
|
+
function Qa(e, t) {
|
|
2813
2813
|
if (e.kind !== "semantic" || !e.connectionId) return;
|
|
2814
2814
|
const n = (t.qualifiedEntityName || "").split(".").map((i) => i.trim()).filter(Boolean), r = n.at(-1);
|
|
2815
2815
|
if (r)
|
|
@@ -2832,7 +2832,7 @@ function Ve(e, t, n) {
|
|
|
2832
2832
|
for (const r of t) {
|
|
2833
2833
|
const i = r == null ? void 0 : r.trim();
|
|
2834
2834
|
if (!i) continue;
|
|
2835
|
-
const a =
|
|
2835
|
+
const a = Qt(i), o = e.fields.get(a);
|
|
2836
2836
|
o === void 0 ? e.fields.set(a, n) : o !== n && e.fieldConflicts.add(a);
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
@@ -2853,7 +2853,7 @@ function As(e, t) {
|
|
|
2853
2853
|
if (o.status !== "ready") continue;
|
|
2854
2854
|
const s = t == null ? void 0 : t.get(a), l = s ? Sn(s) : void 0;
|
|
2855
2855
|
for (const c of o.columns) {
|
|
2856
|
-
const u = (r = c.column_name) == null ? void 0 : r.trim(), f = (i = c.label) == null ? void 0 : i.trim(), d = s ?
|
|
2856
|
+
const u = (r = c.column_name) == null ? void 0 : r.trim(), f = (i = c.label) == null ? void 0 : i.trim(), d = s ? Qa(s, c) : void 0;
|
|
2857
2857
|
d && l && In(
|
|
2858
2858
|
ce(n, re(d)),
|
|
2859
2859
|
l
|
|
@@ -2898,7 +2898,7 @@ function wn(e, t) {
|
|
|
2898
2898
|
function Xa(e, t) {
|
|
2899
2899
|
var i;
|
|
2900
2900
|
if (!e) return;
|
|
2901
|
-
const n =
|
|
2901
|
+
const n = Qt(t.name), r = wn(e, t.source);
|
|
2902
2902
|
return r && !((i = r.fieldConflicts) != null && i.has(n)) ? r.fields.get(n) : void 0;
|
|
2903
2903
|
}
|
|
2904
2904
|
function Za(e, t) {
|
|
@@ -2919,7 +2919,7 @@ function Es(e, t) {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
function eo(e, t) {
|
|
2921
2921
|
var i, a;
|
|
2922
|
-
const n = (i = t.column_name) == null ? void 0 : i.trim(), r =
|
|
2922
|
+
const n = (i = t.column_name) == null ? void 0 : i.trim(), r = Yt(t.data_type);
|
|
2923
2923
|
if (!(!n || r === "unknown"))
|
|
2924
2924
|
return {
|
|
2925
2925
|
kind: "field",
|
|
@@ -2980,7 +2980,7 @@ function Tn(e, t, n) {
|
|
|
2980
2980
|
const i = (r = e.defaultFilterValues) == null ? void 0 : r.find(
|
|
2981
2981
|
(a) => a.filterId === t.filter.id
|
|
2982
2982
|
);
|
|
2983
|
-
return i ?
|
|
2983
|
+
return i ? _r({
|
|
2984
2984
|
filterDefinitions: [t.filter],
|
|
2985
2985
|
filterValues: [i]
|
|
2986
2986
|
})[0] : ee(t.filter, n);
|
|
@@ -3148,14 +3148,14 @@ function $s(e, t) {
|
|
|
3148
3148
|
(i) => !!i && ne(i).includes(n)
|
|
3149
3149
|
) : !0;
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3151
|
+
function Pt(e, t) {
|
|
3152
3152
|
const n = ne(t);
|
|
3153
3153
|
if (!n) return 0;
|
|
3154
3154
|
const r = ne(et(e));
|
|
3155
3155
|
return r.startsWith(n) ? 0 : r.includes(n) ? 1 : [e.label, e.name].filter(Boolean).map(ne).some((a) => a.includes(n)) ? 2 : 3;
|
|
3156
3156
|
}
|
|
3157
3157
|
function qs(e, t, n) {
|
|
3158
|
-
return
|
|
3158
|
+
return Pt(e, n) - Pt(t, n) || oo(e, t);
|
|
3159
3159
|
}
|
|
3160
3160
|
function so(e, t) {
|
|
3161
3161
|
var a;
|
|
@@ -3277,7 +3277,7 @@ function fo(e, t) {
|
|
|
3277
3277
|
});
|
|
3278
3278
|
return n == null ? void 0 : n.key;
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3280
|
+
function _t(e, t) {
|
|
3281
3281
|
var n;
|
|
3282
3282
|
switch (e.kind) {
|
|
3283
3283
|
case "field":
|
|
@@ -3297,10 +3297,10 @@ function Pt(e, t) {
|
|
|
3297
3297
|
function Us(e, t) {
|
|
3298
3298
|
return e.flatMap((n) => {
|
|
3299
3299
|
var s, l;
|
|
3300
|
-
const r =
|
|
3300
|
+
const r = _t(n.condition.column, t);
|
|
3301
3301
|
if (r === void 0) return [];
|
|
3302
3302
|
const i = (s = n.target.columns) == null ? void 0 : s.flatMap((c) => {
|
|
3303
|
-
const u =
|
|
3303
|
+
const u = _t(c, t);
|
|
3304
3304
|
return u === void 0 ? [] : [u];
|
|
3305
3305
|
});
|
|
3306
3306
|
if ((l = n.target.columns) != null && l.length && !(i != null && i.length)) return [];
|
|
@@ -3393,7 +3393,7 @@ function B(e) {
|
|
|
3393
3393
|
function mo(e) {
|
|
3394
3394
|
return $(e) ? e : B(e);
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function Ys(e) {
|
|
3397
3397
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
3398
3398
|
for (const r of e)
|
|
3399
3399
|
$(r) ? n.add(r.value) : t.add(r);
|
|
@@ -3579,7 +3579,7 @@ const se = Object.freeze({}), ke = "value";
|
|
|
3579
3579
|
function So() {
|
|
3580
3580
|
return { numericRanges: {}, topBottom: {}, unavailableRuleIds: /* @__PURE__ */ new Set() };
|
|
3581
3581
|
}
|
|
3582
|
-
function
|
|
3582
|
+
function Qs(e, t) {
|
|
3583
3583
|
var l;
|
|
3584
3584
|
const n = qr(e);
|
|
3585
3585
|
if (!n.length) return se;
|
|
@@ -3620,7 +3620,7 @@ function Zs({
|
|
|
3620
3620
|
}) {
|
|
3621
3621
|
const o = e || t.config, { groupByColumns: s = [], metricColumns: l = [], detailColumns: c = [] } = o || {}, u = t.type === "detailTable", f = u ? "detail" : "groupby", d = u ? c : s, m = u ? [] : l, h = [];
|
|
3622
3622
|
for (const p of d) {
|
|
3623
|
-
const y = r ?
|
|
3623
|
+
const y = r ? _e(r, p.id, f) : void 0, C = (y == null ? void 0 : y.outputKey) || (y == null ? void 0 : y.rawKey) || p.label, v = n.getValue(C), F = i == null ? void 0 : i.byColumnKey.get(C);
|
|
3624
3624
|
if (v == null && F)
|
|
3625
3625
|
h.push({
|
|
3626
3626
|
field: p,
|
|
@@ -3653,7 +3653,7 @@ function Zs({
|
|
|
3653
3653
|
return;
|
|
3654
3654
|
const b = [];
|
|
3655
3655
|
for (const p of m) {
|
|
3656
|
-
const y = r ?
|
|
3656
|
+
const y = r ? _e(r, p.id, "metric") : void 0, C = n.getValue(
|
|
3657
3657
|
(y == null ? void 0 : y.outputKey) || (y == null ? void 0 : y.rawKey) || p.label
|
|
3658
3658
|
);
|
|
3659
3659
|
C != null && b.push({
|
|
@@ -3676,7 +3676,7 @@ function el({
|
|
|
3676
3676
|
}) {
|
|
3677
3677
|
const i = e || t.config, a = t.type === "detailTable", o = a ? "detail" : "groupby";
|
|
3678
3678
|
return ((a ? i == null ? void 0 : i.detailColumns : i == null ? void 0 : i.groupByColumns) || []).find((l) => {
|
|
3679
|
-
const c = r ?
|
|
3679
|
+
const c = r ? _e(r, l.id, o) : void 0;
|
|
3680
3680
|
return ((c == null ? void 0 : c.outputKey) || (c == null ? void 0 : c.rawKey) || l.label) === n;
|
|
3681
3681
|
});
|
|
3682
3682
|
}
|
|
@@ -3833,7 +3833,7 @@ export {
|
|
|
3833
3833
|
Us as A,
|
|
3834
3834
|
js as B,
|
|
3835
3835
|
xo as C,
|
|
3836
|
-
|
|
3836
|
+
Qs as D,
|
|
3837
3837
|
Xs as E,
|
|
3838
3838
|
nl as F,
|
|
3839
3839
|
rl as G,
|
|
@@ -3851,7 +3851,7 @@ export {
|
|
|
3851
3851
|
Is as S,
|
|
3852
3852
|
Sa as T,
|
|
3853
3853
|
Fs as U,
|
|
3854
|
-
|
|
3854
|
+
Q as V,
|
|
3855
3855
|
Jo as W,
|
|
3856
3856
|
me as X,
|
|
3857
3857
|
ha as Y,
|
|
@@ -3864,20 +3864,20 @@ export {
|
|
|
3864
3864
|
Ti as a2,
|
|
3865
3865
|
Di as a3,
|
|
3866
3866
|
ps as a4,
|
|
3867
|
-
|
|
3867
|
+
Ye as a5,
|
|
3868
3868
|
rs as a6,
|
|
3869
3869
|
cs as a7,
|
|
3870
3870
|
ds as a8,
|
|
3871
3871
|
us as a9,
|
|
3872
|
-
|
|
3872
|
+
Yo as aA,
|
|
3873
3873
|
Zt as aB,
|
|
3874
|
-
|
|
3874
|
+
Pi as aC,
|
|
3875
3875
|
Ge as aD,
|
|
3876
3876
|
ts as aE,
|
|
3877
3877
|
ns as aF,
|
|
3878
3878
|
pe as aG,
|
|
3879
3879
|
ie as aH,
|
|
3880
|
-
|
|
3880
|
+
Qo as aI,
|
|
3881
3881
|
el as aJ,
|
|
3882
3882
|
ss as aK,
|
|
3883
3883
|
ka as aL,
|
|
@@ -3888,10 +3888,10 @@ export {
|
|
|
3888
3888
|
Za as aQ,
|
|
3889
3889
|
re as aR,
|
|
3890
3890
|
Ze as aS,
|
|
3891
|
-
|
|
3891
|
+
_s as aT,
|
|
3892
3892
|
Vs as aU,
|
|
3893
3893
|
As as aV,
|
|
3894
|
-
|
|
3894
|
+
Ya as aW,
|
|
3895
3895
|
ao as aX,
|
|
3896
3896
|
Bs as aY,
|
|
3897
3897
|
Ls as aZ,
|
|
@@ -3918,7 +3918,7 @@ export {
|
|
|
3918
3918
|
Hs as at,
|
|
3919
3919
|
mo as au,
|
|
3920
3920
|
Rt as av,
|
|
3921
|
-
|
|
3921
|
+
Ys as aw,
|
|
3922
3922
|
Zo as ax,
|
|
3923
3923
|
ra as ay,
|
|
3924
3924
|
wi as az,
|
|
@@ -3927,7 +3927,7 @@ export {
|
|
|
3927
3927
|
ma as b1,
|
|
3928
3928
|
Gi as b2,
|
|
3929
3929
|
qs as b3,
|
|
3930
|
-
|
|
3930
|
+
Pt as b4,
|
|
3931
3931
|
Ia as b5,
|
|
3932
3932
|
io as b6,
|
|
3933
3933
|
ne as b7,
|
|
@@ -3939,7 +3939,7 @@ export {
|
|
|
3939
3939
|
Ss as bd,
|
|
3940
3940
|
Xo as be,
|
|
3941
3941
|
bs as c,
|
|
3942
|
-
|
|
3942
|
+
Ps as d,
|
|
3943
3943
|
eo as e,
|
|
3944
3944
|
Ma as f,
|
|
3945
3945
|
Js as g,
|
|
@@ -3961,5 +3961,5 @@ export {
|
|
|
3961
3961
|
lo as w,
|
|
3962
3962
|
co as x,
|
|
3963
3963
|
zs as y,
|
|
3964
|
-
|
|
3964
|
+
_t as z
|
|
3965
3965
|
};
|