react-semaphor 0.1.566 → 0.1.567
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-DNKAYSQL.js → assistant-chat-D-IuHHwh.js} +6 -6
- package/dist/chunks/{bookmark-impact-BeUbq0jc.js → bookmark-impact-B0estCHn.js} +9 -9
- package/dist/chunks/{bookmark-state-ByODVqee.js → bookmark-state-Du3s13_V.js} +333 -321
- package/dist/chunks/{card-filter-builder-SXaRWbKr.js → card-filter-builder-DbSmzvem.js} +3 -3
- package/dist/chunks/{dashboard-briefing-launcher-CXeXRTem.js → dashboard-briefing-launcher-DunvZYsU.js} +152 -152
- package/dist/chunks/{dashboard-controls-CsqKybrf.js → dashboard-controls-B09cN2Dz.js} +8 -8
- package/dist/chunks/{dashboard-Cni7nGhg.js → dashboard-f8J9DHh5.js} +1 -1
- package/dist/chunks/{dashboard-json-WWmw3Piu.js → dashboard-json-BNNCaKEc.js} +1 -1
- package/dist/chunks/{dates-DJRUS-he.js → dates-BsJcyoC_.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-BrIEaBhc.js → edit-dashboard-visual-Cwzbpty8.js} +8 -8
- package/dist/chunks/{filter-reach-copy-D5LqgrUf.js → filter-reach-copy-P-kDwUpY.js} +3 -3
- package/dist/chunks/{index-Bq9UbCGk.js → index-BcXw0CpM.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-CeHioJwL.js → report-preferences-dialog-CbgmdWeZ.js} +8 -8
- package/dist/chunks/{resolve-dashboard-input-context-CwS-2r-b.js → resolve-dashboard-input-context-DPKSF3qj.js} +264 -264
- package/dist/chunks/{saved-dashboard-context-c-MZZTx2.js → saved-dashboard-context-CNudmm9U.js} +13 -13
- package/dist/chunks/{semaphor-ready-indicator-B2NpYRE-.js → semaphor-ready-indicator-CQd-PCCZ.js} +24824 -24790
- package/dist/chunks/{shelf-drop-preview-context-DM7yypwC.js → shelf-drop-preview-context-CWS3e20y.js} +2 -2
- package/dist/chunks/{stored-dashboard-DTWc2pzt.js → stored-dashboard-CrQFT27O.js} +1050 -1031
- package/dist/chunks/{variable-draft-DFizFCJu.js → variable-draft-BDxlD0dM.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +11 -11
- package/dist/index.js +12 -12
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/index.js +33 -32
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +24 -2
- package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +15 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var zg = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var le = (e, t, n) =>
|
|
4
|
-
import { t as vd, D as
|
|
5
|
-
import { r as
|
|
2
|
+
var Kg = (e, t, n) => t in e ? zg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var le = (e, t, n) => Kg(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { t as vd, D as Ug, C as Yg, y as Wg, k as Wr, e as Gr, d as Gg, S as gi } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
5
|
+
import { r as Kt, c as Hg, P as Qg } from "./pivot-result-identity-BlbLrqaC.js";
|
|
6
6
|
import { H as de, am as Jn, w as Id, ay as Jg, u as _d, ae as Zg, M as tt, G as Ie, I as ie, k as Xg, q as Hr, at as fa, B as wr, F as wd, C as hi, v as ma, l as Hs, o as yi, b0 as eh, a1 as th, c as xt, b1 as nh, b2 as Qs, S as rh, R as Cd, b3 as oh, d as Sd, a$ as kd, aX as bi, aV as nt, aY as ih, b4 as ah, aT as Mo, P as sh, W as lh, Q as ch, aZ as dh, N as Js, aa as uh, D as fh, aB as mh, z as Zs } from "./validators-wtjw0aw6.js";
|
|
7
7
|
import { am as ph, P as gh, N as hh, D as yh, r as Ht, G as Qr, t as kt, Q as pa, u as bh, v as Td } from "./matrix-operation-contract-Eb6elidS.js";
|
|
8
8
|
import { g as vh, C as Ih, D as ga, h as ha, i as _h, d as wh } from "./metric-comparison-ChXUFaZu.js";
|
|
9
9
|
import { z as f } from "zod";
|
|
10
|
-
import { a5 as Ch, i as ya, aX as Dd, aY as ba, aZ as Sh, a_ as vi, b as va, c as kh, aF as Th, az as Jr, aD as Zr, aG as Dh, ae as xh, _ as Fh, S as $h, an as Eh, ai as Nh, ap as on, af as Ah, am as Mh, a4 as rt, a2 as Oh, ad as Ia, aq as Rh, as as xd, aA as Fd, d as Ph, aH as Bh, aB as jh, a7 as qh, $ as Lh, ab as _a, a6 as Vh, n as zh, j as
|
|
10
|
+
import { a5 as Ch, i as ya, aX as Dd, aY as ba, aZ as Sh, a_ as vi, b as va, c as kh, aF as Th, az as Jr, aD as Zr, aG as Dh, ae as xh, _ as Fh, S as $h, an as Eh, ai as Nh, ap as on, af as Ah, am as Mh, a4 as rt, a2 as Oh, ad as Ia, aq as Rh, as as xd, aA as Fd, d as Ph, aH as Bh, aB as jh, a7 as qh, $ as Lh, ab as _a, a6 as Vh, n as zh, j as Kh, Q as Uh, a$ as Yh, aE as Wh, r as wa } from "./temporal-input-presentation--2r9BLr0.js";
|
|
11
11
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Ve } from "../value-format-preferences/index.js";
|
|
12
12
|
import { j as Gh } from "./index-CuHybtft.js";
|
|
13
13
|
import { g as $d } from "./_commonjsHelpers-DimLPMtv.js";
|
|
14
|
-
import {
|
|
14
|
+
import { a2 as Ca, c as Sa, r as ka, A as Ta, N as Zn, O as Xr, aq as Ed, D as Ft, h as Hh, d as Qh, aD as Mt, aL as Jh, R as Nd, aa as eo, aK as Zh, aJ as Xh, aF as ey, aM as ty, ac as ny, af as Da, ai as ry, ae as Ad, aj as xa, G as Fa, C as $a, aA as Md, aI as Ea, aN as to, I as no, P as oy, K as iy, H as Od, a8 as ay, az as sy, Z as ly, aO as Na, e as cy, F as dy, aw as Rd } from "./bookmark-state-Du3s13_V.js";
|
|
15
15
|
import { D as uy, a as fy } from "./index-RNaTnE3m.js";
|
|
16
16
|
import "./context-R31TSL5V.js";
|
|
17
17
|
import { b as my } from "./report-runtime-context-DnA_PiKo.js";
|
|
@@ -27,7 +27,7 @@ function mt(e) {
|
|
|
27
27
|
function Oo(e, t, n) {
|
|
28
28
|
return typeof t == "string" && t.trim().length > 0 && (n.preserveSyntheticMessage || e.usesFallbackMessage !== !0);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Kd(e, t, n = {}) {
|
|
31
31
|
return typeof e == "string" && e.trim() ? e : mt(e) ? e instanceof Error && Oo(e, e.message, n) || Oo(e, e.message, n) ? e.message : typeof e.details == "string" && e.details.trim() ? e.details : Oo(e, e.error, n) ? e.error : typeof e.detail == "string" && e.detail.trim() ? e.detail : mt(e.details) && typeof e.details.error == "string" && e.details.error.trim() ? e.details.error : t : t;
|
|
32
32
|
}
|
|
33
33
|
function Ro(e, t, n) {
|
|
@@ -35,20 +35,20 @@ function Ro(e, t, n) {
|
|
|
35
35
|
const a = e;
|
|
36
36
|
return a.status ?? (a.status = t), a.payload ?? (a.payload = e), a.error ?? (a.error = a.message), a;
|
|
37
37
|
}
|
|
38
|
-
const r =
|
|
38
|
+
const r = Kd(e), o = r || n, i = new Error(o);
|
|
39
39
|
if (mt(e))
|
|
40
40
|
for (const [a, s] of Object.entries(e))
|
|
41
41
|
a === "message" || a === "name" || a === "stack" || (i[a] = s);
|
|
42
42
|
return typeof i.error != "string" && (i.error = o), i.status = t, i.payload = e, i.usesFallbackMessage = !r, i;
|
|
43
43
|
}
|
|
44
44
|
function Py(e, t = "Unknown error", n = {}) {
|
|
45
|
-
return
|
|
45
|
+
return Kd(e, t, n) || t;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function K$(e, t, n = {}) {
|
|
48
48
|
const r = Py(t, "", n);
|
|
49
49
|
return r ? `${e}: ${r}` : e;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function U$(e) {
|
|
52
52
|
return mt(e) && typeof e.status == "number" ? e.status : void 0;
|
|
53
53
|
}
|
|
54
54
|
function Y$(e) {
|
|
@@ -68,7 +68,7 @@ async function By(e) {
|
|
|
68
68
|
return Ro(n, e.status, t);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
async function
|
|
71
|
+
async function Ud(e, t, n = "GET", r, o) {
|
|
72
72
|
try {
|
|
73
73
|
const i = await fetch(e, {
|
|
74
74
|
method: n,
|
|
@@ -95,10 +95,10 @@ async function Kd(e, t, n = "GET", r, o) {
|
|
|
95
95
|
}
|
|
96
96
|
async function G$(e, t, n = {}, r) {
|
|
97
97
|
const o = new URLSearchParams(n).toString(), i = o ? `${e}?${o}` : e;
|
|
98
|
-
return
|
|
98
|
+
return Ud(i, t, "GET", void 0, r);
|
|
99
99
|
}
|
|
100
100
|
async function H$(e, t, n = {}, r = "POST") {
|
|
101
|
-
return
|
|
101
|
+
return Ud(e, t, r, n);
|
|
102
102
|
}
|
|
103
103
|
function Q$(e) {
|
|
104
104
|
return e ? Gh(e).params : void 0;
|
|
@@ -311,7 +311,7 @@ var Rn;
|
|
|
311
311
|
function Hd() {
|
|
312
312
|
return Rn;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ky(e, t) {
|
|
315
315
|
return {
|
|
316
316
|
drafts_: [],
|
|
317
317
|
parent_: e,
|
|
@@ -326,15 +326,15 @@ function ol(e, t) {
|
|
|
326
326
|
t && (Et("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
327
327
|
}
|
|
328
328
|
function Si(e) {
|
|
329
|
-
ki(e), e.drafts_.forEach(
|
|
329
|
+
ki(e), e.drafts_.forEach(Uy), e.drafts_ = null;
|
|
330
330
|
}
|
|
331
331
|
function ki(e) {
|
|
332
332
|
e === Rn && (Rn = e.parent_);
|
|
333
333
|
}
|
|
334
334
|
function il(e) {
|
|
335
|
-
return Rn =
|
|
335
|
+
return Rn = Ky(Rn, e);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Uy(e) {
|
|
338
338
|
const t = e[$e];
|
|
339
339
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
340
340
|
}
|
|
@@ -1726,7 +1726,7 @@ function jt(e) {
|
|
|
1726
1726
|
function Tt(e) {
|
|
1727
1727
|
return jt(e) && typeof e.name == "string";
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function Ka(e) {
|
|
1730
1730
|
return !jt(e) || e.kind !== "semantic" && e.kind !== "physical" || (e.kind === "semantic" ? [e.datasetId, e.datasetName, e.connectionId] : [e.databaseName, e.schemaName]).some(
|
|
1731
1731
|
(n) => n !== void 0 && typeof n != "string"
|
|
1732
1732
|
) ? !1 : tt(
|
|
@@ -1742,17 +1742,17 @@ function Pb(e) {
|
|
|
1742
1742
|
...e.sortByColumns ?? []
|
|
1743
1743
|
];
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function Ua(e) {
|
|
1746
1746
|
return e ? [
|
|
1747
1747
|
...(e.conditions ?? []).flatMap(
|
|
1748
1748
|
(t) => t.field ? [t.field] : []
|
|
1749
1749
|
),
|
|
1750
|
-
...(e.groups ?? []).flatMap(
|
|
1750
|
+
...(e.groups ?? []).flatMap(Ua)
|
|
1751
1751
|
] : [];
|
|
1752
1752
|
}
|
|
1753
1753
|
function wu(e) {
|
|
1754
1754
|
var r, o;
|
|
1755
|
-
const t = "parameters" in e ?
|
|
1755
|
+
const t = "parameters" in e ? Ua((r = e.parameters) == null ? void 0 : r.filters) : [], n = ((o = e.calculatedFormula) == null ? void 0 : o.inputFields) ?? [];
|
|
1756
1756
|
return [
|
|
1757
1757
|
...t,
|
|
1758
1758
|
...n.flatMap((i) => wu(i))
|
|
@@ -1844,7 +1844,7 @@ function Cu(e, t, n) {
|
|
|
1844
1844
|
);
|
|
1845
1845
|
}
|
|
1846
1846
|
function zb(e, t) {
|
|
1847
|
-
const n = Ya(t), r = Pb(e), o =
|
|
1847
|
+
const n = Ya(t), r = Pb(e), o = Ua(e.filters), i = [
|
|
1848
1848
|
...o,
|
|
1849
1849
|
...[...r, ...o].flatMap(wu)
|
|
1850
1850
|
];
|
|
@@ -1854,9 +1854,9 @@ function zb(e, t) {
|
|
|
1854
1854
|
)
|
|
1855
1855
|
);
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function Kb(e, t, n) {
|
|
1858
1858
|
var o;
|
|
1859
|
-
return
|
|
1859
|
+
return Ka(e) ? !!!((o = t == null ? void 0 : t.selectedEntities) != null && o.length) || !n ? e : Ei(e, Ya(t)) : void 0;
|
|
1860
1860
|
}
|
|
1861
1861
|
function We(e, t) {
|
|
1862
1862
|
var c, d;
|
|
@@ -1895,9 +1895,9 @@ function We(e, t) {
|
|
|
1895
1895
|
schemaName: o.schema || ((d = t == null ? void 0 : t.dbSelection) == null ? void 0 : d.schema),
|
|
1896
1896
|
dialect: o.dialect
|
|
1897
1897
|
};
|
|
1898
|
-
return
|
|
1898
|
+
return Ka(l) ? l : void 0;
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function Ub(e, t) {
|
|
1901
1901
|
var s, l;
|
|
1902
1902
|
const n = We(e, t);
|
|
1903
1903
|
if (!n) return;
|
|
@@ -1915,7 +1915,7 @@ function an(e) {
|
|
|
1915
1915
|
const s = [], l = Array.isArray(t == null ? void 0 : t.selectedEntities) ? t.selectedEntities : [];
|
|
1916
1916
|
for (const c of l) {
|
|
1917
1917
|
if (!Tt(c)) continue;
|
|
1918
|
-
const d =
|
|
1918
|
+
const d = Ub(c, t);
|
|
1919
1919
|
d && !s.some(
|
|
1920
1920
|
(u) => ie(
|
|
1921
1921
|
u.source,
|
|
@@ -1938,7 +1938,7 @@ function an(e) {
|
|
|
1938
1938
|
if (e.type === "matrixTable" && !i)
|
|
1939
1939
|
return { cardId: e.id, kind: "unconfigured" };
|
|
1940
1940
|
i && r.push(
|
|
1941
|
-
...Pd(i.spec).filter(
|
|
1941
|
+
...Pd(i.spec).filter(Ka)
|
|
1942
1942
|
);
|
|
1943
1943
|
const a = (i == null ? void 0 : i.spec.joinPlan) ?? (jt(n.joinPlan) ? n.joinPlan : void 0);
|
|
1944
1944
|
if (a) {
|
|
@@ -1965,7 +1965,7 @@ function an(e) {
|
|
|
1965
1965
|
c && r.push(c);
|
|
1966
1966
|
}
|
|
1967
1967
|
r.push(...zb(n, t));
|
|
1968
|
-
const l =
|
|
1968
|
+
const l = Kb(
|
|
1969
1969
|
n.queryBaseSource,
|
|
1970
1970
|
t,
|
|
1971
1971
|
r.length > 0
|
|
@@ -2793,16 +2793,16 @@ function gv(e) {
|
|
|
2793
2793
|
}), p = m.ok ? [] : m.issues, g = new Map(m.inputs.map((I) => [I.id, I]));
|
|
2794
2794
|
s.forEach((I, S) => {
|
|
2795
2795
|
const A = `dashboard.inputs[${S}]`, O = p.filter(
|
|
2796
|
-
(
|
|
2796
|
+
(U) => U.inputId === I.raw.id || U.path === A || U.path.startsWith(`${A}.`)
|
|
2797
2797
|
);
|
|
2798
|
-
for (const
|
|
2798
|
+
for (const U of O)
|
|
2799
2799
|
t.push({
|
|
2800
2800
|
code: "contract",
|
|
2801
|
-
message:
|
|
2801
|
+
message: U.message.replace(`dashboard.inputs[${S}]`, I.path),
|
|
2802
2802
|
path: I.path,
|
|
2803
2803
|
inputId: I.raw.id,
|
|
2804
2804
|
filterId: I.raw.filter.id,
|
|
2805
|
-
contractIssue:
|
|
2805
|
+
contractIssue: U
|
|
2806
2806
|
});
|
|
2807
2807
|
const P = g.get(I.raw.id);
|
|
2808
2808
|
O.length || !P || P.kind !== "filter" || a.push({ input: P, origin: I.origin, path: I.path });
|
|
@@ -2810,13 +2810,13 @@ function gv(e) {
|
|
|
2810
2810
|
const h = [], y = /* @__PURE__ */ new Map();
|
|
2811
2811
|
let b;
|
|
2812
2812
|
for (const I of a) {
|
|
2813
|
-
const { input: S, origin: A, path: O } = I, P = S.filter.id,
|
|
2813
|
+
const { input: S, origin: A, path: O } = I, P = S.filter.id, U = yl(S.id), E = () => {
|
|
2814
2814
|
(A === "embeddedInput" || A === "referencedInput") && n.add(S.id);
|
|
2815
2815
|
};
|
|
2816
|
-
if (
|
|
2816
|
+
if (U !== void 0 && U !== P) {
|
|
2817
2817
|
t.push({
|
|
2818
2818
|
code: "compat_id_conflict",
|
|
2819
|
-
message: `Dashboard input '${S.id}' must hold dashboard filter '${
|
|
2819
|
+
message: `Dashboard input '${S.id}' must hold dashboard filter '${U}'.`,
|
|
2820
2820
|
path: O,
|
|
2821
2821
|
inputId: S.id,
|
|
2822
2822
|
filterId: P
|
|
@@ -2860,26 +2860,26 @@ function gv(e) {
|
|
|
2860
2860
|
const A = w(I);
|
|
2861
2861
|
if (!A) return [];
|
|
2862
2862
|
const O = S != null && S.scope ? { ...A.input, scope: S.scope } : A.input, P = new Map(
|
|
2863
|
-
(e.sheets ?? []).map((
|
|
2863
|
+
(e.sheets ?? []).map((U) => [U.id, U.kind === "document" ? "document" : "dashboard"])
|
|
2864
2864
|
);
|
|
2865
|
-
return Ta(e).flatMap((
|
|
2866
|
-
const E = P.get(
|
|
2865
|
+
return Ta(e).flatMap((U) => {
|
|
2866
|
+
const E = P.get(U.sheetId) ?? "dashboard";
|
|
2867
2867
|
return Ft(O, {
|
|
2868
|
-
sheetId:
|
|
2869
|
-
cardId:
|
|
2870
|
-
...
|
|
2868
|
+
sheetId: U.sheetId,
|
|
2869
|
+
cardId: U.cardId,
|
|
2870
|
+
...U.kind === "documentSectionCard" ? { sectionId: U.sectionId } : {},
|
|
2871
2871
|
sheetKind: E
|
|
2872
|
-
}) ? [{ ...
|
|
2872
|
+
}) ? [{ ...U, sheetKind: E }] : [];
|
|
2873
2873
|
});
|
|
2874
2874
|
}, _ = (I, S) => {
|
|
2875
2875
|
const A = w(I);
|
|
2876
2876
|
if (!A) return [];
|
|
2877
2877
|
const O = S != null && S.scope ? { ...A.input, scope: S.scope } : A.input;
|
|
2878
2878
|
return (e.variables ?? []).flatMap((P) => {
|
|
2879
|
-
const
|
|
2879
|
+
const U = Ed(e, P.id).filter(
|
|
2880
2880
|
(E) => Ft(O, E)
|
|
2881
2881
|
);
|
|
2882
|
-
return
|
|
2882
|
+
return U.length ? [{ variableId: P.id, places: U }] : [];
|
|
2883
2883
|
});
|
|
2884
2884
|
}, F = yv(e, h, C);
|
|
2885
2885
|
let D;
|
|
@@ -3032,7 +3032,7 @@ function Ni(e, t) {
|
|
|
3032
3032
|
const n = e[t];
|
|
3033
3033
|
return typeof n == "string" && n.length ? n : void 0;
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3035
|
+
function Ko(e) {
|
|
3036
3036
|
return (e == null ? void 0 : e.trim()) || void 0;
|
|
3037
3037
|
}
|
|
3038
3038
|
function vl(e) {
|
|
@@ -3040,12 +3040,12 @@ function vl(e) {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
function Il(e, t) {
|
|
3042
3042
|
var l, c;
|
|
3043
|
-
const n =
|
|
3043
|
+
const n = Ko(t);
|
|
3044
3044
|
if (!n) return;
|
|
3045
|
-
const r = vl(n), o =
|
|
3045
|
+
const r = vl(n), o = Ko((l = e.fieldMeta) == null ? void 0 : l.name);
|
|
3046
3046
|
if (o && o !== n && o !== r)
|
|
3047
3047
|
return;
|
|
3048
|
-
const i =
|
|
3048
|
+
const i = Ko(
|
|
3049
3049
|
(c = e.fieldMeta) == null ? void 0 : c.qualifiedFieldName
|
|
3050
3050
|
);
|
|
3051
3051
|
if (i && vl(i) !== r)
|
|
@@ -3625,8 +3625,8 @@ var Sv = Ga.exports;
|
|
|
3625
3625
|
}
|
|
3626
3626
|
};
|
|
3627
3627
|
})(Au);
|
|
3628
|
-
let
|
|
3629
|
-
var kv = (
|
|
3628
|
+
let Uo = Au;
|
|
3629
|
+
var kv = (Uo.__esModule ? Uo : { default: Uo }).default;
|
|
3630
3630
|
const Q = /* @__PURE__ */ $d(kv), Tv = ".semaphor-scope";
|
|
3631
3631
|
function Dv(e) {
|
|
3632
3632
|
return e ? e.closest(Tv) : null;
|
|
@@ -4084,7 +4084,7 @@ function qu({
|
|
|
4084
4084
|
const Rv = (e) => {
|
|
4085
4085
|
const t = new Date(e);
|
|
4086
4086
|
return !isNaN(t.getTime());
|
|
4087
|
-
}, Pv = (e) => !isNaN(Number(e)) && !isNaN(parseFloat(e)),
|
|
4087
|
+
}, Pv = (e) => !isNaN(Number(e)) && !isNaN(parseFloat(e)), KE = (e) => {
|
|
4088
4088
|
let t;
|
|
4089
4089
|
return typeof e == "number" ? t = "number" : typeof e == "string" ? Rv(e) ? t = "date" : Pv(e) ? t = "number" : t = "string" : typeof e == "boolean" ? t = "boolean" : e instanceof Date ? t = "date" : t = "unknown", t;
|
|
4090
4090
|
};
|
|
@@ -4148,7 +4148,7 @@ function zv(e, t) {
|
|
|
4148
4148
|
const n = Aa(e, t);
|
|
4149
4149
|
return n ? [n.start, new Date(n.endExclusive.getTime() - 1)] : [new Date(Number.NaN), new Date(Number.NaN)];
|
|
4150
4150
|
}
|
|
4151
|
-
const
|
|
4151
|
+
const Kv = (e) => e ? Vu(e) ? !0 : Lu(e) ? e.unit === "day" ? e.mode === "this" || e.mode === "previous" ? !0 : e.mode === "between" ? e.from === e.to : !1 : e.mode === "this" && e.unit === "month" && !!e.boundary : !1 : !1;
|
|
4152
4152
|
function zu(e, t, n = 1) {
|
|
4153
4153
|
const r = typeof t == "string" ? { tz: t, weekStart: n } : t, o = r.tz;
|
|
4154
4154
|
if (Lu(e)) {
|
|
@@ -4172,11 +4172,11 @@ function zu(e, t, n = 1) {
|
|
|
4172
4172
|
);
|
|
4173
4173
|
return [s, l];
|
|
4174
4174
|
}
|
|
4175
|
-
function
|
|
4175
|
+
function UE(e, t, n = 1, r = /* @__PURE__ */ new Date()) {
|
|
4176
4176
|
const { start: o, end: i } = Ii(e, { tz: t, weekStart: n }, r);
|
|
4177
4177
|
return [o, i];
|
|
4178
4178
|
}
|
|
4179
|
-
const
|
|
4179
|
+
const Ku = (e) => ({ tz: e, weekStart: 1 }), YE = (e, t) => Iy(e, "day", Ku(t)), Uv = (e, t) => Bd(e, "day", Ku(t)), Yv = /^\d{4}-\d{2}-\d{2}$/, WE = (e, t, n = "start") => {
|
|
4180
4180
|
if (e == null || e === "") return;
|
|
4181
4181
|
if (e instanceof Date)
|
|
4182
4182
|
return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
@@ -4196,7 +4196,7 @@ const Uu = (e) => ({ tz: e, weekStart: 1 }), YE = (e, t) => Iy(e, "day", Uu(t)),
|
|
|
4196
4196
|
function H(e) {
|
|
4197
4197
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4199
|
+
function Uu(e) {
|
|
4200
4200
|
const t = H(e.preferences) ? e.preferences : void 0, n = t && H(t.kpiVisualOptions) ? t.kpiVisualOptions : void 0, r = t && H(t.tableVisualOptions) ? t.tableVisualOptions : void 0;
|
|
4201
4201
|
return {
|
|
4202
4202
|
preferences: t,
|
|
@@ -4217,7 +4217,7 @@ function Sl(e) {
|
|
|
4217
4217
|
if (!H(r)) return;
|
|
4218
4218
|
const i = r.config;
|
|
4219
4219
|
if (H(i)) {
|
|
4220
|
-
const a =
|
|
4220
|
+
const a = Uu(r), s = !!(a.kpiComparisonPresent || a.tableComparisonPresent), l = i.metricColumns, c = Array.isArray(l) ? l.flatMap(
|
|
4221
4221
|
(d, u) => H(d) ? [{ index: u, metric: d }] : []
|
|
4222
4222
|
) : [];
|
|
4223
4223
|
if ((c.some(({ metric: d }) => "comparisonType" in d) || s) && t.push({
|
|
@@ -4409,7 +4409,7 @@ function xl(e, t, n, r) {
|
|
|
4409
4409
|
});
|
|
4410
4410
|
}
|
|
4411
4411
|
function Fl(e) {
|
|
4412
|
-
const t =
|
|
4412
|
+
const t = Uu(e.card), n = t.kpiComparison ? Ai(t.kpiComparison, "kpi") : void 0, r = t.tableComparison ? Ai(t.tableComparison, "table") : void 0;
|
|
4413
4413
|
return { namespaces: t, kpi: n, table: r, presentation: n || r };
|
|
4414
4414
|
}
|
|
4415
4415
|
function Qv(e) {
|
|
@@ -5063,7 +5063,7 @@ function gI(e, t) {
|
|
|
5063
5063
|
return {
|
|
5064
5064
|
...u,
|
|
5065
5065
|
bindings: [
|
|
5066
|
-
|
|
5066
|
+
Kt(
|
|
5067
5067
|
t.columnKeyMap,
|
|
5068
5068
|
u.field.id,
|
|
5069
5069
|
u.role
|
|
@@ -5478,17 +5478,17 @@ function SI(e, t, n, r) {
|
|
|
5478
5478
|
}
|
|
5479
5479
|
return !1;
|
|
5480
5480
|
}
|
|
5481
|
-
function
|
|
5481
|
+
function Ut(e) {
|
|
5482
5482
|
return (e == null ? void 0 : e.trim()) || null;
|
|
5483
5483
|
}
|
|
5484
5484
|
function kI(e) {
|
|
5485
|
-
const t = /* @__PURE__ */ new Set(), n =
|
|
5485
|
+
const t = /* @__PURE__ */ new Set(), n = Ut(e.table), r = Ut(e.schema), o = Ut(e.catalog);
|
|
5486
5486
|
return n && (t.add(n), r && t.add(`${r}.${n}`), o && t.add(`${o}.${n}`), o && r && t.add(`${o}.${r}.${n}`)), Array.from(t);
|
|
5487
5487
|
}
|
|
5488
5488
|
function TI(e) {
|
|
5489
5489
|
const t = /* @__PURE__ */ new Map();
|
|
5490
5490
|
for (const r of e || []) {
|
|
5491
|
-
const o =
|
|
5491
|
+
const o = Ut(r.name);
|
|
5492
5492
|
if (!o) continue;
|
|
5493
5493
|
const i = /* @__PURE__ */ new Set([o, ...kI(r)]);
|
|
5494
5494
|
for (const a of i)
|
|
@@ -5599,10 +5599,10 @@ function ns(e, t, n) {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
function Mi(e) {
|
|
5601
5601
|
const t = TI(e.datasetAliases), n = e.hasSemanticDomain === !1, r = (a) => {
|
|
5602
|
-
const s =
|
|
5602
|
+
const s = Ut(a);
|
|
5603
5603
|
if (s)
|
|
5604
5604
|
return t.get(s) || s;
|
|
5605
|
-
}, o = (a, s) => n &&
|
|
5605
|
+
}, o = (a, s) => n && Ut(s) || r(a), i = (a) => {
|
|
5606
5606
|
const s = Qh(a);
|
|
5607
5607
|
return s ? o(s.entityName, s.qualifiedEntityName) : void 0;
|
|
5608
5608
|
};
|
|
@@ -6241,7 +6241,7 @@ function VI(e, t, n = [], r = () => crypto.randomUUID()) {
|
|
|
6241
6241
|
);
|
|
6242
6242
|
t === "matrixTable" && ((s = e.controlBindings) != null && s.length && o.push({ code: "control_binding", label: "Control bindings" }), !i.configured && ((l = e.sql) != null && l.trim()) && o.push({ code: "no_shelf_fields", label: "SQL query" }));
|
|
6243
6243
|
let a = { ...e, type: t, config: {}, controlBindings: [], sql: "", python: "" };
|
|
6244
|
-
if (a = { ...a, config:
|
|
6244
|
+
if (a = { ...a, config: KI(a, i.joinPlan, n, o) }, t === "matrixTable") {
|
|
6245
6245
|
const m = XI(a, e.type, i.fields, o, r);
|
|
6246
6246
|
a = ql(m.card, i.filters && pf(i.filters), o, r), a = e0(a, e, m.carried, m.catalog);
|
|
6247
6247
|
} else
|
|
@@ -6254,7 +6254,7 @@ function zI(e, t) {
|
|
|
6254
6254
|
const n = Ge(e);
|
|
6255
6255
|
return !!((o = (r = n.joinPlan) == null ? void 0 : r.joins) != null && o.length) || Object.values(n.fields).some((i) => i.length > 0);
|
|
6256
6256
|
}
|
|
6257
|
-
function
|
|
6257
|
+
function KI(e, t, n, r) {
|
|
6258
6258
|
var o;
|
|
6259
6259
|
if (!((o = t == null ? void 0 : t.joins) != null && o.length)) return {};
|
|
6260
6260
|
try {
|
|
@@ -6307,7 +6307,7 @@ const vr = (e) => e.label || e.name, df = {
|
|
|
6307
6307
|
isPreAggregated: "not_carried",
|
|
6308
6308
|
comparison: "not_carried",
|
|
6309
6309
|
sourceField: "not_carried"
|
|
6310
|
-
}, Z = (e) => e != null && e !== !1 && !(Array.isArray(e) && e.length === 0) && !(typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0), uf = (e) => Z(e.sourceField) && e.sourceField !== e.name,
|
|
6310
|
+
}, Z = (e) => e != null && e !== !1 && !(Array.isArray(e) && e.length === 0) && !(typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0), uf = (e) => Z(e.sourceField) && e.sourceField !== e.name, UI = ["fieldKind", "isCalculated", "fieldRef"], Pi = (e) => UI.includes(e);
|
|
6311
6311
|
function YI(e) {
|
|
6312
6312
|
return Object.keys(e).some(Pi) ? Object.fromEntries(Object.entries(e).filter(([t]) => !Pi(t))) : e;
|
|
6313
6313
|
}
|
|
@@ -6364,7 +6364,7 @@ function JI(e) {
|
|
|
6364
6364
|
}
|
|
6365
6365
|
const ZI = {
|
|
6366
6366
|
semantic: Yg.strip(),
|
|
6367
|
-
physical:
|
|
6367
|
+
physical: Ug.strip()
|
|
6368
6368
|
};
|
|
6369
6369
|
function jl(e) {
|
|
6370
6370
|
const t = e == null ? void 0 : e.kind, n = t === "semantic" || t === "physical" ? ZI[t] : void 0, r = n == null ? void 0 : n.safeParse(e);
|
|
@@ -6813,7 +6813,7 @@ function h0(e) {
|
|
|
6813
6813
|
for (const d of i) {
|
|
6814
6814
|
const u = Array.from(a).flatMap(
|
|
6815
6815
|
([x, C]) => {
|
|
6816
|
-
const k =
|
|
6816
|
+
const k = Kt(
|
|
6817
6817
|
r,
|
|
6818
6818
|
x,
|
|
6819
6819
|
"detail"
|
|
@@ -7466,13 +7466,13 @@ function vf(e, t) {
|
|
|
7466
7466
|
}
|
|
7467
7467
|
function M0(e) {
|
|
7468
7468
|
return e.kind === "document" ? e.inputs.map(
|
|
7469
|
-
(t) => t.kind === "control" ?
|
|
7469
|
+
(t) => t.kind === "control" ? Ul(t.id, t.label, t.variableName, t.exports ?? [], t.control) : Kl(t.id, t.label, t.variableName, t.exports ?? [], t.filter.dataType)
|
|
7470
7470
|
) : e.inputs.flatMap((t) => {
|
|
7471
7471
|
var n;
|
|
7472
|
-
return t.kind === "control" ? t.control ? [
|
|
7472
|
+
return t.kind === "control" ? t.control ? [Ul(t.id, t.label, t.variableName, Object.keys(t.exports), t.control)] : [] : [Kl(t.id, t.label, t.variableName, Object.keys(t.exports), (n = t.filter) == null ? void 0 : n.dataType)];
|
|
7473
7473
|
});
|
|
7474
7474
|
}
|
|
7475
|
-
function
|
|
7475
|
+
function Kl(e, t, n, r, o) {
|
|
7476
7476
|
const i = !!o && ge(o) === "date";
|
|
7477
7477
|
return {
|
|
7478
7478
|
id: e,
|
|
@@ -7485,7 +7485,7 @@ function Ul(e, t, n, r, o) {
|
|
|
7485
7485
|
temporal: i
|
|
7486
7486
|
};
|
|
7487
7487
|
}
|
|
7488
|
-
function
|
|
7488
|
+
function Ul(e, t, n, r, o) {
|
|
7489
7489
|
return {
|
|
7490
7490
|
id: e,
|
|
7491
7491
|
label: t,
|
|
@@ -7643,8 +7643,8 @@ function Ho(e, t) {
|
|
|
7643
7643
|
const n = e.parts.find((r) => r === t) ?? e.defaultPart;
|
|
7644
7644
|
return { source: "input", inputId: e.input.id, export: n };
|
|
7645
7645
|
}
|
|
7646
|
-
function
|
|
7647
|
-
const r = t ?? {}, o = r.decimals, i = r.percent ? e * 100 : e, a =
|
|
7646
|
+
function K0(e, t, n) {
|
|
7647
|
+
const r = t ?? {}, o = r.decimals, i = r.percent ? e * 100 : e, a = U0(i, o), s = r.absolute ? Math.abs(i) : i;
|
|
7648
7648
|
let l = Ph(s, {
|
|
7649
7649
|
locale: n,
|
|
7650
7650
|
...o !== void 0 ? { minimumFractionDigits: o, maximumFractionDigits: o } : {}
|
|
@@ -7659,7 +7659,7 @@ function U0(e, t, n) {
|
|
|
7659
7659
|
}
|
|
7660
7660
|
return l;
|
|
7661
7661
|
}
|
|
7662
|
-
function
|
|
7662
|
+
function U0(e, t) {
|
|
7663
7663
|
const n = Number(
|
|
7664
7664
|
new Intl.NumberFormat("en-US", {
|
|
7665
7665
|
useGrouping: !1,
|
|
@@ -8216,7 +8216,7 @@ const wt = f.string().min(1), f_ = f.discriminatedUnion("kind", [
|
|
|
8216
8216
|
icon: f.enum(["arrowUp", "arrowDown", "warning", "check", "x"]).optional(),
|
|
8217
8217
|
dataBar: f.object({ color: f.string(), showValue: f.boolean() }).strict().optional()
|
|
8218
8218
|
}).strict().optional()
|
|
8219
|
-
}).strict(),
|
|
8219
|
+
}).strict(), KN = f.object({ version: f.literal(1), rules: f.array(Df) }).strict();
|
|
8220
8220
|
function bo(e) {
|
|
8221
8221
|
var n, r, o, i, a;
|
|
8222
8222
|
const t = !!((n = e.sql) != null && n.trim() || (r = e.python) != null && r.trim());
|
|
@@ -8273,7 +8273,7 @@ function xf(e, t, n) {
|
|
|
8273
8273
|
function Xl(e, t) {
|
|
8274
8274
|
return xf(e, bo(e), t);
|
|
8275
8275
|
}
|
|
8276
|
-
function
|
|
8276
|
+
function UN(e) {
|
|
8277
8277
|
var a, s, l, c;
|
|
8278
8278
|
const t = (a = e.preferences) == null ? void 0 : a.conditionalFormatting;
|
|
8279
8279
|
if (!t) return [];
|
|
@@ -8359,7 +8359,7 @@ function WN(e, t, n) {
|
|
|
8359
8359
|
};
|
|
8360
8360
|
}
|
|
8361
8361
|
function Tn(e, t, n) {
|
|
8362
|
-
return e.value === null ? "" : e.type === "number" && typeof e.value == "number" ?
|
|
8362
|
+
return e.value === null ? "" : e.type === "number" && typeof e.value == "number" ? K0(e.value, t, n.preferences.locale) : (e.type === "date" || e.type === "datetime") && typeof e.value == "string" ? xd({
|
|
8363
8363
|
value: { bounds: [e.value], precision: e.type === "datetime" ? "minute" : "day" },
|
|
8364
8364
|
part: "start",
|
|
8365
8365
|
presentation: ls(t),
|
|
@@ -8897,10 +8897,10 @@ const us = ["kpi", "bar", "line", "area", "pie", "table", "detail_table", "matri
|
|
|
8897
8897
|
detail_table: { chartType: "detailTable", forms: ["records"], dimensions: !0, matrixColumns: !1 },
|
|
8898
8898
|
matrix: { chartType: "matrixTable", forms: ["measures"], measures: { min: 1 }, dimensions: !0, matrixColumns: !0 }
|
|
8899
8899
|
};
|
|
8900
|
-
function
|
|
8900
|
+
function K_(e) {
|
|
8901
8901
|
return typeof e == "string" && us.includes(e);
|
|
8902
8902
|
}
|
|
8903
|
-
function
|
|
8903
|
+
function U_(e) {
|
|
8904
8904
|
return jf[e].chartType;
|
|
8905
8905
|
}
|
|
8906
8906
|
const Y_ = {
|
|
@@ -8914,7 +8914,7 @@ function Io(e) {
|
|
|
8914
8914
|
function fs(e) {
|
|
8915
8915
|
if (!e) return;
|
|
8916
8916
|
const t = Io(e);
|
|
8917
|
-
return
|
|
8917
|
+
return K_(t) ? t : void 0;
|
|
8918
8918
|
}
|
|
8919
8919
|
function gt(e) {
|
|
8920
8920
|
var n, r;
|
|
@@ -8956,7 +8956,7 @@ function W_(e, t) {
|
|
|
8956
8956
|
case "pie":
|
|
8957
8957
|
return { type: t.donut ? "doughnut" : "pie" };
|
|
8958
8958
|
default:
|
|
8959
|
-
return { type:
|
|
8959
|
+
return { type: U_(e) };
|
|
8960
8960
|
}
|
|
8961
8961
|
}
|
|
8962
8962
|
const G_ = {
|
|
@@ -9134,7 +9134,7 @@ function ow(e, t) {
|
|
|
9134
9134
|
const { inheritGlobalComparison: n, ...r } = e ?? {};
|
|
9135
9135
|
return t ? r : { ...r, inheritGlobalComparison: !1 };
|
|
9136
9136
|
}
|
|
9137
|
-
const
|
|
9137
|
+
const Kf = {
|
|
9138
9138
|
comparisonPresentation: "shared",
|
|
9139
9139
|
inheritGlobalComparison: "shared",
|
|
9140
9140
|
metricPairComparisonEnabled: "shared",
|
|
@@ -9172,13 +9172,13 @@ const Uf = {
|
|
|
9172
9172
|
};
|
|
9173
9173
|
function iw(e) {
|
|
9174
9174
|
return Object.keys(e ?? {}).filter(
|
|
9175
|
-
(t) =>
|
|
9175
|
+
(t) => Kf[t] === "chart" && (e == null ? void 0 : e[t]) !== void 0
|
|
9176
9176
|
);
|
|
9177
9177
|
}
|
|
9178
9178
|
function aw(e) {
|
|
9179
9179
|
return Object.fromEntries(
|
|
9180
9180
|
Object.entries(e ?? {}).filter(
|
|
9181
|
-
([t]) =>
|
|
9181
|
+
([t]) => Kf[t] === "shared"
|
|
9182
9182
|
)
|
|
9183
9183
|
);
|
|
9184
9184
|
}
|
|
@@ -9284,13 +9284,13 @@ function cw(e) {
|
|
|
9284
9284
|
}
|
|
9285
9285
|
const dw = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, uw = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, fw = /\bwhere\b/i, mw = /\{[{%][^}%]*\bfilters?\b/i;
|
|
9286
9286
|
function pw(e) {
|
|
9287
|
-
return
|
|
9287
|
+
return Uf(e) ? "subscribed" : e && mw.test(e) ? "template" : "none";
|
|
9288
9288
|
}
|
|
9289
|
-
function
|
|
9289
|
+
function Uf(e) {
|
|
9290
9290
|
return e != null && e.trim() ? dw.test(e) || uw.test(e) : !1;
|
|
9291
9291
|
}
|
|
9292
9292
|
function nA(e) {
|
|
9293
|
-
return !(e != null && e.trim()) ||
|
|
9293
|
+
return !(e != null && e.trim()) || Uf(e) ? null : fw.test(e) ? {
|
|
9294
9294
|
helper: "{{ filters | and }}",
|
|
9295
9295
|
description: "For queries with an existing WHERE clause."
|
|
9296
9296
|
} : {
|
|
@@ -9530,7 +9530,7 @@ const rA = [
|
|
|
9530
9530
|
"minute",
|
|
9531
9531
|
"second"
|
|
9532
9532
|
];
|
|
9533
|
-
function
|
|
9533
|
+
function Ki(e) {
|
|
9534
9534
|
return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "").replace(/_{2,}/g, "_");
|
|
9535
9535
|
}
|
|
9536
9536
|
function gs(e) {
|
|
@@ -9696,13 +9696,13 @@ function rr(e) {
|
|
|
9696
9696
|
);
|
|
9697
9697
|
}
|
|
9698
9698
|
function Fw(e, t) {
|
|
9699
|
-
return
|
|
9699
|
+
return Ki(e) || Ki(t) || t;
|
|
9700
9700
|
}
|
|
9701
|
-
function
|
|
9701
|
+
function Ui(e) {
|
|
9702
9702
|
return e.role === "metric" || ge(e.dataType || "") === "number";
|
|
9703
9703
|
}
|
|
9704
9704
|
function uc(e) {
|
|
9705
|
-
return !
|
|
9705
|
+
return !Ui(e);
|
|
9706
9706
|
}
|
|
9707
9707
|
function $w(e) {
|
|
9708
9708
|
return {
|
|
@@ -9744,8 +9744,8 @@ function fA(e, t = !1) {
|
|
|
9744
9744
|
};
|
|
9745
9745
|
}
|
|
9746
9746
|
function mA(e, t = "SUM", n = !1) {
|
|
9747
|
-
const r = /* @__PURE__ */ new Map(), o = {}, i = Jf(e.filter(
|
|
9748
|
-
return e.filter(
|
|
9747
|
+
const r = /* @__PURE__ */ new Map(), o = {}, i = Jf(e.filter(Ui), n);
|
|
9748
|
+
return e.filter(Ui).filter((a) => typeof a.id == "string" && a.id.length > 0).forEach((a) => {
|
|
9749
9749
|
const { label: s, value: l } = i(a);
|
|
9750
9750
|
r.has(l) || r.set(l, { value: l, label: s }), o[l] || (o[l] = Ew(a, t));
|
|
9751
9751
|
}), {
|
|
@@ -10191,7 +10191,7 @@ function Lw(e) {
|
|
|
10191
10191
|
return t;
|
|
10192
10192
|
}
|
|
10193
10193
|
function OA(e) {
|
|
10194
|
-
const t = new Set(e.reservedIds), n = new Set(e.existingControls.map((a) => a.id)), r =
|
|
10194
|
+
const t = new Set(e.reservedIds), n = new Set(e.existingControls.map((a) => a.id)), r = Ki(e.label) || e.fallbackId;
|
|
10195
10195
|
if (!n.has(r) && !t.has(r))
|
|
10196
10196
|
return r;
|
|
10197
10197
|
let o = 2, i = `${r}_${o}`;
|
|
@@ -10272,7 +10272,7 @@ function Is(e, t) {
|
|
|
10272
10272
|
if (vs(e))
|
|
10273
10273
|
return e.scope === "dashboard" && tm(t) && Ln(t, e.id) ? t == null ? void 0 : t[e.id] : e.defaultValue;
|
|
10274
10274
|
}
|
|
10275
|
-
function
|
|
10275
|
+
function Kw(e) {
|
|
10276
10276
|
const t = {};
|
|
10277
10277
|
for (const n of Md(e)) {
|
|
10278
10278
|
const r = {};
|
|
@@ -10283,7 +10283,7 @@ function Uw(e) {
|
|
|
10283
10283
|
return t;
|
|
10284
10284
|
}
|
|
10285
10285
|
function jA(e, t, n) {
|
|
10286
|
-
const r = (n == null ? void 0 : n.hasExplicitRuntimeOverrides) === !0, o = r ? {} : zw(e), i = r ? {} :
|
|
10286
|
+
const r = (n == null ? void 0 : n.hasExplicitRuntimeOverrides) === !0, o = r ? {} : zw(e), i = r ? {} : Kw(e);
|
|
10287
10287
|
if (t === void 0)
|
|
10288
10288
|
return {
|
|
10289
10289
|
dashboardControlValues: o,
|
|
@@ -10354,7 +10354,7 @@ function or(e) {
|
|
|
10354
10354
|
function ye(e) {
|
|
10355
10355
|
return typeof e == "string" ? e.trim() : "";
|
|
10356
10356
|
}
|
|
10357
|
-
function
|
|
10357
|
+
function Uw(e) {
|
|
10358
10358
|
const t = e.split(".");
|
|
10359
10359
|
return t.length > 1 ? t.slice(0, -1).join(".") : "";
|
|
10360
10360
|
}
|
|
@@ -10389,7 +10389,7 @@ function Gw(e, t, n) {
|
|
|
10389
10389
|
var u;
|
|
10390
10390
|
const r = t.fieldMeta;
|
|
10391
10391
|
if (!r) return !0;
|
|
10392
|
-
const o =
|
|
10392
|
+
const o = Uw(n), i = n.split("."), a = i[i.length - 1] || "", s = ye(
|
|
10393
10393
|
r.qualifiedFieldName
|
|
10394
10394
|
);
|
|
10395
10395
|
if (s && !Ma(
|
|
@@ -10569,7 +10569,7 @@ function Xw(e, t) {
|
|
|
10569
10569
|
return !1;
|
|
10570
10570
|
}
|
|
10571
10571
|
}
|
|
10572
|
-
function
|
|
10572
|
+
function KA(e, t, n) {
|
|
10573
10573
|
switch (e.runtimeScope) {
|
|
10574
10574
|
case "shared":
|
|
10575
10575
|
return !0;
|
|
@@ -10648,7 +10648,7 @@ function eC(e, t, n) {
|
|
|
10648
10648
|
}
|
|
10649
10649
|
return Se(r);
|
|
10650
10650
|
}
|
|
10651
|
-
function
|
|
10651
|
+
function UA(e) {
|
|
10652
10652
|
const t = wo({
|
|
10653
10653
|
dashboard: e.dashboard,
|
|
10654
10654
|
input: e.input,
|
|
@@ -12133,7 +12133,7 @@ function Cc() {
|
|
|
12133
12133
|
]
|
|
12134
12134
|
};
|
|
12135
12135
|
}
|
|
12136
|
-
function
|
|
12136
|
+
function KC(e, t) {
|
|
12137
12137
|
var a, s;
|
|
12138
12138
|
const n = /* @__PURE__ */ new Set([t]);
|
|
12139
12139
|
let r = 0;
|
|
@@ -12198,7 +12198,7 @@ function cM(e, t) {
|
|
|
12198
12198
|
}
|
|
12199
12199
|
]
|
|
12200
12200
|
};
|
|
12201
|
-
const i =
|
|
12201
|
+
const i = KC(e, t.id);
|
|
12202
12202
|
return {
|
|
12203
12203
|
ok: !0,
|
|
12204
12204
|
dashboard: {
|
|
@@ -12214,7 +12214,7 @@ function cM(e, t) {
|
|
|
12214
12214
|
const xm = [
|
|
12215
12215
|
{ value: "COUNT", label: "Count" },
|
|
12216
12216
|
{ value: "DISTINCT", label: "Count Distinct" }
|
|
12217
|
-
],
|
|
12217
|
+
], UC = [
|
|
12218
12218
|
...xm,
|
|
12219
12219
|
{ value: "SUM", label: "Sum" },
|
|
12220
12220
|
{ value: "AVG", label: "Average" },
|
|
@@ -12223,7 +12223,7 @@ const xm = [
|
|
|
12223
12223
|
{ value: "MEDIAN", label: "Median" }
|
|
12224
12224
|
];
|
|
12225
12225
|
function dM(e) {
|
|
12226
|
-
return de(e) === "number" ?
|
|
12226
|
+
return de(e) === "number" ? UC : xm;
|
|
12227
12227
|
}
|
|
12228
12228
|
function uM(e, t) {
|
|
12229
12229
|
return `${e}-${t}`;
|
|
@@ -13048,7 +13048,7 @@ function $M(e) {
|
|
|
13048
13048
|
a.map(({ field: p, role: g }) => `${g}:${p.id}`)
|
|
13049
13049
|
), l = new Map(
|
|
13050
13050
|
(t.columns || []).map((p) => [p.key, p])
|
|
13051
|
-
), c =
|
|
13051
|
+
), c = Kt(
|
|
13052
13052
|
i,
|
|
13053
13053
|
gi,
|
|
13054
13054
|
"metric"
|
|
@@ -13066,7 +13066,7 @@ function $M(e) {
|
|
|
13066
13066
|
([p, g]) => Object.keys(g || {}).map((h) => `${p}:${h}`)
|
|
13067
13067
|
);
|
|
13068
13068
|
if (d.length !== s.size || d.some((p) => !s.has(p)) || a.some(
|
|
13069
|
-
({ field: p, role: g }) => !
|
|
13069
|
+
({ field: p, role: g }) => !Kt(i, p.id, g)
|
|
13070
13070
|
))
|
|
13071
13071
|
return !1;
|
|
13072
13072
|
try {
|
|
@@ -13087,7 +13087,7 @@ function $M(e) {
|
|
|
13087
13087
|
});
|
|
13088
13088
|
return r !== 0 && ((m = n.cardConfig.pivotByColumns) != null && m.length) && u.length === 0 ? !1 : n.fields.every((p) => {
|
|
13089
13089
|
var y;
|
|
13090
|
-
const g =
|
|
13090
|
+
const g = Kt(
|
|
13091
13091
|
i,
|
|
13092
13092
|
p.id,
|
|
13093
13093
|
p.role
|
|
@@ -13210,7 +13210,7 @@ function NM(e) {
|
|
|
13210
13210
|
};
|
|
13211
13211
|
};
|
|
13212
13212
|
for (const c of t.fields) {
|
|
13213
|
-
const d =
|
|
13213
|
+
const d = Kt(
|
|
13214
13214
|
e.columnKeyMap,
|
|
13215
13215
|
c.id,
|
|
13216
13216
|
c.role
|
|
@@ -13526,11 +13526,11 @@ const zS = /* @__PURE__ */ new Set([
|
|
|
13526
13526
|
"tornado",
|
|
13527
13527
|
"pyramid",
|
|
13528
13528
|
"range"
|
|
13529
|
-
]),
|
|
13529
|
+
]), KS = /* @__PURE__ */ new Set([
|
|
13530
13530
|
"tornado",
|
|
13531
13531
|
"pyramid",
|
|
13532
13532
|
"range"
|
|
13533
|
-
]),
|
|
13533
|
+
]), US = /* @__PURE__ */ new Set([
|
|
13534
13534
|
"tornado",
|
|
13535
13535
|
"pyramid",
|
|
13536
13536
|
"range"
|
|
@@ -13549,7 +13549,7 @@ function WS(e) {
|
|
|
13549
13549
|
config: r == null ? void 0 : r.bubbleScatterConfig
|
|
13550
13550
|
})
|
|
13551
13551
|
)
|
|
13552
|
-
] :
|
|
13552
|
+
] : US.has(t || "") ? n.slice(2) : n.length === 1 ? [n[0]] : n.slice(1);
|
|
13553
13553
|
}
|
|
13554
13554
|
function So(e, t) {
|
|
13555
13555
|
var n;
|
|
@@ -13559,12 +13559,12 @@ function VM(e, t) {
|
|
|
13559
13559
|
return So(e, t) === "x";
|
|
13560
13560
|
}
|
|
13561
13561
|
function zM(e, t) {
|
|
13562
|
-
return So(e, t) === "y" ? t == null ? void 0 : t.yAxisConfig : (t == null ? void 0 : t.xAxisConfig) || (
|
|
13562
|
+
return So(e, t) === "y" ? t == null ? void 0 : t.yAxisConfig : (t == null ? void 0 : t.xAxisConfig) || (KS.has(e || "") ? t == null ? void 0 : t.yAxisConfig : void 0);
|
|
13563
13563
|
}
|
|
13564
13564
|
function Fs(e) {
|
|
13565
13565
|
return (e == null ? void 0 : e.kind) === "document";
|
|
13566
13566
|
}
|
|
13567
|
-
function
|
|
13567
|
+
function KM(e) {
|
|
13568
13568
|
return (e || []).filter((t) => !Fs(t));
|
|
13569
13569
|
}
|
|
13570
13570
|
function GS(e, t, n) {
|
|
@@ -13601,7 +13601,7 @@ function HS(e, t) {
|
|
|
13601
13601
|
const n = e.cards.filter((o) => o.id !== t);
|
|
13602
13602
|
return { ...e, cards: n, activeCardId: ((r = n[0]) == null ? void 0 : r.id) ?? e.activeCardId };
|
|
13603
13603
|
}
|
|
13604
|
-
function
|
|
13604
|
+
function UM(e) {
|
|
13605
13605
|
const t = (e.cards ?? []).map((r) => r.id), n = e.activeCardId;
|
|
13606
13606
|
return n && t.includes(n) ? [n, ...t.filter((r) => r !== n)] : t;
|
|
13607
13607
|
}
|
|
@@ -13746,7 +13746,7 @@ const Ji = [
|
|
|
13746
13746
|
joinPlan: "source",
|
|
13747
13747
|
matrix: "matrix"
|
|
13748
13748
|
};
|
|
13749
|
-
function
|
|
13749
|
+
function Ke(e, t) {
|
|
13750
13750
|
return Nc(e) === Nc(t);
|
|
13751
13751
|
}
|
|
13752
13752
|
function Nc(e) {
|
|
@@ -13950,16 +13950,16 @@ function JM(e, t) {
|
|
|
13950
13950
|
}
|
|
13951
13951
|
function ZM(e, t, n, r) {
|
|
13952
13952
|
if ("sql" in e || "sql" in t || Oc(e) !== Oc(t) || e.domainId !== t.domainId || e.datasetName !== t.datasetName) return;
|
|
13953
|
-
const o = e.datasetName, i = e, a = t, s = (I, S) => I[S] ?? [], l = (I, S) => I === void 0 || S === void 0 ? I === S : dt(I, o) === dt(S, o) && fr(I) === fr(S) &&
|
|
13953
|
+
const o = e.datasetName, i = e, a = t, s = (I, S) => I[S] ?? [], l = (I, S) => I === void 0 || S === void 0 ? I === S : dt(I, o) === dt(S, o) && fr(I) === fr(S) && Ke($c(I, e.domainId, o), $c(S, t.domainId, o)), c = (I, S) => I.length === S.length && I.every((A, O) => l(A, S[O])), d = (I, S) => {
|
|
13954
13954
|
const A = I, O = S;
|
|
13955
13955
|
return A && O ? A.direction === O.direction && l(A.field, O.field) : A === O;
|
|
13956
|
-
}, u = (I) => !
|
|
13956
|
+
}, u = (I) => !Ke(i[I], a[I]), m = (I) => i[I] !== void 0 || a[I] !== void 0, p = !l(i.dateField, a.dateField), g = !m("timeGrain") && !m("timeWindow"), h = !c(s(i, "measures"), s(a, "measures")), y = !c(s(i, "dimensions"), s(a, "dimensions")), b = !c((n == null ? void 0 : n.columns) ?? [], (r == null ? void 0 : r.columns) ?? []), v = [];
|
|
13957
13957
|
h && v.push("measures"), (y || u("timeGrain") || p && (m("timeGrain") || g) || b) && v.push("groupings"), c(s(i, "columns"), s(a, "columns")) || v.push("columns"), (u("filters") || u("timeWindow") || p && (m("timeWindow") || g)) && v.push("filters"), d(i.orderBy, a.orderBy) || v.push("order"), u("limit") && v.push("limit");
|
|
13958
13958
|
const w = [], x = (I, S, A) => {
|
|
13959
13959
|
const O = ut(I, S, (P) => dt(P, o));
|
|
13960
|
-
ut(I, A, (P) => dt(P, o)).forEach((P,
|
|
13960
|
+
ut(I, A, (P) => dt(P, o)).forEach((P, U) => {
|
|
13961
13961
|
const E = O.findIndex((W) => ce(W, P));
|
|
13962
|
-
E >= 0 && l(S[E], A[
|
|
13962
|
+
E >= 0 && l(S[E], A[U]) && w.push(P);
|
|
13963
13963
|
});
|
|
13964
13964
|
}, C = (I) => [
|
|
13965
13965
|
...s(I, "dimensions"),
|
|
@@ -13967,7 +13967,7 @@ function ZM(e, t, n, r) {
|
|
|
13967
13967
|
];
|
|
13968
13968
|
x("metric", s(i, "measures"), s(a, "measures")), x("detail", s(i, "columns"), s(a, "columns")), x("group_by", u("timeGrain") ? s(i, "dimensions") : C(i), u("timeGrain") ? s(a, "dimensions") : C(a));
|
|
13969
13969
|
const k = i.filters ?? [], _ = (a.filters ?? []).flatMap(
|
|
13970
|
-
(I) => I.id && k.some((S) =>
|
|
13970
|
+
(I) => I.id && k.some((S) => Ke(S, I)) ? [I.id] : []
|
|
13971
13971
|
), F = s(i, "measures"), D = ut("metric", F, (I) => dt(I, o)), z = ut("metric", s(a, "measures"), (I) => dt(I, o)).some((I, S) => {
|
|
13972
13972
|
const A = fr(s(a, "measures")[S]), O = D.findIndex((P) => ce(P, I));
|
|
13973
13973
|
return O < 0 ? A !== void 0 : A !== fr(F[O]);
|
|
@@ -13981,7 +13981,7 @@ function ZM(e, t, n, r) {
|
|
|
13981
13981
|
orderChosen: i.orderBy !== void 0
|
|
13982
13982
|
};
|
|
13983
13983
|
}
|
|
13984
|
-
function
|
|
13984
|
+
function Km(e, t) {
|
|
13985
13985
|
var o, i, a, s;
|
|
13986
13986
|
const n = (o = e.config) == null ? void 0 : o.matrix;
|
|
13987
13987
|
if (n) {
|
|
@@ -14009,13 +14009,13 @@ function sk(e, t) {
|
|
|
14009
14009
|
return ((u = r[o]) == null ? void 0 : u.labelOrigin) === "override" ? "override" : "semantic";
|
|
14010
14010
|
}
|
|
14011
14011
|
function Lr(e, t) {
|
|
14012
|
-
const { keys: n, label: r } =
|
|
14012
|
+
const { keys: n, label: r } = Km(e, t.role), o = n.findIndex((i) => ce(i, t));
|
|
14013
14013
|
return o < 0 ? void 0 : r(o);
|
|
14014
14014
|
}
|
|
14015
14015
|
function lk(e, t) {
|
|
14016
14016
|
var s, l;
|
|
14017
14017
|
const n = t.filter(
|
|
14018
|
-
(c) =>
|
|
14018
|
+
(c) => Km(e, c.key.role).keys.some((d) => ce(d, c.key)) && // Restating the label shown is no change; returning one to the model is, even with the same text.
|
|
14019
14019
|
(Lr(e, c.key) !== c.label || c.origin === "semantic" && sk(e, c.key) === "override")
|
|
14020
14020
|
);
|
|
14021
14021
|
if (!n.length) return { card: e, changed: n };
|
|
@@ -14108,7 +14108,7 @@ function ck(e, t) {
|
|
|
14108
14108
|
}
|
|
14109
14109
|
return p.set(se, pn), pn;
|
|
14110
14110
|
});
|
|
14111
|
-
}, x = w("metric", n.metricColumns, r.metricColumns, i("measures")), C = w("group_by", n.groupByColumns, r.groupByColumns, i("groupings")), k = o && i("groupings") ?
|
|
14111
|
+
}, x = w("metric", n.metricColumns, r.metricColumns, i("measures")), C = w("group_by", n.groupByColumns, r.groupByColumns, i("groupings")), k = o && i("groupings") ? Um(n.groupByColumns ?? [], C, ($) => qr($, $.granularity)) : C, _ = w("detail", n.detailColumns, r.detailColumns, i("columns"));
|
|
14112
14112
|
if (g.length) return Rc(e, g);
|
|
14113
14113
|
const F = i("measures") || i("groupings") || i("columns"), D = !!((ne = n.sortByColumns) != null && ne.length), z = i("limit") ? r.rowLimit : n.rowLimit, I = typeof z == "number" && z > 0, S = i("order") || o !== void 0 && !o.orderChosen && (D ? F : I && i("limit")), A = (ue = r.sortByColumns) == null ? void 0 : ue.map(($) => {
|
|
14114
14114
|
const j = Vn(r, $), V = j && p.get(j);
|
|
@@ -14125,7 +14125,7 @@ function ck(e, t) {
|
|
|
14125
14125
|
}), $ && (O = A);
|
|
14126
14126
|
}
|
|
14127
14127
|
const P = !o || fk(n, r, i);
|
|
14128
|
-
let
|
|
14128
|
+
let U = r.matrix, E = e.controlBindings;
|
|
14129
14129
|
if (r.matrix && n.matrix)
|
|
14130
14130
|
try {
|
|
14131
14131
|
const $ = gk(n.matrix, r.matrix, e.controlBindings ?? [], { pairing: u, stated: l, change: o, owns: i, sourceChanged: P });
|
|
@@ -14137,7 +14137,7 @@ function ck(e, t) {
|
|
|
14137
14137
|
message: `A control on "${e.title ?? "this card"}" chooses ${$.controlled}, so changing it here wouldn't take effect; change the control in the editor.`,
|
|
14138
14138
|
parts: ["controlBindings"]
|
|
14139
14139
|
};
|
|
14140
|
-
|
|
14140
|
+
U = $.config, s.push(...$.keptLabels), e.controlBindings && (E = [...$.bindings]);
|
|
14141
14141
|
} catch ($) {
|
|
14142
14142
|
return { ok: !1, code: "query_invalid", message: `The new Matrix definition isn't valid: ${$.message}` };
|
|
14143
14143
|
}
|
|
@@ -14151,7 +14151,7 @@ function ck(e, t) {
|
|
|
14151
14151
|
rowLimit: i("limit") ? r.rowLimit : n.rowLimit,
|
|
14152
14152
|
queryBaseSource: P ? r.queryBaseSource : n.queryBaseSource,
|
|
14153
14153
|
joinPlan: P ? r.joinPlan : n.joinPlan,
|
|
14154
|
-
matrix:
|
|
14154
|
+
matrix: U
|
|
14155
14155
|
}, T = { ...n }, M = ($) => Array.isArray($) && $.length === 0;
|
|
14156
14156
|
for (const $ of Ji) {
|
|
14157
14157
|
const j = n[$];
|
|
@@ -14216,7 +14216,7 @@ function uk(e, t, n = []) {
|
|
|
14216
14216
|
parts: ["controlBindings"]
|
|
14217
14217
|
};
|
|
14218
14218
|
}
|
|
14219
|
-
function
|
|
14219
|
+
function Um(e, t, n) {
|
|
14220
14220
|
if (!t) return t;
|
|
14221
14221
|
const r = e.findIndex(n), o = t.findIndex(n);
|
|
14222
14222
|
if (r < 0 || o < 0) return t;
|
|
@@ -14270,7 +14270,7 @@ const mk = /* @__PURE__ */ new Set(["config", "dataSource", "connectionId", "sql
|
|
|
14270
14270
|
function pk(e, t, n, r, o) {
|
|
14271
14271
|
var g, h;
|
|
14272
14272
|
const i = [], a = (y, b, v) => {
|
|
14273
|
-
|
|
14273
|
+
Ke(b, v) || i.push(y);
|
|
14274
14274
|
}, s = e.config ?? {}, l = t.config ?? {}, c = n("measures") || n("groupings") || n("columns");
|
|
14275
14275
|
for (const y of Ji) {
|
|
14276
14276
|
const b = nk[y];
|
|
@@ -14353,7 +14353,7 @@ function gk(e, t, n, r) {
|
|
|
14353
14353
|
return { controlled: `${"field" in ne && ne.field ? ne.field.label || ne.field.name : ne.id}'s ${B ? "aggregate" : "grain"}` };
|
|
14354
14354
|
}
|
|
14355
14355
|
}
|
|
14356
|
-
const k = (T) => qr(T.field, T.grain), _ = t.spec.rows.map((T, M) => v(T, M)), F = i("groupings") ? o ?
|
|
14356
|
+
const k = (T) => qr(T.field, T.grain), _ = t.spec.rows.map((T, M) => v(T, M)), F = i("groupings") ? o ? Um(e.spec.rows, _, k) ?? _ : _ : e.spec.rows, D = i("groupings") ? t.spec.columns.map((T, M) => v(T, t.spec.rows.length + M)) : e.spec.columns, z = i("measures") ? t.spec.measures.map((T, M) => w(T, M)) : e.spec.measures, I = {
|
|
14357
14357
|
...e.spec,
|
|
14358
14358
|
...r.sourceChanged ? { source: t.spec.source, joinPlan: t.spec.joinPlan, relationshipHint: t.spec.relationshipHint } : {},
|
|
14359
14359
|
filters: i("filters") ? o ? Ym(e.spec.filters, t.spec.filters, o) : t.spec.filters : e.spec.filters
|
|
@@ -14862,7 +14862,7 @@ function qk(e) {
|
|
|
14862
14862
|
if ((t == null ? void 0 : t.type) === "duration") return { ok: !0, sample: zh(12480, t) };
|
|
14863
14863
|
if (!t || !ya(t)) return { ok: !1, reason: `a ${e.type} format has no number presentation` };
|
|
14864
14864
|
const n = e.type === "percent" ? e.percentValueMode === "whole" ? 4.2 : 0.042 : "compact" in e && e.compact ? 1204 : 12480;
|
|
14865
|
-
return { ok: !0, sample:
|
|
14865
|
+
return { ok: !0, sample: Kh(n, Uh(t, En)) };
|
|
14866
14866
|
}
|
|
14867
14867
|
function Lk(e, t) {
|
|
14868
14868
|
if (e.value === "result") {
|
|
@@ -14897,7 +14897,7 @@ const zk = {
|
|
|
14897
14897
|
quarter: { calendar: "2026-07-01", fiscal: "2026-07-01" },
|
|
14898
14898
|
year: { calendar: "2026-01-01", fiscal: "2026-07-01" }
|
|
14899
14899
|
};
|
|
14900
|
-
function
|
|
14900
|
+
function Kk(e, t) {
|
|
14901
14901
|
const n = e.granularity;
|
|
14902
14902
|
if (!n) return { ok: !1, reason: "the column is not grouped by a grain" };
|
|
14903
14903
|
const r = /* @__PURE__ */ new Set();
|
|
@@ -14916,28 +14916,28 @@ function Uk(e, t) {
|
|
|
14916
14916
|
}
|
|
14917
14917
|
return { ok: !0, ...r.size === 1 ? { sample: [...r][0] } : {} };
|
|
14918
14918
|
}
|
|
14919
|
-
const
|
|
14919
|
+
const Uk = (e) => (e instanceof Error ? e.message : String(e)).replace(/^[a-z_]+: /, "");
|
|
14920
14920
|
function Yk(e, t) {
|
|
14921
14921
|
try {
|
|
14922
14922
|
switch (t.type) {
|
|
14923
14923
|
case "date":
|
|
14924
14924
|
return Vk(e, t);
|
|
14925
14925
|
case "temporal_bucket":
|
|
14926
|
-
return
|
|
14926
|
+
return Kk(e, t);
|
|
14927
14927
|
case "string":
|
|
14928
14928
|
return { ok: !0 };
|
|
14929
14929
|
default:
|
|
14930
14930
|
return qk(t);
|
|
14931
14931
|
}
|
|
14932
14932
|
} catch (n) {
|
|
14933
|
-
return { ok: !1, reason:
|
|
14933
|
+
return { ok: !1, reason: Uk(n) };
|
|
14934
14934
|
}
|
|
14935
14935
|
}
|
|
14936
14936
|
function Qm(e, t) {
|
|
14937
14937
|
const n = Yk(e, t);
|
|
14938
14938
|
return n.ok ? n.sample : void 0;
|
|
14939
14939
|
}
|
|
14940
|
-
const
|
|
14940
|
+
const Ue = (e) => e != null && !(Array.isArray(e) && e.length === 0) && !(typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0), Be = (e, t) => e && typeof e == "object" ? Object.keys(e).filter((n) => !t.includes(n) && Ue(e[n])) : [], Wk = [
|
|
14941
14941
|
["datasetOptions", "Per-series settings"],
|
|
14942
14942
|
["colorConfig", "Series colors"],
|
|
14943
14943
|
["tooltipConfig", "Tooltip"],
|
|
@@ -14956,8 +14956,8 @@ const Ke = (e) => e != null && !(Array.isArray(e) && e.length === 0) && !(typeof
|
|
|
14956
14956
|
];
|
|
14957
14957
|
function Hk(e, t) {
|
|
14958
14958
|
var o, i, a;
|
|
14959
|
-
const n = (o = e.preferences) == null ? void 0 : o.comparisonPresentation, r = Gk.filter(([s]) => s.some((l) =>
|
|
14960
|
-
if (!t.settings.has("comparisonDisplay") && ["showComparison", "displayMode", "precision"].some((s) =>
|
|
14959
|
+
const n = (o = e.preferences) == null ? void 0 : o.comparisonPresentation, r = Gk.filter(([s]) => s.some((l) => Ue(n == null ? void 0 : n[l]))).map(([, s]) => s);
|
|
14960
|
+
if (!t.settings.has("comparisonDisplay") && ["showComparison", "displayMode", "precision"].some((s) => Ue(n == null ? void 0 : n[s])) && r.push("Comparison display"), !t.settings.has("inheritComparison") && ((i = e.preferences) == null ? void 0 : i.inheritGlobalComparison) === !1 && r.push("Dashboard comparison"), !t.settings.has("columns.polarity"))
|
|
14961
14961
|
for (const s of ((a = e.config) == null ? void 0 : a.metricColumns) ?? [])
|
|
14962
14962
|
s.comparisonPolarity && r.push(`Favorable direction (${s.label || s.name})`);
|
|
14963
14963
|
return r;
|
|
@@ -14967,11 +14967,11 @@ function Qk(e, t) {
|
|
|
14967
14967
|
const n = (a = e.preferences) == null ? void 0 : a.chartOptions;
|
|
14968
14968
|
if (!n) return [];
|
|
14969
14969
|
const r = [], o = n.plugins, i = o == null ? void 0 : o.legend;
|
|
14970
|
-
return i && !t.settings.has("legend") && r.push("Legend"), Be(i, ["display", "position"]).length && r.push("Legend alignment"), Be(o, ["legend"]).length && r.push("Chart options"),
|
|
14970
|
+
return i && !t.settings.has("legend") && r.push("Legend"), Be(i, ["display", "position"]).length && r.push("Legend alignment"), Be(o, ["legend"]).length && r.push("Chart options"), Ue(n.indexAxis) && !t.settings.has("orientation") && r.push("Orientation"), Be(n, ["plugins", "indexAxis"]).length && r.push("Chart options"), r;
|
|
14971
14971
|
}
|
|
14972
14972
|
function Jk(e, t) {
|
|
14973
14973
|
var l, c;
|
|
14974
|
-
const { xAxisConfig: n, yAxisConfig: r } = e.preferences ?? {}, o = [n, r].filter(
|
|
14974
|
+
const { xAxisConfig: n, yAxisConfig: r } = e.preferences ?? {}, o = [n, r].filter(Ue);
|
|
14975
14975
|
if (!o.length) return [];
|
|
14976
14976
|
if (!t.settings.has("axes")) return ["Axes"];
|
|
14977
14977
|
const i = So(e.type, e.preferences) === "x" ? r : n, a = typeof ((l = i == null ? void 0 : i.scale) == null ? void 0 : l.min) == "number" || typeof ((c = i == null ? void 0 : i.scale) == null ? void 0 : c.max) == "number";
|
|
@@ -14982,7 +14982,7 @@ function Jk(e, t) {
|
|
|
14982
14982
|
function Zk(e, t) {
|
|
14983
14983
|
var r;
|
|
14984
14984
|
const n = (r = e.preferences) == null ? void 0 : r.dataLabelsConfig;
|
|
14985
|
-
return
|
|
14985
|
+
return Ue(n) ? t.settings.has("dataLabels") ? Be(n, ["enabled", "display", "valueFormat"]).length ? ["Data label style"] : [] : ["Data labels"] : [];
|
|
14986
14986
|
}
|
|
14987
14987
|
function Xk(e, t, n) {
|
|
14988
14988
|
var c;
|
|
@@ -14993,18 +14993,18 @@ function Xk(e, t, n) {
|
|
|
14993
14993
|
for (const [d, u] of Object.entries(a))
|
|
14994
14994
|
Be(u, ["width"]).length && i.push(`Column display (${n(d)})`);
|
|
14995
14995
|
const s = r.tableStyle, l = s == null ? void 0 : s.totals;
|
|
14996
|
-
return (l == null ? void 0 : l.enabled) !== void 0 && !t.settings.has("totals") && i.push("Total row"), Be(l, ["enabled"]).length && i.push("Total row style"), Be(s, ["totals"]).length && i.push("Table style"),
|
|
14996
|
+
return (l == null ? void 0 : l.enabled) !== void 0 && !t.settings.has("totals") && i.push("Total row"), Be(l, ["enabled"]).length && i.push("Total row style"), Be(s, ["totals"]).length && i.push("Table style"), Ue(r.density) && i.push("Row density"), Ue(r.pageSize) && i.push("Rows per page"), r.selectColumnVisible === !0 && i.push("Row selection"), Ue(r.baseFormatting) && i.push("Table formatting"), r.allowViewerColumnCustomization === !1 && i.push("Viewers can't customize columns"), i;
|
|
14997
14997
|
}
|
|
14998
14998
|
function eT(e) {
|
|
14999
14999
|
var o;
|
|
15000
15000
|
const t = (o = e.config) == null ? void 0 : o.matrix;
|
|
15001
15001
|
if (!t) return [];
|
|
15002
15002
|
const n = Wh(t.spec).presentation, r = [];
|
|
15003
|
-
return
|
|
15003
|
+
return Ke(t.presentation.layout, n.layout) || r.push("Matrix layout"), Ke(t.presentation.absence, n.absence) || r.push("Matrix empty and null text"), Ke(t.presentation.totals, n.totals) || r.push("Matrix totals"), r;
|
|
15004
15004
|
}
|
|
15005
15005
|
function tT(e) {
|
|
15006
15006
|
const { card: t, kind: n } = e, r = t.preferences ?? {}, o = [
|
|
15007
|
-
...Wk.filter(([i]) =>
|
|
15007
|
+
...Wk.filter(([i]) => Ue(r[i])).map(([, i]) => i),
|
|
15008
15008
|
...Hk(t, n),
|
|
15009
15009
|
...Qk(t, n),
|
|
15010
15010
|
...Jk(t, n),
|
|
@@ -15168,7 +15168,7 @@ function fT(e, t, n) {
|
|
|
15168
15168
|
const o = (a = (i = e.config) == null ? void 0 : i.metricColumns) == null ? void 0 : a.find((s) => s.id === r.fieldId);
|
|
15169
15169
|
return o != null && o.semanticComparisonPolarity ? { value: o.semanticComparisonPolarity, fromModel: !0 } : o != null && o.comparisonPolarity ? { value: o.comparisonPolarity, fromModel: !1 } : void 0;
|
|
15170
15170
|
}
|
|
15171
|
-
function
|
|
15171
|
+
function Kc(e, t) {
|
|
15172
15172
|
var a, s, l;
|
|
15173
15173
|
if (!e) return;
|
|
15174
15174
|
const n = (a = e.name) != null && a.enabled && e.name.text ? e.name.text : void 0, r = t && typeof ((s = e.scale) == null ? void 0 : s.min) == "number" ? e.scale.min : void 0, o = t && typeof ((l = e.scale) == null ? void 0 : l.max) == "number" ? e.scale.max : void 0, i = {
|
|
@@ -15191,7 +15191,7 @@ function mT(e, t) {
|
|
|
15191
15191
|
});
|
|
15192
15192
|
const s = (g = (p = n == null ? void 0 : n.chartOptions) == null ? void 0 : p.plugins) == null ? void 0 : g.legend;
|
|
15193
15193
|
if (t.settings.has("legend") && s && (r.legend = { show: s.display !== !1, ...s.position ? { position: s.position } : {} }), t.settings.has("axes")) {
|
|
15194
|
-
const h = So(e.type, n), y =
|
|
15194
|
+
const h = So(e.type, n), y = Kc(n == null ? void 0 : n.xAxisConfig, h === "x"), b = Kc(n == null ? void 0 : n.yAxisConfig, h === "y");
|
|
15195
15195
|
(y || b) && (r.axes = { ...y ? { x: y } : {}, ...b ? { y: b } : {} });
|
|
15196
15196
|
}
|
|
15197
15197
|
const l = n == null ? void 0 : n.comparisonPresentation;
|
|
@@ -15288,7 +15288,7 @@ function vT(e, t) {
|
|
|
15288
15288
|
const n = (r = gt(t.variant ? _o(e, t.variant) : e)) == null ? void 0 : r.type;
|
|
15289
15289
|
return n === "bar" ? "the bars" : n === "pie" ? "the slices" : "the points";
|
|
15290
15290
|
}
|
|
15291
|
-
const
|
|
15291
|
+
const Uc = { xAxisConfig: "horizontal axis", yAxisConfig: "vertical axis" };
|
|
15292
15292
|
function IT(e, t) {
|
|
15293
15293
|
var l;
|
|
15294
15294
|
const n = G(e.title), r = [], o = (c, d) => r.push({ kind: "display", lead: c, follow: d }), i = bT(e, t);
|
|
@@ -15313,7 +15313,7 @@ function IT(e, t) {
|
|
|
15313
15313
|
];
|
|
15314
15314
|
if (!u.length) continue;
|
|
15315
15315
|
const m = (p) => Ae(u.map((g, h) => g(h === 0 ? p : void 0)));
|
|
15316
|
-
o(m(`the ${
|
|
15316
|
+
o(m(`the ${Uc[c]} of ${n}`), m(`the ${Uc[c]}`));
|
|
15317
15317
|
}
|
|
15318
15318
|
return t.comparisonDisplay && r.push(...yT(n, t.comparisonDisplay)), t.inheritComparison === !1 && o(`stops ${n} following the dashboard's comparison`, "stops following the dashboard's comparison"), t.inheritComparison === !0 && o(`makes ${n} follow the dashboard's comparison again`, "follows the dashboard's comparison again"), r;
|
|
15319
15319
|
}
|
|
@@ -15603,13 +15603,13 @@ function Os({
|
|
|
15603
15603
|
F && I && !tp(I.dataType) && l.add(np.WINDOW_NON_DATE_ORDER);
|
|
15604
15604
|
const S = _ === "percent_of_total" ? [] : r.filter((E) => E.id && E.id !== (I == null ? void 0 : I.id)).map((E) => E.id), A = new Set(
|
|
15605
15605
|
r.filter((E) => !!E.id).map((E) => E.id)
|
|
15606
|
-
), O = _ === "percent_of_total" ? MT(k) : void 0, P = O === "grand_total" ? [] : ((h = k.partitionByFieldIds) == null ? void 0 : h.filter(Boolean)) ?? S,
|
|
15606
|
+
), O = _ === "percent_of_total" ? MT(k) : void 0, P = O === "grand_total" ? [] : ((h = k.partitionByFieldIds) == null ? void 0 : h.filter(Boolean)) ?? S, U = P.filter(
|
|
15607
15607
|
(E) => !A.has(E)
|
|
15608
15608
|
);
|
|
15609
|
-
if (
|
|
15609
|
+
if (U.length > 0) {
|
|
15610
15610
|
s.push({
|
|
15611
15611
|
code: pe.INVALID_WINDOW_TRANSFORM,
|
|
15612
|
-
message: `Metric "${bn(C)}" references invalid partition fields: ${
|
|
15612
|
+
message: `Metric "${bn(C)}" references invalid partition fields: ${U.join(", ")}.`,
|
|
15613
15613
|
metricId: C.id
|
|
15614
15614
|
});
|
|
15615
15615
|
continue;
|
|
@@ -15788,9 +15788,9 @@ function zT(e, t, n) {
|
|
|
15788
15788
|
...r,
|
|
15789
15789
|
metricColumns: o.map((m, p) => p === t ? { ...m, parameters: { ...m.parameters, windowTransform: u } } : m)
|
|
15790
15790
|
}), l = Vr(s(n), e.type, i.id), c = Vr(s(a), e.type, i.id);
|
|
15791
|
-
return !!(l && c &&
|
|
15791
|
+
return !!(l && c && Ke(l, c));
|
|
15792
15792
|
}
|
|
15793
|
-
function
|
|
15793
|
+
function KT(e, t, n) {
|
|
15794
15794
|
var b, v, w, x, C, k, _, F, D, z, I;
|
|
15795
15795
|
const r = e.config ?? {}, o = (w = (v = (b = r.metricColumns) == null ? void 0 : b.find((S) => S.id === t)) == null ? void 0 : v.parameters) == null ? void 0 : w.windowTransform;
|
|
15796
15796
|
if (!o || !(o.function in Qc)) return;
|
|
@@ -15816,10 +15816,10 @@ function UT(e, t, n) {
|
|
|
15816
15816
|
...g ? { resetBy: g } : {}
|
|
15817
15817
|
};
|
|
15818
15818
|
}
|
|
15819
|
-
function
|
|
15819
|
+
function UT(e, t, n) {
|
|
15820
15820
|
var r;
|
|
15821
15821
|
if (Vr(e.config ?? {}, e.type, t))
|
|
15822
|
-
return (r =
|
|
15822
|
+
return (r = KT(e, t, n)) == null ? void 0 : r.transform;
|
|
15823
15823
|
}
|
|
15824
15824
|
function Xc(e, t) {
|
|
15825
15825
|
const { parameters: n, ...r } = e;
|
|
@@ -15860,7 +15860,7 @@ function ap(e, t) {
|
|
|
15860
15860
|
n = jn(n, d, a.format.write);
|
|
15861
15861
|
else {
|
|
15862
15862
|
const u = wa({ card: n, column: d });
|
|
15863
|
-
u.source === "override" &&
|
|
15863
|
+
u.source === "override" && Ke(u.format, a.format.removeIf) && (n = jn(n, d, void 0));
|
|
15864
15864
|
}
|
|
15865
15865
|
}
|
|
15866
15866
|
}
|
|
@@ -16398,7 +16398,7 @@ function LD(e, t) {
|
|
|
16398
16398
|
for (const i of ((r = e.config) == null ? void 0 : r.metricColumns) ?? []) {
|
|
16399
16399
|
const a = {}, s = Do(i.comparison);
|
|
16400
16400
|
if (s && (a.comparison = s), (o = i.parameters) != null && o.windowTransform) {
|
|
16401
|
-
const l =
|
|
16401
|
+
const l = UT(e, i.id, t);
|
|
16402
16402
|
if (!l) return { ok: !1, detail: "a table calculation that can't run as stored" };
|
|
16403
16403
|
a.transform = l;
|
|
16404
16404
|
}
|
|
@@ -16408,9 +16408,9 @@ function LD(e, t) {
|
|
|
16408
16408
|
}
|
|
16409
16409
|
class Bp extends Error {
|
|
16410
16410
|
}
|
|
16411
|
-
const
|
|
16411
|
+
const K = (e) => {
|
|
16412
16412
|
throw new Bp(e);
|
|
16413
|
-
},
|
|
16413
|
+
}, Kn = "__count";
|
|
16414
16414
|
function VD(e, t) {
|
|
16415
16415
|
var s, l;
|
|
16416
16416
|
const n = Io(e.type), r = Ls(e), o = (c, d, u) => ({
|
|
@@ -16439,7 +16439,7 @@ function VD(e, t) {
|
|
|
16439
16439
|
const c = HD((l = e.config) == null ? void 0 : l.matrix, r);
|
|
16440
16440
|
return { editable: !0, type: i, query: c.query, matrix: c.columns, source: r };
|
|
16441
16441
|
}
|
|
16442
|
-
return { editable: !0, type: i, query:
|
|
16442
|
+
return { editable: !0, type: i, query: UD(e, i, r, t.calculations !== !1), source: r };
|
|
16443
16443
|
} catch (c) {
|
|
16444
16444
|
if (c instanceof Bp) return a(c.message);
|
|
16445
16445
|
throw c;
|
|
@@ -16460,22 +16460,22 @@ function Ls(e) {
|
|
|
16460
16460
|
return { kind: "physical", connectionId: n.connectionId, tableName: r || "" };
|
|
16461
16461
|
}
|
|
16462
16462
|
const jp = (e) => Jn(e.dataType);
|
|
16463
|
-
function
|
|
16464
|
-
(e.calculatedFieldOrigin || e.fieldScope && e.fieldScope !== "domain") &&
|
|
16463
|
+
function Kr(e) {
|
|
16464
|
+
(e.calculatedFieldOrigin || e.fieldScope && e.fieldScope !== "domain") && K("a calculated field of this dashboard"), e.expression && !e.derivedField && e.fieldScope !== "domain" && K("a calculated field of this dashboard");
|
|
16465
16465
|
const t = e.parameters;
|
|
16466
|
-
t != null && t.filters &&
|
|
16466
|
+
t != null && t.filters && K("a measure with its own filter");
|
|
16467
16467
|
}
|
|
16468
16468
|
function ke(e, t) {
|
|
16469
16469
|
const n = $s(e);
|
|
16470
16470
|
return !n || n.toLowerCase() === t.datasetName.toLowerCase() ? e.name : { name: e.name, datasetName: n };
|
|
16471
16471
|
}
|
|
16472
|
-
const zD = (e) => e.id ===
|
|
16472
|
+
const zD = (e) => e.id === Kn || e.alias === Kn || e.name === "*" && e.aggregate === "COUNT";
|
|
16473
16473
|
function qp(e, t) {
|
|
16474
|
-
if (zD(e)) return
|
|
16474
|
+
if (zD(e)) return Kn;
|
|
16475
16475
|
const n = ke(e, t);
|
|
16476
16476
|
return Ny(e) ? typeof n == "string" ? { name: n, aggregate: e.aggregate } : { ...n, aggregate: e.aggregate } : n;
|
|
16477
16477
|
}
|
|
16478
|
-
function
|
|
16478
|
+
function KD(e, t, n) {
|
|
16479
16479
|
const r = qp(e, t);
|
|
16480
16480
|
return !(n != null && n.comparison) && !(n != null && n.transform) ? r : {
|
|
16481
16481
|
...typeof r == "string" ? { name: r } : r,
|
|
@@ -16483,15 +16483,15 @@ function UD(e, t, n) {
|
|
|
16483
16483
|
...n.transform ? { transform: n.transform } : {}
|
|
16484
16484
|
};
|
|
16485
16485
|
}
|
|
16486
|
-
function
|
|
16486
|
+
function UD(e, t, n, r) {
|
|
16487
16487
|
var w, x, C, k, _, F;
|
|
16488
16488
|
const o = e.config ?? {};
|
|
16489
|
-
!((w = o.metricColumns) != null && w.length) && !((x = o.groupByColumns) != null && x.length) && !((C = o.detailColumns) != null && C.length) &&
|
|
16489
|
+
!((w = o.metricColumns) != null && w.length) && !((x = o.groupByColumns) != null && x.length) && !((C = o.detailColumns) != null && C.length) && K("no fields yet"), (k = o.pivotByColumns) != null && k.length && K("pivot columns"), (F = (_ = o.joinPlan) == null ? void 0 : _.joins) != null && F.some((D) => !D.autoResolved) && K("a join set in the editor");
|
|
16490
16490
|
const i = o.metricColumns ?? [], a = o.groupByColumns ?? [], s = o.detailColumns ?? [];
|
|
16491
|
-
[...i, ...a, ...s].forEach(
|
|
16491
|
+
[...i, ...a, ...s].forEach(Kr);
|
|
16492
16492
|
const l = Vp(o.filters, n), c = typeof o.rowLimit == "number" && o.rowLimit > 0 && o.rowLimit <= gp ? { limit: o.rowLimit } : {};
|
|
16493
16493
|
if (t === "detail_table") {
|
|
16494
|
-
(i.length || a.length) &&
|
|
16494
|
+
(i.length || a.length) && K("a detail table with grouped columns"), s.length || K("no columns yet");
|
|
16495
16495
|
const D = sd(l, void 0, n), z = ld(o.sortByColumns, o, n, void 0);
|
|
16496
16496
|
return {
|
|
16497
16497
|
domainId: n.domainId,
|
|
@@ -16504,20 +16504,20 @@ function KD(e, t, n, r) {
|
|
|
16504
16504
|
...c
|
|
16505
16505
|
};
|
|
16506
16506
|
}
|
|
16507
|
-
s.length &&
|
|
16507
|
+
s.length && K("detail columns on an aggregated card"), i.length || K(`a ${t.replace(/_/g, " ")} without measures`), t === "kpi" && i.length > 1 && K("a KPI with several measures");
|
|
16508
16508
|
const d = a.filter((D) => D.granularity && jp(D));
|
|
16509
|
-
d.length > 1 &&
|
|
16509
|
+
d.length > 1 && K("more than one date grouping");
|
|
16510
16510
|
const u = d[0], m = a.filter((D) => D !== u);
|
|
16511
|
-
t === "kpi" && m.length &&
|
|
16511
|
+
t === "kpi" && m.length && K("a KPI grouped by a dimension");
|
|
16512
16512
|
const p = u ? { dateField: ke(u, n), timeGrain: Lp(u.granularity) } : sd(l, void 0, n);
|
|
16513
|
-
u && l.windowField && He(l.windowField) !== He(u) &&
|
|
16513
|
+
u && l.windowField && He(l.windowField) !== He(u) && K("a date window on another date field");
|
|
16514
16514
|
const g = Fy({ groupedDate: u, measures: i, grouped: a.length > 0 }), h = g && { column: g.target, direction: g.direction }, y = ld(o.sortByColumns, o, n, h), b = r ? LD(e, (D) => ke(D, n)) : void 0;
|
|
16515
|
-
b && !b.ok &&
|
|
16515
|
+
b && !b.ok && K(b.detail);
|
|
16516
16516
|
const v = b != null && b.ok ? b.measures : [];
|
|
16517
16517
|
return {
|
|
16518
16518
|
domainId: n.domainId,
|
|
16519
16519
|
datasetName: n.datasetName,
|
|
16520
|
-
measures: i.map((D, z) =>
|
|
16520
|
+
measures: i.map((D, z) => KD(D, n, v[z])),
|
|
16521
16521
|
...m.length ? { dimensions: m.map((D) => ke(D, n)) } : {},
|
|
16522
16522
|
...p,
|
|
16523
16523
|
...l.filters.length ? { filters: l.filters } : {},
|
|
@@ -16527,16 +16527,16 @@ function KD(e, t, n, r) {
|
|
|
16527
16527
|
};
|
|
16528
16528
|
}
|
|
16529
16529
|
function Lp(e) {
|
|
16530
|
-
return mp.includes(e ?? "") ||
|
|
16530
|
+
return mp.includes(e ?? "") || K(`a grouping by ${e}`), e;
|
|
16531
16531
|
}
|
|
16532
16532
|
function sd(e, t, n) {
|
|
16533
16533
|
return e.windowField ? { dateField: ke(e.windowField, n) } : {};
|
|
16534
16534
|
}
|
|
16535
16535
|
function ld(e, t, n, r) {
|
|
16536
16536
|
if (!(e != null && e.length)) return;
|
|
16537
|
-
e.length > 1 &&
|
|
16537
|
+
e.length > 1 && K("a sort on several columns");
|
|
16538
16538
|
const [o] = e, i = Vn(t, o);
|
|
16539
|
-
return i ||
|
|
16539
|
+
return i || K("a sort on a column the card doesn't show"), r && i === r.column && o.direction === r.direction ? void 0 : { field: i.role === "metric" ? qp(i, n) : ke(i, n), direction: o.direction };
|
|
16540
16540
|
}
|
|
16541
16541
|
const YD = {
|
|
16542
16542
|
"=": "=",
|
|
@@ -16559,25 +16559,25 @@ const YD = {
|
|
|
16559
16559
|
};
|
|
16560
16560
|
function WD(e, t) {
|
|
16561
16561
|
const n = Array.isArray(t) ? t : [t];
|
|
16562
|
-
(n.length !== 1 || typeof n[0] != "string") &&
|
|
16562
|
+
(n.length !== 1 || typeof n[0] != "string") && K("a pattern filter on a value that isn't text");
|
|
16563
16563
|
const r = Ey(e, n[0]);
|
|
16564
|
-
return r ||
|
|
16564
|
+
return r || K("a pattern filter that matches a value exactly"), r;
|
|
16565
16565
|
}
|
|
16566
16566
|
function Vp(e, t) {
|
|
16567
16567
|
var r;
|
|
16568
16568
|
const n = { filters: [] };
|
|
16569
16569
|
if (!e) return n;
|
|
16570
|
-
(e.negate || (r = e.groups) != null && r.length || e.logicalOperator !== "AND" && e.conditions.length > 1) &&
|
|
16570
|
+
(e.negate || (r = e.groups) != null && r.length || e.logicalOperator !== "AND" && e.conditions.length > 1) && K("filters combined with OR or nested groups");
|
|
16571
16571
|
for (const o of e.conditions) {
|
|
16572
16572
|
if (o.latestValue && o.latestValuePolicy === "snapshot") continue;
|
|
16573
|
-
if (o.latestValue &&
|
|
16574
|
-
n.timeWindow &&
|
|
16573
|
+
if (o.latestValue && K("a filter on the latest value of a field"), o.temporalBucket && K("a filter on a time bucket"), o.rawTemporal && K("a filter on a date and time picked from a result"), Kr(o.field), o.relativeMeta) {
|
|
16574
|
+
n.timeWindow && K("two date windows");
|
|
16575
16575
|
const c = GD(o.relativeMeta);
|
|
16576
|
-
(!c || o.operator !== "between") &&
|
|
16576
|
+
(!c || o.operator !== "between") && K("a date window the query can't state"), n.timeWindow = c, n.windowField = o.field;
|
|
16577
16577
|
continue;
|
|
16578
16578
|
}
|
|
16579
16579
|
const i = YD[o.operator];
|
|
16580
|
-
i ||
|
|
16580
|
+
i || K(`a "${o.operator}" filter`);
|
|
16581
16581
|
const a = o.field.role === "metric" && !!o.field.aggregate, s = a ? (() => {
|
|
16582
16582
|
const c = ke(o.field, t);
|
|
16583
16583
|
return typeof c == "string" ? { name: c, aggregate: o.field.aggregate } : { ...c, aggregate: o.field.aggregate };
|
|
@@ -16591,9 +16591,9 @@ function Vp(e, t) {
|
|
|
16591
16591
|
const c = WD(o.operator, o.value);
|
|
16592
16592
|
l.operator = c.operator, l.values = [c.value];
|
|
16593
16593
|
} else if (i !== "is_null" && i !== "is_not_null") {
|
|
16594
|
-
(i === "in" || i === "not_in") && !(Array.isArray(o.value) && o.value.length) &&
|
|
16594
|
+
(i === "in" || i === "not_in") && !(Array.isArray(o.value) && o.value.length) && K("a list filter without a list of values"), (i === "between" || i === "not_between") && !(Array.isArray(o.value) && o.value.length === 2) && K("a range filter without both ends");
|
|
16595
16595
|
const c = Array.isArray(o.value) ? o.value : [o.value];
|
|
16596
|
-
c.every((d) => ["string", "number", "boolean"].includes(typeof d)) ||
|
|
16596
|
+
c.every((d) => ["string", "number", "boolean"].includes(typeof d)) || K("a filter value the query can't state"), l.values = c;
|
|
16597
16597
|
}
|
|
16598
16598
|
n.filters.push(l);
|
|
16599
16599
|
}
|
|
@@ -16621,21 +16621,21 @@ function GD(e) {
|
|
|
16621
16621
|
}
|
|
16622
16622
|
function HD(e, t) {
|
|
16623
16623
|
var m, p, g;
|
|
16624
|
-
e ||
|
|
16624
|
+
e || K("no fields yet");
|
|
16625
16625
|
const n = e.spec;
|
|
16626
|
-
(p = (m = n.joinPlan) == null ? void 0 : m.joins) != null && p.some((h) => !h.autoResolved) &&
|
|
16626
|
+
(p = (m = n.joinPlan) == null ? void 0 : m.joins) != null && p.some((h) => !h.autoResolved) && K("a join set in the editor"), (g = n.measureFilters) != null && g.length && K("a measure filter");
|
|
16627
16627
|
const r = (h) => h.field, o = (h) => ke(r(h), t), i = [...n.rows, ...n.columns];
|
|
16628
|
-
i.forEach((h) =>
|
|
16628
|
+
i.forEach((h) => Kr(r(h)));
|
|
16629
16629
|
const a = n.measures.map((h) => {
|
|
16630
|
-
h.kind !== "aggregate" &&
|
|
16630
|
+
h.kind !== "aggregate" && K("a calculated Matrix measure");
|
|
16631
16631
|
const y = h.kind === "aggregate" ? h : void 0, b = r({ field: y.field });
|
|
16632
|
-
if (
|
|
16632
|
+
if (Kr(b), b.name === "*" || b.name === Kn) return Kn;
|
|
16633
16633
|
const v = ke(b, t);
|
|
16634
16634
|
return typeof v == "string" ? { name: v, aggregate: y.aggregate } : { ...v, aggregate: y.aggregate };
|
|
16635
16635
|
}), s = i.filter((h) => h.grain && jp(r(h)));
|
|
16636
|
-
s.length > 1 &&
|
|
16636
|
+
s.length > 1 && K("more than one date level");
|
|
16637
16637
|
const l = s[0], c = Vp(n.filters, t);
|
|
16638
|
-
l && c.windowField && He(c.windowField) !== He(r(l)) &&
|
|
16638
|
+
l && c.windowField && He(c.windowField) !== He(r(l)) && K("a date window on another date field");
|
|
16639
16639
|
const d = i.filter((h) => h !== l).map(o);
|
|
16640
16640
|
return { query: {
|
|
16641
16641
|
domainId: t.domainId,
|
|
@@ -16673,7 +16673,7 @@ function zp(e) {
|
|
|
16673
16673
|
sorted: g && (g.label ?? g.name)
|
|
16674
16674
|
};
|
|
16675
16675
|
}
|
|
16676
|
-
function
|
|
16676
|
+
function Kp(e) {
|
|
16677
16677
|
if ("kind" in e && e.kind === "absolute") return `${e.start} to ${e.end}`;
|
|
16678
16678
|
if ("kind" in e && e.kind === "calendar")
|
|
16679
16679
|
return e.period === "previous" ? `the previous ${e.unit}` : `this ${e.unit}${e.toDate ? " to date" : ""}`;
|
|
@@ -16689,7 +16689,7 @@ function QD(e) {
|
|
|
16689
16689
|
const r = zp(e), o = [], i = Ae("measures" in n ? r.measures : r.columns);
|
|
16690
16690
|
o.push(r.groupings.length ? `${i} by ${Ae(r.groupings)}` : i);
|
|
16691
16691
|
const a = J(n, "timeWindow");
|
|
16692
|
-
return a && o.push(
|
|
16692
|
+
return a && o.push(Kp(a)), o.join(", ");
|
|
16693
16693
|
}
|
|
16694
16694
|
const JD = { hour: "hourly", day: "daily", week: "weekly", month: "monthly", quarter: "quarterly", year: "yearly" };
|
|
16695
16695
|
function ZD(e, t) {
|
|
@@ -16715,7 +16715,7 @@ function ZD(e, t) {
|
|
|
16715
16715
|
}
|
|
16716
16716
|
if (!Je(J(o, "timeWindow"), J(i, "timeWindow"))) {
|
|
16717
16717
|
const m = J(i, "timeWindow");
|
|
16718
|
-
s.push(m ? `limits it to ${
|
|
16718
|
+
s.push(m ? `limits it to ${Kp(m)}` : "removes its date window");
|
|
16719
16719
|
}
|
|
16720
16720
|
if (!Je(J(o, "filters"), J(i, "filters"))) {
|
|
16721
16721
|
const m = (J(i, "filters") ?? []).length;
|
|
@@ -16814,7 +16814,7 @@ function nx(e, t, n) {
|
|
|
16814
16814
|
}
|
|
16815
16815
|
}
|
|
16816
16816
|
const rx = {};
|
|
16817
|
-
function
|
|
16817
|
+
function Up(e) {
|
|
16818
16818
|
return { id: kt(e), runtimeScope: "shared" };
|
|
16819
16819
|
}
|
|
16820
16820
|
function ox(e, t) {
|
|
@@ -16833,7 +16833,7 @@ function ox(e, t) {
|
|
|
16833
16833
|
)
|
|
16834
16834
|
};
|
|
16835
16835
|
return {
|
|
16836
|
-
...
|
|
16836
|
+
...Up(e.id),
|
|
16837
16837
|
kind: "selection",
|
|
16838
16838
|
label: e.title || "Card",
|
|
16839
16839
|
variableName: `selection_${e.id}`,
|
|
@@ -17303,7 +17303,7 @@ function fx(e, t) {
|
|
|
17303
17303
|
const o = Td(r), i = o ? Yp(t, o) : void 0;
|
|
17304
17304
|
!o || !i || (n = De(
|
|
17305
17305
|
n,
|
|
17306
|
-
|
|
17306
|
+
Up(o),
|
|
17307
17307
|
rx,
|
|
17308
17308
|
{ status: "set", value: { kind: "selection", selection: i } }
|
|
17309
17309
|
));
|
|
@@ -17648,7 +17648,7 @@ function TO({
|
|
|
17648
17648
|
sheetId: t
|
|
17649
17649
|
});
|
|
17650
17650
|
}
|
|
17651
|
-
function
|
|
17651
|
+
function Un(e) {
|
|
17652
17652
|
return e === void 0 ? void 0 : typeof e == "string" ? e : JSON.stringify(e.map((t) => typeof t == "string" ? t : { variable: t.variable }));
|
|
17653
17653
|
}
|
|
17654
17654
|
function we(e) {
|
|
@@ -17664,7 +17664,7 @@ function Rt(e) {
|
|
|
17664
17664
|
};
|
|
17665
17665
|
return e.variable !== void 0 ? { variable: e.variable, ...t, ...e.presentation !== void 0 ? { presentation: e.presentation } : {} } : { text: e.text ?? "", ...t };
|
|
17666
17666
|
}
|
|
17667
|
-
const Ix = (e, t) => !!e.bold == !!t.bold && !!e.italic == !!t.italic && !!e.underline == !!t.underline &&
|
|
17667
|
+
const Ix = (e, t) => !!e.bold == !!t.bold && !!e.italic == !!t.italic && !!e.underline == !!t.underline && Un(e.link) === Un(t.link);
|
|
17668
17668
|
function _x(e) {
|
|
17669
17669
|
const { variable: t, is: n, value: r } = e.when, o = ft(e.else ?? []);
|
|
17670
17670
|
return {
|
|
@@ -18144,7 +18144,7 @@ function hg(e) {
|
|
|
18144
18144
|
function Gt(e, t, n) {
|
|
18145
18145
|
for (const r of e)
|
|
18146
18146
|
if (r.type === "link") {
|
|
18147
|
-
const o =
|
|
18147
|
+
const o = Un(fg(r.url, t));
|
|
18148
18148
|
n.held.add(Gn("link", o)), n.links.has(o) || n.links.set(o, r.url);
|
|
18149
18149
|
for (const i of yo(r.url)) {
|
|
18150
18150
|
if (i.type !== "variable") continue;
|
|
@@ -18166,10 +18166,10 @@ function zx(e, t) {
|
|
|
18166
18166
|
var n, r;
|
|
18167
18167
|
return ((r = (n = t.chips.get(e)) == null ? void 0 : n[0]) == null ? void 0 : r.ref) ?? t.tests.get(e);
|
|
18168
18168
|
}
|
|
18169
|
-
function
|
|
18170
|
-
return zx(e, t) ??
|
|
18169
|
+
function Ur(e, t, n) {
|
|
18170
|
+
return zx(e, t) ?? Kx(e, n);
|
|
18171
18171
|
}
|
|
18172
|
-
function
|
|
18172
|
+
function Kx(e, t) {
|
|
18173
18173
|
const n = e.indexOf("."), r = n < 0 ? e : e.slice(0, n), o = n < 0 ? void 0 : e.slice(n + 1);
|
|
18174
18174
|
if (r === rn) {
|
|
18175
18175
|
const s = Na(o) ? t.byKey.get(`report:${o}`) : void 0;
|
|
@@ -18178,7 +18178,7 @@ function Ux(e, t) {
|
|
|
18178
18178
|
const i = t.byName.get(r);
|
|
18179
18179
|
return i ? i.kind === "report" ? o === void 0 ? Ho(i) : void 0 : o === void 0 || i.kind === "data" && i.parts.length === 0 || i.parts.some((s) => s === o) ? Ho(i, o) : void 0 : void 0;
|
|
18180
18180
|
}
|
|
18181
|
-
function
|
|
18181
|
+
function Ux(e, t, n) {
|
|
18182
18182
|
const r = e.indexOf("."), o = r < 0 ? e : e.slice(0, r), i = o === rn ? void 0 : t.byName.get(o), a = [...t.byName.keys()];
|
|
18183
18183
|
return i && i.kind !== "report" && i.parts.length ? {
|
|
18184
18184
|
code: "invalid_change",
|
|
@@ -18243,7 +18243,7 @@ function ca(e, t, n) {
|
|
|
18243
18243
|
return r;
|
|
18244
18244
|
}
|
|
18245
18245
|
function Gx(e, t, n) {
|
|
18246
|
-
if (n.held.held.has(Gn("link",
|
|
18246
|
+
if (n.held.held.has(Gn("link", Un(e)))) return [];
|
|
18247
18247
|
const r = typeof e == "string" ? [e] : e, o = [], i = [];
|
|
18248
18248
|
if (r.forEach((a, s) => {
|
|
18249
18249
|
if (typeof a == "string") {
|
|
@@ -18271,8 +18271,8 @@ function Vs(e, t, n, r) {
|
|
|
18271
18271
|
fix: "Keep it as it reads, or change it in the editor."
|
|
18272
18272
|
};
|
|
18273
18273
|
if (!Dm.test(e.split(".")[0])) return da(t);
|
|
18274
|
-
if (!
|
|
18275
|
-
return
|
|
18274
|
+
if (!Ur(e, n.held, n.catalog))
|
|
18275
|
+
return Ux(e, n.catalog, t);
|
|
18276
18276
|
}
|
|
18277
18277
|
function da(e) {
|
|
18278
18278
|
return {
|
|
@@ -18340,7 +18340,7 @@ function Yr(e, t, n, r) {
|
|
|
18340
18340
|
if (we(a)) {
|
|
18341
18341
|
const { variable: u, is: m, value: p } = a.when, g = Yr(a.then, t, n, r), h = (i = a.else) != null && i.length ? Yr(a.else, t, n, r) : void 0, y = {
|
|
18342
18342
|
type: "when",
|
|
18343
|
-
test: { ref:
|
|
18343
|
+
test: { ref: Ur(u, t, r), is: m, ...p !== void 0 ? { value: p } : {} },
|
|
18344
18344
|
then: g,
|
|
18345
18345
|
...h ? { else: h } : {}
|
|
18346
18346
|
};
|
|
@@ -18356,7 +18356,7 @@ function Yr(e, t, n, r) {
|
|
|
18356
18356
|
const y = n.get(s.variable) ?? 0;
|
|
18357
18357
|
n.set(s.variable, y + 1), m = u[Math.min(y, u.length - 1)];
|
|
18358
18358
|
}
|
|
18359
|
-
const p = (m == null ? void 0 : m.ref) ??
|
|
18359
|
+
const p = (m == null ? void 0 : m.ref) ?? Ur(s.variable, t, r), g = m ? s.presentation : Jx(p, s.presentation, r), h = g !== void 0 ? Ex(g, m == null ? void 0 : m.presentation, s.variable) : m == null ? void 0 : m.presentation;
|
|
18360
18360
|
c = {
|
|
18361
18361
|
type: "variable",
|
|
18362
18362
|
ref: p,
|
|
@@ -18374,10 +18374,10 @@ function Yr(e, t, n, r) {
|
|
|
18374
18374
|
return o;
|
|
18375
18375
|
}
|
|
18376
18376
|
function Zx(e, t, n) {
|
|
18377
|
-
const r = t.links.get(
|
|
18377
|
+
const r = t.links.get(Un(e));
|
|
18378
18378
|
return r !== void 0 ? r : typeof e == "string" ? e : k0(
|
|
18379
18379
|
e.map(
|
|
18380
|
-
(o) => typeof o == "string" ? { type: "text", value: o } : { type: "variable", ref:
|
|
18380
|
+
(o) => typeof o == "string" ? { type: "text", value: o } : { type: "variable", ref: Ur(o.variable, t, n) }
|
|
18381
18381
|
)
|
|
18382
18382
|
);
|
|
18383
18383
|
}
|
|
@@ -18801,7 +18801,7 @@ function vF(e) {
|
|
|
18801
18801
|
};
|
|
18802
18802
|
return r(e == null ? void 0 : e.name), r(e == null ? void 0 : e.table), n(e == null ? void 0 : e.id), n(e == null ? void 0 : e.alias), Array.from(t);
|
|
18803
18803
|
}
|
|
18804
|
-
function
|
|
18804
|
+
function Ks(e) {
|
|
18805
18805
|
var r;
|
|
18806
18806
|
const t = /* @__PURE__ */ new Set();
|
|
18807
18807
|
if ((((r = e.cardDataSource) == null ? void 0 : r.selectedEntities) || []).forEach((o) => {
|
|
@@ -18856,7 +18856,7 @@ function BO(e, t) {
|
|
|
18856
18856
|
var a;
|
|
18857
18857
|
if (((a = t.cardDataSource) == null ? void 0 : a.mode) !== "database" || t.cardDataSource.semanticDomainId)
|
|
18858
18858
|
return { applicableFilters: e, skippedFilters: [] };
|
|
18859
|
-
const n =
|
|
18859
|
+
const n = Ks(t), r = [], o = [], i = (s) => {
|
|
18860
18860
|
var c;
|
|
18861
18861
|
if (!s) return !1;
|
|
18862
18862
|
const l = (c = s.calculatedFormula) == null ? void 0 : c.inputFields;
|
|
@@ -18894,7 +18894,7 @@ function _F(e, t) {
|
|
|
18894
18894
|
applicableFilters: [],
|
|
18895
18895
|
skippedFilters: []
|
|
18896
18896
|
};
|
|
18897
|
-
const n =
|
|
18897
|
+
const n = Ks(t), r = [], o = [];
|
|
18898
18898
|
return e.forEach((i) => {
|
|
18899
18899
|
const a = Cg(i, t, n);
|
|
18900
18900
|
if (a.kind === "apply") {
|
|
@@ -18922,7 +18922,7 @@ function wF(e) {
|
|
|
18922
18922
|
}
|
|
18923
18923
|
function CF(e, t) {
|
|
18924
18924
|
var o;
|
|
18925
|
-
const n = wF({ dataSource: t.dataSource, joinPlan: (o = t.config) == null ? void 0 : o.joinPlan }), r = Cg(e, n,
|
|
18925
|
+
const n = wF({ dataSource: t.dataSource, joinPlan: (o = t.config) == null ? void 0 : o.joinPlan }), r = Cg(e, n, Ks(n));
|
|
18926
18926
|
return r.kind === "skip" ? "unreachable" : r.proven ? "reachable" : "unknown";
|
|
18927
18927
|
}
|
|
18928
18928
|
function Sg(e, t) {
|
|
@@ -18938,7 +18938,7 @@ function Sg(e, t) {
|
|
|
18938
18938
|
name: e.optionSource.valueField.name,
|
|
18939
18939
|
qualifiedFieldName: TF(e),
|
|
18940
18940
|
entityId: SF(e),
|
|
18941
|
-
entityName:
|
|
18941
|
+
entityName: Us(e),
|
|
18942
18942
|
qualifiedEntityName: Tg(e),
|
|
18943
18943
|
entityType: kF(e),
|
|
18944
18944
|
dataType: n
|
|
@@ -18964,7 +18964,7 @@ function un(e) {
|
|
|
18964
18964
|
const t = ((n = e.optionSource) == null ? void 0 : n.valueField.source) || ((r = e.optionSource) == null ? void 0 : r.source);
|
|
18965
18965
|
return t && (t.kind === "semantic" || t.kind === "physical") ? t : void 0;
|
|
18966
18966
|
}
|
|
18967
|
-
function
|
|
18967
|
+
function Us(e) {
|
|
18968
18968
|
var n;
|
|
18969
18969
|
const t = un(e);
|
|
18970
18970
|
return t ? t.kind === "semantic" ? t.datasetName || t.datasetId : t.tableName : ((n = e.optionSource) == null ? void 0 : n.valueField.name) || e.filter.column;
|
|
@@ -18975,7 +18975,7 @@ function SF(e) {
|
|
|
18975
18975
|
}
|
|
18976
18976
|
function Tg(e) {
|
|
18977
18977
|
const t = un(e);
|
|
18978
|
-
return !t || t.kind === "semantic" ?
|
|
18978
|
+
return !t || t.kind === "semantic" ? Us(e) : [t.databaseName, t.schemaName, t.tableName].filter(Boolean).join(".");
|
|
18979
18979
|
}
|
|
18980
18980
|
function kF(e) {
|
|
18981
18981
|
var t;
|
|
@@ -18984,7 +18984,7 @@ function kF(e) {
|
|
|
18984
18984
|
function TF(e) {
|
|
18985
18985
|
var r;
|
|
18986
18986
|
const t = un(e), n = ((r = e.optionSource) == null ? void 0 : r.valueField.name) || e.filter.column;
|
|
18987
|
-
return !t || t.kind === "semantic" ? `${
|
|
18987
|
+
return !t || t.kind === "semantic" ? `${Us(e)}.${n}` : [t.databaseName, t.schemaName, t.tableName, n].filter(Boolean).join(".");
|
|
18988
18988
|
}
|
|
18989
18989
|
function DF(e) {
|
|
18990
18990
|
const t = un(e);
|
|
@@ -19485,7 +19485,7 @@ const BF = {
|
|
|
19485
19485
|
grouped: "A comparison runs over the card's date grouping. Group by a date (a date dimension, or dateField with timeGrain); a dateField with only a timeWindow sets the window and isn't compared over. Or use a dataset with a primary date."
|
|
19486
19486
|
};
|
|
19487
19487
|
function LO(e) {
|
|
19488
|
-
var v, w, x, C, k, _, F, D, z, I, S, A, O, P,
|
|
19488
|
+
var v, w, x, C, k, _, F, D, z, I, S, A, O, P, U;
|
|
19489
19489
|
const { card: t, context: n } = e, r = Xe(t.title), o = [], i = [], { defaultOrder: a } = ar(t), s = Ls(t), l = (((v = t.config) == null ? void 0 : v.groupByColumns) ?? []).map((E) => {
|
|
19490
19490
|
const W = (s == null ? void 0 : s.kind) === "semantic" ? ke(E, s) : E.name;
|
|
19491
19491
|
return typeof W == "string" ? W : JSON.stringify({ name: W.name, datasetName: W.datasetName });
|
|
@@ -19592,7 +19592,7 @@ function LO(e) {
|
|
|
19592
19592
|
const vt = (I = M.parameters) == null ? void 0 : I.windowTransform, $ = (vt == null ? void 0 : vt.function) === "percent_of_total" ? ((S = vt.percentOfTotal) == null ? void 0 : S.output) === "fraction" ? "fraction" : "percent" : void 0;
|
|
19593
19593
|
if (ue.transform !== void 0) {
|
|
19594
19594
|
const j = ((A = ue.transform) == null ? void 0 : A.function) === "percent_of_total" ? ((O = ue.transform.percentOfTotal) == null ? void 0 : O.output) === "fraction" ? "fraction" : "percent" : void 0, V = wa({ card: t, column: { kind: "field", fieldId: M.id } }), ae = V.source === "override" ? V.format : void 0;
|
|
19595
|
-
j && !$ && !ae ? ue.format = { write: gr(j) } : j && $ && j !== $ && ae &&
|
|
19595
|
+
j && !$ && !ae ? ue.format = { write: gr(j) } : j && $ && j !== $ && ae && Ke(ae, gr($)) ? ue.format = { write: gr(j) } : !j && $ && (ue.format = { removeIf: gr($) });
|
|
19596
19596
|
}
|
|
19597
19597
|
i.push(ue);
|
|
19598
19598
|
}
|
|
@@ -19604,10 +19604,10 @@ function LO(e) {
|
|
|
19604
19604
|
})
|
|
19605
19605
|
), h = (E) => n.check !== "stated" || (E.metricId ? g.has(E.metricId) : g.size > 0);
|
|
19606
19606
|
for (const E of m.errors.filter(h)) {
|
|
19607
|
-
const W = p.find((M) => M.id === E.metricId), T = W ? (
|
|
19607
|
+
const W = p.find((M) => M.id === E.metricId), T = W ? (U = e.stated.find((M) => {
|
|
19608
19608
|
var R;
|
|
19609
19609
|
return ((R = Wt(u, M.measure)) == null ? void 0 : R.metric.id) === W.id;
|
|
19610
|
-
})) == null ? void 0 :
|
|
19610
|
+
})) == null ? void 0 : U.path : void 0;
|
|
19611
19611
|
o.push(
|
|
19612
19612
|
ee(BF[E.code] ?? "document_invalid", {
|
|
19613
19613
|
message: `${W ? `${W.label || W.name} on ` : ""}${r}: ${E.message}`,
|
|
@@ -19782,12 +19782,12 @@ function zO(e) {
|
|
|
19782
19782
|
}
|
|
19783
19783
|
});
|
|
19784
19784
|
}
|
|
19785
|
-
function
|
|
19785
|
+
function KO(e) {
|
|
19786
19786
|
const t = Ag(e);
|
|
19787
19787
|
if (t)
|
|
19788
19788
|
return Ys(t);
|
|
19789
19789
|
}
|
|
19790
|
-
function
|
|
19790
|
+
function UO(e, t, n) {
|
|
19791
19791
|
if (!e) return;
|
|
19792
19792
|
const r = VF(n, t);
|
|
19793
19793
|
return e.type === "custom" && r ? r : e.type;
|
|
@@ -19903,7 +19903,7 @@ function Rg(e) {
|
|
|
19903
19903
|
const t = ge(e);
|
|
19904
19904
|
return t === "number" || t === "boolean" || t === "date" ? t : "string";
|
|
19905
19905
|
}
|
|
19906
|
-
function
|
|
19906
|
+
function KF(e) {
|
|
19907
19907
|
return !e.dateSelectionMode || e.dateSelectionMode === "range" ? vb(e.operation, e.defaultDateFilter) : "between";
|
|
19908
19908
|
}
|
|
19909
19909
|
function Pg(e, t) {
|
|
@@ -19917,15 +19917,15 @@ function Pg(e, t) {
|
|
|
19917
19917
|
return;
|
|
19918
19918
|
const [s] = a;
|
|
19919
19919
|
let l = a[1];
|
|
19920
|
-
const c = e.dateSelectionMode === "day" && !
|
|
19921
|
-
c && (l =
|
|
19920
|
+
const c = e.dateSelectionMode === "day" && !Kv(e.defaultDateFilter);
|
|
19921
|
+
c && (l = Uv(s, r));
|
|
19922
19922
|
const d = ma(e.defaultDateFilter);
|
|
19923
19923
|
return Xt({
|
|
19924
19924
|
definition: e,
|
|
19925
19925
|
value: {
|
|
19926
19926
|
filterId: e.id,
|
|
19927
19927
|
name: e.column,
|
|
19928
|
-
operation:
|
|
19928
|
+
operation: KF(e),
|
|
19929
19929
|
valueType: "date",
|
|
19930
19930
|
values: [s, l],
|
|
19931
19931
|
dataType: e.dataType,
|
|
@@ -19965,7 +19965,7 @@ function eR(e, t) {
|
|
|
19965
19965
|
if (!(!n || _d(n)))
|
|
19966
19966
|
return zu(n, Og(t));
|
|
19967
19967
|
}
|
|
19968
|
-
function
|
|
19968
|
+
function UF(e, t) {
|
|
19969
19969
|
if (e.id !== t.filterId)
|
|
19970
19970
|
return !1;
|
|
19971
19971
|
const n = Rg(e.dataType);
|
|
@@ -20571,7 +20571,7 @@ function Lg(e, t) {
|
|
|
20571
20571
|
...e.filter,
|
|
20572
20572
|
dataType: e.optionSource.valueField.dataType || e.filter.dataType
|
|
20573
20573
|
} : e.filter;
|
|
20574
|
-
if (!
|
|
20574
|
+
if (!UF(i, o))
|
|
20575
20575
|
return;
|
|
20576
20576
|
const a = Sg(e, o), s = Xt({
|
|
20577
20577
|
definition: e.filter,
|
|
@@ -20669,7 +20669,7 @@ export {
|
|
|
20669
20669
|
Mv as F,
|
|
20670
20670
|
zE as G,
|
|
20671
20671
|
qu as H,
|
|
20672
|
-
|
|
20672
|
+
KE as I,
|
|
20673
20673
|
wN as J,
|
|
20674
20674
|
jM as K,
|
|
20675
20675
|
EM as L,
|
|
@@ -20682,7 +20682,7 @@ export {
|
|
|
20682
20682
|
VO as S,
|
|
20683
20683
|
WO as T,
|
|
20684
20684
|
zF as U,
|
|
20685
|
-
|
|
20685
|
+
UO as V,
|
|
20686
20686
|
z$ as W,
|
|
20687
20687
|
Q$ as X,
|
|
20688
20688
|
JO as Y,
|
|
@@ -20712,9 +20712,9 @@ export {
|
|
|
20712
20712
|
ST as aJ,
|
|
20713
20713
|
PD as aK,
|
|
20714
20714
|
iF as aL,
|
|
20715
|
-
|
|
20715
|
+
UM as aM,
|
|
20716
20716
|
G as aN,
|
|
20717
|
-
|
|
20717
|
+
U_ as aO,
|
|
20718
20718
|
zI as aP,
|
|
20719
20719
|
sw as aQ,
|
|
20720
20720
|
LO as aR,
|
|
@@ -20733,7 +20733,7 @@ export {
|
|
|
20733
20733
|
_o as ad,
|
|
20734
20734
|
aO as ae,
|
|
20735
20735
|
Xm as af,
|
|
20736
|
-
|
|
20736
|
+
Ke as ag,
|
|
20737
20737
|
So as ah,
|
|
20738
20738
|
ms as ai,
|
|
20739
20739
|
Mk as aj,
|
|
@@ -20790,7 +20790,7 @@ export {
|
|
|
20790
20790
|
pu as bW,
|
|
20791
20791
|
Db as bX,
|
|
20792
20792
|
pw as bY,
|
|
20793
|
-
|
|
20793
|
+
Uf as bZ,
|
|
20794
20794
|
nA as b_,
|
|
20795
20795
|
He as ba,
|
|
20796
20796
|
uo as bb,
|
|
@@ -20800,8 +20800,8 @@ export {
|
|
|
20800
20800
|
BD as bf,
|
|
20801
20801
|
jD as bg,
|
|
20802
20802
|
pg as bh,
|
|
20803
|
-
|
|
20804
|
-
|
|
20803
|
+
KN as bi,
|
|
20804
|
+
UN as bj,
|
|
20805
20805
|
fI as bk,
|
|
20806
20806
|
mI as bl,
|
|
20807
20807
|
HE as bm,
|
|
@@ -20925,7 +20925,7 @@ export {
|
|
|
20925
20925
|
SE as da,
|
|
20926
20926
|
kb as db,
|
|
20927
20927
|
us as dc,
|
|
20928
|
-
|
|
20928
|
+
K_ as dd,
|
|
20929
20929
|
fs as de,
|
|
20930
20930
|
Ec as df,
|
|
20931
20931
|
nk as dg,
|
|
@@ -20967,8 +20967,8 @@ export {
|
|
|
20967
20967
|
Qc as eF,
|
|
20968
20968
|
ap as eG,
|
|
20969
20969
|
GT as eH,
|
|
20970
|
-
|
|
20971
|
-
|
|
20970
|
+
UT as eI,
|
|
20971
|
+
KT as eJ,
|
|
20972
20972
|
Vr as eK,
|
|
20973
20973
|
Os as eL,
|
|
20974
20974
|
pe as eM,
|
|
@@ -20982,7 +20982,7 @@ export {
|
|
|
20982
20982
|
za as eU,
|
|
20983
20983
|
Ab as eV,
|
|
20984
20984
|
Py as eW,
|
|
20985
|
-
|
|
20985
|
+
Ud as eX,
|
|
20986
20986
|
H$ as eY,
|
|
20987
20987
|
G$ as eZ,
|
|
20988
20988
|
tE as e_,
|
|
@@ -21055,7 +21055,7 @@ export {
|
|
|
21055
21055
|
aA as fb,
|
|
21056
21056
|
NA as fc,
|
|
21057
21057
|
jw as fd,
|
|
21058
|
-
|
|
21058
|
+
Ki as fe,
|
|
21059
21059
|
Lw as ff,
|
|
21060
21060
|
DA as fg,
|
|
21061
21061
|
FA as fh,
|
|
@@ -21073,7 +21073,7 @@ export {
|
|
|
21073
21073
|
TA as ft,
|
|
21074
21074
|
WE as fu,
|
|
21075
21075
|
IE as fv,
|
|
21076
|
-
|
|
21076
|
+
Uv as fw,
|
|
21077
21077
|
YE as fx,
|
|
21078
21078
|
J$ as fy,
|
|
21079
21079
|
tr as fz,
|
|
@@ -21113,10 +21113,10 @@ export {
|
|
|
21113
21113
|
Se as gV,
|
|
21114
21114
|
jA as gW,
|
|
21115
21115
|
PA as gX,
|
|
21116
|
-
|
|
21116
|
+
UF as gY,
|
|
21117
21117
|
hO as gZ,
|
|
21118
21118
|
GA as g_,
|
|
21119
|
-
|
|
21119
|
+
Kv as ga,
|
|
21120
21120
|
qv as gb,
|
|
21121
21121
|
Lu as gc,
|
|
21122
21122
|
Pg as gd,
|
|
@@ -21215,11 +21215,11 @@ export {
|
|
|
21215
21215
|
mE as i3,
|
|
21216
21216
|
aN as i4,
|
|
21217
21217
|
ww as i5,
|
|
21218
|
-
|
|
21218
|
+
KO as i6,
|
|
21219
21219
|
bN as i7,
|
|
21220
21220
|
yN as i8,
|
|
21221
21221
|
RN as i9,
|
|
21222
|
-
|
|
21222
|
+
Kw as iA,
|
|
21223
21223
|
om as iB,
|
|
21224
21224
|
BA as iC,
|
|
21225
21225
|
LA as iD,
|
|
@@ -21236,8 +21236,8 @@ export {
|
|
|
21236
21236
|
h$ as iO,
|
|
21237
21237
|
l$ as iP,
|
|
21238
21238
|
pO as iQ,
|
|
21239
|
-
|
|
21240
|
-
|
|
21239
|
+
U$ as iR,
|
|
21240
|
+
K$ as iS,
|
|
21241
21241
|
gO as iT,
|
|
21242
21242
|
St as iU,
|
|
21243
21243
|
tx as iV,
|
|
@@ -21271,7 +21271,7 @@ export {
|
|
|
21271
21271
|
Gy as iy,
|
|
21272
21272
|
VA as iz,
|
|
21273
21273
|
jg as j,
|
|
21274
|
-
|
|
21274
|
+
KA as j$,
|
|
21275
21275
|
BM as j0,
|
|
21276
21276
|
Cl as j1,
|
|
21277
21277
|
VM as j2,
|
|
@@ -21290,7 +21290,7 @@ export {
|
|
|
21290
21290
|
ir as jF,
|
|
21291
21291
|
tn as jG,
|
|
21292
21292
|
iO as jH,
|
|
21293
|
-
|
|
21293
|
+
K0 as jI,
|
|
21294
21294
|
$_ as jJ,
|
|
21295
21295
|
F_ as jK,
|
|
21296
21296
|
JN as jL,
|
|
@@ -21324,7 +21324,7 @@ export {
|
|
|
21324
21324
|
xN as jm,
|
|
21325
21325
|
p0 as jn,
|
|
21326
21326
|
ZA as jo,
|
|
21327
|
-
|
|
21327
|
+
UE as jp,
|
|
21328
21328
|
_E as jq,
|
|
21329
21329
|
hE as jr,
|
|
21330
21330
|
rM as js,
|
|
@@ -21333,12 +21333,12 @@ export {
|
|
|
21333
21333
|
t$ as jv,
|
|
21334
21334
|
ix as jw,
|
|
21335
21335
|
Yp as jx,
|
|
21336
|
-
|
|
21336
|
+
Up as jy,
|
|
21337
21337
|
rx as jz,
|
|
21338
21338
|
lr as k,
|
|
21339
21339
|
vO as k$,
|
|
21340
21340
|
or as k0,
|
|
21341
|
-
|
|
21341
|
+
KM as k1,
|
|
21342
21342
|
rE as k2,
|
|
21343
21343
|
Vu as k3,
|
|
21344
21344
|
YF as k4,
|
|
@@ -21351,7 +21351,7 @@ export {
|
|
|
21351
21351
|
mA as kB,
|
|
21352
21352
|
ys as kC,
|
|
21353
21353
|
Zf as kD,
|
|
21354
|
-
|
|
21354
|
+
UA as kE,
|
|
21355
21355
|
Vw as kF,
|
|
21356
21356
|
mN as kG,
|
|
21357
21357
|
EI as kH,
|