react-semaphor 0.1.496 → 0.1.498
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 +10 -10
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{calculated-field-identity-Cq9GwHfE.js → calculated-field-identity-BGIPbwBx.js} +26 -26
- package/dist/chunks/{calculated-field-identity-DTfyvvLC.cjs → calculated-field-identity-CEzmY7Bi.cjs} +1 -1
- package/dist/chunks/{constants-CC3WKmqC.js → constants-CKoIADZx.js} +9 -9
- package/dist/chunks/{constants-DIuhVR6J.cjs → constants-CpBVuEea.cjs} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CM6LTGw5.cjs → dashboard-briefing-launcher-BEmyxEd8.cjs} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Bbz4cwHb.js → dashboard-briefing-launcher-C8eAX-JN.js} +9 -9
- package/dist/chunks/{dashboard-controls-BsgADy-S.js → dashboard-controls-C_v7sbq4.js} +11 -11
- package/dist/chunks/{dashboard-controls-B2nrczJl.cjs → dashboard-controls-YvJe7cPL.cjs} +1 -1
- package/dist/chunks/{dashboard-date-comparison-definition-C69F-zaC.cjs → dashboard-date-comparison-definition-Er8D33iq.cjs} +1 -1
- package/dist/chunks/{dashboard-date-comparison-definition-Bqti6YAo.js → dashboard-date-comparison-definition-aANgeL-E.js} +1 -1
- package/dist/chunks/{dashboard-json-CA-BChbt.js → dashboard-json-BaT3Yy8x.js} +7 -7
- package/dist/chunks/{dashboard-json-CwRRBSSL.cjs → dashboard-json-CSp5bXIV.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CEiPgdkX.js → edit-dashboard-visual-GWiW0jjy.js} +7088 -7103
- package/dist/chunks/edit-dashboard-visual-_Wap0YGu.cjs +172 -0
- package/dist/chunks/{editor-action-buttons-kk2BNiTe.cjs → editor-action-buttons-BSC0nwgV.cjs} +1 -1
- package/dist/chunks/{editor-action-buttons-6HBjjcfK.js → editor-action-buttons-CfZITZwQ.js} +6 -6
- package/dist/chunks/{field-aggregations-C8kZqMTD.js → field-aggregations-CxJWY4Ny.js} +11 -11
- package/dist/chunks/{field-aggregations-naKZ7S2Q.cjs → field-aggregations-DLWbqnBW.cjs} +1 -1
- package/dist/chunks/field-dependencies-BiyQuGxZ.cjs +1 -0
- package/dist/chunks/field-dependencies-CNOgt39w.js +182 -0
- package/dist/chunks/{index-oll4m-qi.js → index-BJfUMDHc.js} +42 -42
- package/dist/chunks/{index-CCa-A-Yx.cjs → index-C3RHKD3d.cjs} +1 -1
- package/dist/chunks/index-DhBGtRkR.cjs +1417 -0
- package/dist/chunks/{index-Cgoz65yM.js → index-DjbQVfS6.js} +40875 -40268
- package/dist/chunks/{matrix-analytical-definition-BK5y9XHH.cjs → matrix-analytical-definition-DbaMwlWM.cjs} +1 -1
- package/dist/chunks/{matrix-analytical-definition-B1xhoCak.js → matrix-analytical-definition-s10yOPft.js} +1 -1
- package/dist/chunks/{matrix-card-Ii8yYSnw.cjs → matrix-card-BitrcBVw.cjs} +1 -1
- package/dist/chunks/{matrix-card-BEb6hr8i.js → matrix-card-DGpXdK_Y.js} +2 -2
- package/dist/chunks/{matrix-control-sources-CdegRBcA.cjs → matrix-control-sources-DdfST7Fo.cjs} +1 -1
- package/dist/chunks/{matrix-control-sources-cbYmqWNg.js → matrix-control-sources-Dxh6hOU9.js} +10 -10
- package/dist/chunks/{matrix-definition-CZM5-YJX.js → matrix-definition-AP5W3wGc.js} +1 -1
- package/dist/chunks/{matrix-definition-CSNthxru.cjs → matrix-definition-C33isJ3k.cjs} +1 -1
- package/dist/chunks/{matrix-formatter-CiXzpX6X.js → matrix-formatter-CZYFhdZ0.js} +44 -44
- package/dist/chunks/{matrix-formatter-C19PZAal.cjs → matrix-formatter-UCXQxvV3.cjs} +1 -1
- package/dist/chunks/{matrix-member-presentation-CabW8mJc.js → matrix-member-presentation-5-M0obIa.js} +1 -1
- package/dist/chunks/{matrix-member-presentation-CQHvq18l.cjs → matrix-member-presentation-DgIq9UG9.cjs} +1 -1
- package/dist/chunks/{matrix-operation-contract-0Nor-C71.js → matrix-operation-contract-BFumahBa.js} +21 -21
- package/dist/chunks/{matrix-operation-contract-o9GXbiHw.cjs → matrix-operation-contract-C0-V685e.cjs} +1 -1
- package/dist/chunks/{metric-comparison-DeiOjEm5.cjs → metric-comparison-ClKUI7Tu.cjs} +1 -1
- package/dist/chunks/{metric-comparison-Br8l0WkK.js → metric-comparison-Df3HmmUE.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-DW-ti5ek.js → pivot-header-presentation-CAmKYLgn.js} +3 -3
- package/dist/chunks/{pivot-header-presentation-DRv-cSIP.cjs → pivot-header-presentation-CGWDx1V_.cjs} +1 -1
- package/dist/chunks/{pivot-result-identity-DEenUrMj.cjs → pivot-result-identity-0grcK7bY.cjs} +1 -1
- package/dist/chunks/{pivot-result-identity-sZc1RaIz.js → pivot-result-identity-DBeK76wx.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-D81qcCcZ.cjs → pivot-result-lifecycle-CC0jWMFT.cjs} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DJ40gdwk.js → pivot-result-lifecycle-DVPJg7Gg.js} +7 -7
- package/dist/chunks/{raw-temporal-DDTt2yv5.cjs → raw-temporal-Kc3mdzH7.cjs} +1 -1
- package/dist/chunks/{raw-temporal-DHCZrFe7.js → raw-temporal-T3PEaGmJ.js} +2 -2
- package/dist/chunks/{raw-temporal-contract-CkvdtPYA.js → raw-temporal-contract-Ck5vJoQ6.js} +1 -1
- package/dist/chunks/{raw-temporal-contract-BcbV56Rc.cjs → raw-temporal-contract-SwtP1jSh.cjs} +1 -1
- package/dist/chunks/{report-preferences-dialog-CVRJOCQu.js → report-preferences-dialog-B8DdDM7q.js} +6 -6
- package/dist/chunks/{report-preferences-dialog-DGEq-iBF.cjs → report-preferences-dialog-BcaEOgn2.cjs} +1 -1
- package/dist/chunks/{report-runtime-context-BlDpc-F-.js → report-runtime-context-BziN1eg9.js} +1 -1
- package/dist/chunks/{report-runtime-context-lSIvyKm2.cjs → report-runtime-context-D3t8vyl9.cjs} +1 -1
- package/dist/chunks/{semantic-format-ew5zviaT.js → semantic-format-A3k--fpE.js} +2 -2
- package/dist/chunks/{semantic-format--_VEin18.cjs → semantic-format-Ca-sdETk.cjs} +1 -1
- package/dist/chunks/{source-entity-resolution-DPjslVgx.cjs → source-entity-resolution-CTUzMH2S.cjs} +1 -1
- package/dist/chunks/{source-entity-resolution-79Rihbk3.js → source-entity-resolution-DX9C1ebK.js} +20 -20
- package/dist/chunks/switch-CgycqpWv.cjs +139 -0
- package/dist/chunks/{switch-BmyuyM7e.js → switch-DV8zX7rV.js} +4785 -4610
- package/dist/chunks/{temporal-bucket-contract-BYR6tj6F.cjs → temporal-bucket-contract-BBdvWsY0.cjs} +1 -1
- package/dist/chunks/{temporal-bucket-contract-C-kKQ_W4.js → temporal-bucket-contract-lq7Jrif0.js} +1 -1
- package/dist/chunks/{update-policy-BCtFr2Qh.cjs → update-policy-DIw_H9RT.cjs} +1 -1
- package/dist/chunks/{update-policy-CP_A1IVD.js → update-policy-EgZ1nRbd.js} +2 -2
- package/dist/chunks/{validators-D-_IT-Xw.js → validators-CvLOGzT3.js} +291 -286
- package/dist/chunks/validators-mhiJSia7.cjs +1 -0
- 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 +9 -9
- 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 +1 -1
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +232 -232
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.cjs +1 -1
- package/dist/format-utils/index.js +16 -16
- package/dist/index.cjs +1 -1
- package/dist/index.js +57 -56
- package/dist/report-runtime-context/index.cjs +1 -1
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +634 -634
- package/dist/types/briefings.d.ts +172 -172
- package/dist/types/dashboard-assistant.d.ts +106 -106
- package/dist/types/dashboard-authoring.d.ts +134 -134
- package/dist/types/dashboard.d.ts +84 -84
- package/dist/types/data-app-builder.d.ts +62 -62
- package/dist/types/data-app-codegen-node.d.ts +84 -84
- package/dist/types/data-app-codegen.d.ts +84 -84
- package/dist/types/data-app-sdk-adapters.d.ts +84 -84
- package/dist/types/data-app-sdk-validation.d.ts +84 -84
- package/dist/types/data-app-sdk.d.ts +370 -370
- package/dist/types/format-utils.d.ts +109 -109
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +31 -21
- package/dist/types/main.d.ts +160 -134
- package/dist/types/shared.d.ts +84 -84
- package/dist/types/surfboard.d.ts +84 -84
- package/dist/types/types.d.ts +191 -84
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-BlS27LDw.cjs +0 -172
- package/dist/chunks/index-BSRwdFTN.cjs +0 -1417
- package/dist/chunks/switch-nDjQC2y3.cjs +0 -139
- package/dist/chunks/token-types-BIYFAsGq.js +0 -8
- package/dist/chunks/token-types-CkAGFhiW.cjs +0 -1
- package/dist/chunks/validators-ux2obZB9.cjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { toSemaphorInputSnapshots as Gr, toSemaphorInputBinding as Jr, toSemaphorActiveInputSnapshots as Y, toSemaphorMatrixIntent as Yr, toSemaphorSqlIntent as Xr, toSemaphorInputOptionsIntent as Zr, toSemaphorRecordsIntent as et, toSemaphorAnalysisQueryOptions as rt, toSemaphorAnalysisIntent as tt, toSemaphorMetricIntent as nt, hasSemaphorInputValue as ue, normalizeSemaphorInputOptions as vr, toSemaphorInputSpec as wr } from "../data-app-sdk-adapters/index.js";
|
|
2
|
-
import { jsxs as p, Fragment as Sr, jsx as
|
|
2
|
+
import { jsxs as p, Fragment as Sr, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as xe, useContext as Q, useState as z, useRef as E, useEffect as B, useMemo as I, Fragment as it, useId as Ir, useCallback as D, useReducer as ot } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { m as or } from "../chunks/matrix-formatter-
|
|
4
|
+
import { l as st, q as at, a9 as lt, aT as Se } from "../chunks/validators-CvLOGzT3.js";
|
|
5
|
+
import { j as ho, aZ as bo } from "../chunks/validators-CvLOGzT3.js";
|
|
6
|
+
import { u as dt, N as ut, L as ct } from "../chunks/matrix-operation-contract-BFumahBa.js";
|
|
7
|
+
import { m as or } from "../chunks/matrix-formatter-CZYFhdZ0.js";
|
|
8
8
|
import { M as ft, a as pt, S as gt, E as mt, C as yt } from "../chunks/search-BHsQIWBV.js";
|
|
9
9
|
import { X as ht, C as bt, j as vt } from "../chunks/x-CXDkqdur.js";
|
|
10
10
|
function me(e, r, t) {
|
|
@@ -136,7 +136,7 @@ function Pe(e, r) {
|
|
|
136
136
|
if (t)
|
|
137
137
|
switch (t.kind) {
|
|
138
138
|
case "records":
|
|
139
|
-
return
|
|
139
|
+
return le({
|
|
140
140
|
title: "Records",
|
|
141
141
|
rowNoun: "rows",
|
|
142
142
|
records: t.records,
|
|
@@ -144,7 +144,7 @@ function Pe(e, r) {
|
|
|
144
144
|
rowCount: t.rowCount
|
|
145
145
|
});
|
|
146
146
|
case "sql":
|
|
147
|
-
return
|
|
147
|
+
return le({
|
|
148
148
|
title: "SQL Rows",
|
|
149
149
|
rowNoun: "rows",
|
|
150
150
|
records: t.records,
|
|
@@ -152,7 +152,7 @@ function Pe(e, r) {
|
|
|
152
152
|
rowCount: t.rowCount
|
|
153
153
|
});
|
|
154
154
|
case "inputOptions":
|
|
155
|
-
return
|
|
155
|
+
return le({
|
|
156
156
|
title: "Options",
|
|
157
157
|
rowNoun: "options",
|
|
158
158
|
records: t.options.slice(0, ce).map((n) => {
|
|
@@ -175,7 +175,7 @@ function Pe(e, r) {
|
|
|
175
175
|
case "metric":
|
|
176
176
|
return wt(t, r);
|
|
177
177
|
case "matrix":
|
|
178
|
-
return
|
|
178
|
+
return le({
|
|
179
179
|
title: "Matrix Cells",
|
|
180
180
|
rowNoun: "cells",
|
|
181
181
|
records: t.window.blocks.flatMap((n) => n.cells).slice(0, ce).map((n) => {
|
|
@@ -226,7 +226,7 @@ function wt(e, r) {
|
|
|
226
226
|
t.push({ metric: `measure:${g}`, value: m });
|
|
227
227
|
}), Object.entries((r == null ? void 0 : r.measureBindings) ?? {}).sort(([g], [m]) => g.localeCompare(m)).forEach(([g, m]) => {
|
|
228
228
|
t.push({ metric: `binding:${g}`, value: m });
|
|
229
|
-
}),
|
|
229
|
+
}), le({
|
|
230
230
|
title: "Metric",
|
|
231
231
|
rowNoun: "values",
|
|
232
232
|
records: t,
|
|
@@ -237,7 +237,7 @@ function wt(e, r) {
|
|
|
237
237
|
rowCount: t.length
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function le({
|
|
241
241
|
title: e,
|
|
242
242
|
rowNoun: r,
|
|
243
243
|
records: t,
|
|
@@ -527,7 +527,7 @@ function _t(e) {
|
|
|
527
527
|
color: "var(--sd-fg-muted)"
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
const
|
|
530
|
+
const lr = "semaphor-devtools-stylesheet", R = "semaphor-devtools", Ft = `
|
|
531
531
|
.${R} {
|
|
532
532
|
--sd-bg: #ffffff;
|
|
533
533
|
--sd-bg-muted: #fafafa;
|
|
@@ -645,10 +645,10 @@ const dr = "semaphor-devtools-stylesheet", R = "semaphor-devtools", Ft = `
|
|
|
645
645
|
}
|
|
646
646
|
`;
|
|
647
647
|
function kr() {
|
|
648
|
-
if (typeof document > "u" || document.getElementById(
|
|
648
|
+
if (typeof document > "u" || document.getElementById(lr))
|
|
649
649
|
return;
|
|
650
650
|
const e = document.createElement("style");
|
|
651
|
-
e.id =
|
|
651
|
+
e.id = lr, e.textContent = Ft, document.head.appendChild(e);
|
|
652
652
|
}
|
|
653
653
|
const ye = 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif', W = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace", Ee = {
|
|
654
654
|
color: "var(--sd-fg-muted)",
|
|
@@ -1612,7 +1612,7 @@ function Pt({
|
|
|
1612
1612
|
c.open
|
|
1613
1613
|
]
|
|
1614
1614
|
);
|
|
1615
|
-
return /* @__PURE__ */
|
|
1615
|
+
return /* @__PURE__ */ l(Ve.Provider, { value: f, children: /* @__PURE__ */ l(Qe.Provider, { value: y, children: r }) });
|
|
1616
1616
|
}
|
|
1617
1617
|
function Ht(e) {
|
|
1618
1618
|
const r = V.findIndex(
|
|
@@ -1638,7 +1638,7 @@ function ao({
|
|
|
1638
1638
|
children: t
|
|
1639
1639
|
}) {
|
|
1640
1640
|
const n = I(() => ({ id: e, title: r }), [e, r]);
|
|
1641
|
-
return /* @__PURE__ */
|
|
1641
|
+
return /* @__PURE__ */ l(Ue.Provider, { value: n, children: t });
|
|
1642
1642
|
}
|
|
1643
1643
|
function Qt({
|
|
1644
1644
|
buttonPosition: e = "bottom-right",
|
|
@@ -1664,13 +1664,13 @@ function Qt({
|
|
|
1664
1664
|
document.removeEventListener("pointerdown", w, !0), document.removeEventListener("mousedown", w, !0), document.removeEventListener("click", w, !0);
|
|
1665
1665
|
};
|
|
1666
1666
|
}, [b, k]);
|
|
1667
|
-
const
|
|
1667
|
+
const d = I(
|
|
1668
1668
|
() => Et(o.queries),
|
|
1669
1669
|
[o.queries]
|
|
1670
1670
|
), h = I(
|
|
1671
1671
|
() => He(o.queries),
|
|
1672
1672
|
[o.queries]
|
|
1673
|
-
), K = mn(
|
|
1673
|
+
), K = mn(d), C = I(
|
|
1674
1674
|
() => yn(o.queries, c),
|
|
1675
1675
|
[o.queries, c]
|
|
1676
1676
|
), M = I(
|
|
@@ -1692,7 +1692,7 @@ function Qt({
|
|
|
1692
1692
|
style: {
|
|
1693
1693
|
...a.launcher,
|
|
1694
1694
|
...Bt(e),
|
|
1695
|
-
...Kt(
|
|
1695
|
+
...Kt(d.severity),
|
|
1696
1696
|
...i
|
|
1697
1697
|
},
|
|
1698
1698
|
onClick: () => {
|
|
@@ -1707,12 +1707,12 @@ function Qt({
|
|
|
1707
1707
|
);
|
|
1708
1708
|
},
|
|
1709
1709
|
children: [
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */
|
|
1712
|
-
|
|
1713
|
-
|
|
1710
|
+
/* @__PURE__ */ l(Gt, {}),
|
|
1711
|
+
/* @__PURE__ */ l("span", { style: a.launcherText, children: d.total }),
|
|
1712
|
+
d.issueCount > 0 ? /* @__PURE__ */ p("span", { style: a.launcherIssueCount, children: [
|
|
1713
|
+
d.issueCount,
|
|
1714
1714
|
" issue",
|
|
1715
|
-
|
|
1715
|
+
d.issueCount === 1 ? "" : "s"
|
|
1716
1716
|
] }) : null
|
|
1717
1717
|
]
|
|
1718
1718
|
}
|
|
@@ -1733,24 +1733,24 @@ function Qt({
|
|
|
1733
1733
|
children: [
|
|
1734
1734
|
/* @__PURE__ */ p("div", { style: a.panelHeader, children: [
|
|
1735
1735
|
/* @__PURE__ */ p("div", { style: a.panelTitleBlock, children: [
|
|
1736
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ l("div", { style: a.panelTitle, children: "Semaphor Inspector" }),
|
|
1737
1737
|
/* @__PURE__ */ p("div", { style: a.panelSubtitle, children: [
|
|
1738
|
-
|
|
1738
|
+
d.total,
|
|
1739
1739
|
" queries · ",
|
|
1740
|
-
|
|
1740
|
+
d.loading,
|
|
1741
1741
|
" loading ·",
|
|
1742
1742
|
" ",
|
|
1743
|
-
|
|
1743
|
+
d.failed,
|
|
1744
1744
|
" failed · ",
|
|
1745
|
-
|
|
1745
|
+
d.errorCount,
|
|
1746
1746
|
" errors ·",
|
|
1747
1747
|
" ",
|
|
1748
|
-
|
|
1748
|
+
d.warningCount,
|
|
1749
1749
|
" warnings"
|
|
1750
1750
|
] })
|
|
1751
1751
|
] }),
|
|
1752
1752
|
/* @__PURE__ */ p("div", { style: a.panelActions, children: [
|
|
1753
|
-
/* @__PURE__ */
|
|
1753
|
+
/* @__PURE__ */ l(
|
|
1754
1754
|
"button",
|
|
1755
1755
|
{
|
|
1756
1756
|
type: "button",
|
|
@@ -1758,24 +1758,24 @@ function Qt({
|
|
|
1758
1758
|
title: f ? "Exit fullscreen Semaphor Inspector" : "Enter fullscreen Semaphor Inspector",
|
|
1759
1759
|
style: a.iconButton,
|
|
1760
1760
|
onClick: () => g((w) => !w),
|
|
1761
|
-
children: f ? /* @__PURE__ */
|
|
1761
|
+
children: f ? /* @__PURE__ */ l(ft, { size: 15 }) : /* @__PURE__ */ l(pt, { size: 15 })
|
|
1762
1762
|
}
|
|
1763
1763
|
),
|
|
1764
|
-
/* @__PURE__ */
|
|
1764
|
+
/* @__PURE__ */ l(
|
|
1765
1765
|
"button",
|
|
1766
1766
|
{
|
|
1767
1767
|
type: "button",
|
|
1768
1768
|
"aria-label": "Close Semaphor Inspector",
|
|
1769
1769
|
style: a.iconButton,
|
|
1770
1770
|
onClick: s.closeDevtools,
|
|
1771
|
-
children: /* @__PURE__ */
|
|
1771
|
+
children: /* @__PURE__ */ l(ht, { size: 15 })
|
|
1772
1772
|
}
|
|
1773
1773
|
)
|
|
1774
1774
|
] })
|
|
1775
1775
|
] }),
|
|
1776
1776
|
/* @__PURE__ */ p("label", { style: a.searchBox, children: [
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ l(gt, { size: 14 }),
|
|
1778
|
+
/* @__PURE__ */ l(
|
|
1779
1779
|
"input",
|
|
1780
1780
|
{
|
|
1781
1781
|
"aria-label": "Search Semaphor traces",
|
|
@@ -1786,7 +1786,7 @@ function Qt({
|
|
|
1786
1786
|
}
|
|
1787
1787
|
)
|
|
1788
1788
|
] }),
|
|
1789
|
-
h.length ? /* @__PURE__ */
|
|
1789
|
+
h.length ? /* @__PURE__ */ l(
|
|
1790
1790
|
Zt,
|
|
1791
1791
|
{
|
|
1792
1792
|
issues: h,
|
|
@@ -1805,7 +1805,7 @@ function Qt({
|
|
|
1805
1805
|
...Nt(t)
|
|
1806
1806
|
},
|
|
1807
1807
|
children: [
|
|
1808
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ l(
|
|
1809
1809
|
"div",
|
|
1810
1810
|
{
|
|
1811
1811
|
style: {
|
|
@@ -1815,8 +1815,8 @@ function Qt({
|
|
|
1815
1815
|
"aria-label": "Registered queries",
|
|
1816
1816
|
children: C.length ? M.map((w) => /* @__PURE__ */ p("div", { style: a.queryGroup, children: [
|
|
1817
1817
|
/* @__PURE__ */ p("div", { style: a.queryGroupHeader, children: [
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ l("span", { children: w.title }),
|
|
1819
|
+
/* @__PURE__ */ l("span", { style: a.queryGroupCount, children: w.traces.length })
|
|
1820
1820
|
] }),
|
|
1821
1821
|
w.traces.length ? w.traces.map((S) => {
|
|
1822
1822
|
var te;
|
|
@@ -1837,9 +1837,9 @@ function Qt({
|
|
|
1837
1837
|
}),
|
|
1838
1838
|
children: [
|
|
1839
1839
|
/* @__PURE__ */ p("span", { style: a.queryListItemHeader, children: [
|
|
1840
|
-
/* @__PURE__ */
|
|
1841
|
-
/* @__PURE__ */
|
|
1842
|
-
/* @__PURE__ */
|
|
1840
|
+
/* @__PURE__ */ l(en, { status: (te = S.latestAttempt) == null ? void 0 : te.status }),
|
|
1841
|
+
/* @__PURE__ */ l("span", { style: a.queryListTitle, title: x, children: x }),
|
|
1842
|
+
/* @__PURE__ */ l(
|
|
1843
1843
|
"span",
|
|
1844
1844
|
{
|
|
1845
1845
|
style: {
|
|
@@ -1849,17 +1849,17 @@ function Qt({
|
|
|
1849
1849
|
children: O
|
|
1850
1850
|
}
|
|
1851
1851
|
),
|
|
1852
|
-
j > 0 ? /* @__PURE__ */
|
|
1852
|
+
j > 0 ? /* @__PURE__ */ l("span", { style: a.queryListIssueBadge, children: j }) : null
|
|
1853
1853
|
] }),
|
|
1854
|
-
/* @__PURE__ */
|
|
1854
|
+
/* @__PURE__ */ l(
|
|
1855
1855
|
"span",
|
|
1856
1856
|
{
|
|
1857
1857
|
className: `${R}-source`,
|
|
1858
1858
|
style: a.queryListSource,
|
|
1859
1859
|
title: re,
|
|
1860
1860
|
children: ee.map((ne, ie) => /* @__PURE__ */ p(it, { children: [
|
|
1861
|
-
ie > 0 ? /* @__PURE__ */
|
|
1862
|
-
/* @__PURE__ */
|
|
1861
|
+
ie > 0 ? /* @__PURE__ */ l("span", { style: a.queryListSubtitleSep, children: " · " }) : null,
|
|
1862
|
+
/* @__PURE__ */ l("span", { children: ne })
|
|
1863
1863
|
] }, `${ne}:${ie}`))
|
|
1864
1864
|
}
|
|
1865
1865
|
)
|
|
@@ -1867,11 +1867,11 @@ function Qt({
|
|
|
1867
1867
|
},
|
|
1868
1868
|
Me(S)
|
|
1869
1869
|
);
|
|
1870
|
-
}) : /* @__PURE__ */
|
|
1871
|
-
] }, w.title)) : /* @__PURE__ */
|
|
1870
|
+
}) : /* @__PURE__ */ l("div", { style: a.queryGroupEmpty, children: "No input traces" })
|
|
1871
|
+
] }, w.title)) : /* @__PURE__ */ l("div", { style: a.emptyState, children: "No matching traces" })
|
|
1872
1872
|
}
|
|
1873
1873
|
),
|
|
1874
|
-
/* @__PURE__ */
|
|
1874
|
+
/* @__PURE__ */ l(Jt, { trace: $ })
|
|
1875
1875
|
]
|
|
1876
1876
|
}
|
|
1877
1877
|
)
|
|
@@ -1924,15 +1924,15 @@ function lo({
|
|
|
1924
1924
|
viewId: f.viewId
|
|
1925
1925
|
}),
|
|
1926
1926
|
children: [
|
|
1927
|
-
/* @__PURE__ */
|
|
1928
|
-
/* @__PURE__ */
|
|
1927
|
+
/* @__PURE__ */ l(mt, { size: 13 }),
|
|
1928
|
+
/* @__PURE__ */ l("span", { style: a.inspectButtonText, children: ((v = f.latestAttempt) == null ? void 0 : v.status) || "idle" })
|
|
1929
1929
|
]
|
|
1930
1930
|
}
|
|
1931
1931
|
);
|
|
1932
1932
|
}
|
|
1933
1933
|
function Er() {
|
|
1934
1934
|
const e = Q(Ve);
|
|
1935
|
-
return !e || !e.state.enabled ? Cr :
|
|
1935
|
+
return !e || !e.state.enabled ? Cr : de(e.state);
|
|
1936
1936
|
}
|
|
1937
1937
|
function Ut({
|
|
1938
1938
|
spec: e,
|
|
@@ -1951,8 +1951,8 @@ function Ut({
|
|
|
1951
1951
|
), b = I(
|
|
1952
1952
|
() => JSON.stringify(n || null),
|
|
1953
1953
|
[n]
|
|
1954
|
-
), k = E(e),
|
|
1955
|
-
|
|
1954
|
+
), k = E(e), d = E(v), h = E(n), K = E(b), C = E(i), M = E(y), $ = Qn(o), w = JSON.stringify($ || []), S = E($), L = E(w);
|
|
1955
|
+
d.current !== v && (d.current = v, k.current = e), K.current !== b && (K.current = b, h.current = n), M.current !== y && (M.current = y, C.current = i), L.current !== w && (L.current = w, S.current = $);
|
|
1956
1956
|
const x = k.current, O = h.current, pe = C.current, ee = S.current, re = Ir(), T = I(
|
|
1957
1957
|
() => g || `query_${Nr(t)}`,
|
|
1958
1958
|
[t, g]
|
|
@@ -2107,7 +2107,7 @@ function Ut({
|
|
|
2107
2107
|
);
|
|
2108
2108
|
}
|
|
2109
2109
|
function Gt() {
|
|
2110
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ l("span", { style: a.logoMark, "aria-hidden": !0, children: /* @__PURE__ */ p(
|
|
2111
2111
|
"svg",
|
|
2112
2112
|
{
|
|
2113
2113
|
viewBox: "0 0 100 100",
|
|
@@ -2116,10 +2116,10 @@ function Gt() {
|
|
|
2116
2116
|
height: "16",
|
|
2117
2117
|
focusable: "false",
|
|
2118
2118
|
children: [
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
/* @__PURE__ */
|
|
2121
|
-
/* @__PURE__ */
|
|
2122
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ l("rect", { x: "20", y: "15", width: "60", height: "12", rx: "6", fill: "currentColor" }),
|
|
2120
|
+
/* @__PURE__ */ l("rect", { x: "20", y: "35", width: "40", height: "12", rx: "6", fill: "currentColor" }),
|
|
2121
|
+
/* @__PURE__ */ l("rect", { x: "40", y: "55", width: "40", height: "12", rx: "6", fill: "currentColor" }),
|
|
2122
|
+
/* @__PURE__ */ l("rect", { x: "20", y: "75", width: "60", height: "12", rx: "6", fill: "currentColor" })
|
|
2123
2123
|
]
|
|
2124
2124
|
}
|
|
2125
2125
|
) });
|
|
@@ -2129,7 +2129,7 @@ function Jt({
|
|
|
2129
2129
|
}) {
|
|
2130
2130
|
var $, w, S, L, x;
|
|
2131
2131
|
if (!e)
|
|
2132
|
-
return /* @__PURE__ */
|
|
2132
|
+
return /* @__PURE__ */ l("div", { style: a.detailsPane, children: /* @__PURE__ */ l("div", { style: a.emptyState, children: "No traces registered yet" }) });
|
|
2133
2133
|
const r = e.latestAttempt, t = r == null ? void 0 : r.executionResult, n = Oe(
|
|
2134
2134
|
($ = t == null ? void 0 : t.validation) == null ? void 0 : $.warnings
|
|
2135
2135
|
), i = Oe((w = t == null ? void 0 : t.validation) == null ? void 0 : w.errors), o = Bn(
|
|
@@ -2144,11 +2144,11 @@ function Jt({
|
|
|
2144
2144
|
...n,
|
|
2145
2145
|
...o,
|
|
2146
2146
|
...s
|
|
2147
|
-
], y = e.inputsApplied.length > 0, b = !!(c || f), k = An(e),
|
|
2147
|
+
], y = e.inputsApplied.length > 0, b = !!(c || f), k = An(e), d = En(r == null ? void 0 : r.rowCount), h = Rn(r == null ? void 0 : r.durationMs), K = e.sourceRefs.length, C = Or(e), M = Lr(C);
|
|
2148
2148
|
return /* @__PURE__ */ p("div", { style: a.detailsPane, children: [
|
|
2149
2149
|
/* @__PURE__ */ p("div", { style: a.detailsHeader, children: [
|
|
2150
2150
|
/* @__PURE__ */ p("div", { style: a.detailsHeaderTopRow, children: [
|
|
2151
|
-
/* @__PURE__ */
|
|
2151
|
+
/* @__PURE__ */ l(
|
|
2152
2152
|
"span",
|
|
2153
2153
|
{
|
|
2154
2154
|
"aria-hidden": !0,
|
|
@@ -2158,8 +2158,8 @@ function Jt({
|
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
),
|
|
2161
|
-
/* @__PURE__ */
|
|
2162
|
-
/* @__PURE__ */
|
|
2161
|
+
/* @__PURE__ */ l("span", { style: a.detailsTitle, children: qe(e) }),
|
|
2162
|
+
/* @__PURE__ */ l(
|
|
2163
2163
|
"span",
|
|
2164
2164
|
{
|
|
2165
2165
|
style: {
|
|
@@ -2171,25 +2171,25 @@ function Jt({
|
|
|
2171
2171
|
)
|
|
2172
2172
|
] }),
|
|
2173
2173
|
/* @__PURE__ */ p("div", { style: a.metaStrip, children: [
|
|
2174
|
-
/* @__PURE__ */
|
|
2175
|
-
/* @__PURE__ */
|
|
2174
|
+
/* @__PURE__ */ l("span", { style: a.metaStripItem, children: k }),
|
|
2175
|
+
/* @__PURE__ */ l("span", { style: a.metaStripDot, children: "·" }),
|
|
2176
2176
|
/* @__PURE__ */ p("span", { style: a.metaStripItem, children: [
|
|
2177
|
-
|
|
2177
|
+
d,
|
|
2178
2178
|
" rows"
|
|
2179
2179
|
] }),
|
|
2180
|
-
/* @__PURE__ */
|
|
2181
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ l("span", { style: a.metaStripDot, children: "·" }),
|
|
2181
|
+
/* @__PURE__ */ l("span", { style: a.metaStripItem, children: h }),
|
|
2182
2182
|
K > 0 ? /* @__PURE__ */ p(Sr, { children: [
|
|
2183
|
-
/* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2183
|
+
/* @__PURE__ */ l("span", { style: a.metaStripDot, children: "·" }),
|
|
2184
|
+
/* @__PURE__ */ l("span", { style: a.metaStripItem, children: K === 1 ? "1 source" : `${K} sources` })
|
|
2185
2185
|
] }) : null
|
|
2186
2186
|
] })
|
|
2187
2187
|
] }),
|
|
2188
|
-
m.length ? /* @__PURE__ */
|
|
2189
|
-
v.length ? /* @__PURE__ */
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
y ? /* @__PURE__ */
|
|
2192
|
-
/* @__PURE__ */
|
|
2188
|
+
m.length ? /* @__PURE__ */ l(dr, { tone: "error", title: "Error", items: m }) : null,
|
|
2189
|
+
v.length ? /* @__PURE__ */ l(dr, { tone: "warning", title: "Warnings", items: v }) : null,
|
|
2190
|
+
/* @__PURE__ */ l(rn, { trace: e }),
|
|
2191
|
+
y ? /* @__PURE__ */ l(un, { inputs: e.inputsApplied }) : null,
|
|
2192
|
+
/* @__PURE__ */ l(
|
|
2193
2193
|
Yt,
|
|
2194
2194
|
{
|
|
2195
2195
|
trace: e,
|
|
@@ -2213,11 +2213,11 @@ function Yt({
|
|
|
2213
2213
|
r && o.push({
|
|
2214
2214
|
id: "returned",
|
|
2215
2215
|
label: "Returned",
|
|
2216
|
-
render: () => /* @__PURE__ */
|
|
2216
|
+
render: () => /* @__PURE__ */ l(cn, { preview: r })
|
|
2217
2217
|
}), i && o.push({
|
|
2218
2218
|
id: "compiled",
|
|
2219
2219
|
label: "Compiled",
|
|
2220
|
-
render: () => /* @__PURE__ */
|
|
2220
|
+
render: () => /* @__PURE__ */ l(
|
|
2221
2221
|
fn,
|
|
2222
2222
|
{
|
|
2223
2223
|
compiledQuery: t,
|
|
@@ -2227,21 +2227,21 @@ function Yt({
|
|
|
2227
2227
|
}), (e.sourceRefs.length || e.fieldRefs.length) && o.push({
|
|
2228
2228
|
id: "lineage",
|
|
2229
2229
|
label: "Sources",
|
|
2230
|
-
render: () => /* @__PURE__ */
|
|
2230
|
+
render: () => /* @__PURE__ */ l(on, { trace: e })
|
|
2231
2231
|
}), (b = e.sourceHints) != null && b.length && o.push({
|
|
2232
2232
|
id: "hints",
|
|
2233
2233
|
label: "Hints",
|
|
2234
|
-
render: () => /* @__PURE__ */
|
|
2234
|
+
render: () => /* @__PURE__ */ l(sn, { hints: e.sourceHints ?? [] })
|
|
2235
2235
|
}), o.push({
|
|
2236
2236
|
id: "lifecycle",
|
|
2237
2237
|
label: "Lifecycle",
|
|
2238
|
-
render: () => /* @__PURE__ */
|
|
2238
|
+
render: () => /* @__PURE__ */ l(Xt, { trace: e })
|
|
2239
2239
|
}), o.push({
|
|
2240
2240
|
id: "raw",
|
|
2241
2241
|
label: "Raw",
|
|
2242
|
-
render: () => /* @__PURE__ */
|
|
2242
|
+
render: () => /* @__PURE__ */ l("pre", { style: a.codeBlock, children: Ln(e) })
|
|
2243
2243
|
});
|
|
2244
|
-
const s = (k = o[0]) == null ? void 0 : k.id, c = e.traceId || `${e.viewId ?? ""}:${e.queryId}`, [u, f] = z(s), g = E(c), m = E(!1), v = o.map((
|
|
2244
|
+
const s = (k = o[0]) == null ? void 0 : k.id, c = e.traceId || `${e.viewId ?? ""}:${e.queryId}`, [u, f] = z(s), g = E(c), m = E(!1), v = o.map((d) => d.id).join("|");
|
|
2245
2245
|
B(() => {
|
|
2246
2246
|
if (g.current !== c) {
|
|
2247
2247
|
g.current = c, m.current = !1, f(s);
|
|
@@ -2253,11 +2253,11 @@ function Yt({
|
|
|
2253
2253
|
}
|
|
2254
2254
|
!m.current && u !== s && f(s);
|
|
2255
2255
|
}, [u, s, v, c]);
|
|
2256
|
-
const y = o.find((
|
|
2256
|
+
const y = o.find((d) => d.id === u) ?? o[0];
|
|
2257
2257
|
return /* @__PURE__ */ p("div", { style: a.traceTabs, children: [
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
const h =
|
|
2260
|
-
return /* @__PURE__ */
|
|
2258
|
+
/* @__PURE__ */ l("div", { style: a.traceTabBar, role: "tablist", "aria-label": "Trace details", children: o.map((d) => {
|
|
2259
|
+
const h = d.id === y.id;
|
|
2260
|
+
return /* @__PURE__ */ l(
|
|
2261
2261
|
"button",
|
|
2262
2262
|
{
|
|
2263
2263
|
type: "button",
|
|
@@ -2269,33 +2269,33 @@ function Yt({
|
|
|
2269
2269
|
...h ? a.traceTabActive : null
|
|
2270
2270
|
},
|
|
2271
2271
|
onClick: () => {
|
|
2272
|
-
m.current = !0, f(
|
|
2272
|
+
m.current = !0, f(d.id);
|
|
2273
2273
|
},
|
|
2274
|
-
children:
|
|
2274
|
+
children: d.label
|
|
2275
2275
|
},
|
|
2276
|
-
|
|
2276
|
+
d.id
|
|
2277
2277
|
);
|
|
2278
2278
|
}) }),
|
|
2279
|
-
/* @__PURE__ */
|
|
2279
|
+
/* @__PURE__ */ l("div", { style: a.traceTabPanel, role: "tabpanel", children: y.render() })
|
|
2280
2280
|
] });
|
|
2281
2281
|
}
|
|
2282
2282
|
function Xt({
|
|
2283
2283
|
trace: e
|
|
2284
2284
|
}) {
|
|
2285
|
-
return e.recentEvents.length ? /* @__PURE__ */
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */
|
|
2288
|
-
] }, `${r.type}:${r.at}:${t}`)) }) : /* @__PURE__ */
|
|
2285
|
+
return e.recentEvents.length ? /* @__PURE__ */ l("div", { style: a.eventList, children: e.recentEvents.slice(-5).map((r, t) => /* @__PURE__ */ p("div", { style: a.eventRow, children: [
|
|
2286
|
+
/* @__PURE__ */ l("span", { style: a.eventType, children: $n(r) }),
|
|
2287
|
+
/* @__PURE__ */ l("span", { style: a.eventMeta, children: On(r) })
|
|
2288
|
+
] }, `${r.type}:${r.at}:${t}`)) }) : /* @__PURE__ */ l("div", { style: a.mutedText, children: "No attempts recorded" });
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function dr({
|
|
2291
2291
|
tone: e,
|
|
2292
2292
|
title: r,
|
|
2293
2293
|
items: t
|
|
2294
2294
|
}) {
|
|
2295
2295
|
const n = e === "error" ? a.alertCardError : a.alertCardWarning;
|
|
2296
2296
|
return /* @__PURE__ */ p("div", { style: { ...a.alertCard, ...n }, children: [
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
t.length > 1 ? /* @__PURE__ */
|
|
2297
|
+
/* @__PURE__ */ l("div", { style: a.alertCardTitle, children: r }),
|
|
2298
|
+
t.length > 1 ? /* @__PURE__ */ l("ul", { style: a.alertCardList, children: t.map((i, o) => /* @__PURE__ */ l("li", { children: i }, `${e}-${o}`)) }) : /* @__PURE__ */ l("div", { children: t[0] })
|
|
2299
2299
|
] });
|
|
2300
2300
|
}
|
|
2301
2301
|
function Zt({
|
|
@@ -2316,10 +2316,10 @@ function Zt({
|
|
|
2316
2316
|
onClick: () => n((f) => !f),
|
|
2317
2317
|
children: [
|
|
2318
2318
|
/* @__PURE__ */ p("span", { style: a.issueSummaryHeaderLabel, children: [
|
|
2319
|
-
t ? /* @__PURE__ */
|
|
2320
|
-
/* @__PURE__ */
|
|
2319
|
+
t ? /* @__PURE__ */ l(bt, { size: 13 }) : /* @__PURE__ */ l(yt, { size: 13 }),
|
|
2320
|
+
/* @__PURE__ */ l("span", { children: "Issues" })
|
|
2321
2321
|
] }),
|
|
2322
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ l("span", { style: a.issueSummaryCount, children: e.length })
|
|
2323
2323
|
]
|
|
2324
2324
|
}
|
|
2325
2325
|
),
|
|
@@ -2332,7 +2332,7 @@ function Zt({
|
|
|
2332
2332
|
style: a.issueSummaryItem,
|
|
2333
2333
|
onClick: () => r(f.trace),
|
|
2334
2334
|
children: [
|
|
2335
|
-
/* @__PURE__ */
|
|
2335
|
+
/* @__PURE__ */ l(
|
|
2336
2336
|
"span",
|
|
2337
2337
|
{
|
|
2338
2338
|
style: {
|
|
@@ -2343,8 +2343,8 @@ function Zt({
|
|
|
2343
2343
|
}
|
|
2344
2344
|
),
|
|
2345
2345
|
/* @__PURE__ */ p("span", { style: a.issueSummaryText, children: [
|
|
2346
|
-
/* @__PURE__ */
|
|
2347
|
-
/* @__PURE__ */
|
|
2346
|
+
/* @__PURE__ */ l("span", { style: a.issueSummaryTitle, children: f.title }),
|
|
2347
|
+
/* @__PURE__ */ l("span", { style: a.issueSummaryMessage, children: f.message })
|
|
2348
2348
|
] })
|
|
2349
2349
|
]
|
|
2350
2350
|
},
|
|
@@ -2365,7 +2365,7 @@ function Zt({
|
|
|
2365
2365
|
function en({
|
|
2366
2366
|
status: e
|
|
2367
2367
|
}) {
|
|
2368
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ l(
|
|
2369
2369
|
"span",
|
|
2370
2370
|
{
|
|
2371
2371
|
"aria-hidden": !0,
|
|
@@ -2382,10 +2382,10 @@ function rn({
|
|
|
2382
2382
|
var i;
|
|
2383
2383
|
const r = (i = e.projectionFieldRefs) != null && i.length ? e.projectionFieldRefs : e.fieldRefs, t = e.inputFieldRefs || [], n = qn(r);
|
|
2384
2384
|
return /* @__PURE__ */ p("div", { style: a.recipe, children: [
|
|
2385
|
-
/* @__PURE__ */
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2385
|
+
/* @__PURE__ */ l(tn, { sources: e.sourceRefs }),
|
|
2386
|
+
/* @__PURE__ */ l(H, { title: "Measures", fields: n.measures }),
|
|
2387
|
+
/* @__PURE__ */ l(H, { title: "Time fields", fields: n.timeFields }),
|
|
2388
|
+
/* @__PURE__ */ l(
|
|
2389
2389
|
H,
|
|
2390
2390
|
{
|
|
2391
2391
|
title: "Dimensions",
|
|
@@ -2393,9 +2393,9 @@ function rn({
|
|
|
2393
2393
|
emptyText: "No dimensions selected"
|
|
2394
2394
|
}
|
|
2395
2395
|
),
|
|
2396
|
-
/* @__PURE__ */
|
|
2397
|
-
/* @__PURE__ */
|
|
2398
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ l(H, { title: "Identifiers", fields: n.identifiers }),
|
|
2397
|
+
/* @__PURE__ */ l(H, { title: "Other fields", fields: n.other }),
|
|
2398
|
+
/* @__PURE__ */ l(
|
|
2399
2399
|
H,
|
|
2400
2400
|
{
|
|
2401
2401
|
title: "Input bindings (Filters)",
|
|
@@ -2409,10 +2409,10 @@ function tn({
|
|
|
2409
2409
|
}) {
|
|
2410
2410
|
return e.length ? /* @__PURE__ */ p("div", { style: a.recipeGroup, children: [
|
|
2411
2411
|
/* @__PURE__ */ p("div", { style: a.recipeGroupHeader, children: [
|
|
2412
|
-
/* @__PURE__ */
|
|
2413
|
-
/* @__PURE__ */
|
|
2412
|
+
/* @__PURE__ */ l("span", { style: a.recipeGroupTitle, children: "From" }),
|
|
2413
|
+
/* @__PURE__ */ l("span", { style: a.recipeGroupCount, children: e.length })
|
|
2414
2414
|
] }),
|
|
2415
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ l("div", { style: a.sourcePillRow, children: e.map((r, t) => /* @__PURE__ */ l(
|
|
2416
2416
|
nn,
|
|
2417
2417
|
{
|
|
2418
2418
|
source: r
|
|
@@ -2424,16 +2424,16 @@ function tn({
|
|
|
2424
2424
|
function nn({ source: e }) {
|
|
2425
2425
|
const r = F(e);
|
|
2426
2426
|
return /* @__PURE__ */ p("span", { style: a.sourcePill, title: r, children: [
|
|
2427
|
-
/* @__PURE__ */
|
|
2428
|
-
/* @__PURE__ */
|
|
2427
|
+
/* @__PURE__ */ l("span", { style: a.sourcePillLabel, children: r }),
|
|
2428
|
+
/* @__PURE__ */ l("span", { style: a.sourcePillRole, children: e.kind })
|
|
2429
2429
|
] });
|
|
2430
2430
|
}
|
|
2431
2431
|
function on({
|
|
2432
2432
|
trace: e
|
|
2433
2433
|
}) {
|
|
2434
2434
|
return /* @__PURE__ */ p("div", { style: a.traceLineage, children: [
|
|
2435
|
-
/* @__PURE__ */
|
|
2436
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ l(an, { sources: e.sourceRefs }),
|
|
2436
|
+
/* @__PURE__ */ l(
|
|
2437
2437
|
H,
|
|
2438
2438
|
{
|
|
2439
2439
|
title: "All field refs",
|
|
@@ -2446,7 +2446,7 @@ function on({
|
|
|
2446
2446
|
function sn({
|
|
2447
2447
|
hints: e
|
|
2448
2448
|
}) {
|
|
2449
|
-
return /* @__PURE__ */
|
|
2449
|
+
return /* @__PURE__ */ l("div", { style: a.recipeFieldList, children: e.map((r, t) => {
|
|
2450
2450
|
const n = Tn(r), i = r.component || r.exportName || n || "Source hint", o = [
|
|
2451
2451
|
r.exportName && r.exportName !== i ? r.exportName : void 0,
|
|
2452
2452
|
n,
|
|
@@ -2458,8 +2458,8 @@ function sn({
|
|
|
2458
2458
|
style: a.recipeFieldRow,
|
|
2459
2459
|
title: o || i,
|
|
2460
2460
|
children: [
|
|
2461
|
-
/* @__PURE__ */
|
|
2462
|
-
o ? /* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ l("span", { style: a.recipeFieldName, children: i }),
|
|
2462
|
+
o ? /* @__PURE__ */ l("span", { style: a.recipeFieldMeta, children: o }) : null
|
|
2463
2463
|
]
|
|
2464
2464
|
},
|
|
2465
2465
|
`${i}:${n}:${t}`
|
|
@@ -2471,21 +2471,21 @@ function an({
|
|
|
2471
2471
|
}) {
|
|
2472
2472
|
return /* @__PURE__ */ p("div", { style: a.recipeGroup, children: [
|
|
2473
2473
|
/* @__PURE__ */ p("div", { style: a.recipeGroupHeader, children: [
|
|
2474
|
-
/* @__PURE__ */
|
|
2475
|
-
/* @__PURE__ */
|
|
2474
|
+
/* @__PURE__ */ l("span", { style: a.recipeGroupTitle, children: "Sources" }),
|
|
2475
|
+
/* @__PURE__ */ l("span", { style: a.recipeGroupCount, children: e.length })
|
|
2476
2476
|
] }),
|
|
2477
|
-
e.length ? /* @__PURE__ */
|
|
2477
|
+
e.length ? /* @__PURE__ */ l("div", { style: a.recipeFieldList, children: e.map((r, t) => /* @__PURE__ */ p(
|
|
2478
2478
|
"div",
|
|
2479
2479
|
{
|
|
2480
2480
|
style: a.recipeFieldRow,
|
|
2481
2481
|
title: F(r),
|
|
2482
2482
|
children: [
|
|
2483
|
-
/* @__PURE__ */
|
|
2484
|
-
/* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ l("span", { style: a.recipeFieldName, children: F(r) }),
|
|
2484
|
+
/* @__PURE__ */ l("span", { style: a.recipeFieldMeta, children: r.kind })
|
|
2485
2485
|
]
|
|
2486
2486
|
},
|
|
2487
2487
|
`${F(r)}:${t}`
|
|
2488
|
-
)) }) : /* @__PURE__ */
|
|
2488
|
+
)) }) : /* @__PURE__ */ l("div", { style: a.recipeEmptyText, children: "No sources captured" })
|
|
2489
2489
|
] });
|
|
2490
2490
|
}
|
|
2491
2491
|
function H({
|
|
@@ -2495,24 +2495,24 @@ function H({
|
|
|
2495
2495
|
}) {
|
|
2496
2496
|
return !r.length && !t ? null : /* @__PURE__ */ p("div", { style: a.recipeGroup, children: [
|
|
2497
2497
|
/* @__PURE__ */ p("div", { style: a.recipeGroupHeader, children: [
|
|
2498
|
-
/* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ l("span", { style: a.recipeGroupTitle, children: e }),
|
|
2499
|
+
/* @__PURE__ */ l("span", { style: a.recipeGroupCount, children: r.length })
|
|
2500
2500
|
] }),
|
|
2501
|
-
r.length ? /* @__PURE__ */
|
|
2502
|
-
|
|
2501
|
+
r.length ? /* @__PURE__ */ l("div", { style: a.fieldChipList, children: r.map((n, i) => /* @__PURE__ */ l(
|
|
2502
|
+
ln,
|
|
2503
2503
|
{
|
|
2504
2504
|
field: n,
|
|
2505
2505
|
groupTitle: e
|
|
2506
2506
|
},
|
|
2507
2507
|
`${Ge(n)}:${i}`
|
|
2508
|
-
)) }) : /* @__PURE__ */
|
|
2508
|
+
)) }) : /* @__PURE__ */ l("div", { style: a.recipeEmptyText, children: t })
|
|
2509
2509
|
] });
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function ln({
|
|
2512
2512
|
field: e,
|
|
2513
2513
|
groupTitle: r
|
|
2514
2514
|
}) {
|
|
2515
|
-
const t = kn(e), n = e.label || e.name, i = e.dataType && e.dataType !== "unknown" ? e.dataType : void 0, o = e.source ? F(e.source) : void 0, s = [t, i, o].filter(Boolean).join(" · "), c =
|
|
2515
|
+
const t = kn(e), n = e.label || e.name, i = e.dataType && e.dataType !== "unknown" ? e.dataType : void 0, o = e.source ? F(e.source) : void 0, s = [t, i, o].filter(Boolean).join(" · "), c = dn(e, r);
|
|
2516
2516
|
return /* @__PURE__ */ p(
|
|
2517
2517
|
"div",
|
|
2518
2518
|
{
|
|
@@ -2520,17 +2520,17 @@ function dn({
|
|
|
2520
2520
|
style: a.fieldChip,
|
|
2521
2521
|
title: s,
|
|
2522
2522
|
children: [
|
|
2523
|
-
/* @__PURE__ */
|
|
2524
|
-
e.aggregate ? /* @__PURE__ */
|
|
2525
|
-
/* @__PURE__ */
|
|
2526
|
-
i ? /* @__PURE__ */
|
|
2527
|
-
i && o ? /* @__PURE__ */
|
|
2528
|
-
o ? /* @__PURE__ */
|
|
2523
|
+
/* @__PURE__ */ l("span", { style: { ...a.fieldGlyph, ...c.style }, children: c.text }),
|
|
2524
|
+
e.aggregate ? /* @__PURE__ */ l("span", { style: a.fieldAggBadge, children: e.aggregate }) : null,
|
|
2525
|
+
/* @__PURE__ */ l("span", { style: a.fieldChipName, children: n }),
|
|
2526
|
+
i ? /* @__PURE__ */ l("span", { style: a.fieldChipMeta, children: i }) : null,
|
|
2527
|
+
i && o ? /* @__PURE__ */ l("span", { style: a.fieldChipMetaDot, children: "·" }) : null,
|
|
2528
|
+
o ? /* @__PURE__ */ l("span", { style: a.fieldChipMeta, children: o }) : null
|
|
2529
2529
|
]
|
|
2530
2530
|
}
|
|
2531
2531
|
);
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function dn(e, r) {
|
|
2534
2534
|
const t = e.dataType, n = e.role;
|
|
2535
2535
|
return !!e.aggregate || n === "measure" || r === "Measures" ? {
|
|
2536
2536
|
text: "Σ",
|
|
@@ -2574,10 +2574,10 @@ function un({
|
|
|
2574
2574
|
}) {
|
|
2575
2575
|
return /* @__PURE__ */ p("div", { style: a.inputsAppliedBlock, children: [
|
|
2576
2576
|
/* @__PURE__ */ p("div", { style: a.inputsAppliedHeader, children: [
|
|
2577
|
-
/* @__PURE__ */
|
|
2578
|
-
/* @__PURE__ */
|
|
2577
|
+
/* @__PURE__ */ l("span", { style: a.inputsAppliedTitle, children: "Active Inputs (Active Filters)" }),
|
|
2578
|
+
/* @__PURE__ */ l("span", { style: a.inputsAppliedCount, children: e.length })
|
|
2579
2579
|
] }),
|
|
2580
|
-
/* @__PURE__ */
|
|
2580
|
+
/* @__PURE__ */ l("div", { style: a.inputRecipeList, children: e.map((r) => {
|
|
2581
2581
|
const t = Cn(r);
|
|
2582
2582
|
return /* @__PURE__ */ p(
|
|
2583
2583
|
"div",
|
|
@@ -2586,12 +2586,12 @@ function un({
|
|
|
2586
2586
|
title: t.title,
|
|
2587
2587
|
children: [
|
|
2588
2588
|
/* @__PURE__ */ p("div", { style: a.inputRecipeHeader, children: [
|
|
2589
|
-
/* @__PURE__ */
|
|
2590
|
-
t.showId ? /* @__PURE__ */
|
|
2591
|
-
t.operator ? /* @__PURE__ */
|
|
2592
|
-
/* @__PURE__ */
|
|
2589
|
+
/* @__PURE__ */ l("span", { style: a.inputRecipeLabel, title: t.title, children: t.label }),
|
|
2590
|
+
t.showId ? /* @__PURE__ */ l("span", { style: a.inputRecipeId, title: r.inputId, children: r.inputId }) : null,
|
|
2591
|
+
t.operator ? /* @__PURE__ */ l("span", { style: a.inputOperatorBadge, children: t.operator }) : null,
|
|
2592
|
+
/* @__PURE__ */ l("span", { style: a.inputValuePreview, title: t.value, children: t.value })
|
|
2593
2593
|
] }),
|
|
2594
|
-
t.binding ? /* @__PURE__ */
|
|
2594
|
+
t.binding ? /* @__PURE__ */ l("div", { style: a.inputRecipeBinding, title: t.binding, children: t.binding }) : null
|
|
2595
2595
|
]
|
|
2596
2596
|
},
|
|
2597
2597
|
r.inputId
|
|
@@ -2604,12 +2604,12 @@ function cn({
|
|
|
2604
2604
|
}) {
|
|
2605
2605
|
return /* @__PURE__ */ p("div", { style: a.resultPreview, children: [
|
|
2606
2606
|
/* @__PURE__ */ p("div", { style: a.resultPreviewHeader, children: [
|
|
2607
|
-
/* @__PURE__ */
|
|
2608
|
-
/* @__PURE__ */
|
|
2607
|
+
/* @__PURE__ */ l("span", { style: a.resultPreviewTitle, children: e.title }),
|
|
2608
|
+
/* @__PURE__ */ l("span", { style: a.resultPreviewSummary, children: e.summary })
|
|
2609
2609
|
] }),
|
|
2610
|
-
/* @__PURE__ */
|
|
2611
|
-
/* @__PURE__ */
|
|
2612
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ l("div", { style: a.resultPreviewScroller, children: /* @__PURE__ */ p("table", { style: a.resultPreviewTable, children: [
|
|
2611
|
+
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.columns.map((r) => /* @__PURE__ */ l("th", { style: a.resultPreviewTh, children: r.label }, r.key)) }) }),
|
|
2612
|
+
/* @__PURE__ */ l("tbody", { children: e.rows.length ? e.rows.map((r, t) => /* @__PURE__ */ l("tr", { children: e.columns.map((n) => /* @__PURE__ */ l("td", { style: a.resultPreviewTd, children: xt(r[n.key]) }, n.key)) }, t)) : /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
|
|
2613
2613
|
"td",
|
|
2614
2614
|
{
|
|
2615
2615
|
colSpan: e.columns.length,
|
|
@@ -2633,24 +2633,24 @@ function fn({
|
|
|
2633
2633
|
compiledSql: r
|
|
2634
2634
|
}) {
|
|
2635
2635
|
return (e == null ? void 0 : e.kind) === "sql" ? /* @__PURE__ */ p("div", { style: a.compiledQuery, children: [
|
|
2636
|
-
/* @__PURE__ */
|
|
2637
|
-
e.pythonCode ? /* @__PURE__ */
|
|
2638
|
-
e.parameters ? /* @__PURE__ */
|
|
2636
|
+
/* @__PURE__ */ l(ur, { label: "SQL", value: e.sql }),
|
|
2637
|
+
e.pythonCode ? /* @__PURE__ */ l($e, { label: "Python", value: e.pythonCode }) : null,
|
|
2638
|
+
e.parameters ? /* @__PURE__ */ l(
|
|
2639
2639
|
$e,
|
|
2640
2640
|
{
|
|
2641
2641
|
label: "Parameters",
|
|
2642
2642
|
value: _e(e.parameters)
|
|
2643
2643
|
}
|
|
2644
2644
|
) : null
|
|
2645
|
-
] }) : r ? /* @__PURE__ */
|
|
2645
|
+
] }) : r ? /* @__PURE__ */ l(ur, { label: "SQL", value: r }) : /* @__PURE__ */ l($e, { label: "Compiled Query", value: _e(e) });
|
|
2646
2646
|
}
|
|
2647
2647
|
function $e({
|
|
2648
2648
|
label: e,
|
|
2649
2649
|
value: r
|
|
2650
2650
|
}) {
|
|
2651
2651
|
return /* @__PURE__ */ p("div", { style: a.codeBlockGroup, children: [
|
|
2652
|
-
/* @__PURE__ */
|
|
2653
|
-
/* @__PURE__ */
|
|
2652
|
+
/* @__PURE__ */ l("div", { style: a.codeBlockLabel, children: e }),
|
|
2653
|
+
/* @__PURE__ */ l("pre", { style: a.codeBlock, children: r })
|
|
2654
2654
|
] });
|
|
2655
2655
|
}
|
|
2656
2656
|
function ur({
|
|
@@ -2658,8 +2658,8 @@ function ur({
|
|
|
2658
2658
|
value: r
|
|
2659
2659
|
}) {
|
|
2660
2660
|
return /* @__PURE__ */ p("div", { style: a.codeBlockGroup, children: [
|
|
2661
|
-
/* @__PURE__ */
|
|
2662
|
-
/* @__PURE__ */
|
|
2661
|
+
/* @__PURE__ */ l("div", { style: a.codeBlockLabel, children: e }),
|
|
2662
|
+
/* @__PURE__ */ l("pre", { style: a.codeBlock, children: gn(r) })
|
|
2663
2663
|
] });
|
|
2664
2664
|
}
|
|
2665
2665
|
const pn = /* @__PURE__ */ new Set([
|
|
@@ -2704,7 +2704,7 @@ function gn(e) {
|
|
|
2704
2704
|
return e.split(/(\s+|,|\(|\))/).map((t, n) => {
|
|
2705
2705
|
if (!t) return null;
|
|
2706
2706
|
const i = t.toUpperCase();
|
|
2707
|
-
return pn.has(i) ? /* @__PURE__ */
|
|
2707
|
+
return pn.has(i) ? /* @__PURE__ */ l("span", { style: a.sqlKeyword, children: t }, n) : t.startsWith("$") || t.startsWith(":") || t.startsWith("?") ? /* @__PURE__ */ l("span", { style: a.sqlBindParam, children: t }, n) : /* @__PURE__ */ l("span", { children: t }, n);
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
2710
|
function mn(e) {
|
|
@@ -3115,7 +3115,7 @@ function ve(e) {
|
|
|
3115
3115
|
} = e;
|
|
3116
3116
|
return o;
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function de(e) {
|
|
3119
3119
|
if (!e.enabled)
|
|
3120
3120
|
return Cr;
|
|
3121
3121
|
const r = e.order.map((n) => e.entries[n]).filter((n) => !!n).map(ve), t = He(r).map(Ct);
|
|
@@ -3134,10 +3134,10 @@ function le(e) {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
function Hn(e) {
|
|
3136
3136
|
return {
|
|
3137
|
-
snapshot: () => $t(
|
|
3138
|
-
getQuery: (r) => ar(
|
|
3139
|
-
getQueries: (r) =>
|
|
3140
|
-
getIssues: () =>
|
|
3137
|
+
snapshot: () => $t(de(e())),
|
|
3138
|
+
getQuery: (r) => ar(de(e()).getQuery(r)),
|
|
3139
|
+
getQueries: (r) => de(e()).getQueries(r).map((t) => ar(t)).filter((t) => !!t),
|
|
3140
|
+
getIssues: () => de(e()).issues
|
|
3141
3141
|
};
|
|
3142
3142
|
}
|
|
3143
3143
|
function Vn(e) {
|
|
@@ -3386,7 +3386,7 @@ function si(e) {
|
|
|
3386
3386
|
if (!r || typeof r != "object")
|
|
3387
3387
|
return;
|
|
3388
3388
|
const t = {};
|
|
3389
|
-
return Fe(r.primaryValue) && (t.primaryValue = r.primaryValue), Fe(r.comparisonValue) && (t.comparisonValue = r.comparisonValue), typeof r.comparisonKind == "string" && (t.comparisonKind = r.comparisonKind), (typeof r.delta == "number" || r.delta === null) && (t.delta = r.delta), (typeof r.deltaPercent == "number" || r.deltaPercent === null) && (t.deltaPercent = r.deltaPercent), ai(r.measures) && (t.measures = r.measures),
|
|
3389
|
+
return Fe(r.primaryValue) && (t.primaryValue = r.primaryValue), Fe(r.comparisonValue) && (t.comparisonValue = r.comparisonValue), typeof r.comparisonKind == "string" && (t.comparisonKind = r.comparisonKind), (typeof r.delta == "number" || r.delta === null) && (t.delta = r.delta), (typeof r.deltaPercent == "number" || r.deltaPercent === null) && (t.deltaPercent = r.deltaPercent), ai(r.measures) && (t.measures = r.measures), li(r.measureBindings) && (t.measureBindings = r.measureBindings), Array.isArray(r.missingMeasures) && (t.missingMeasures = r.missingMeasures.filter(
|
|
3390
3390
|
(n) => typeof n == "string" && !!n
|
|
3391
3391
|
)), Object.keys(t).length > 0 ? t : void 0;
|
|
3392
3392
|
}
|
|
@@ -3396,7 +3396,7 @@ function Fe(e) {
|
|
|
3396
3396
|
function ai(e) {
|
|
3397
3397
|
return e !== null && typeof e == "object" && !Array.isArray(e) && Object.values(e).every(Fe);
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function li(e) {
|
|
3400
3400
|
return e !== null && typeof e == "object" && !Array.isArray(e) && Object.values(e).every((r) => typeof r == "string");
|
|
3401
3401
|
}
|
|
3402
3402
|
function yr(e) {
|
|
@@ -3415,7 +3415,7 @@ function be() {
|
|
|
3415
3415
|
function Je() {
|
|
3416
3416
|
return typeof performance < "u" && performance.now ? performance.now() : Date.now();
|
|
3417
3417
|
}
|
|
3418
|
-
const
|
|
3418
|
+
const di = [
|
|
3419
3419
|
"primary",
|
|
3420
3420
|
"comparisons",
|
|
3421
3421
|
"contributors",
|
|
@@ -3464,7 +3464,7 @@ function Mr(e) {
|
|
|
3464
3464
|
}
|
|
3465
3465
|
function ci(e, r) {
|
|
3466
3466
|
const t = fi(e.resultSets);
|
|
3467
|
-
for (const i of
|
|
3467
|
+
for (const i of di) {
|
|
3468
3468
|
if (t[i])
|
|
3469
3469
|
continue;
|
|
3470
3470
|
const o = hi(e[i]);
|
|
@@ -3769,7 +3769,7 @@ function Ti(e) {
|
|
|
3769
3769
|
function Ei(e) {
|
|
3770
3770
|
const r = Y(e.inputs);
|
|
3771
3771
|
try {
|
|
3772
|
-
const t = Yr(e), n =
|
|
3772
|
+
const t = Yr(e), n = dt.parse(e.matrixWindowRequest), i = Z(t);
|
|
3773
3773
|
return i ? {
|
|
3774
3774
|
error: i,
|
|
3775
3775
|
activeInputs: r,
|
|
@@ -3852,7 +3852,7 @@ function Ri(e) {
|
|
|
3852
3852
|
return e instanceof Error && e.kind === "data_app_query_error";
|
|
3853
3853
|
}
|
|
3854
3854
|
function Z(e, r = e.kind) {
|
|
3855
|
-
const t =
|
|
3855
|
+
const t = lt(e);
|
|
3856
3856
|
if (t.ok)
|
|
3857
3857
|
return null;
|
|
3858
3858
|
const n = t.errors.map(
|
|
@@ -4255,45 +4255,45 @@ function po(e, r = {}) {
|
|
|
4255
4255
|
i.success
|
|
4256
4256
|
]
|
|
4257
4257
|
), c = D(
|
|
4258
|
-
(
|
|
4258
|
+
(d) => {
|
|
4259
4259
|
var K, C, M, $, w, S, L, x, O;
|
|
4260
4260
|
const h = n.request;
|
|
4261
4261
|
if (h.intent)
|
|
4262
4262
|
switch (n.queryKind) {
|
|
4263
4263
|
case "metric":
|
|
4264
|
-
return (K =
|
|
4264
|
+
return (K = d.executor) == null ? void 0 : K.executeMetric(
|
|
4265
4265
|
h.intent,
|
|
4266
|
-
|
|
4266
|
+
d
|
|
4267
4267
|
);
|
|
4268
4268
|
case "analysis":
|
|
4269
|
-
return (M = (C =
|
|
4269
|
+
return (M = (C = d.executor) == null ? void 0 : C.executeAnalysis) == null ? void 0 : M.call(
|
|
4270
4270
|
C,
|
|
4271
4271
|
h.intent,
|
|
4272
|
-
|
|
4272
|
+
d,
|
|
4273
4273
|
h.analysisOptions
|
|
4274
4274
|
);
|
|
4275
4275
|
case "records":
|
|
4276
|
-
return ($ =
|
|
4276
|
+
return ($ = d.executor) == null ? void 0 : $.executeRecords(
|
|
4277
4277
|
h.intent,
|
|
4278
|
-
|
|
4278
|
+
d
|
|
4279
4279
|
);
|
|
4280
4280
|
case "inputOptions":
|
|
4281
|
-
return (w =
|
|
4281
|
+
return (w = d.executor) == null ? void 0 : w.executeInputOptions(
|
|
4282
4282
|
h.intent,
|
|
4283
|
-
|
|
4283
|
+
d
|
|
4284
4284
|
);
|
|
4285
4285
|
case "sql":
|
|
4286
|
-
return (L = (S =
|
|
4286
|
+
return (L = (S = d.executor) == null ? void 0 : S.executeSql) == null ? void 0 : L.call(
|
|
4287
4287
|
S,
|
|
4288
4288
|
h.intent,
|
|
4289
|
-
|
|
4289
|
+
d
|
|
4290
4290
|
);
|
|
4291
4291
|
case "matrix":
|
|
4292
4292
|
if (!h.matrixWindowRequest) throw new Error("Matrix window request is required.");
|
|
4293
|
-
return (O = (x =
|
|
4293
|
+
return (O = (x = d.executor) == null ? void 0 : x.executeMatrix) == null ? void 0 : O.call(
|
|
4294
4294
|
x,
|
|
4295
4295
|
{ intent: h.intent, matrixWindowRequest: h.matrixWindowRequest },
|
|
4296
|
-
|
|
4296
|
+
d
|
|
4297
4297
|
);
|
|
4298
4298
|
default:
|
|
4299
4299
|
return we(n);
|
|
@@ -4308,13 +4308,13 @@ function po(e, r = {}) {
|
|
|
4308
4308
|
s
|
|
4309
4309
|
), f = i.queryId, g = i.validationFailure;
|
|
4310
4310
|
B(() => {
|
|
4311
|
-
const
|
|
4312
|
-
if (!
|
|
4311
|
+
const d = n.request.error;
|
|
4312
|
+
if (!d) {
|
|
4313
4313
|
o.current = null;
|
|
4314
4314
|
return;
|
|
4315
4315
|
}
|
|
4316
|
-
const h = `${f}:${
|
|
4317
|
-
o.current !== h && (o.current = h, g(
|
|
4316
|
+
const h = `${f}:${d.message}`;
|
|
4317
|
+
o.current !== h && (o.current = h, g(d));
|
|
4318
4318
|
}, [
|
|
4319
4319
|
n.request.error,
|
|
4320
4320
|
n.request.queryKey,
|
|
@@ -4324,129 +4324,129 @@ function po(e, r = {}) {
|
|
|
4324
4324
|
const m = n.request.error ? n.request.idleData : u.data, v = n.request.error ? "error" : u.status, y = !n.request.error && u.status === "loading", b = n.request.error || u.error, k = i.trace;
|
|
4325
4325
|
switch (n.queryKind) {
|
|
4326
4326
|
case "metric": {
|
|
4327
|
-
const
|
|
4327
|
+
const d = m, h = G({
|
|
4328
4328
|
queryKind: n.queryKind,
|
|
4329
4329
|
status: v,
|
|
4330
4330
|
isLoading: y,
|
|
4331
4331
|
error: b,
|
|
4332
4332
|
trace: k,
|
|
4333
|
-
payload:
|
|
4333
|
+
payload: d,
|
|
4334
4334
|
activeInputs: n.request.activeInputs,
|
|
4335
4335
|
isStale: u.isStale
|
|
4336
4336
|
});
|
|
4337
4337
|
return {
|
|
4338
4338
|
id: t.id,
|
|
4339
4339
|
intent: n.request.intent,
|
|
4340
|
-
primaryValue: (
|
|
4341
|
-
measures:
|
|
4342
|
-
measureBindings:
|
|
4343
|
-
missingMeasures:
|
|
4344
|
-
comparisonValue:
|
|
4345
|
-
comparisonKind:
|
|
4346
|
-
delta:
|
|
4347
|
-
deltaPercent:
|
|
4348
|
-
records:
|
|
4340
|
+
primaryValue: (d == null ? void 0 : d.primaryValue) ?? null,
|
|
4341
|
+
measures: d == null ? void 0 : d.measures,
|
|
4342
|
+
measureBindings: d == null ? void 0 : d.measureBindings,
|
|
4343
|
+
missingMeasures: d == null ? void 0 : d.missingMeasures,
|
|
4344
|
+
comparisonValue: d == null ? void 0 : d.comparisonValue,
|
|
4345
|
+
comparisonKind: d == null ? void 0 : d.comparisonKind,
|
|
4346
|
+
delta: d == null ? void 0 : d.delta,
|
|
4347
|
+
deltaPercent: d == null ? void 0 : d.deltaPercent,
|
|
4348
|
+
records: d == null ? void 0 : d.records,
|
|
4349
4349
|
...h
|
|
4350
4350
|
};
|
|
4351
4351
|
}
|
|
4352
4352
|
case "analysis": {
|
|
4353
|
-
const
|
|
4353
|
+
const d = Mr(m), h = G({
|
|
4354
4354
|
queryKind: n.queryKind,
|
|
4355
4355
|
status: v,
|
|
4356
4356
|
isLoading: y,
|
|
4357
4357
|
error: b,
|
|
4358
4358
|
trace: k,
|
|
4359
|
-
payload:
|
|
4359
|
+
payload: d,
|
|
4360
4360
|
activeInputs: n.request.activeInputs,
|
|
4361
4361
|
isStale: u.isStale
|
|
4362
4362
|
});
|
|
4363
4363
|
return {
|
|
4364
4364
|
id: t.id,
|
|
4365
4365
|
intent: n.request.intent,
|
|
4366
|
-
...
|
|
4366
|
+
...d || {},
|
|
4367
4367
|
...h
|
|
4368
4368
|
};
|
|
4369
4369
|
}
|
|
4370
4370
|
case "records": {
|
|
4371
|
-
const
|
|
4371
|
+
const d = m, h = G({
|
|
4372
4372
|
queryKind: n.queryKind,
|
|
4373
4373
|
status: v,
|
|
4374
4374
|
isLoading: y,
|
|
4375
4375
|
error: b,
|
|
4376
4376
|
trace: k,
|
|
4377
|
-
payload:
|
|
4377
|
+
payload: d,
|
|
4378
4378
|
activeInputs: n.request.activeInputs,
|
|
4379
4379
|
isStale: u.isStale
|
|
4380
4380
|
});
|
|
4381
4381
|
return {
|
|
4382
4382
|
id: t.id,
|
|
4383
4383
|
intent: n.request.intent,
|
|
4384
|
-
records: (
|
|
4385
|
-
columns:
|
|
4386
|
-
rowCount:
|
|
4387
|
-
pagination:
|
|
4388
|
-
totals:
|
|
4384
|
+
records: (d == null ? void 0 : d.records) || [],
|
|
4385
|
+
columns: d == null ? void 0 : d.columns,
|
|
4386
|
+
rowCount: d == null ? void 0 : d.rowCount,
|
|
4387
|
+
pagination: d == null ? void 0 : d.pagination,
|
|
4388
|
+
totals: d == null ? void 0 : d.totals,
|
|
4389
4389
|
...h
|
|
4390
4390
|
};
|
|
4391
4391
|
}
|
|
4392
4392
|
case "inputOptions": {
|
|
4393
|
-
const
|
|
4393
|
+
const d = m, h = G({
|
|
4394
4394
|
queryKind: n.queryKind,
|
|
4395
4395
|
status: v,
|
|
4396
4396
|
isLoading: y,
|
|
4397
4397
|
error: b,
|
|
4398
4398
|
trace: k,
|
|
4399
|
-
payload:
|
|
4399
|
+
payload: d,
|
|
4400
4400
|
activeInputs: n.request.activeInputs,
|
|
4401
4401
|
isStale: u.isStale
|
|
4402
4402
|
});
|
|
4403
4403
|
return {
|
|
4404
4404
|
id: t.id,
|
|
4405
4405
|
intent: n.request.intent,
|
|
4406
|
-
options: (
|
|
4407
|
-
dependencyOutcomes:
|
|
4408
|
-
match:
|
|
4406
|
+
options: (d == null ? void 0 : d.options) || [],
|
|
4407
|
+
dependencyOutcomes: d == null ? void 0 : d.dependencyOutcomes,
|
|
4408
|
+
match: d == null ? void 0 : d.match,
|
|
4409
4409
|
...h
|
|
4410
4410
|
};
|
|
4411
4411
|
}
|
|
4412
4412
|
case "sql": {
|
|
4413
|
-
const
|
|
4413
|
+
const d = m, h = G({
|
|
4414
4414
|
queryKind: n.queryKind,
|
|
4415
4415
|
status: v,
|
|
4416
4416
|
isLoading: y,
|
|
4417
4417
|
error: b,
|
|
4418
4418
|
trace: k,
|
|
4419
|
-
payload:
|
|
4419
|
+
payload: d,
|
|
4420
4420
|
activeInputs: n.request.activeInputs,
|
|
4421
4421
|
isStale: u.isStale
|
|
4422
4422
|
});
|
|
4423
4423
|
return {
|
|
4424
4424
|
id: t.id,
|
|
4425
4425
|
intent: n.request.intent,
|
|
4426
|
-
records: (
|
|
4427
|
-
columns:
|
|
4428
|
-
rowCount:
|
|
4429
|
-
pagination:
|
|
4430
|
-
output:
|
|
4431
|
-
rowLimitExceeded:
|
|
4426
|
+
records: (d == null ? void 0 : d.records) || [],
|
|
4427
|
+
columns: d == null ? void 0 : d.columns,
|
|
4428
|
+
rowCount: d == null ? void 0 : d.rowCount,
|
|
4429
|
+
pagination: d == null ? void 0 : d.pagination,
|
|
4430
|
+
output: d == null ? void 0 : d.output,
|
|
4431
|
+
rowLimitExceeded: d == null ? void 0 : d.rowLimitExceeded,
|
|
4432
4432
|
...h
|
|
4433
4433
|
};
|
|
4434
4434
|
}
|
|
4435
4435
|
case "matrix": {
|
|
4436
|
-
const
|
|
4436
|
+
const d = m, h = G({
|
|
4437
4437
|
queryKind: n.queryKind,
|
|
4438
4438
|
status: v,
|
|
4439
4439
|
isLoading: y,
|
|
4440
4440
|
error: b,
|
|
4441
4441
|
trace: k,
|
|
4442
|
-
payload:
|
|
4442
|
+
payload: d,
|
|
4443
4443
|
activeInputs: n.request.activeInputs,
|
|
4444
4444
|
isStale: u.isStale
|
|
4445
4445
|
});
|
|
4446
4446
|
return {
|
|
4447
4447
|
id: t.id,
|
|
4448
4448
|
intent: n.request.intent,
|
|
4449
|
-
window:
|
|
4449
|
+
window: d == null ? void 0 : d.window,
|
|
4450
4450
|
...h,
|
|
4451
4451
|
executionResult: Pi(h.executionResult) ? h.executionResult : void 0
|
|
4452
4452
|
};
|
|
@@ -4609,9 +4609,9 @@ function go({
|
|
|
4609
4609
|
}),
|
|
4610
4610
|
[c, u, m, s]
|
|
4611
4611
|
);
|
|
4612
|
-
return /* @__PURE__ */
|
|
4612
|
+
return /* @__PURE__ */ l(Pt, { debug: u, children: /* @__PURE__ */ p(Vr.Provider, { value: v, children: [
|
|
4613
4613
|
i,
|
|
4614
|
-
f ? /* @__PURE__ */
|
|
4614
|
+
f ? /* @__PURE__ */ l(Qt, { ...f }) : null
|
|
4615
4615
|
] }) });
|
|
4616
4616
|
}
|
|
4617
4617
|
export {
|