react-semaphor 0.1.537 → 0.1.539
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 +352 -341
- package/dist/assistant-context/index.js +10 -0
- package/dist/assistant-protocol/index.js +104 -0
- package/dist/brand-studio/index.js +35 -31
- package/dist/briefings/index.js +46 -45
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
- package/dist/chunks/aggregate-table-row-presentation-BjK9YfMI.js +979 -0
- package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
- package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
- package/dist/chunks/assistant-chat-DgiSuFT4.js +8083 -0
- package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
- package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
- package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
- package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
- package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
- package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
- package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
- package/dist/chunks/context-HD9usB1P.js +349 -0
- package/dist/chunks/conversation-sQiWYUOb.js +16 -0
- package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
- package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
- package/dist/chunks/{dashboard-briefing-launcher-A2uVpHCp.js → dashboard-briefing-launcher-Bl3gCeBR.js} +580 -556
- package/dist/chunks/{dashboard-controls-DxTuVis_.js → dashboard-controls-0EX0HiJt.js} +683 -686
- package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
- package/dist/chunks/dashboard-json-6X_2BDiL.js +69 -0
- package/dist/chunks/{dashboard-BPJo-Fnd.js → dashboard-y5BwcvzT.js} +1 -1
- package/dist/chunks/document-dashboard-inputs-BrYYlRVo.js +10678 -0
- package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
- package/dist/chunks/{edit-dashboard-visual-ByV0OwSp.js → edit-dashboard-visual-Bzchfgga.js} +4744 -4746
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
- package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
- package/dist/chunks/index-CqMiAkay.js +3164 -0
- package/dist/chunks/index-CuHybtft.js +51 -0
- package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
- package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
- package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
- package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
- package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-DQ8avoIQ.js} +648 -457
- package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
- package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
- package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
- package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
- package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
- package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
- package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
- package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
- package/dist/chunks/report-preferences-dialog-CWhSbc5_.js +1808 -0
- package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
- package/dist/chunks/save-CfJpQQ68.js +21 -0
- package/dist/chunks/saved-dashboard-context-Dqve2jlB.js +566 -0
- package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-CHu1L-lo.js → semaphor-ready-indicator-ldcwmLoY.js} +65803 -62954
- package/dist/chunks/{shelf-drop-preview-context-i-H6DFyU.js → shelf-drop-preview-context-BWxunXTq.js} +199 -196
- package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
- package/dist/chunks/switch-CvItuC1Q.js +8199 -0
- package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
- package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
- package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
- package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bj63WwHc.js → use-create-flow-overlay-state-RHgzVfcz.js} +331 -339
- package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
- package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
- package/dist/chunks/x-4f5U2XwU.js +100 -0
- package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +823 -661
- package/dist/data-app-sdk/index.js +32 -30
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +23 -22
- package/dist/format-utils/index.js +173 -168
- package/dist/index.js +267 -258
- package/dist/layouts/index.js +236 -24
- 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/assistant-context.d.ts +2 -0
- package/dist/types/assistant-protocol.d.ts +2 -0
- package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
- package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
- package/dist/types/components/assistant/assistant-store.d.ts +52 -0
- package/dist/types/components/assistant/use-assistant.d.ts +38 -0
- package/dist/types/components/index.d.ts +5 -1
- package/dist/types/components/surfboard/filter/types.d.ts +5 -2
- package/dist/types/index.js +50 -51
- package/dist/types/lib/api/invalidate-token.d.ts +7 -0
- package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
- package/dist/types/lib/charts/types.d.ts +7 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
- package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
- package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
- package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
- package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
- package/dist/types/lib/hooks/use-filter-option-browse.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +9 -0
- package/dist/types/lib/print/print-inputs.d.ts +4 -2
- package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
- package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
- package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
- package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
- package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
- package/dist/types/lib/stores/editor-store.d.ts +4 -2
- package/dist/types/lib/types/token-types.d.ts +11 -0
- package/dist/types/lib/utils/card-type-change.d.ts +30 -0
- package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
- package/dist/types/shared/assistant-context/index.d.ts +9 -0
- package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
- package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
- package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
- package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
- package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
- package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
- package/dist/types/shared/assistant-protocol/parts.d.ts +140 -0
- package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
- package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
- package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
- package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
- package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
- package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
- package/dist/types/shared/format-utils/index.d.ts +3 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
- package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
- package/dist/types/shared/layouts/index.d.ts +1 -0
- package/package.json +12 -2
- package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
- package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
- package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
- package/dist/chunks/constants-DNWVy8Y3.js +0 -9
- package/dist/chunks/dashboard-json-B1dEQu98.js +0 -65
- package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
- package/dist/chunks/index-DTcTAGGM.js +0 -4101
- package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
- package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
- package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
- package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
- package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
- package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
- package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
- package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
- package/dist/chunks/report-preferences-dialog-DXPjteCU.js +0 -1623
- package/dist/chunks/save-kO6cIaob.js +0 -34
- package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
- package/dist/chunks/switch-DO8a0EfJ.js +0 -25004
- package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
- package/dist/chunks/x-CXDkqdur.js +0 -149
- package/dist/types/lib/class-utils.d.ts +0 -2
- package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
- package/dist/types/lib/utils.d.ts +0 -51
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { toSemaphorInputSnapshots as rt, toSemaphorInputBinding as tt, toSemaphorSelectionSnapshots as nt, toSemaphorActiveInputSnapshots as X, toSemaphorMatrixIntent as it, toSemaphorSqlIntent as ot, toSemaphorInputOptionsIntent as st, toSemaphorRecordsIntent as at, toSemaphorAnalysisQueryOptions as lt, toSemaphorAnalysisIntent as dt, toSemaphorMetricIntent as ut, hasSemaphorInputValue as fe, normalizeSemaphorInputOptions as qr, toSemaphorInputSpec as Ar } from "../data-app-sdk-adapters/index.js";
|
|
2
2
|
import { jsxs as p, Fragment as Tr, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as Ae, useContext as Q, useState as _, useRef as T, useEffect as B, useMemo as x, Fragment as ct, useId as kr, useCallback as L, useReducer as ft } from "react";
|
|
4
|
-
import { q as pt, u as gt,
|
|
5
|
-
import { a as
|
|
6
|
-
import { m as ht, am as bt, al as vt, A as sr, r as ar, H as St } from "../chunks/matrix-operation-contract-
|
|
4
|
+
import { q as pt, u as gt, F as mt, G as xe, s as yt } from "../chunks/validators-Ej1DdCXa.js";
|
|
5
|
+
import { a as Ro, aw as Lo } from "../chunks/validators-Ej1DdCXa.js";
|
|
6
|
+
import { m as ht, am as bt, al as vt, A as sr, r as ar, H as St } from "../chunks/matrix-operation-contract-B8PBF1Gd.js";
|
|
7
|
+
import "../chunks/analytics-base-schemas-BFAoRlkU.js";
|
|
7
8
|
import "zod";
|
|
8
|
-
import { m as lr } from "../chunks/matrix-formatter-
|
|
9
|
-
import { M as wt, a as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-
|
|
10
|
-
import { X as Tt, C as kt
|
|
9
|
+
import { m as lr } from "../chunks/matrix-formatter-DQ8avoIQ.js";
|
|
10
|
+
import { M as wt, a as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-vKIb_jS6.js";
|
|
11
|
+
import { X as Tt, C as kt } from "../chunks/x-4f5U2XwU.js";
|
|
12
|
+
import { j as Ct } from "../chunks/index-CuHybtft.js";
|
|
11
13
|
function he(e, r, t) {
|
|
12
14
|
return {
|
|
13
15
|
...t,
|
|
@@ -15,13 +17,13 @@ function he(e, r, t) {
|
|
|
15
17
|
role: r
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
|
-
function
|
|
20
|
+
function ho(e) {
|
|
19
21
|
return e;
|
|
20
22
|
}
|
|
21
|
-
function
|
|
23
|
+
function bo(e) {
|
|
22
24
|
return e;
|
|
23
25
|
}
|
|
24
|
-
const
|
|
26
|
+
const vo = {
|
|
25
27
|
source: {
|
|
26
28
|
semantic(e) {
|
|
27
29
|
return {
|
|
@@ -1657,7 +1659,7 @@ function Or() {
|
|
|
1657
1659
|
const e = V[V.length - 1];
|
|
1658
1660
|
e ? window.__SEMAPHOR_DEVTOOLS__ = e.bridge : delete window.__SEMAPHOR_DEVTOOLS__;
|
|
1659
1661
|
}
|
|
1660
|
-
function
|
|
1662
|
+
function So({
|
|
1661
1663
|
id: e,
|
|
1662
1664
|
title: r,
|
|
1663
1665
|
children: t
|
|
@@ -1905,7 +1907,7 @@ function tn({
|
|
|
1905
1907
|
) : null
|
|
1906
1908
|
] });
|
|
1907
1909
|
}
|
|
1908
|
-
function
|
|
1910
|
+
function wo({
|
|
1909
1911
|
queryId: e,
|
|
1910
1912
|
viewId: r,
|
|
1911
1913
|
label: t,
|
|
@@ -4118,7 +4120,7 @@ function Ui() {
|
|
|
4118
4120
|
function Gi() {
|
|
4119
4121
|
return Q(Yr);
|
|
4120
4122
|
}
|
|
4121
|
-
function
|
|
4123
|
+
function Io(e) {
|
|
4122
4124
|
const [r, t] = _(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), i = n ? e.value : r, o = x(
|
|
4123
4125
|
() => qr(e.options),
|
|
4124
4126
|
[e.options]
|
|
@@ -4159,7 +4161,7 @@ function So(e) {
|
|
|
4159
4161
|
};
|
|
4160
4162
|
}, [f, o, s, e, i]);
|
|
4161
4163
|
}
|
|
4162
|
-
function
|
|
4164
|
+
function xo(e) {
|
|
4163
4165
|
const [r, t] = _(() => no(e));
|
|
4164
4166
|
return B(() => {
|
|
4165
4167
|
t((n) => {
|
|
@@ -4209,7 +4211,7 @@ function wo(e) {
|
|
|
4209
4211
|
[e, r]
|
|
4210
4212
|
);
|
|
4211
4213
|
}
|
|
4212
|
-
function
|
|
4214
|
+
function qo(e, r) {
|
|
4213
4215
|
const t = (r == null ? void 0 : r.status) === "success" ? r.options : void 0, n = x(() => Yi(t), [t]);
|
|
4214
4216
|
B(() => {
|
|
4215
4217
|
Ji(e.value, t) || e.clear();
|
|
@@ -4231,7 +4233,7 @@ function Yi(e) {
|
|
|
4231
4233
|
function wr(e) {
|
|
4232
4234
|
return `${typeof e}:${String(e)}`;
|
|
4233
4235
|
}
|
|
4234
|
-
function
|
|
4236
|
+
function Ao(e, r = {}) {
|
|
4235
4237
|
const t = x(
|
|
4236
4238
|
() => r.inputs ? {
|
|
4237
4239
|
...e,
|
|
@@ -4654,7 +4656,7 @@ function no(e) {
|
|
|
4654
4656
|
function Ie(e) {
|
|
4655
4657
|
throw new Error(`Unsupported Semaphor query kind: ${JSON.stringify(e)}`);
|
|
4656
4658
|
}
|
|
4657
|
-
function
|
|
4659
|
+
function To(e) {
|
|
4658
4660
|
const [r, t] = _(() => xr(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), i = xr(
|
|
4659
4661
|
e,
|
|
4660
4662
|
n ? e.tuples || [] : r
|
|
@@ -4732,7 +4734,7 @@ function Zr(e, r) {
|
|
|
4732
4734
|
function io(e) {
|
|
4733
4735
|
return !e || typeof e == "boolean" || e.enabled === !1 ? null : e.autoRenderDevtools === !0 ? {} : e.autoRenderDevtools ? e.autoRenderDevtools : null;
|
|
4734
4736
|
}
|
|
4735
|
-
function
|
|
4737
|
+
function ko({
|
|
4736
4738
|
token: e,
|
|
4737
4739
|
apiBaseUrl: r,
|
|
4738
4740
|
executor: t,
|
|
@@ -4755,21 +4757,21 @@ function Ao({
|
|
|
4755
4757
|
] }) });
|
|
4756
4758
|
}
|
|
4757
4759
|
export {
|
|
4758
|
-
|
|
4760
|
+
ko as SemaphorDataAppProvider,
|
|
4759
4761
|
tn as SemaphorDevtools,
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
+
wo as SemaphorDevtoolsInspectButton,
|
|
4763
|
+
So as SemaphorViewBoundary,
|
|
4762
4764
|
_i as createSemaphorQueryExecutor,
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
+
ho as defineSemaphorDataApp,
|
|
4766
|
+
bo as defineSemaphorInput,
|
|
4765
4767
|
Ji as isSemaphorInputValueValidForOptions,
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4768
|
+
vo as semaphor,
|
|
4769
|
+
Ro as semaphorMetricAggregate,
|
|
4770
|
+
Lo as semaphorMetricMeasureBindingKey,
|
|
4771
|
+
qo as useClearInvalidSemaphorInputValue,
|
|
4770
4772
|
Dr as useSemaphorDevtools,
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4773
|
+
Io as useSemaphorInput,
|
|
4774
|
+
xo as useSemaphorInputs,
|
|
4775
|
+
Ao as useSemaphorQuery,
|
|
4776
|
+
To as useSemaphorSelection
|
|
4775
4777
|
};
|
|
@@ -1,6 +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-
|
|
2
|
+
import { m as v, s as m, p as I, a as S } from "../chunks/validators-Ej1DdCXa.js";
|
|
3
|
+
import { a as F, c as b } from "../chunks/matrix-operation-contract-B8PBF1Gd.js";
|
|
4
|
+
import "../chunks/analytics-base-schemas-BFAoRlkU.js";
|
|
4
5
|
import "zod";
|
|
5
6
|
function w(i) {
|
|
6
7
|
var n, r, o;
|
|
@@ -28,14 +29,14 @@ function w(i) {
|
|
|
28
29
|
...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function j(i) {
|
|
32
33
|
return {
|
|
33
34
|
...w(i),
|
|
34
35
|
...i.timeWindow ? { timeWindow: i.timeWindow } : {},
|
|
35
36
|
...i.analysis ? { analysis: i.analysis } : {}
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function K(i) {
|
|
39
40
|
return {
|
|
40
41
|
...i.chartTitle ? { chartTitle: i.chartTitle } : {},
|
|
41
42
|
...i.chartType ? { chartType: i.chartType } : {},
|
|
@@ -99,7 +100,7 @@ function f(i, t) {
|
|
|
99
100
|
aggregate: i.aggregate || t.aggregate
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function V(i) {
|
|
103
104
|
var n, r;
|
|
104
105
|
if ("sort" in i)
|
|
105
106
|
throw new Error(
|
|
@@ -148,7 +149,7 @@ function O(i) {
|
|
|
148
149
|
return n;
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function Q(i) {
|
|
152
153
|
var n, r, o;
|
|
153
154
|
const t = s(i);
|
|
154
155
|
if (t.kind === "sql")
|
|
@@ -178,7 +179,7 @@ function V(i) {
|
|
|
178
179
|
...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
|
|
179
180
|
};
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function D(i) {
|
|
182
183
|
var t;
|
|
183
184
|
return {
|
|
184
185
|
version: 1,
|
|
@@ -196,7 +197,7 @@ function Q(i) {
|
|
|
196
197
|
rationale: i.rationale
|
|
197
198
|
};
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
+
function J(i) {
|
|
200
201
|
const { id: t, label: n, inputs: r, matrixWindowRequest: o, ...e } = i, { queryKind: T, ...p } = e;
|
|
201
202
|
return v.parse({ ...p, kind: "matrix" });
|
|
202
203
|
}
|
|
@@ -236,17 +237,17 @@ function h(i) {
|
|
|
236
237
|
function z(i) {
|
|
237
238
|
return i === "grain" || i === "measure" || i === "dimension" || i === "aggregation" || i === "sqlParam";
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
+
function L(i) {
|
|
240
241
|
const t = d(i);
|
|
241
242
|
return t.length > 0 ? t : void 0;
|
|
242
243
|
}
|
|
243
244
|
function C(i) {
|
|
244
245
|
return (i || []).map(P);
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
+
function N(i) {
|
|
247
248
|
return C(i).filter((t) => t.isActive);
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function U(i) {
|
|
250
251
|
const t = (i || []).flatMap((n) => {
|
|
251
252
|
const r = "toAnalyticsSelection" in n ? n.toAnalyticsSelection() : n;
|
|
252
253
|
return r ? [F.parse(r)] : [];
|
|
@@ -272,7 +273,7 @@ function g(i) {
|
|
|
272
273
|
controlRole: i.role
|
|
273
274
|
};
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
+
function X(i = []) {
|
|
276
277
|
return i.map(
|
|
277
278
|
(t) => typeof t == "object" ? t : {
|
|
278
279
|
label: String(t),
|
|
@@ -343,18 +344,18 @@ function c(i, t) {
|
|
|
343
344
|
}
|
|
344
345
|
export {
|
|
345
346
|
u as hasSemaphorInputValue,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
347
|
+
X as normalizeSemaphorInputOptions,
|
|
348
|
+
N as toSemaphorActiveInputSnapshots,
|
|
349
|
+
j as toSemaphorAnalysisIntent,
|
|
350
|
+
K as toSemaphorAnalysisQueryOptions,
|
|
350
351
|
h as toSemaphorInputBinding,
|
|
351
|
-
|
|
352
|
-
|
|
352
|
+
L as toSemaphorInputBindings,
|
|
353
|
+
Q as toSemaphorInputOptionsIntent,
|
|
353
354
|
C as toSemaphorInputSnapshots,
|
|
354
355
|
g as toSemaphorInputSpec,
|
|
355
|
-
|
|
356
|
+
J as toSemaphorMatrixIntent,
|
|
356
357
|
w as toSemaphorMetricIntent,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
V as toSemaphorRecordsIntent,
|
|
359
|
+
U as toSemaphorSelectionSnapshots,
|
|
360
|
+
D as toSemaphorSqlIntent
|
|
360
361
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as Q } from "../chunks/matrix-operation-contract-
|
|
1
|
+
import { B as b, l as N, s as E, E as v, u as O, F as K, G as l } from "../chunks/validators-Ej1DdCXa.js";
|
|
2
|
+
import { m as Q } from "../chunks/matrix-operation-contract-B8PBF1Gd.js";
|
|
3
|
+
import "../chunks/analytics-base-schemas-BFAoRlkU.js";
|
|
3
4
|
import "zod";
|
|
4
|
-
import { p as W } from "../chunks/report-runtime-context-
|
|
5
|
-
import { r as U } from "../chunks/source-entity-resolution-
|
|
5
|
+
import { p as W } from "../chunks/report-runtime-context-B984Nq1E.js";
|
|
6
|
+
import { r as U } from "../chunks/source-entity-resolution-CVA1a85c.js";
|
|
6
7
|
import { toSemaphorMetricIntent as G, toSemaphorAnalysisIntent as J, toSemaphorRecordsIntent as V, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as X, toSemaphorInputOptionsIntent as Y } from "../data-app-sdk-adapters/index.js";
|
|
7
|
-
import { m as Z } from "../chunks/matrix-card-
|
|
8
|
+
import { m as Z } from "../chunks/matrix-card-CJn1hB5V.js";
|
|
8
9
|
function ee({
|
|
9
10
|
intent: e,
|
|
10
11
|
field: r,
|
|
@@ -21,16 +22,16 @@ function ee({
|
|
|
21
22
|
const n = q(
|
|
22
23
|
r,
|
|
23
24
|
i.selectedField
|
|
24
|
-
), s =
|
|
25
|
+
), s = P(t), c = y(n);
|
|
25
26
|
return re(
|
|
26
27
|
s,
|
|
27
28
|
i.allowedRelatedRoles
|
|
28
29
|
) ? c === s : !1;
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function Ne(e) {
|
|
31
32
|
return e.kind === "records" ? ae(e) : e.kind === "metric" ? ne(e) : [];
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function P(e) {
|
|
34
35
|
const r = b(e.role);
|
|
35
36
|
if (r === "measure")
|
|
36
37
|
return "measure";
|
|
@@ -106,7 +107,7 @@ function ie(e, r, t) {
|
|
|
106
107
|
function ae(e) {
|
|
107
108
|
var o, i;
|
|
108
109
|
const r = w(e), t = (o = e.orderBy) != null && o.field ? I(r, e.orderBy.field) : void 0;
|
|
109
|
-
return
|
|
110
|
+
return H([
|
|
110
111
|
...r.map(
|
|
111
112
|
(n) => p(
|
|
112
113
|
n,
|
|
@@ -134,7 +135,7 @@ function ne(e) {
|
|
|
134
135
|
e.dimensions || [],
|
|
135
136
|
e.orderBy.field
|
|
136
137
|
) : void 0;
|
|
137
|
-
return
|
|
138
|
+
return H([
|
|
138
139
|
...e.measures.map((i) => p(i, [])),
|
|
139
140
|
...e.primaryMeasure ? [p(e.primaryMeasure, [])] : [],
|
|
140
141
|
...(e.dimensions || []).map(
|
|
@@ -167,7 +168,7 @@ function p(e, r, t = {}) {
|
|
|
167
168
|
...t
|
|
168
169
|
};
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
+
function H(e) {
|
|
171
172
|
const r = [];
|
|
172
173
|
return e.forEach((t) => {
|
|
173
174
|
r.some(
|
|
@@ -185,7 +186,7 @@ function se(e, r) {
|
|
|
185
186
|
return T(e.field, r.field) && e.allowedRelatedRoles.join("|") === r.allowedRelatedRoles.join("|") && (e.unsupportedRelatedRoleMessage || "") === (r.unsupportedRelatedRoleMessage || "") && (e.recommendedNextStep || "") === (r.recommendedNextStep || "");
|
|
186
187
|
}
|
|
187
188
|
function A(e, r) {
|
|
188
|
-
return
|
|
189
|
+
return E(e, r);
|
|
189
190
|
}
|
|
190
191
|
function T(e, r) {
|
|
191
192
|
return A(e, r) && de(
|
|
@@ -197,7 +198,7 @@ function de(e, r) {
|
|
|
197
198
|
return !!(e && (!r || e === r));
|
|
198
199
|
}
|
|
199
200
|
function y(e) {
|
|
200
|
-
return
|
|
201
|
+
return P(e);
|
|
201
202
|
}
|
|
202
203
|
function j({
|
|
203
204
|
intent: e,
|
|
@@ -297,7 +298,7 @@ function ue(e, r) {
|
|
|
297
298
|
function fe(e) {
|
|
298
299
|
const r = [];
|
|
299
300
|
if (!e.intent.filters) return r;
|
|
300
|
-
const t = e.intent.source, i =
|
|
301
|
+
const t = e.intent.source, i = O(
|
|
301
302
|
e.fieldCatalogs.flatMap((a) => [
|
|
302
303
|
a.source,
|
|
303
304
|
...a.sourceAliases ?? []
|
|
@@ -428,7 +429,7 @@ function me(e, r = {}) {
|
|
|
428
429
|
}
|
|
429
430
|
return { ok: !0, analysisOptions: i };
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
+
function Ee(e) {
|
|
432
433
|
const r = e.queries.map(
|
|
433
434
|
(i, n) => pe(i, n, {
|
|
434
435
|
fieldCatalogs: e.fieldCatalogs || [],
|
|
@@ -449,7 +450,7 @@ function Ne(e) {
|
|
|
449
450
|
function pe(e, r, t) {
|
|
450
451
|
const o = `queries.${r}`;
|
|
451
452
|
try {
|
|
452
|
-
const i = ge(e), n =
|
|
453
|
+
const i = ge(e), n = He(e, i), s = K(i), c = [
|
|
453
454
|
...Re({
|
|
454
455
|
querySpec: e,
|
|
455
456
|
queryId: n,
|
|
@@ -489,7 +490,7 @@ function pe(e, r, t) {
|
|
|
489
490
|
pathPrefix: o,
|
|
490
491
|
validateTimezone: t.validateTimezone
|
|
491
492
|
})
|
|
492
|
-
], a =
|
|
493
|
+
], a = Pe(s, c);
|
|
493
494
|
return {
|
|
494
495
|
queryHook: e.queryHook,
|
|
495
496
|
queryId: n,
|
|
@@ -923,7 +924,7 @@ function _(e, r) {
|
|
|
923
924
|
source: r.intent.source
|
|
924
925
|
};
|
|
925
926
|
}
|
|
926
|
-
function
|
|
927
|
+
function Pe(e, r) {
|
|
927
928
|
const t = D(r);
|
|
928
929
|
return {
|
|
929
930
|
ok: t.ok && e.ok,
|
|
@@ -1010,7 +1011,7 @@ function x(e) {
|
|
|
1010
1011
|
}
|
|
1011
1012
|
};
|
|
1012
1013
|
}
|
|
1013
|
-
function
|
|
1014
|
+
function He(e, r) {
|
|
1014
1015
|
return l(r) || z(e.spec);
|
|
1015
1016
|
}
|
|
1016
1017
|
function z(e) {
|
|
@@ -1024,7 +1025,7 @@ export {
|
|
|
1024
1025
|
I as findMatchingRelatedProjectionField,
|
|
1025
1026
|
re as isAllowedRelatedProjectionRole,
|
|
1026
1027
|
me as normalizeSemaphorAnalysisQueryOptions,
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1028
|
+
P as normalizeSemaphorFieldRole,
|
|
1029
|
+
Ne as relatedProjectionFieldCandidatesForIntent,
|
|
1030
|
+
Ee as validateSemaphorDataAppQuerySpecs
|
|
1030
1031
|
};
|