react-semaphor 0.1.418 → 0.1.419
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +2 -2
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/chunks/{analyze-result-contract-Akysi2ML.js → analyze-result-contract-DdhEt99q.js} +46 -45
- package/dist/chunks/{analyze-result-contract-COjyJzYm.js → analyze-result-contract-DwRzl7yJ.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-BbuLgela.js → calendar-preferences-dialog-DIfAbE_y.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-CInkkhl_.js → calendar-preferences-dialog-f0Z7Kf-U.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-B4OWNsVD.js → dashboard-briefing-launcher-C3tNkGFG.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D7FNuDuc.js → dashboard-briefing-launcher-anh-Jy5v.js} +4 -4
- package/dist/chunks/{dashboard-controls-DcX7Mid4.js → dashboard-controls-8dCQaPaq.js} +5 -5
- package/dist/chunks/{dashboard-controls-DTC1eCz0.js → dashboard-controls-DQxlOxzy.js} +1 -1
- package/dist/chunks/{dashboard-json-vu38P5pV.js → dashboard-json-B309EInF.js} +1 -1
- package/dist/chunks/{dashboard-json-BHWbQS6I.js → dashboard-json-i7Ae9KGD.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-CkBhJBhp.js → edit-dashboard-visual-4HycwBHR.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DsCr90_3.js → edit-dashboard-visual-z3IqzYnj.js} +4 -4
- package/dist/chunks/{index-C56DuHI8.js → index-B6DLEXRX.js} +5 -5
- package/dist/chunks/{index-C8thRvkW.js → index-yxKWKFdr.js} +2 -2
- package/dist/chunks/{switch-Dsx-IwBE.js → switch-COWQU8aK.js} +1 -1
- package/dist/chunks/{switch-BXuyni6l.js → switch-D6Ygf3wA.js} +1 -1
- package/dist/chunks/{update-policy-B5S_LfEu.js → update-policy-BzT2k4n6.js} +1 -1
- package/dist/chunks/{update-policy-BqBKUk3Q.js → update-policy-VloD-0YM.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CzftV84t.js → use-create-flow-overlay-state-CX0D-6HM.js} +3 -3
- package/dist/chunks/{use-create-flow-overlay-state-BDv_VpL6.js → use-create-flow-overlay-state-DENfd7sW.js} +1 -1
- package/dist/chunks/{validators-CPFcUMrV.js → validators-BMQo93Y0.js} +1 -1
- package/dist/chunks/{validators-CLzrE2N_.js → validators-Cxr9qbrR.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +2 -2
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +123 -92
- package/dist/data-app-codegen-node/index.js +461 -422
- package/dist/data-app-sdk/index.cjs +2 -2
- package/dist/data-app-sdk/index.js +193 -188
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +1 -1
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +4 -0
- package/dist/types/dashboard-assistant.d.ts +1 -0
- package/dist/types/data-app-sdk-validation.d.ts +1 -0
- package/dist/types/data-app-sdk.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { toSemaphorInputSnapshots as Pr, toSemaphorInputBinding as zr, toSemaphorActiveInputSnapshots as X, toSemaphorMatrixIntent as Fr, toSemaphorSqlIntent as Mr, toSemaphorInputOptionsIntent as jr, toSemaphorRecordsIntent as Hr, toSemaphorAnalysisQueryOptions as Vr, toSemaphorAnalysisIntent as Qr, toSemaphorMetricIntent as Ur, hasSemaphorInputValue as ue, normalizeSemaphorInputOptions as gr, toSemaphorInputSpec as mr } from "../data-app-sdk-adapters/index.js";
|
|
2
2
|
import { jsxs as p, Fragment as yr, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as Ie, useContext as Q, useState as F, useRef as E, useEffect as B, useMemo as I, Fragment as Gr, useId as hr, useCallback as O, useReducer as Jr } from "react";
|
|
4
|
-
import { H as Yr, K as Xr } from "../chunks/analyze-result-contract-
|
|
5
|
-
import { L as ro } from "../chunks/analyze-result-contract-
|
|
4
|
+
import { H as Yr, K as Xr } from "../chunks/analyze-result-contract-DdhEt99q.js";
|
|
5
|
+
import { L as ro } from "../chunks/analyze-result-contract-DdhEt99q.js";
|
|
6
6
|
import { M as Zr, a as et, S as rt, E as tt, C as nt } from "../chunks/search-BHsQIWBV.js";
|
|
7
7
|
import { X as it, C as ot, j as st } from "../chunks/x-CXDkqdur.js";
|
|
8
|
-
import { b as at } from "../chunks/validators-
|
|
8
|
+
import { b as at } from "../chunks/validators-Cxr9qbrR.js";
|
|
9
9
|
function me(e, r, t = {}) {
|
|
10
10
|
return {
|
|
11
11
|
...t,
|
|
@@ -130,12 +130,12 @@ const Hi = {
|
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
}, ce = 10, _e = 8;
|
|
133
|
-
function
|
|
133
|
+
function lt(e) {
|
|
134
134
|
const r = e == null ? void 0 : e.result;
|
|
135
135
|
if (r)
|
|
136
136
|
switch (r.kind) {
|
|
137
137
|
case "records":
|
|
138
|
-
return
|
|
138
|
+
return le({
|
|
139
139
|
title: "Records",
|
|
140
140
|
rowNoun: "rows",
|
|
141
141
|
records: r.records,
|
|
@@ -143,7 +143,7 @@ function dt(e) {
|
|
|
143
143
|
rowCount: r.rowCount
|
|
144
144
|
});
|
|
145
145
|
case "sql":
|
|
146
|
-
return
|
|
146
|
+
return le({
|
|
147
147
|
title: "SQL Rows",
|
|
148
148
|
rowNoun: "rows",
|
|
149
149
|
records: r.records,
|
|
@@ -151,7 +151,7 @@ function dt(e) {
|
|
|
151
151
|
rowCount: r.rowCount
|
|
152
152
|
});
|
|
153
153
|
case "inputOptions":
|
|
154
|
-
return
|
|
154
|
+
return le({
|
|
155
155
|
title: "Options",
|
|
156
156
|
rowNoun: "options",
|
|
157
157
|
records: r.options.slice(0, ce).map((t) => {
|
|
@@ -173,7 +173,7 @@ function dt(e) {
|
|
|
173
173
|
});
|
|
174
174
|
case "metric": {
|
|
175
175
|
const t = [
|
|
176
|
-
{ metric: "
|
|
176
|
+
{ metric: "primaryValue", value: r.primaryValue }
|
|
177
177
|
];
|
|
178
178
|
return r.comparison && t.push(
|
|
179
179
|
{
|
|
@@ -182,7 +182,7 @@ function dt(e) {
|
|
|
182
182
|
},
|
|
183
183
|
{ metric: "delta", value: r.comparison.delta },
|
|
184
184
|
{ metric: "deltaPercent", value: r.comparison.deltaPercent }
|
|
185
|
-
),
|
|
185
|
+
), le({
|
|
186
186
|
title: "Metric",
|
|
187
187
|
rowNoun: "values",
|
|
188
188
|
records: t,
|
|
@@ -194,7 +194,7 @@ function dt(e) {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
case "matrix":
|
|
197
|
-
return
|
|
197
|
+
return le({
|
|
198
198
|
title: "Matrix Cells",
|
|
199
199
|
rowNoun: "cells",
|
|
200
200
|
records: r.cells.slice(0, ce).map((t) => {
|
|
@@ -220,14 +220,14 @@ function dt(e) {
|
|
|
220
220
|
return ut(r);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function le({
|
|
224
224
|
title: e,
|
|
225
225
|
rowNoun: r,
|
|
226
226
|
records: t,
|
|
227
227
|
columns: n,
|
|
228
228
|
rowCount: i
|
|
229
229
|
}) {
|
|
230
|
-
const o =
|
|
230
|
+
const o = dt(n, t);
|
|
231
231
|
if (!o.length)
|
|
232
232
|
return;
|
|
233
233
|
const u = i ?? t.length, f = t.slice(0, ce);
|
|
@@ -240,7 +240,7 @@ function de({
|
|
|
240
240
|
truncatedColumns: o.length > _e
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function dt(e, r) {
|
|
244
244
|
if (e != null && e.length)
|
|
245
245
|
return e.filter((n) => n.key).map((n) => ({
|
|
246
246
|
key: n.key,
|
|
@@ -291,24 +291,24 @@ function Me(e) {
|
|
|
291
291
|
(v = n == null ? void 0 : n.coverage) == null ? void 0 : v.missingObligations
|
|
292
292
|
), f = Ce(
|
|
293
293
|
(g = n == null ? void 0 : n.coverage) == null ? void 0 : g.warnings
|
|
294
|
-
),
|
|
295
|
-
(t == null ? void 0 : t.status) === "error" &&
|
|
294
|
+
), d = [], c = xe(r);
|
|
295
|
+
(t == null ? void 0 : t.status) === "error" && d.push({
|
|
296
296
|
trace: r,
|
|
297
297
|
tone: "error",
|
|
298
298
|
title: c,
|
|
299
299
|
message: t.errorMessage || "Query attempt failed."
|
|
300
300
|
});
|
|
301
301
|
for (const h of r.clientWarnings)
|
|
302
|
-
|
|
302
|
+
d.push({ trace: r, tone: "warning", title: c, message: h });
|
|
303
303
|
for (const h of i)
|
|
304
|
-
|
|
304
|
+
d.push({ trace: r, tone: "warning", title: c, ...h });
|
|
305
305
|
for (const h of o)
|
|
306
|
-
|
|
306
|
+
d.push({ trace: r, tone: "error", title: c, ...h });
|
|
307
307
|
for (const h of u)
|
|
308
|
-
|
|
308
|
+
d.push({ trace: r, tone: "warning", title: c, message: h });
|
|
309
309
|
for (const h of f)
|
|
310
|
-
|
|
311
|
-
return
|
|
310
|
+
d.push({ trace: r, tone: "warning", title: c, ...h });
|
|
311
|
+
return d;
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
function mt(e) {
|
|
@@ -1558,7 +1558,7 @@ function $t({
|
|
|
1558
1558
|
Cn,
|
|
1559
1559
|
t,
|
|
1560
1560
|
Rr
|
|
1561
|
-
), o = E(n), u = hr(), [f,
|
|
1561
|
+
), o = E(n), u = hr(), [f, d] = F({ open: !1 });
|
|
1562
1562
|
o.current = n, B(() => {
|
|
1563
1563
|
i({ type: "config", config: t });
|
|
1564
1564
|
}, [t]), B(() => {
|
|
@@ -1573,11 +1573,11 @@ function $t({
|
|
|
1573
1573
|
};
|
|
1574
1574
|
}, [u, n.enabled, n.exposeWindowBridge]);
|
|
1575
1575
|
const c = I(() => ({ state: n, dispatch: i }), [n]), y = O((h) => {
|
|
1576
|
-
|
|
1576
|
+
d({ open: !0, focus: h });
|
|
1577
1577
|
}, []), m = O(() => {
|
|
1578
|
-
|
|
1578
|
+
d((h) => ({ ...h, open: !1 }));
|
|
1579
1579
|
}, []), v = O((h) => {
|
|
1580
|
-
|
|
1580
|
+
d({ open: !0, focus: h });
|
|
1581
1581
|
}, []), g = I(
|
|
1582
1582
|
() => ({
|
|
1583
1583
|
open: f.open,
|
|
@@ -1629,7 +1629,7 @@ function Bt({
|
|
|
1629
1629
|
className: n,
|
|
1630
1630
|
style: i
|
|
1631
1631
|
} = {}) {
|
|
1632
|
-
const o = qr(), u = Q(He), [f,
|
|
1632
|
+
const o = qr(), u = Q(He), [f, d] = F(""), [c, y] = F(!1), m = E(null), v = E(null), g = u == null ? void 0 : u.openDevtools, h = u == null ? void 0 : u.closeDevtools, A = (u == null ? void 0 : u.open) === !0;
|
|
1633
1633
|
B(() => {
|
|
1634
1634
|
wr();
|
|
1635
1635
|
}, []), B(() => {
|
|
@@ -1646,13 +1646,13 @@ function Bt({
|
|
|
1646
1646
|
document.removeEventListener("pointerdown", S, !0), document.removeEventListener("mousedown", S, !0), document.removeEventListener("click", S, !0);
|
|
1647
1647
|
};
|
|
1648
1648
|
}, [h, A]);
|
|
1649
|
-
const
|
|
1649
|
+
const l = I(
|
|
1650
1650
|
() => ht(o.queries),
|
|
1651
1651
|
[o.queries]
|
|
1652
1652
|
), b = I(
|
|
1653
1653
|
() => Me(o.queries),
|
|
1654
1654
|
[o.queries]
|
|
1655
|
-
), K = tn(
|
|
1655
|
+
), K = tn(l), T = I(
|
|
1656
1656
|
() => nn(o.queries, f),
|
|
1657
1657
|
[o.queries, f]
|
|
1658
1658
|
), N = I(
|
|
@@ -1674,7 +1674,7 @@ function Bt({
|
|
|
1674
1674
|
style: {
|
|
1675
1675
|
...s.launcher,
|
|
1676
1676
|
...xt(e),
|
|
1677
|
-
...qt(
|
|
1677
|
+
...qt(l.severity),
|
|
1678
1678
|
...i
|
|
1679
1679
|
},
|
|
1680
1680
|
onClick: () => {
|
|
@@ -1690,11 +1690,11 @@ function Bt({
|
|
|
1690
1690
|
},
|
|
1691
1691
|
children: [
|
|
1692
1692
|
/* @__PURE__ */ a(Wt, {}),
|
|
1693
|
-
/* @__PURE__ */ a("span", { style: s.launcherText, children:
|
|
1694
|
-
|
|
1695
|
-
|
|
1693
|
+
/* @__PURE__ */ a("span", { style: s.launcherText, children: l.total }),
|
|
1694
|
+
l.issueCount > 0 ? /* @__PURE__ */ p("span", { style: s.launcherIssueCount, children: [
|
|
1695
|
+
l.issueCount,
|
|
1696
1696
|
" issue",
|
|
1697
|
-
|
|
1697
|
+
l.issueCount === 1 ? "" : "s"
|
|
1698
1698
|
] }) : null
|
|
1699
1699
|
]
|
|
1700
1700
|
}
|
|
@@ -1717,17 +1717,17 @@ function Bt({
|
|
|
1717
1717
|
/* @__PURE__ */ p("div", { style: s.panelTitleBlock, children: [
|
|
1718
1718
|
/* @__PURE__ */ a("div", { style: s.panelTitle, children: "Semaphor Inspector" }),
|
|
1719
1719
|
/* @__PURE__ */ p("div", { style: s.panelSubtitle, children: [
|
|
1720
|
-
|
|
1720
|
+
l.total,
|
|
1721
1721
|
" queries · ",
|
|
1722
|
-
|
|
1722
|
+
l.loading,
|
|
1723
1723
|
" loading ·",
|
|
1724
1724
|
" ",
|
|
1725
|
-
|
|
1725
|
+
l.failed,
|
|
1726
1726
|
" failed · ",
|
|
1727
|
-
|
|
1727
|
+
l.errorCount,
|
|
1728
1728
|
" errors ·",
|
|
1729
1729
|
" ",
|
|
1730
|
-
|
|
1730
|
+
l.warningCount,
|
|
1731
1731
|
" warnings"
|
|
1732
1732
|
] })
|
|
1733
1733
|
] }),
|
|
@@ -1762,7 +1762,7 @@ function Bt({
|
|
|
1762
1762
|
{
|
|
1763
1763
|
"aria-label": "Search Semaphor traces",
|
|
1764
1764
|
value: f,
|
|
1765
|
-
onChange: (S) =>
|
|
1765
|
+
onChange: (S) => d(S.currentTarget.value),
|
|
1766
1766
|
placeholder: "Search traces",
|
|
1767
1767
|
style: s.searchInput
|
|
1768
1768
|
}
|
|
@@ -1802,7 +1802,7 @@ function Bt({
|
|
|
1802
1802
|
] }),
|
|
1803
1803
|
S.traces.length ? S.traces.map((w) => {
|
|
1804
1804
|
var ne;
|
|
1805
|
-
const L = an(w, $), x = xe(w), D = kr(w), pe = Er(w), re =
|
|
1805
|
+
const L = an(w, $), x = xe(w), D = kr(w), pe = Er(w), re = dn(w, x, pe), te = re.join(" · "), k = Tr(D), M = yt(b, w);
|
|
1806
1806
|
return /* @__PURE__ */ p(
|
|
1807
1807
|
"button",
|
|
1808
1808
|
{
|
|
@@ -1874,15 +1874,15 @@ function Qi({
|
|
|
1874
1874
|
B(() => {
|
|
1875
1875
|
wr();
|
|
1876
1876
|
}, []);
|
|
1877
|
-
const
|
|
1877
|
+
const d = r || (f == null ? void 0 : f.id), c = I(
|
|
1878
1878
|
() => sn(o.queries, {
|
|
1879
1879
|
queryId: e,
|
|
1880
|
-
viewId:
|
|
1880
|
+
viewId: d
|
|
1881
1881
|
}),
|
|
1882
1882
|
[
|
|
1883
1883
|
o.queries,
|
|
1884
1884
|
e,
|
|
1885
|
-
|
|
1885
|
+
d
|
|
1886
1886
|
]
|
|
1887
1887
|
);
|
|
1888
1888
|
if (!o.enabled || !u || !c)
|
|
@@ -1914,7 +1914,7 @@ function Qi({
|
|
|
1914
1914
|
}
|
|
1915
1915
|
function qr() {
|
|
1916
1916
|
const e = Q(je);
|
|
1917
|
-
return !e || !e.state.enabled ? Ir :
|
|
1917
|
+
return !e || !e.state.enabled ? Ir : de(e.state);
|
|
1918
1918
|
}
|
|
1919
1919
|
function Kt({
|
|
1920
1920
|
spec: e,
|
|
@@ -1924,7 +1924,7 @@ function Kt({
|
|
|
1924
1924
|
activeInputs: i,
|
|
1925
1925
|
debug: o
|
|
1926
1926
|
}) {
|
|
1927
|
-
const u = Q(je), f = Q(Ve),
|
|
1927
|
+
const u = Q(je), f = Q(Ve), d = !!(u != null && u.state.enabled), c = u == null ? void 0 : u.dispatch, y = Kn(e), m = pt(e), v = I(
|
|
1928
1928
|
() => JSON.stringify(e),
|
|
1929
1929
|
[e]
|
|
1930
1930
|
), g = I(
|
|
@@ -1933,8 +1933,8 @@ function Kt({
|
|
|
1933
1933
|
), h = I(
|
|
1934
1934
|
() => JSON.stringify(n || null),
|
|
1935
1935
|
[n]
|
|
1936
|
-
), A = E(e),
|
|
1937
|
-
|
|
1936
|
+
), A = E(e), l = E(v), b = E(n), K = E(h), T = E(i), N = E(g), $ = Bn(o), S = JSON.stringify($ || []), w = E($), L = E(S);
|
|
1937
|
+
l.current !== v && (l.current = v, A.current = e), K.current !== h && (K.current = h, b.current = n), N.current !== g && (N.current = g, T.current = i), L.current !== S && (L.current = S, w.current = $);
|
|
1938
1938
|
const x = A.current, D = b.current, pe = T.current, re = w.current, te = hr(), k = I(
|
|
1939
1939
|
() => y || `query_${Dr(t)}`,
|
|
1940
1940
|
[t, y]
|
|
@@ -1979,16 +1979,16 @@ function Kt({
|
|
|
1979
1979
|
]
|
|
1980
1980
|
);
|
|
1981
1981
|
B(() => {
|
|
1982
|
-
if (!(!
|
|
1982
|
+
if (!(!d || !c))
|
|
1983
1983
|
return c({ type: "register", descriptor: Ye }), () => {
|
|
1984
1984
|
c({ type: "unregister", traceKey: j });
|
|
1985
1985
|
};
|
|
1986
|
-
}, [Ye, c,
|
|
1986
|
+
}, [Ye, c, d, j]);
|
|
1987
1987
|
const P = O(
|
|
1988
1988
|
(C, U) => {
|
|
1989
|
-
!
|
|
1989
|
+
!d || !c || c({ type: "event", traceKey: j, event: C, latestAttempt: U });
|
|
1990
1990
|
},
|
|
1991
|
-
[c,
|
|
1991
|
+
[c, d, j]
|
|
1992
1992
|
), Xe = O(() => {
|
|
1993
1993
|
P(
|
|
1994
1994
|
{
|
|
@@ -2060,10 +2060,10 @@ function Kt({
|
|
|
2060
2060
|
ge(C, 0);
|
|
2061
2061
|
},
|
|
2062
2062
|
[ge]
|
|
2063
|
-
), Te =
|
|
2063
|
+
), Te = d ? u == null ? void 0 : u.state.entries[j] : void 0;
|
|
2064
2064
|
return I(
|
|
2065
2065
|
() => ({
|
|
2066
|
-
enabled:
|
|
2066
|
+
enabled: d,
|
|
2067
2067
|
queryId: k,
|
|
2068
2068
|
trace: Te ? ve(Te) : void 0,
|
|
2069
2069
|
start: Xe,
|
|
@@ -2073,7 +2073,7 @@ function Kt({
|
|
|
2073
2073
|
validationFailure: rr
|
|
2074
2074
|
}),
|
|
2075
2075
|
[
|
|
2076
|
-
|
|
2076
|
+
d,
|
|
2077
2077
|
ge,
|
|
2078
2078
|
er,
|
|
2079
2079
|
k,
|
|
@@ -2114,7 +2114,7 @@ function _t({
|
|
|
2114
2114
|
(w = t == null ? void 0 : t.coverage) == null ? void 0 : w.missingObligations
|
|
2115
2115
|
), u = $e(
|
|
2116
2116
|
(L = t == null ? void 0 : t.coverage) == null ? void 0 : L.warnings
|
|
2117
|
-
), f = t == null ? void 0 : t.compiledQuery,
|
|
2117
|
+
), f = t == null ? void 0 : t.compiledQuery, d = Tn(t), c = ((x = e.server) == null ? void 0 : x.compiledSql) || d.compiledSql, y = lt(t), m = [
|
|
2118
2118
|
...r != null && r.errorMessage ? [r.errorMessage] : [],
|
|
2119
2119
|
...i
|
|
2120
2120
|
], v = [
|
|
@@ -2122,7 +2122,7 @@ function _t({
|
|
|
2122
2122
|
...n,
|
|
2123
2123
|
...o,
|
|
2124
2124
|
...u
|
|
2125
|
-
], g = e.inputsApplied.length > 0, h = !!(f || c), A = pn(e),
|
|
2125
|
+
], g = e.inputsApplied.length > 0, h = !!(f || c), A = pn(e), l = hn(r == null ? void 0 : r.rowCount), b = bn(r == null ? void 0 : r.durationMs), K = e.sourceRefs.length, T = kr(e), N = Tr(T);
|
|
2126
2126
|
return /* @__PURE__ */ p("div", { style: s.detailsPane, children: [
|
|
2127
2127
|
/* @__PURE__ */ p("div", { style: s.detailsHeader, children: [
|
|
2128
2128
|
/* @__PURE__ */ p("div", { style: s.detailsHeaderTopRow, children: [
|
|
@@ -2152,7 +2152,7 @@ function _t({
|
|
|
2152
2152
|
/* @__PURE__ */ a("span", { style: s.metaStripItem, children: A }),
|
|
2153
2153
|
/* @__PURE__ */ a("span", { style: s.metaStripDot, children: "·" }),
|
|
2154
2154
|
/* @__PURE__ */ p("span", { style: s.metaStripItem, children: [
|
|
2155
|
-
|
|
2155
|
+
l,
|
|
2156
2156
|
" rows"
|
|
2157
2157
|
] }),
|
|
2158
2158
|
/* @__PURE__ */ a("span", { style: s.metaStripDot, children: "·" }),
|
|
@@ -2219,22 +2219,22 @@ function Nt({
|
|
|
2219
2219
|
label: "Raw",
|
|
2220
2220
|
render: () => /* @__PURE__ */ a("pre", { style: s.codeBlock, children: vn(e) })
|
|
2221
2221
|
});
|
|
2222
|
-
const u = (A = o[0]) == null ? void 0 : A.id, f = e.traceId || `${e.viewId ?? ""}:${e.queryId}`, [
|
|
2222
|
+
const u = (A = o[0]) == null ? void 0 : A.id, f = e.traceId || `${e.viewId ?? ""}:${e.queryId}`, [d, c] = F(u), y = E(f), m = E(!1), v = o.map((l) => l.id).join("|");
|
|
2223
2223
|
B(() => {
|
|
2224
2224
|
if (y.current !== f) {
|
|
2225
2225
|
y.current = f, m.current = !1, c(u);
|
|
2226
2226
|
return;
|
|
2227
2227
|
}
|
|
2228
|
-
if (!(
|
|
2228
|
+
if (!(d ? v.split("|").includes(d) : !1)) {
|
|
2229
2229
|
m.current = !1, c(u);
|
|
2230
2230
|
return;
|
|
2231
2231
|
}
|
|
2232
|
-
!m.current &&
|
|
2233
|
-
}, [
|
|
2234
|
-
const g = o.find((
|
|
2232
|
+
!m.current && d !== u && c(u);
|
|
2233
|
+
}, [d, u, v, f]);
|
|
2234
|
+
const g = o.find((l) => l.id === d) ?? o[0];
|
|
2235
2235
|
return /* @__PURE__ */ p("div", { style: s.traceTabs, children: [
|
|
2236
|
-
/* @__PURE__ */ a("div", { style: s.traceTabBar, role: "tablist", "aria-label": "Trace details", children: o.map((
|
|
2237
|
-
const b =
|
|
2236
|
+
/* @__PURE__ */ a("div", { style: s.traceTabBar, role: "tablist", "aria-label": "Trace details", children: o.map((l) => {
|
|
2237
|
+
const b = l.id === g.id;
|
|
2238
2238
|
return /* @__PURE__ */ a(
|
|
2239
2239
|
"button",
|
|
2240
2240
|
{
|
|
@@ -2247,11 +2247,11 @@ function Nt({
|
|
|
2247
2247
|
...b ? s.traceTabActive : null
|
|
2248
2248
|
},
|
|
2249
2249
|
onClick: () => {
|
|
2250
|
-
m.current = !0, c(
|
|
2250
|
+
m.current = !0, c(l.id);
|
|
2251
2251
|
},
|
|
2252
|
-
children:
|
|
2252
|
+
children: l.label
|
|
2253
2253
|
},
|
|
2254
|
-
|
|
2254
|
+
l.id
|
|
2255
2255
|
);
|
|
2256
2256
|
}) }),
|
|
2257
2257
|
/* @__PURE__ */ a("div", { style: s.traceTabPanel, role: "tabpanel", children: g.render() })
|
|
@@ -2280,7 +2280,7 @@ function zt({
|
|
|
2280
2280
|
issues: e,
|
|
2281
2281
|
onSelect: r
|
|
2282
2282
|
}) {
|
|
2283
|
-
const [t, n] = F(!1), i = e.slice(0, 6), o = e.length - i.length, u = e.filter((c) => c.tone === "error").length, f = e.length - u,
|
|
2283
|
+
const [t, n] = F(!1), i = e.slice(0, 6), o = e.length - i.length, u = e.filter((c) => c.tone === "error").length, f = e.length - u, d = [
|
|
2284
2284
|
u ? `${u} error${u === 1 ? "" : "s"}` : "",
|
|
2285
2285
|
f ? `${f} warning${f === 1 ? "" : "s"}` : ""
|
|
2286
2286
|
].filter(Boolean);
|
|
@@ -2335,7 +2335,7 @@ function zt({
|
|
|
2335
2335
|
" in traces"
|
|
2336
2336
|
] }) : null
|
|
2337
2337
|
] }) : /* @__PURE__ */ p("div", { style: s.issueSummaryCollapsed, children: [
|
|
2338
|
-
|
|
2338
|
+
d.join(" · "),
|
|
2339
2339
|
" across traces"
|
|
2340
2340
|
] })
|
|
2341
2341
|
] });
|
|
@@ -2729,7 +2729,7 @@ function an(e, r) {
|
|
|
2729
2729
|
function Ne(e) {
|
|
2730
2730
|
return e.traceId;
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function ln(e) {
|
|
2733
2733
|
switch (e) {
|
|
2734
2734
|
case "metric":
|
|
2735
2735
|
return "metric";
|
|
@@ -2783,12 +2783,12 @@ function Cr(e) {
|
|
|
2783
2783
|
};
|
|
2784
2784
|
}
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function dn(e, r, t) {
|
|
2787
2787
|
const n = [];
|
|
2788
2788
|
return e.queryLabel && e.queryLabel !== r && n.push(e.queryLabel), e.queryId && e.queryId !== r && e.queryId !== e.queryLabel ? n.push(e.queryId) : e.viewId && e.viewId !== r && e.viewId !== e.queryLabel && n.push(e.viewId), n.push(t), n;
|
|
2789
2789
|
}
|
|
2790
2790
|
function kr(e) {
|
|
2791
|
-
return cn(e.visualType) ||
|
|
2791
|
+
return cn(e.visualType) || ln(e.queryKind);
|
|
2792
2792
|
}
|
|
2793
2793
|
function un(e, r) {
|
|
2794
2794
|
return r ? e.queryLabel || e.queryId : xe(e);
|
|
@@ -2838,8 +2838,8 @@ function gn(e) {
|
|
|
2838
2838
|
return [e.aggregate, e.label || e.name].filter(Boolean).join(" ");
|
|
2839
2839
|
}
|
|
2840
2840
|
function mn(e) {
|
|
2841
|
-
var f,
|
|
2842
|
-
const r = e.valuePreview || "redacted", t = e.inputLabel || e.inputId, n = ((f = e.fieldRef) == null ? void 0 : f.label) || ((
|
|
2841
|
+
var f, d, c;
|
|
2842
|
+
const r = e.valuePreview || "redacted", t = e.inputLabel || e.inputId, n = ((f = e.fieldRef) == null ? void 0 : f.label) || ((d = e.fieldRef) == null ? void 0 : d.name), i = (c = e.fieldRef) != null && c.source ? z(e.fieldRef.source) : void 0, o = [n ? `on ${n}` : void 0, i].filter(Boolean).join(" · "), u = [
|
|
2843
2843
|
t,
|
|
2844
2844
|
e.inputId,
|
|
2845
2845
|
e.operator,
|
|
@@ -3087,7 +3087,7 @@ function ve(e) {
|
|
|
3087
3087
|
} = e;
|
|
3088
3088
|
return o;
|
|
3089
3089
|
}
|
|
3090
|
-
function
|
|
3090
|
+
function de(e) {
|
|
3091
3091
|
if (!e.enabled)
|
|
3092
3092
|
return Ir;
|
|
3093
3093
|
const r = e.order.map((n) => e.entries[n]).filter((n) => !!n).map(ve), t = Me(r).map(mt);
|
|
@@ -3106,10 +3106,10 @@ function le(e) {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
function Dn(e) {
|
|
3108
3108
|
return {
|
|
3109
|
-
snapshot: () => St(
|
|
3110
|
-
getQuery: (r) => nr(
|
|
3111
|
-
getQueries: (r) =>
|
|
3112
|
-
getIssues: () =>
|
|
3109
|
+
snapshot: () => St(de(e())),
|
|
3110
|
+
getQuery: (r) => nr(de(e()).getQuery(r)),
|
|
3111
|
+
getQueries: (r) => de(e()).getQueries(r).map((t) => nr(t)).filter((t) => !!t),
|
|
3112
|
+
getIssues: () => de(e()).issues
|
|
3113
3113
|
};
|
|
3114
3114
|
}
|
|
3115
3115
|
function On(e) {
|
|
@@ -3126,12 +3126,12 @@ function On(e) {
|
|
|
3126
3126
|
} : {
|
|
3127
3127
|
enabled: e.enabled !== !1,
|
|
3128
3128
|
exposeWindowBridge: e.exposeWindowBridge === !0,
|
|
3129
|
-
maxEventsPerQuery:
|
|
3129
|
+
maxEventsPerQuery: lr(
|
|
3130
3130
|
e.maxEventsPerQuery,
|
|
3131
3131
|
Ee,
|
|
3132
3132
|
Rt
|
|
3133
3133
|
),
|
|
3134
|
-
maxQueries:
|
|
3134
|
+
maxQueries: lr(
|
|
3135
3135
|
e.maxQueries,
|
|
3136
3136
|
Re,
|
|
3137
3137
|
Lt
|
|
@@ -3163,7 +3163,7 @@ function he(e) {
|
|
|
3163
3163
|
function ar(e) {
|
|
3164
3164
|
return typeof e == "number" && Number.isInteger(e) && e > 0 ? e : void 0;
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function lr(e, r, t) {
|
|
3167
3167
|
return e === void 0 || !Number.isFinite(e) || !Number.isInteger(e) || e <= 0 ? r : Math.min(e, t);
|
|
3168
3168
|
}
|
|
3169
3169
|
function Kn(e) {
|
|
@@ -3201,14 +3201,14 @@ function _n(e) {
|
|
|
3201
3201
|
).map((n) => String(n));
|
|
3202
3202
|
if (t.length === r.length && t.length > 0) {
|
|
3203
3203
|
const n = t.slice(0, 3).join(", "), i = t.length > 3 ? `, +${t.length - 3} more` : "";
|
|
3204
|
-
return
|
|
3204
|
+
return dr(`${n}${i}`);
|
|
3205
3205
|
}
|
|
3206
3206
|
return `${r.length} selected`;
|
|
3207
3207
|
}
|
|
3208
|
-
return typeof r == "number" || typeof r == "boolean" ? String(r) : typeof r == "string" ?
|
|
3208
|
+
return typeof r == "number" || typeof r == "boolean" ? String(r) : typeof r == "string" ? dr(r) : r && typeof r == "object" ? `object(${Object.keys(r).slice(0, 5).join(",")})` : String(r);
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3211
|
+
function dr(e) {
|
|
3212
3212
|
return e.length > 80 ? `${e.slice(0, 77)}...` : e;
|
|
3213
3213
|
}
|
|
3214
3214
|
function Nn(e) {
|
|
@@ -3509,9 +3509,9 @@ function Ge({
|
|
|
3509
3509
|
return {
|
|
3510
3510
|
records: e.map((o, u) => {
|
|
3511
3511
|
const f = {};
|
|
3512
|
-
return r.forEach((
|
|
3513
|
-
if (Object.prototype.hasOwnProperty.call(o,
|
|
3514
|
-
f[
|
|
3512
|
+
return r.forEach((d) => {
|
|
3513
|
+
if (Object.prototype.hasOwnProperty.call(o, d.key)) {
|
|
3514
|
+
f[d.key] = o[d.key];
|
|
3515
3515
|
return;
|
|
3516
3516
|
}
|
|
3517
3517
|
n.push({
|
|
@@ -3519,11 +3519,11 @@ function Ge({
|
|
|
3519
3519
|
severity: "warning",
|
|
3520
3520
|
resultSetKey: t,
|
|
3521
3521
|
rowIndex: u,
|
|
3522
|
-
columnKey:
|
|
3523
|
-
...
|
|
3524
|
-
...
|
|
3522
|
+
columnKey: d.key,
|
|
3523
|
+
...d.name ? { columnName: d.name } : {},
|
|
3524
|
+
...d.label ? { columnLabel: d.label } : {},
|
|
3525
3525
|
availableKeys: Object.keys(o),
|
|
3526
|
-
message: `Analysis result set "${t}" row ${u} is missing column key "${
|
|
3526
|
+
message: `Analysis result set "${t}" row ${u} is missing column key "${d.key}". Rows must expose values by column.key; labels and column names are display metadata only.`
|
|
3527
3527
|
});
|
|
3528
3528
|
}), f;
|
|
3529
3529
|
}),
|
|
@@ -3574,8 +3574,11 @@ function ze(e) {
|
|
|
3574
3574
|
const r = e;
|
|
3575
3575
|
return `{${Object.keys(r).sort().map((t) => `${JSON.stringify(t)}:${ze(r[t])}`).join(",")}}`;
|
|
3576
3576
|
}
|
|
3577
|
-
const Oe = {
|
|
3578
|
-
|
|
3577
|
+
const Oe = {
|
|
3578
|
+
value: null,
|
|
3579
|
+
primaryValue: null
|
|
3580
|
+
}, Be = {}, ai = { records: [] }, Ke = { options: [] }, li = { records: [] }, We = {};
|
|
3581
|
+
function di(e) {
|
|
3579
3582
|
const r = X(e.inputs), t = Vr(e);
|
|
3580
3583
|
try {
|
|
3581
3584
|
const n = Qr(e), i = ee(n, "analysis");
|
|
@@ -3693,7 +3696,7 @@ function fi(e) {
|
|
|
3693
3696
|
}
|
|
3694
3697
|
}
|
|
3695
3698
|
function pi(e) {
|
|
3696
|
-
const r = X(e.inputs), t =
|
|
3699
|
+
const r = X(e.inputs), t = li;
|
|
3697
3700
|
try {
|
|
3698
3701
|
const n = Mr(e), i = ee(n);
|
|
3699
3702
|
return i ? {
|
|
@@ -4018,22 +4021,22 @@ function Ui(e) {
|
|
|
4018
4021
|
() => gr(e.options),
|
|
4019
4022
|
[e.options]
|
|
4020
4023
|
), u = O(
|
|
4021
|
-
(
|
|
4024
|
+
(d) => {
|
|
4022
4025
|
var y;
|
|
4023
|
-
const c =
|
|
4026
|
+
const c = d;
|
|
4024
4027
|
(y = e.onValueChange) == null || y.call(e, c), n || t(c);
|
|
4025
4028
|
},
|
|
4026
4029
|
[n, e]
|
|
4027
4030
|
), f = O(() => u(void 0), [u]);
|
|
4028
4031
|
return I(() => {
|
|
4029
|
-
const
|
|
4032
|
+
const d = mr(e);
|
|
4030
4033
|
return {
|
|
4031
4034
|
id: e.id,
|
|
4032
4035
|
kind: e.kind,
|
|
4033
4036
|
label: e.label,
|
|
4034
|
-
field:
|
|
4035
|
-
operator:
|
|
4036
|
-
relationshipHint:
|
|
4037
|
+
field: d.field,
|
|
4038
|
+
operator: d.operator,
|
|
4039
|
+
relationshipHint: d.relationshipHint,
|
|
4037
4040
|
controlRole: e.kind === "control" ? e.role : void 0,
|
|
4038
4041
|
value: i,
|
|
4039
4042
|
options: o,
|
|
@@ -4041,14 +4044,14 @@ function Ui(e) {
|
|
|
4041
4044
|
setValue: u,
|
|
4042
4045
|
clear: f,
|
|
4043
4046
|
toAnalyticsInput: () => ({
|
|
4044
|
-
inputId:
|
|
4045
|
-
field:
|
|
4047
|
+
inputId: d.inputId,
|
|
4048
|
+
field: d.field,
|
|
4046
4049
|
kind: e.kind,
|
|
4047
4050
|
label: e.label,
|
|
4048
4051
|
value: i,
|
|
4049
4052
|
isActive: ue(i),
|
|
4050
|
-
operator:
|
|
4051
|
-
relationshipHint:
|
|
4053
|
+
operator: d.operator,
|
|
4054
|
+
relationshipHint: d.relationshipHint,
|
|
4052
4055
|
controlRole: e.kind === "control" ? e.role : void 0
|
|
4053
4056
|
})
|
|
4054
4057
|
};
|
|
@@ -4074,7 +4077,7 @@ function Gi(e) {
|
|
|
4074
4077
|
...v,
|
|
4075
4078
|
[n.id]: y
|
|
4076
4079
|
}));
|
|
4077
|
-
},
|
|
4080
|
+
}, d = () => f(void 0), c = mr(n);
|
|
4078
4081
|
return {
|
|
4079
4082
|
id: n.id,
|
|
4080
4083
|
kind: n.kind,
|
|
@@ -4087,7 +4090,7 @@ function Gi(e) {
|
|
|
4087
4090
|
options: u,
|
|
4088
4091
|
isActive: ue(o),
|
|
4089
4092
|
setValue: f,
|
|
4090
|
-
clear:
|
|
4093
|
+
clear: d,
|
|
4091
4094
|
toAnalyticsInput: () => ({
|
|
4092
4095
|
inputId: c.inputId,
|
|
4093
4096
|
field: c.field,
|
|
@@ -4143,7 +4146,7 @@ function Yi(e, r = {}) {
|
|
|
4143
4146
|
case "analysis":
|
|
4144
4147
|
return {
|
|
4145
4148
|
queryKind: t.queryKind,
|
|
4146
|
-
request:
|
|
4149
|
+
request: di(t)
|
|
4147
4150
|
};
|
|
4148
4151
|
case "records":
|
|
4149
4152
|
return {
|
|
@@ -4189,51 +4192,51 @@ function Yi(e, r = {}) {
|
|
|
4189
4192
|
i.success
|
|
4190
4193
|
]
|
|
4191
4194
|
), f = O(
|
|
4192
|
-
(
|
|
4195
|
+
(l) => {
|
|
4193
4196
|
var K, T, N, $, S, w, L, x, D;
|
|
4194
4197
|
const b = n.request;
|
|
4195
4198
|
if (b.intent)
|
|
4196
4199
|
switch (n.queryKind) {
|
|
4197
4200
|
case "metric":
|
|
4198
|
-
return (K =
|
|
4201
|
+
return (K = l.executor) == null ? void 0 : K.executeMetric(
|
|
4199
4202
|
b.intent,
|
|
4200
|
-
|
|
4203
|
+
l
|
|
4201
4204
|
);
|
|
4202
4205
|
case "analysis":
|
|
4203
|
-
return (N = (T =
|
|
4206
|
+
return (N = (T = l.executor) == null ? void 0 : T.executeAnalysis) == null ? void 0 : N.call(
|
|
4204
4207
|
T,
|
|
4205
4208
|
b.intent,
|
|
4206
|
-
|
|
4209
|
+
l,
|
|
4207
4210
|
b.analysisOptions
|
|
4208
4211
|
);
|
|
4209
4212
|
case "records":
|
|
4210
|
-
return ($ =
|
|
4213
|
+
return ($ = l.executor) == null ? void 0 : $.executeRecords(
|
|
4211
4214
|
b.intent,
|
|
4212
|
-
|
|
4215
|
+
l
|
|
4213
4216
|
);
|
|
4214
4217
|
case "inputOptions":
|
|
4215
|
-
return (S =
|
|
4218
|
+
return (S = l.executor) == null ? void 0 : S.executeInputOptions(
|
|
4216
4219
|
b.intent,
|
|
4217
|
-
|
|
4220
|
+
l
|
|
4218
4221
|
);
|
|
4219
4222
|
case "sql":
|
|
4220
|
-
return (L = (w =
|
|
4223
|
+
return (L = (w = l.executor) == null ? void 0 : w.executeSql) == null ? void 0 : L.call(
|
|
4221
4224
|
w,
|
|
4222
4225
|
b.intent,
|
|
4223
|
-
|
|
4226
|
+
l
|
|
4224
4227
|
);
|
|
4225
4228
|
case "matrix":
|
|
4226
|
-
return (D = (x =
|
|
4229
|
+
return (D = (x = l.executor) == null ? void 0 : x.executeMatrix) == null ? void 0 : D.call(
|
|
4227
4230
|
x,
|
|
4228
4231
|
b.intent,
|
|
4229
|
-
|
|
4232
|
+
l
|
|
4230
4233
|
);
|
|
4231
4234
|
default:
|
|
4232
4235
|
return Se(n);
|
|
4233
4236
|
}
|
|
4234
4237
|
},
|
|
4235
4238
|
[n]
|
|
4236
|
-
),
|
|
4239
|
+
), d = Di(
|
|
4237
4240
|
n.request.queryKey,
|
|
4238
4241
|
f,
|
|
4239
4242
|
n.request.idleData,
|
|
@@ -4241,144 +4244,146 @@ function Yi(e, r = {}) {
|
|
|
4241
4244
|
u
|
|
4242
4245
|
), c = i.queryId, y = i.validationFailure;
|
|
4243
4246
|
B(() => {
|
|
4244
|
-
const
|
|
4245
|
-
if (!
|
|
4247
|
+
const l = n.request.error;
|
|
4248
|
+
if (!l) {
|
|
4246
4249
|
o.current = null;
|
|
4247
4250
|
return;
|
|
4248
4251
|
}
|
|
4249
|
-
const b = `${c}:${
|
|
4250
|
-
o.current !== b && (o.current = b, y(
|
|
4252
|
+
const b = `${c}:${l.message}`;
|
|
4253
|
+
o.current !== b && (o.current = b, y(l));
|
|
4251
4254
|
}, [
|
|
4252
4255
|
n.request.error,
|
|
4253
4256
|
n.request.queryKey,
|
|
4254
4257
|
c,
|
|
4255
4258
|
y
|
|
4256
4259
|
]);
|
|
4257
|
-
const m = n.request.error ? n.request.idleData :
|
|
4260
|
+
const m = n.request.error ? n.request.idleData : d.data, v = n.request.error ? "error" : d.status, g = !n.request.error && d.status === "loading", h = n.request.error || d.error, A = i.trace;
|
|
4258
4261
|
switch (n.queryKind) {
|
|
4259
4262
|
case "metric": {
|
|
4260
|
-
const
|
|
4263
|
+
const l = m, b = J({
|
|
4261
4264
|
queryKind: n.queryKind,
|
|
4262
4265
|
status: v,
|
|
4263
4266
|
isLoading: g,
|
|
4264
4267
|
error: h,
|
|
4265
4268
|
trace: A,
|
|
4266
|
-
payload:
|
|
4269
|
+
payload: l,
|
|
4267
4270
|
activeInputs: n.request.activeInputs,
|
|
4268
|
-
isStale:
|
|
4271
|
+
isStale: d.isStale
|
|
4269
4272
|
});
|
|
4270
4273
|
return {
|
|
4271
4274
|
id: t.id,
|
|
4272
4275
|
intent: n.request.intent,
|
|
4273
|
-
value: (
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4276
|
+
value: (l == null ? void 0 : l.value) ?? null,
|
|
4277
|
+
primaryValue: (l == null ? void 0 : l.primaryValue) ?? null,
|
|
4278
|
+
measures: l == null ? void 0 : l.measures,
|
|
4279
|
+
measureBindings: l == null ? void 0 : l.measureBindings,
|
|
4280
|
+
missingMeasures: l == null ? void 0 : l.missingMeasures,
|
|
4281
|
+
comparisonValue: l == null ? void 0 : l.comparisonValue,
|
|
4282
|
+
comparisonKind: l == null ? void 0 : l.comparisonKind,
|
|
4283
|
+
delta: l == null ? void 0 : l.delta,
|
|
4284
|
+
deltaPercent: l == null ? void 0 : l.deltaPercent,
|
|
4285
|
+
records: l == null ? void 0 : l.records,
|
|
4281
4286
|
...b
|
|
4282
4287
|
};
|
|
4283
4288
|
}
|
|
4284
4289
|
case "analysis": {
|
|
4285
|
-
const
|
|
4290
|
+
const l = Or(m), b = J({
|
|
4286
4291
|
queryKind: n.queryKind,
|
|
4287
4292
|
status: v,
|
|
4288
4293
|
isLoading: g,
|
|
4289
4294
|
error: h,
|
|
4290
4295
|
trace: A,
|
|
4291
|
-
payload:
|
|
4296
|
+
payload: l,
|
|
4292
4297
|
activeInputs: n.request.activeInputs,
|
|
4293
|
-
isStale:
|
|
4298
|
+
isStale: d.isStale
|
|
4294
4299
|
});
|
|
4295
4300
|
return {
|
|
4296
4301
|
id: t.id,
|
|
4297
4302
|
intent: n.request.intent,
|
|
4298
|
-
...
|
|
4303
|
+
...l || {},
|
|
4299
4304
|
...b
|
|
4300
4305
|
};
|
|
4301
4306
|
}
|
|
4302
4307
|
case "records": {
|
|
4303
|
-
const
|
|
4308
|
+
const l = m, b = J({
|
|
4304
4309
|
queryKind: n.queryKind,
|
|
4305
4310
|
status: v,
|
|
4306
4311
|
isLoading: g,
|
|
4307
4312
|
error: h,
|
|
4308
4313
|
trace: A,
|
|
4309
|
-
payload:
|
|
4314
|
+
payload: l,
|
|
4310
4315
|
activeInputs: n.request.activeInputs,
|
|
4311
|
-
isStale:
|
|
4316
|
+
isStale: d.isStale
|
|
4312
4317
|
});
|
|
4313
4318
|
return {
|
|
4314
4319
|
id: t.id,
|
|
4315
4320
|
intent: n.request.intent,
|
|
4316
|
-
records: (
|
|
4317
|
-
columns:
|
|
4318
|
-
rowCount:
|
|
4319
|
-
pagination:
|
|
4320
|
-
totals:
|
|
4321
|
+
records: (l == null ? void 0 : l.records) || [],
|
|
4322
|
+
columns: l == null ? void 0 : l.columns,
|
|
4323
|
+
rowCount: l == null ? void 0 : l.rowCount,
|
|
4324
|
+
pagination: l == null ? void 0 : l.pagination,
|
|
4325
|
+
totals: l == null ? void 0 : l.totals,
|
|
4321
4326
|
...b
|
|
4322
4327
|
};
|
|
4323
4328
|
}
|
|
4324
4329
|
case "inputOptions": {
|
|
4325
|
-
const
|
|
4330
|
+
const l = m, b = J({
|
|
4326
4331
|
queryKind: n.queryKind,
|
|
4327
4332
|
status: v,
|
|
4328
4333
|
isLoading: g,
|
|
4329
4334
|
error: h,
|
|
4330
4335
|
trace: A,
|
|
4331
|
-
payload:
|
|
4336
|
+
payload: l,
|
|
4332
4337
|
activeInputs: n.request.activeInputs,
|
|
4333
|
-
isStale:
|
|
4338
|
+
isStale: d.isStale
|
|
4334
4339
|
});
|
|
4335
4340
|
return {
|
|
4336
4341
|
id: t.id,
|
|
4337
4342
|
intent: n.request.intent,
|
|
4338
|
-
options: (
|
|
4343
|
+
options: (l == null ? void 0 : l.options) || [],
|
|
4339
4344
|
...b
|
|
4340
4345
|
};
|
|
4341
4346
|
}
|
|
4342
4347
|
case "sql": {
|
|
4343
|
-
const
|
|
4348
|
+
const l = m, b = J({
|
|
4344
4349
|
queryKind: n.queryKind,
|
|
4345
4350
|
status: v,
|
|
4346
4351
|
isLoading: g,
|
|
4347
4352
|
error: h,
|
|
4348
4353
|
trace: A,
|
|
4349
|
-
payload:
|
|
4354
|
+
payload: l,
|
|
4350
4355
|
activeInputs: n.request.activeInputs,
|
|
4351
|
-
isStale:
|
|
4356
|
+
isStale: d.isStale
|
|
4352
4357
|
});
|
|
4353
4358
|
return {
|
|
4354
4359
|
id: t.id,
|
|
4355
4360
|
intent: n.request.intent,
|
|
4356
|
-
records: (
|
|
4357
|
-
columns:
|
|
4358
|
-
rowCount:
|
|
4359
|
-
pagination:
|
|
4360
|
-
output:
|
|
4361
|
-
rowLimitExceeded:
|
|
4361
|
+
records: (l == null ? void 0 : l.records) || [],
|
|
4362
|
+
columns: l == null ? void 0 : l.columns,
|
|
4363
|
+
rowCount: l == null ? void 0 : l.rowCount,
|
|
4364
|
+
pagination: l == null ? void 0 : l.pagination,
|
|
4365
|
+
output: l == null ? void 0 : l.output,
|
|
4366
|
+
rowLimitExceeded: l == null ? void 0 : l.rowLimitExceeded,
|
|
4362
4367
|
...b
|
|
4363
4368
|
};
|
|
4364
4369
|
}
|
|
4365
4370
|
case "matrix": {
|
|
4366
|
-
const
|
|
4371
|
+
const l = m, b = J({
|
|
4367
4372
|
queryKind: n.queryKind,
|
|
4368
4373
|
status: v,
|
|
4369
4374
|
isLoading: g,
|
|
4370
4375
|
error: h,
|
|
4371
4376
|
trace: A,
|
|
4372
|
-
payload:
|
|
4377
|
+
payload: l,
|
|
4373
4378
|
activeInputs: n.request.activeInputs,
|
|
4374
|
-
isStale:
|
|
4379
|
+
isStale: d.isStale
|
|
4375
4380
|
});
|
|
4376
4381
|
return {
|
|
4377
4382
|
id: t.id,
|
|
4378
4383
|
intent: n.request.intent,
|
|
4379
|
-
matrixResult:
|
|
4380
|
-
grid:
|
|
4381
|
-
expansion:
|
|
4384
|
+
matrixResult: l == null ? void 0 : l.matrixResult,
|
|
4385
|
+
grid: l == null ? void 0 : l.grid,
|
|
4386
|
+
expansion: l == null ? void 0 : l.expansion,
|
|
4382
4387
|
...b
|
|
4383
4388
|
};
|
|
4384
4389
|
}
|
|
@@ -4400,7 +4405,7 @@ function J(e) {
|
|
|
4400
4405
|
isEmpty: $i(e.queryKind, e.payload, e.status),
|
|
4401
4406
|
isPartial: Li(e.payload, r),
|
|
4402
4407
|
isFiltered: !!((f = e.activeInputs) != null && f.some(
|
|
4403
|
-
(
|
|
4408
|
+
(d) => d.kind === "filter" && d.isActive
|
|
4404
4409
|
)),
|
|
4405
4410
|
isStale: e.isStale,
|
|
4406
4411
|
isValidated: !!t,
|
|
@@ -4423,30 +4428,30 @@ function $i(e, r, t) {
|
|
|
4423
4428
|
return !1;
|
|
4424
4429
|
switch (e) {
|
|
4425
4430
|
case "metric": {
|
|
4426
|
-
const
|
|
4427
|
-
return (
|
|
4431
|
+
const d = r;
|
|
4432
|
+
return (d == null ? void 0 : d.value) == null && !_(d == null ? void 0 : d.records);
|
|
4428
4433
|
}
|
|
4429
4434
|
case "analysis": {
|
|
4430
|
-
const
|
|
4431
|
-
return
|
|
4435
|
+
const d = r;
|
|
4436
|
+
return d ? !d.answerSummary && !_(d.records) && !_(d.changes) && !_(d.drivers) && !_(d.largestNegativeChanges) && !_(d.largestPositiveChanges) && !_(d.largestNegativeDrivers) && !_(d.largestPositiveDrivers) && !Object.values(d.resultSets || {}).some(
|
|
4432
4437
|
(c) => _(c.records)
|
|
4433
4438
|
) : !0;
|
|
4434
4439
|
}
|
|
4435
4440
|
case "records": {
|
|
4436
|
-
const
|
|
4437
|
-
return !_(
|
|
4441
|
+
const d = r;
|
|
4442
|
+
return !_(d == null ? void 0 : d.records);
|
|
4438
4443
|
}
|
|
4439
4444
|
case "sql": {
|
|
4440
|
-
const
|
|
4441
|
-
return !_(
|
|
4445
|
+
const d = r;
|
|
4446
|
+
return !_(d == null ? void 0 : d.records) && (d == null ? void 0 : d.output) === void 0;
|
|
4442
4447
|
}
|
|
4443
4448
|
case "inputOptions": {
|
|
4444
|
-
const
|
|
4445
|
-
return !((n =
|
|
4449
|
+
const d = r;
|
|
4450
|
+
return !((n = d == null ? void 0 : d.options) != null && n.length);
|
|
4446
4451
|
}
|
|
4447
4452
|
case "matrix": {
|
|
4448
|
-
const
|
|
4449
|
-
return !((o = (i =
|
|
4453
|
+
const d = r;
|
|
4454
|
+
return !((o = (i = d == null ? void 0 : d.matrixResult) == null ? void 0 : i.cells) != null && o.length) && !((f = (u = d == null ? void 0 : d.grid) == null ? void 0 : u.cells) != null && f.length);
|
|
4450
4455
|
}
|
|
4451
4456
|
default:
|
|
4452
4457
|
return Se(e);
|
|
@@ -4456,7 +4461,7 @@ function _(e) {
|
|
|
4456
4461
|
return Array.isArray(e) && e.length > 0;
|
|
4457
4462
|
}
|
|
4458
4463
|
function Di(e, r, t, n, i) {
|
|
4459
|
-
const o = Ci(), u = E(r), f = E(n), [
|
|
4464
|
+
const o = Ci(), u = E(r), f = E(n), [d, c] = F({
|
|
4460
4465
|
status: "idle",
|
|
4461
4466
|
data: t,
|
|
4462
4467
|
error: null,
|
|
@@ -4501,7 +4506,7 @@ function Di(e, r, t, n, i) {
|
|
|
4501
4506
|
}), () => {
|
|
4502
4507
|
m = !0;
|
|
4503
4508
|
};
|
|
4504
|
-
}, [t, e, o, i]),
|
|
4509
|
+
}, [t, e, o, i]), d;
|
|
4505
4510
|
}
|
|
4506
4511
|
function _r() {
|
|
4507
4512
|
return typeof performance < "u" && performance.now ? performance.now() : Date.now();
|
|
@@ -4528,16 +4533,16 @@ function Xi({
|
|
|
4528
4533
|
children: i
|
|
4529
4534
|
}) {
|
|
4530
4535
|
var g;
|
|
4531
|
-
const o = Ti(), u = ((g = o == null ? void 0 : o.authToken) == null ? void 0 : g.accessToken) || e, f = (o == null ? void 0 : o.dataApiBaseUrl) || (o == null ? void 0 : o.apiBaseUrl) || r,
|
|
4536
|
+
const o = Ti(), u = ((g = o == null ? void 0 : o.authToken) == null ? void 0 : g.accessToken) || e, f = (o == null ? void 0 : o.dataApiBaseUrl) || (o == null ? void 0 : o.apiBaseUrl) || r, d = (o == null ? void 0 : o.debug) ?? n, c = Bi(d), y = I(() => yi(), []), m = t || y, v = I(
|
|
4532
4537
|
() => ({
|
|
4533
4538
|
token: u,
|
|
4534
4539
|
apiBaseUrl: f,
|
|
4535
4540
|
executor: m,
|
|
4536
|
-
debug:
|
|
4541
|
+
debug: d
|
|
4537
4542
|
}),
|
|
4538
|
-
[f,
|
|
4543
|
+
[f, d, m, u]
|
|
4539
4544
|
);
|
|
4540
|
-
return /* @__PURE__ */ a($t, { debug:
|
|
4545
|
+
return /* @__PURE__ */ a($t, { debug: d, children: /* @__PURE__ */ p(Wr.Provider, { value: v, children: [
|
|
4541
4546
|
i,
|
|
4542
4547
|
c ? /* @__PURE__ */ a(Bt, { ...c }) : null
|
|
4543
4548
|
] }) });
|