react-semaphor 0.1.559 → 0.1.561
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.js +389 -378
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/analytics-base-schemas-CB3oFAXk.js +658 -0
- package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-DiVHY3Hw.js} +209 -211
- package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
- package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
- package/dist/chunks/{braces-Rdxa3H-s.js → braces-u8VorWJc.js} +1 -1
- package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-DDsIWJYT.js} +201 -201
- package/dist/chunks/{context-DVy4HOU0.js → context-TUjw9eqr.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-DfolidZ9.js} +1 -1
- package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-BRdZBPqr.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CgvTLndW.js} +1163 -1178
- package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-B4vfSzTF.js} +877 -941
- package/dist/chunks/{dashboard-json-DGpv17vL.js → dashboard-json-Y3MF59g7.js} +5 -5
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
- package/dist/chunks/{edit-dashboard-visual-AQ2pQkFp.js → edit-dashboard-visual-DwjZcxj-.js} +9080 -9354
- package/dist/chunks/filter-reach-copy-bijwf_-b.js +3596 -0
- package/dist/chunks/{filter-value-text-B4l-xqJT.js → filter-value-text-DFnhwuEW.js} +3 -3
- package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
- package/dist/chunks/{index-B1Xr7W24.js → index-ClwbY3BL.js} +648 -674
- package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-CtvCBfOm.js} +1 -1
- package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-BklYgciR.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
- package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-CUorIB7Q.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-BSiGEXVC.js} +221 -214
- package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-95aC0uEO.js} +6 -6
- package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-B5wQhg5G.js} +1 -1
- package/dist/chunks/{palette-DMJtp3Vn.js → palette-DTnMhipt.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
- package/dist/chunks/{pivot-result-identity-CAj8SiRL.js → pivot-result-identity-olvXJoB9.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-C2YUIwKG.js} +55 -55
- package/dist/chunks/{report-runtime-context-bYoExeWr.js → report-runtime-context-DoIUr3MP.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
- package/dist/chunks/{save-DSb1jTtG.js → save-DH4RyrnG.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-8jqfI7hI.js} +59 -59
- package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-CV7K4FI6.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-E2XWyibu.js} +40105 -41658
- package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-C29EUzDp.js} +570 -570
- package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
- package/dist/chunks/{switch-Dq8XPFpT.js → switch-balDSHc7.js} +3 -3
- package/dist/chunks/{table-export-sheet-C_RvEUyO.js → table-export-sheet-CK8tvh4d.js} +1 -1
- package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
- package/dist/chunks/{token-types-LCYMJ3pa.js → token-types-DhYH5YKb.js} +1 -1
- package/dist/chunks/{upload-Dr_WAxHQ.js → upload-Ufj8vjyn.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
- package/dist/chunks/{validators-C87JPd-_.js → validators-BtaCFIEB.js} +1206 -1579
- package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2713 -1459
- package/dist/data-app-sdk/index.js +20 -20
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +10 -10
- package/dist/format-utils/index.js +262 -256
- package/dist/index.js +214 -215
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
- package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
- package/dist/types/index.js +50 -51
- package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
- package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/editor-store.d.ts +48 -10
- package/dist/types/lib/stores/table-actions.d.ts +9 -5
- package/dist/types/lib/table-formatting/index.d.ts +0 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
- package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
- package/dist/types/lib/types/common-types.d.ts +40 -47
- package/dist/types/lib/types/explorer-types.d.ts +11 -43
- package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
- package/dist/types/lib/utils/card-definition.d.ts +9 -187
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +169 -513
- package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
- package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
- package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
- package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
- package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
- package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +555 -38
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
- package/dist/types/shared/dashboard-authoring/index.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
- package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
- package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +13 -2
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
- package/dist/types/shared/format-utils/index.d.ts +2 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
- package/dist/types/shared/format-utils/raw-temporal.d.ts +31 -1
- package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
- package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
- package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
- package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
- package/package.json +2 -2
- package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
- package/dist/chunks/bookmark-state-ssqrs5oP.js +0 -111
- package/dist/chunks/document-dashboard-inputs-ChVkcBuu.js +0 -3010
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
- package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
- package/dist/chunks/global-date-filter-utils-DBzEOX9M.js +0 -12222
- package/dist/chunks/pivot-result-contract-expectations-DOYhqeZb.js +0 -1926
- package/dist/chunks/raw-temporal-presentation-BmT7z6NH.js +0 -584
- package/dist/chunks/resolve-dashboard-input-context-B_C_VAJH.js +0 -5520
- package/dist/chunks/table-settings-DXj_zXwS.js +0 -637
- package/dist/chunks/temporal-input-presentation-AhLSkGPf.js +0 -2939
- package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
- package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { toSemaphorInputSnapshots as ce, toSemaphorInputBinding as le, toSemaphorSelectionSnapshots as de, toSemaphorActiveInputSnapshots as q, toSemaphorMatrixIntent as fe, toSemaphorSqlIntent as me, toSemaphorInputOptionsIntent as pe, toSemaphorRecordsIntent as ye, toSemaphorAnalysisQueryOptions as he, toSemaphorAnalysisIntent as ve, toSemaphorMetricIntent as ge, hasSemaphorInputValue as b, normalizeSemaphorInputOptions as X, toSemaphorInputSpec as Z } from "../data-app-sdk-adapters/index.js";
|
|
2
2
|
import { j as Se } from "../chunks/index-CuHybtft.js";
|
|
3
|
-
import { ab as qe, az as
|
|
4
|
-
import { a as Tt, aE as Nt } from "../chunks/validators-
|
|
5
|
-
import {
|
|
6
|
-
import "../chunks/analytics-base-schemas-
|
|
3
|
+
import { ab as qe, az as _, s as Ie } from "../chunks/validators-BtaCFIEB.js";
|
|
4
|
+
import { a as Tt, aE as Nt } from "../chunks/validators-BtaCFIEB.js";
|
|
5
|
+
import { _ as Ae, an as we, am as be, y as F, S as W, G as ke } from "../chunks/matrix-operation-contract-BSiGEXVC.js";
|
|
6
|
+
import "../chunks/analytics-base-schemas-CB3oFAXk.js";
|
|
7
7
|
import "zod";
|
|
8
|
-
import { createContext as Ee, useContext as Ke, useMemo as h, useEffect as M, useState as
|
|
9
|
-
import { r as J } from "../chunks/selection-reducer-
|
|
8
|
+
import { createContext as Ee, useContext as Ke, useMemo as h, useEffect as M, useState as x, useCallback as S, useRef as D } from "react";
|
|
9
|
+
import { r as J } from "../chunks/selection-reducer-CV7K4FI6.js";
|
|
10
10
|
import { jsx as De } from "react/jsx-runtime";
|
|
11
11
|
function K(e, t, r) {
|
|
12
12
|
return {
|
|
@@ -151,7 +151,7 @@ const Et = {
|
|
|
151
151
|
"largestPositiveChanges",
|
|
152
152
|
"largestNegativeDrivers",
|
|
153
153
|
"largestPositiveDrivers"
|
|
154
|
-
],
|
|
154
|
+
], _e = [
|
|
155
155
|
"primary",
|
|
156
156
|
"records",
|
|
157
157
|
"periodChanges",
|
|
@@ -169,7 +169,7 @@ const Et = {
|
|
|
169
169
|
function ee(e) {
|
|
170
170
|
if (!e)
|
|
171
171
|
return {};
|
|
172
|
-
const t = Ne(e.executionResult), r =
|
|
172
|
+
const t = Ne(e.executionResult), r = xe(e, t), n = Re(r), s = te(
|
|
173
173
|
L(e.analysisWarnings),
|
|
174
174
|
Me(r)
|
|
175
175
|
);
|
|
@@ -184,7 +184,7 @@ function ee(e) {
|
|
|
184
184
|
} : {}
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function xe(e, t) {
|
|
188
188
|
const r = $e(e.resultSets);
|
|
189
189
|
for (const s of Oe) {
|
|
190
190
|
if (r[s])
|
|
@@ -237,7 +237,7 @@ function Ce(e, t = e.id || e.role || "resultSet") {
|
|
|
237
237
|
}
|
|
238
238
|
function Re(e) {
|
|
239
239
|
var t;
|
|
240
|
-
for (const r of
|
|
240
|
+
for (const r of _e)
|
|
241
241
|
if ((t = e[r]) != null && t.records.length)
|
|
242
242
|
return e[r];
|
|
243
243
|
return Object.values(e).find((r) => r.records.length) || Object.values(e)[0];
|
|
@@ -603,7 +603,7 @@ function A(e, t = e.kind) {
|
|
|
603
603
|
}
|
|
604
604
|
function re(e, t, r) {
|
|
605
605
|
return {
|
|
606
|
-
...
|
|
606
|
+
..._(e) ? { intentId: _(e) } : {},
|
|
607
607
|
...e ? { intent: e } : {},
|
|
608
608
|
status: "failed",
|
|
609
609
|
resultShape: t,
|
|
@@ -736,7 +736,7 @@ function Ze(e) {
|
|
|
736
736
|
function et(e, t) {
|
|
737
737
|
return [
|
|
738
738
|
`Semaphor ${e.kind} query`,
|
|
739
|
-
|
|
739
|
+
_(e) ? `id=${_(e)}` : void 0,
|
|
740
740
|
"label" in e && e.label ? `label=${e.label}` : void 0,
|
|
741
741
|
tt(e),
|
|
742
742
|
`endpoint=${rt(t)}`
|
|
@@ -816,7 +816,7 @@ function ot() {
|
|
|
816
816
|
return Ke(ae);
|
|
817
817
|
}
|
|
818
818
|
function Kt(e) {
|
|
819
|
-
const [t, r] =
|
|
819
|
+
const [t, r] = x(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), s = n ? e.value : t, o = h(
|
|
820
820
|
() => X(e.options),
|
|
821
821
|
[e.options]
|
|
822
822
|
), a = S(
|
|
@@ -857,7 +857,7 @@ function Kt(e) {
|
|
|
857
857
|
}, [c, o, a, e, s]);
|
|
858
858
|
}
|
|
859
859
|
function Dt(e) {
|
|
860
|
-
const [t, r] =
|
|
860
|
+
const [t, r] = x(() => pt(e));
|
|
861
861
|
return M(() => {
|
|
862
862
|
r((n) => {
|
|
863
863
|
let s = n;
|
|
@@ -928,7 +928,7 @@ function ut(e) {
|
|
|
928
928
|
function Y(e) {
|
|
929
929
|
return `${typeof e}:${String(e)}`;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function _t(e, t = {}) {
|
|
932
932
|
const r = h(
|
|
933
933
|
() => t.inputs ? {
|
|
934
934
|
...e,
|
|
@@ -1246,7 +1246,7 @@ function y(e) {
|
|
|
1246
1246
|
return Array.isArray(e) && e.length > 0;
|
|
1247
1247
|
}
|
|
1248
1248
|
function mt(e, t, r, n, s) {
|
|
1249
|
-
const o = ot(), a = D(t), c = D(n), u = D(s), [d, i] =
|
|
1249
|
+
const o = ot(), a = D(t), c = D(n), u = D(s), [d, i] = x({
|
|
1250
1250
|
status: "idle",
|
|
1251
1251
|
data: r,
|
|
1252
1252
|
error: null,
|
|
@@ -1301,8 +1301,8 @@ function pt(e) {
|
|
|
1301
1301
|
function O(e) {
|
|
1302
1302
|
throw new Error(`Unsupported Semaphor query kind: ${JSON.stringify(e)}`);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
const [t, r] =
|
|
1304
|
+
function xt(e) {
|
|
1305
|
+
const [t, r] = x(() => G(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), s = G(
|
|
1306
1306
|
e,
|
|
1307
1307
|
n ? e.tuples || [] : t
|
|
1308
1308
|
), o = D(s);
|
|
@@ -1407,6 +1407,6 @@ export {
|
|
|
1407
1407
|
Ot as useClearInvalidSemaphorInputValue,
|
|
1408
1408
|
Kt as useSemaphorInput,
|
|
1409
1409
|
Dt as useSemaphorInputs,
|
|
1410
|
-
|
|
1411
|
-
|
|
1410
|
+
_t as useSemaphorQuery,
|
|
1411
|
+
xt as useSemaphorSelection
|
|
1412
1412
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as y } from "../chunks/operators-B3zZoskU.js";
|
|
2
|
-
import { m as v, s as m, p as I, a as S } from "../chunks/validators-
|
|
3
|
-
import { a as F, c as b } from "../chunks/matrix-operation-contract-
|
|
4
|
-
import "../chunks/analytics-base-schemas-
|
|
2
|
+
import { m as v, s as m, p as I, a as S } from "../chunks/validators-BtaCFIEB.js";
|
|
3
|
+
import { a as F, c as b } from "../chunks/matrix-operation-contract-BSiGEXVC.js";
|
|
4
|
+
import "../chunks/analytics-base-schemas-CB3oFAXk.js";
|
|
5
5
|
import "zod";
|
|
6
6
|
function w(i) {
|
|
7
7
|
var n, r, o;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ag as b, aj as N, s as O, aC as v, q as E, ab as K, az as l } from "../chunks/validators-
|
|
2
|
-
import {
|
|
3
|
-
import "../chunks/analytics-base-schemas-
|
|
1
|
+
import { ag as b, aj as N, s as O, aC as v, q as E, ab as K, az as l } from "../chunks/validators-BtaCFIEB.js";
|
|
2
|
+
import { _ as Q } from "../chunks/matrix-operation-contract-BSiGEXVC.js";
|
|
3
|
+
import "../chunks/analytics-base-schemas-CB3oFAXk.js";
|
|
4
4
|
import "zod";
|
|
5
|
-
import { p as W } from "../chunks/report-runtime-context-
|
|
6
|
-
import { d as U } from "../chunks/source-entity-resolution-
|
|
7
|
-
import { toSemaphorMetricIntent as J, toSemaphorAnalysisIntent as V, toSemaphorRecordsIntent as G, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as
|
|
8
|
-
import { m as
|
|
5
|
+
import { p as W } from "../chunks/report-runtime-context-DoIUr3MP.js";
|
|
6
|
+
import { d as U } from "../chunks/source-entity-resolution-BXI3nQ5Z.js";
|
|
7
|
+
import { toSemaphorMetricIntent as J, toSemaphorAnalysisIntent as V, toSemaphorRecordsIntent as G, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as X, toSemaphorInputOptionsIntent as Y } from "../data-app-sdk-adapters/index.js";
|
|
8
|
+
import { m as Z } from "../chunks/matrix-card-CUorIB7Q.js";
|
|
9
9
|
function ee({
|
|
10
10
|
intent: e,
|
|
11
11
|
field: r,
|
|
@@ -581,9 +581,9 @@ function ve(e) {
|
|
|
581
581
|
if (e.queryKind === "sql")
|
|
582
582
|
return L(e);
|
|
583
583
|
if (e.queryKind === "matrix")
|
|
584
|
-
return Z(e);
|
|
585
|
-
if (e.queryKind === "inputOptions")
|
|
586
584
|
return X(e);
|
|
585
|
+
if (e.queryKind === "inputOptions")
|
|
586
|
+
return Y(e);
|
|
587
587
|
throw new Error(
|
|
588
588
|
"useSemaphorQuery spec.queryKind must be metric, analysis, records, inputOptions, sql, or matrix."
|
|
589
589
|
);
|
|
@@ -893,7 +893,7 @@ function Ce(e) {
|
|
|
893
893
|
field: r,
|
|
894
894
|
path: `spec.disambiguationFields.${t}`
|
|
895
895
|
}))
|
|
896
|
-
] : e.kind === "matrix" ?
|
|
896
|
+
] : e.kind === "matrix" ? Z(e).flatMap((r, t) => r.derivedField || r.name === "*" ? [] : [{ field: r, path: `spec.fields.${t}` }]) : [];
|
|
897
897
|
}
|
|
898
898
|
function B(e) {
|
|
899
899
|
return !("derivedFields" in e) || !Array.isArray(e.derivedFields) ? [] : e.derivedFields;
|