react-semaphor 0.1.555 → 0.1.556
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 +10 -10
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +438 -455
- package/dist/briefings/index.js +6 -6
- package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
- package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-C7Acww1T.js} +15 -15
- package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-7iZErWnR.js} +3 -3
- package/dist/chunks/comparison-window-caption-BseG5aOZ.js +1221 -0
- package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-ChuKjx27.js} +31 -33
- package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-BU6rE5kV.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-qrYd2zkN.js} +15 -15
- package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-BsapXI2H.js} +14 -14
- package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-CJqPqYnI.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-BNSprf5_.js} +12 -12
- package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-CjAdV-WG.js} +4603 -4687
- package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BTrqtFkh.js} +917 -987
- package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CJTJDCym.js} +4 -4
- package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-CTVf3dG3.js} +2904 -3102
- package/dist/chunks/{index-B2k6KtUN.js → index-B_vIRa-q.js} +12 -19
- package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
- package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-Cg0ioFGQ.js} +21 -21
- package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-yYibXSw1.js} +3 -3
- package/dist/chunks/{matrix-formatter-K2OVPJQI.js → matrix-formatter-C2kjsCDf.js} +44 -44
- package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-DEEauKXC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-C1G6AJNh.js} +33 -33
- package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-BfcmwxM1.js} +4 -4
- package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +56 -0
- package/dist/chunks/pivot-result-identity-CWi5WrrY.js +77 -0
- package/dist/chunks/{raw-temporal-contract-WuXA8jBP.js → raw-temporal-contract-CjHaUIsE.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DWzLIHc3.js} +8 -8
- package/dist/chunks/{report-preferences-dialog-D_KyuEFx.js → report-preferences-dialog-D_wrbIQt.js} +17 -17
- package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-BgM-iNWB.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Df8V5QHW.js} +1415 -1567
- package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-VvXI6r03.js} +9 -9
- package/dist/chunks/{selection-reducer-yw_JgICP.js → selection-reducer-By4CSmEF.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-fejZmdq9.js} +49593 -56071
- package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-BuTCXe-S.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-B46EZIzX.js} +1 -1
- package/dist/chunks/{switch-B-UTI6v-.js → switch-Bq92UGId.js} +3 -3
- package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-noKl8-en.js} +1 -1
- package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-PpINOzw8.js} +3 -3
- package/dist/chunks/{temporal-bucket-C4rqmwaQ.js → temporal-bucket-DzyadxVY.js} +53 -53
- package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +879 -0
- package/dist/chunks/{token-types-DYECHYGH.js → token-types--0bgRCaO.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-Cz-ve64t.js} +7 -7
- package/dist/chunks/{validators-ClKLGDGZ.js → validators-CZo_H4E6.js} +305 -307
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +60 -60
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +207 -223
- package/dist/index.js +96 -97
- package/dist/layouts/index.js +1 -1
- package/dist/pdf-export-policy/index.js +9 -11
- 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/brand-studio/brand-studio-draft.d.ts +0 -3
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
- package/dist/types/index.js +27 -28
- package/dist/types/lib/api/exports-api.d.ts +1 -1
- package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
- package/dist/types/lib/document/document-edits.d.ts +1 -1
- package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
- package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
- package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
- package/dist/types/lib/types/common-types.d.ts +0 -7
- package/dist/types/lib/types/explorer-types.d.ts +1 -14
- package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
- package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
- package/dist/types/shared/format-utils/index.d.ts +0 -2
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
- package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
- package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
- package/package.json +2 -2
- package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
- package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
- package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
- package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
- package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
- package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
- package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
package/dist/dashboard/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as o } from "../chunks/dashboard-
|
|
2
|
-
import { C as s, E as C } from "../chunks/table-settings-
|
|
1
|
+
import { D as o } from "../chunks/dashboard-BU6rE5kV.js";
|
|
2
|
+
import { C as s, E as C } from "../chunks/table-settings-PpINOzw8.js";
|
|
3
3
|
export {
|
|
4
4
|
s as CONTROL_CARD_DEFAULT_VALUE,
|
|
5
5
|
o as Dashboard,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
var Ot = Object.defineProperty;
|
|
2
2
|
var Nt = (e, t, a) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var ke = (e, t, a) => Nt(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { D as it, r as It, b as qt, c as Pt, a as nt, d as Mt } from "../chunks/filter-reach-copy-
|
|
5
|
-
import { N as yi, R as _i, f as Ci, j as Si, l as vi, k as wi, u as xi, q as Ti, e as Di, i as ki, y as $i, z as Fi, s as Ai, v as Ri, t as Ei, m as Oi, n as Ni, p as qi, g as Pi, o as Mi, h as Li, x as Bi, w as Vi } from "../chunks/filter-reach-copy-
|
|
6
|
-
import { M as Lt, N as Bt, O as $e, P as Vt, Q as Gt, R as Ut, S as jt, T as zt, U as Qt, V as Kt, W as
|
|
7
|
-
import { cz as Ui, aT as ji, ca as zi, cb as Qi, cq as Ki, cp as
|
|
8
|
-
import { x as Da,
|
|
9
|
-
import "../chunks/matrix-operation-contract
|
|
10
|
-
import "../chunks/analytics-base-schemas-
|
|
4
|
+
import { D as it, r as It, b as qt, c as Pt, a as nt, d as Mt } from "../chunks/filter-reach-copy-BTrqtFkh.js";
|
|
5
|
+
import { N as yi, R as _i, f as Ci, j as Si, l as vi, k as wi, u as xi, q as Ti, e as Di, i as ki, y as $i, z as Fi, s as Ai, v as Ri, t as Ei, m as Oi, n as Ni, p as qi, g as Pi, o as Mi, h as Li, x as Bi, w as Vi } from "../chunks/filter-reach-copy-BTrqtFkh.js";
|
|
6
|
+
import { M as Lt, N as Bt, O as $e, P as Vt, Q as Gt, R as Ut, S as jt, T as zt, U as Qt, V as Kt, W as Wt, X as Ht, Y as de, Z as Yt, _ as Xt, $ as fe, a0 as Jt, a1 as Zt, a2 as Me, a3 as yt, a4 as oe, a5 as ne, a6 as Ee, a7 as ea, a8 as Le, a9 as ta, aa, ab as sa, ac as ot, ad as ia, ae as na, af as _t, ag as ie, ah as rt, ai as oa, aj as ra, ak as Oe, al as da, am as dt, an as la, ao as lt, ap as ca, aq as ce, ar as ua, as as ct, b as ha, at as fa, au as pa, av as ma, aw as ga, ax as ut, ay as ba, az as Ia, aA as ya, aB as _a, aC as Ca, aD as Sa, aE as va, aF as wa, aG as xa, aH as Fe, aI as Ta } from "../chunks/global-date-filter-utils-CTVf3dG3.js";
|
|
7
|
+
import { cz as Ui, aT as ji, ca as zi, cb as Qi, cq as Ki, cp as Wi, cj as Hi, cr as Yi, cs as Xi, bQ as Ji, bR as Zi, bS as en, bN as tn, bO as an, bP as sn, bJ as nn, bK as on, bM as rn, bL as dn, bT as ln, cM as cn, cc as un, b9 as hn, b8 as fn, c4 as pn, cB as mn, bj as gn, b3 as bn, cF as In, cn as yn, co as _n, aQ as Cn, cE as Sn, bm as vn, cC as wn, bA as xn, ci as Tn, bU as Dn, bB as kn, cO as $n, aL as Fn, cG as An, cm as Rn, aM as En, c3 as On, c2 as Nn, bd as qn, a$ as Pn, b5 as Mn, cK as Ln, bv as Bn, d as Vn, a as Gn, bn as Un, aN as jn, cy as zn, cQ as Qn, b0 as Kn, b1 as Wn, b2 as Hn, bi as Yn, bk as Xn, c7 as Jn, g as Zn, bI as eo, br as to, bH as ao, bE as so, c8 as io, aV as no, aW as oo, cI as ro, bo as lo, ba as co, ck as uo, bf as ho, cw as fo, bt as po, b4 as mo, b_ as go, cP as bo, aR as Io, c0 as yo, c1 as _o, cL as Co, by as So, bq as vo, bs as wo, be as xo, bu as To, ct as Do, cH as ko, aO as $o, cA as Fo, bx as Ao, bb as Ro, bD as Eo, cu as Oo, c5 as No, c6 as qo, aU as Po, cN as Mo, c9 as Lo, cg as Bo, bG as Vo, aY as Go, cv as Uo, cJ as jo, aJ as zo, cx as Qo, bz as Ko, bc as Wo, bW as Ho, a_ as Yo, b6 as Xo, b7 as Jo, cd as Zo, ce as er, aZ as tr, bY as ar, bZ as sr, bX as ir, aX as nr, bF as or, cf as rr, bw as dr, cl as lr, aK as cr, bC as ur, b$ as hr, aS as fr, cD as pr, bl as mr, bp as gr, aP as br, bV as Ir, bh as yr, bg as _r, ch as Cr } from "../chunks/global-date-filter-utils-CTVf3dG3.js";
|
|
8
|
+
import { x as Da, ao as Be, ap as ka, a3 as Ct, ab as $a, a6 as Fa, ad as St, aD as Aa, aB as vt, aC as Ra } from "../chunks/validators-CZo_H4E6.js";
|
|
9
|
+
import "../chunks/matrix-operation-contract-C1G6AJNh.js";
|
|
10
|
+
import "../chunks/analytics-base-schemas-BUFUoO6G.js";
|
|
11
11
|
import "zod";
|
|
12
|
-
import { a as Ea, r as Oa } from "../chunks/index-
|
|
12
|
+
import { a as Ea, r as Oa } from "../chunks/index-dIV-Gdsb.js";
|
|
13
13
|
import { n as Na } from "../chunks/operators-B3zZoskU.js";
|
|
14
|
-
import { a as vr, b as wr, r as xr } from "../chunks/raw-temporal-presentation-
|
|
15
|
-
import { w as re } from "../chunks/table-settings-
|
|
16
|
-
import { D as Dr, x as kr, y as $r, G as Fr, F as Ar, z as Rr, H as Er, B as Or, A as Nr, v as qr } from "../chunks/table-settings-
|
|
17
|
-
import { v as ve, w as qa } from "../chunks/resolve-dashboard-input-context-
|
|
18
|
-
import { L as Mr, P as Lr, V as Br, Q as Vr, b as Gr, T as Ur, O as jr, z as zr, W as Qr, X as Kr, S as
|
|
19
|
-
import {
|
|
20
|
-
import { e as Pa, w as Ma } from "../chunks/metric-comparison-
|
|
21
|
-
import { p as La } from "../chunks/report-runtime-context-
|
|
22
|
-
import { i as Cd, a as Sd, m as vd, b as wd, r as xd } from "../chunks/matrix-card-
|
|
23
|
-
import { n as ht, t as Ba } from "../chunks/matrix-analytical-definition-
|
|
14
|
+
import { a as vr, b as wr, r as xr } from "../chunks/raw-temporal-presentation-DWzLIHc3.js";
|
|
15
|
+
import { w as re } from "../chunks/table-settings-PpINOzw8.js";
|
|
16
|
+
import { D as Dr, x as kr, y as $r, G as Fr, F as Ar, z as Rr, H as Er, B as Or, A as Nr, v as qr } from "../chunks/table-settings-PpINOzw8.js";
|
|
17
|
+
import { v as ve, w as qa } from "../chunks/resolve-dashboard-input-context-Df8V5QHW.js";
|
|
18
|
+
import { L as Mr, P as Lr, V as Br, Q as Vr, b as Gr, T as Ur, O as jr, z as zr, W as Qr, X as Kr, S as Wr, H as Hr, I as Yr, M as Xr, A as Jr, B as Zr, N as ed, K as td, x as ad, y as sd, p as id, U as nd, J as od, F as rd, R as dd, C as ld, E as cd, D as ud, G as hd } from "../chunks/resolve-dashboard-input-context-Df8V5QHW.js";
|
|
19
|
+
import { B as pd, A as md, y as gd, z as bd, C as Id, D as yd } from "../chunks/temporal-input-presentation-CJWS4d0L.js";
|
|
20
|
+
import { e as Pa, w as Ma } from "../chunks/metric-comparison-BfcmwxM1.js";
|
|
21
|
+
import { p as La } from "../chunks/report-runtime-context-BgM-iNWB.js";
|
|
22
|
+
import { i as Cd, a as Sd, m as vd, b as wd, r as xd } from "../chunks/matrix-card-yYibXSw1.js";
|
|
23
|
+
import { n as ht, t as Ba } from "../chunks/matrix-analytical-definition-Cg0ioFGQ.js";
|
|
24
24
|
import "../chunks/index-CuHybtft.js";
|
|
25
25
|
import "../value-format-preferences/index.js";
|
|
26
26
|
import "../chunks/_commonjsHelpers-DimLPMtv.js";
|
|
@@ -131,11 +131,11 @@ function Ka(e) {
|
|
|
131
131
|
var t;
|
|
132
132
|
return se(e) !== "physical" ? null : Z((t = Y(e)) == null ? void 0 : t.tableName);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Wa(e) {
|
|
135
135
|
var t;
|
|
136
136
|
return se(e) !== "physical" ? "" : Z((t = Y(e)) == null ? void 0 : t.databaseName) || "";
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ha(e) {
|
|
139
139
|
var t;
|
|
140
140
|
return se(e) !== "physical" ? "" : Z((t = Y(e)) == null ? void 0 : t.schemaName) || "";
|
|
141
141
|
}
|
|
@@ -161,7 +161,7 @@ function Ve(e, t) {
|
|
|
161
161
|
const a = za(e);
|
|
162
162
|
return xt(e) === t.domainId ? a && t.datasetId ? a === t.datasetId : ja(e) === t.datasetName : !1;
|
|
163
163
|
}
|
|
164
|
-
return t.kind === "physical" ? Qa(e) === t.connectionId && Ka(e) === t.tableName &&
|
|
164
|
+
return t.kind === "physical" ? Qa(e) === t.connectionId && Ka(e) === t.tableName && Wa(e) === (t.databaseName || "") && Ha(e) === (t.schemaName || "") : !1;
|
|
165
165
|
}
|
|
166
166
|
function di(e, t) {
|
|
167
167
|
return e.find(
|
|
@@ -660,7 +660,7 @@ function li(e) {
|
|
|
660
660
|
...b ? { defaultInputValues: b } : {}
|
|
661
661
|
}, warnings: s, skippedOperations: r };
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function W(e, t, a) {
|
|
664
664
|
return a ? { code: e, message: t, cardId: a } : { code: e, message: t };
|
|
665
665
|
}
|
|
666
666
|
function he(e, t) {
|
|
@@ -760,7 +760,7 @@ function Is(e, t) {
|
|
|
760
760
|
const a = we(e).filter(me);
|
|
761
761
|
if (a.length === 0)
|
|
762
762
|
return t.push(
|
|
763
|
-
|
|
763
|
+
W(
|
|
764
764
|
"missing_materializable_dataset",
|
|
765
765
|
"No semantic or physical source could be converted into the current dashboard authoring dataset reference."
|
|
766
766
|
)
|
|
@@ -771,7 +771,7 @@ function Is(e, t) {
|
|
|
771
771
|
)
|
|
772
772
|
);
|
|
773
773
|
return a.length > 1 && (!s || r.length !== 1) ? (t.push(
|
|
774
|
-
|
|
774
|
+
W(
|
|
775
775
|
"multiple_datasets_out_of_scope",
|
|
776
776
|
"The dashboard authoring compiler supports multiple datasets only within one semantic domain; using the first source and deferring the rest."
|
|
777
777
|
)
|
|
@@ -841,14 +841,14 @@ function xs(e) {
|
|
|
841
841
|
function Ts(e, t, a, s, r, n) {
|
|
842
842
|
if (e.kind !== "filter")
|
|
843
843
|
return n.push(
|
|
844
|
-
|
|
844
|
+
W(
|
|
845
845
|
"control_inputs_deferred",
|
|
846
846
|
`Control input "${e.label}" is represented in the protocol but not yet materialized by the dashboard authoring adapter.`
|
|
847
847
|
)
|
|
848
848
|
), null;
|
|
849
849
|
if (!ge(e.field) || typeof e.field.name != "string")
|
|
850
850
|
return n.push(
|
|
851
|
-
|
|
851
|
+
W(
|
|
852
852
|
"filter_requires_field",
|
|
853
853
|
`Filter "${e.label || e.id}" needs a field before the dashboard compiler can materialize it.`
|
|
854
854
|
)
|
|
@@ -861,7 +861,7 @@ function Ts(e, t, a, s, r, n) {
|
|
|
861
861
|
}), d = (i == null ? void 0 : i.kind) === "semantic" || (i == null ? void 0 : i.kind) === "physical" ? i.connectionId : void 0;
|
|
862
862
|
if (!d)
|
|
863
863
|
return n.push(
|
|
864
|
-
|
|
864
|
+
W(
|
|
865
865
|
"filter_requires_connection_id",
|
|
866
866
|
`Filter "${e.label}" needs a source connectionId before the dashboard compiler can materialize it.`
|
|
867
867
|
)
|
|
@@ -925,7 +925,7 @@ function Re(e) {
|
|
|
925
925
|
r ? t.push(r) : a.push(s);
|
|
926
926
|
}
|
|
927
927
|
return a.length > 0 && e.warnings.push(
|
|
928
|
-
|
|
928
|
+
W(
|
|
929
929
|
"input_scope_view_not_found",
|
|
930
930
|
`Filter "${e.inputLabel}" referenced unknown view ids: ${a.join(", ")}.`
|
|
931
931
|
)
|
|
@@ -961,7 +961,7 @@ function Ds(e) {
|
|
|
961
961
|
warnings: e.warnings
|
|
962
962
|
});
|
|
963
963
|
return n.length === 0 ? (e.warnings.push(
|
|
964
|
-
|
|
964
|
+
W(
|
|
965
965
|
"input_scope_has_no_materialized_cards",
|
|
966
966
|
`Filter "${e.inputLabel}" was deferred because its view scope does not match any materialized cards.`
|
|
967
967
|
)
|
|
@@ -970,7 +970,7 @@ function Ds(e) {
|
|
|
970
970
|
const t = e.sectionIdToCardIds.get(e.protocolScope.sectionId) || [];
|
|
971
971
|
if (t.length === 0)
|
|
972
972
|
return e.warnings.push(
|
|
973
|
-
|
|
973
|
+
W(
|
|
974
974
|
"input_scope_section_not_found",
|
|
975
975
|
`Filter "${e.inputLabel}" was deferred because section "${e.protocolScope.sectionId}" does not match any materialized cards.`
|
|
976
976
|
)
|
|
@@ -994,9 +994,9 @@ function ci(e) {
|
|
|
994
994
|
var $, _, g;
|
|
995
995
|
const t = [], a = Fa(e);
|
|
996
996
|
for (const A of a.warnings)
|
|
997
|
-
t.push(
|
|
997
|
+
t.push(W(A.code, A.message));
|
|
998
998
|
for (const A of a.errors)
|
|
999
|
-
t.push(
|
|
999
|
+
t.push(W(A.code, A.message));
|
|
1000
1000
|
const s = ys(e, t), r = [], n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set();
|
|
1001
1001
|
let y = 0;
|
|
1002
1002
|
for (const [A, c] of s.sections.entries()) {
|
|
@@ -1009,7 +1009,7 @@ function ci(e) {
|
|
|
1009
1009
|
);
|
|
1010
1010
|
if (!N) {
|
|
1011
1011
|
t.push(
|
|
1012
|
-
|
|
1012
|
+
W(
|
|
1013
1013
|
"unsupported_presentation",
|
|
1014
1014
|
`Dashboard presentation "${(($ = T.presentation) == null ? void 0 : $.kind) || "unknown"}" is not supported by the dashboard authoring adapter.`,
|
|
1015
1015
|
`card-${R}`
|
|
@@ -1019,7 +1019,7 @@ function ci(e) {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
if (((_ = T.analytics) == null ? void 0 : _.kind) === "sql") {
|
|
1021
1021
|
t.push(
|
|
1022
|
-
|
|
1022
|
+
W(
|
|
1023
1023
|
"sql_intent_deferred",
|
|
1024
1024
|
"SQL analytics intent is valid protocol, but the current dashboard authoring adapter only materializes semantic and physical config-card intents.",
|
|
1025
1025
|
`card-${R}`
|
|
@@ -1109,12 +1109,12 @@ const ui = [
|
|
|
1109
1109
|
"queryConfig",
|
|
1110
1110
|
"tableConfig"
|
|
1111
1111
|
];
|
|
1112
|
-
class
|
|
1112
|
+
class H extends Error {
|
|
1113
1113
|
constructor(a, s, r) {
|
|
1114
1114
|
super(a);
|
|
1115
1115
|
ke(this, "field");
|
|
1116
1116
|
ke(this, "details");
|
|
1117
|
-
Object.setPrototypeOf(this,
|
|
1117
|
+
Object.setPrototypeOf(this, H.prototype), this.name = "CardQueryRequestError", this.field = s, this.details = r;
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
function je(e) {
|
|
@@ -1131,7 +1131,7 @@ function ks(e, t = {}) {
|
|
|
1131
1131
|
if (a.calendarContext !== void 0) {
|
|
1132
1132
|
const i = La(a.calendarContext);
|
|
1133
1133
|
if (!i.ok)
|
|
1134
|
-
throw new
|
|
1134
|
+
throw new H(
|
|
1135
1135
|
`${s}calendarContext: ${i.issues.map((d) => d.message).join("; ")}`,
|
|
1136
1136
|
"calendarContext",
|
|
1137
1137
|
i.issues
|
|
@@ -1140,7 +1140,7 @@ function ks(e, t = {}) {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
const n = zt(a.resolvedPrimaryDateField);
|
|
1142
1142
|
if (!n.ok)
|
|
1143
|
-
throw new
|
|
1143
|
+
throw new H(
|
|
1144
1144
|
`${s}${Qt(n.issues)}`,
|
|
1145
1145
|
"resolvedPrimaryDateField",
|
|
1146
1146
|
n.issues
|
|
@@ -1148,7 +1148,7 @@ function ks(e, t = {}) {
|
|
|
1148
1148
|
if (a.resolvedPrimaryDateField && (r.resolvedPrimaryDateField = a.resolvedPrimaryDateField), a.globalDateComparison !== void 0) {
|
|
1149
1149
|
const i = Pa(a.globalDateComparison);
|
|
1150
1150
|
if (!i.ok)
|
|
1151
|
-
throw new
|
|
1151
|
+
throw new H(
|
|
1152
1152
|
`${s}Invalid globalDateComparison: ${i.errors.map((d) => `${d.path}: ${d.message}`).join("; ")}`,
|
|
1153
1153
|
"globalDateComparison",
|
|
1154
1154
|
i.errors
|
|
@@ -1164,7 +1164,7 @@ function fi(e, t = {}) {
|
|
|
1164
1164
|
if (a.pagination !== void 0) {
|
|
1165
1165
|
const n = ae(a.pagination), i = n.page, d = n.pageSize;
|
|
1166
1166
|
if (!Number.isInteger(i) || i < 1 || !Number.isInteger(d) || d < 1)
|
|
1167
|
-
throw new
|
|
1167
|
+
throw new H(
|
|
1168
1168
|
`${s}pagination must name a page and a page size of at least 1`,
|
|
1169
1169
|
"pagination"
|
|
1170
1170
|
);
|
|
@@ -1172,18 +1172,18 @@ function fi(e, t = {}) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
if (a.tableTotalsRequest !== void 0) {
|
|
1174
1174
|
if (!a.tableTotalsRequest || typeof a.tableTotalsRequest != "object" || Array.isArray(a.tableTotalsRequest))
|
|
1175
|
-
throw new
|
|
1175
|
+
throw new H(`${s}tableTotalsRequest must be an object`, "tableTotalsRequest");
|
|
1176
1176
|
r.tableTotalsRequest = a.tableTotalsRequest;
|
|
1177
1177
|
}
|
|
1178
1178
|
if (a.sourceRowProbe !== void 0) {
|
|
1179
1179
|
const n = ae(a.sourceRowProbe).limit;
|
|
1180
1180
|
if (!Number.isInteger(n) || n < 1)
|
|
1181
|
-
throw new
|
|
1181
|
+
throw new H(
|
|
1182
1182
|
`${s}sourceRowProbe must name a limit of at least 1`,
|
|
1183
1183
|
"sourceRowProbe"
|
|
1184
1184
|
);
|
|
1185
1185
|
if (r.pagination)
|
|
1186
|
-
throw new
|
|
1186
|
+
throw new H(
|
|
1187
1187
|
`${s}sourceRowProbe cannot be combined with pagination`,
|
|
1188
1188
|
"sourceRowProbe"
|
|
1189
1189
|
);
|
|
@@ -1192,7 +1192,7 @@ function fi(e, t = {}) {
|
|
|
1192
1192
|
return r;
|
|
1193
1193
|
}
|
|
1194
1194
|
function pi(e, t = {}) {
|
|
1195
|
-
const a = ae(e), s = je(t), r = (g) => new
|
|
1195
|
+
const a = ae(e), s = je(t), r = (g) => new H(`${s}${g} is required`, g), n = Ce(a.connection_id).trim();
|
|
1196
1196
|
if (!n) throw r("connection_id");
|
|
1197
1197
|
const i = Ce(a.cardType).trim();
|
|
1198
1198
|
if (!i) throw r("cardType");
|
|
@@ -1208,14 +1208,14 @@ function pi(e, t = {}) {
|
|
|
1208
1208
|
normalizedPython: y
|
|
1209
1209
|
});
|
|
1210
1210
|
if (d !== p)
|
|
1211
|
-
throw new
|
|
1211
|
+
throw new H(
|
|
1212
1212
|
`${s}resultOwner must match the normalized execution owner "${p}"`,
|
|
1213
1213
|
"resultOwner"
|
|
1214
1214
|
);
|
|
1215
1215
|
if (d === "none") throw r("cardConfig");
|
|
1216
1216
|
const $ = ae(a.cardDataSource);
|
|
1217
1217
|
if (Object.keys($).length === 0) throw r("cardDataSource");
|
|
1218
|
-
const _ =
|
|
1218
|
+
const _ = Wt({
|
|
1219
1219
|
controlValues: a.controlValues,
|
|
1220
1220
|
controlDefinitions: a.controlDefinitions,
|
|
1221
1221
|
cardControlDefinitions: a.cardControlDefinitions,
|
|
@@ -1331,7 +1331,7 @@ function At(e, t, a, s) {
|
|
|
1331
1331
|
...n.relationshipPending ? { relationshipPending: n.relationshipPending } : {}
|
|
1332
1332
|
});
|
|
1333
1333
|
if (r.filter.kind === "global-date") return i("global_date", "global_date");
|
|
1334
|
-
const d =
|
|
1334
|
+
const d = Ht(r.filter).filter((m) => m.kind === "semantic");
|
|
1335
1335
|
if (d.length !== 1 || d[0].kind !== "semantic") return i("not_semantic", "field");
|
|
1336
1336
|
const u = As(e, r);
|
|
1337
1337
|
if (!u || t.origin !== "embeddedInput") return i("scope_not_expressible", "field");
|
|
@@ -1428,7 +1428,7 @@ function Et(e, t) {
|
|
|
1428
1428
|
return t.path.reduce((a, s) => typeof s == "number" ? `${a}[${s}]` : `${a}.${s}`, e);
|
|
1429
1429
|
}
|
|
1430
1430
|
async function mi(e, t, a) {
|
|
1431
|
-
var Qe, Ke,
|
|
1431
|
+
var Qe, Ke, We, He, Ye, Xe, Je, Ze, et;
|
|
1432
1432
|
const s = [], r = [], n = [], i = [], d = /* @__PURE__ */ new Set(), u = [], b = /* @__PURE__ */ new Map(), y = { calendar: a.calendar }, C = a.relationshipReach ? { relationshipReach: a.relationshipReach } : {};
|
|
1433
1433
|
let p = e, $ = 0;
|
|
1434
1434
|
if (t.length > ot)
|
|
@@ -1822,7 +1822,7 @@ async function mi(e, t, a) {
|
|
|
1822
1822
|
break;
|
|
1823
1823
|
}
|
|
1824
1824
|
case "filter.remove": {
|
|
1825
|
-
const h = F(o.filterId, `${l}.filterId`), I = ((
|
|
1825
|
+
const h = F(o.filterId, `${l}.filterId`), I = ((We = (p.inputs ?? []).find((v) => v.id === h)) == null ? void 0 : We.label) ?? "";
|
|
1826
1826
|
c({ op: "filter.remove", filterId: h, changeIndex: f }, l), i.push({ ref: o.filterId, kind: "filter", id: h, title: I, changeIndex: f });
|
|
1827
1827
|
break;
|
|
1828
1828
|
}
|
|
@@ -1853,7 +1853,7 @@ async function mi(e, t, a) {
|
|
|
1853
1853
|
break;
|
|
1854
1854
|
}
|
|
1855
1855
|
case "filter.exclude": {
|
|
1856
|
-
const h = F(o.filterId, `${l}.filterId`), I = m(o.cardId, `${l}.cardId`), v = ((
|
|
1856
|
+
const h = F(o.filterId, `${l}.filterId`), I = m(o.cardId, `${l}.cardId`), v = ((He = (p.inputs ?? []).find((S) => S.id === h)) == null ? void 0 : He.label) ?? "";
|
|
1857
1857
|
c({ op: "filter.exclude", filterId: h, cardId: I, changeIndex: f }, l), i.push({ ref: o.filterId, kind: "filter", id: h, title: v, changeIndex: f });
|
|
1858
1858
|
break;
|
|
1859
1859
|
}
|
|
@@ -2298,11 +2298,11 @@ export {
|
|
|
2298
2298
|
zi as CALCULATED_FIELDS_GROUP_ID,
|
|
2299
2299
|
Qi as CALCULATED_FIELDS_GROUP_NAME,
|
|
2300
2300
|
Ki as CARD_CONFIG_KEY_CLASSES,
|
|
2301
|
-
|
|
2301
|
+
Wi as CARD_KEY_CLASSES,
|
|
2302
2302
|
_a as CARD_QUERY_CONFIG_KEYS,
|
|
2303
2303
|
hi as CARD_QUERY_REQUEST_DESCRIPTIVE_FIELDS,
|
|
2304
2304
|
ui as CARD_QUERY_REQUEST_EXECUTED_FIELDS,
|
|
2305
|
-
|
|
2305
|
+
Hi as CARD_TYPES,
|
|
2306
2306
|
ce as CARD_TYPE_RULES,
|
|
2307
2307
|
Yi as COLUMN_KEY_CLASSES,
|
|
2308
2308
|
Xi as COLUMN_PRESENTATION_KEYS,
|
|
@@ -2316,7 +2316,7 @@ export {
|
|
|
2316
2316
|
on as CONTROL_REFERENCE_MISSING_ERROR_CODE,
|
|
2317
2317
|
rn as CONTROL_VALUE_INVALID_ERROR_CODE,
|
|
2318
2318
|
dn as CONTROL_VALUE_MISSING_ERROR_CODE,
|
|
2319
|
-
|
|
2319
|
+
H as CardQueryRequestError,
|
|
2320
2320
|
ln as ControlResolutionError,
|
|
2321
2321
|
it as DASHBOARD_AUTHORING_MAX_GENERATED_CARDS,
|
|
2322
2322
|
cn as DASHBOARD_CHANGE_OPS,
|
|
@@ -2412,14 +2412,14 @@ export {
|
|
|
2412
2412
|
_t as findCatalogField,
|
|
2413
2413
|
di as findDashboardAuthoringDatasetForSource,
|
|
2414
2414
|
Kn as findDashboardCardExecutableSource,
|
|
2415
|
-
|
|
2416
|
-
|
|
2415
|
+
Wn as findDashboardCardPinnedCatalogSource,
|
|
2416
|
+
Hn as findDashboardSqlPinnedCatalogSource,
|
|
2417
2417
|
ta as findSortedColumn,
|
|
2418
2418
|
Ei as flattenEntityColumns,
|
|
2419
2419
|
Yn as foldPrototypeDocumentInputs,
|
|
2420
2420
|
Xn as formatFilterModelIssues,
|
|
2421
2421
|
Qt as formatResolvedPrimaryDateFieldIssues,
|
|
2422
|
-
|
|
2422
|
+
Wr as formatSkippedFilterWarnings,
|
|
2423
2423
|
Oi as getCalculatedFieldAggregateOverrides,
|
|
2424
2424
|
Jn as getCalculatedFieldNamespace,
|
|
2425
2425
|
Ni as getCalculatedFieldParameters,
|
|
@@ -2442,7 +2442,7 @@ export {
|
|
|
2442
2442
|
ro as handleSchema,
|
|
2443
2443
|
Li as hasDashboardFilterSubscription,
|
|
2444
2444
|
lo as hasToolbarFilterReachField,
|
|
2445
|
-
|
|
2445
|
+
Hr as hostFilterValueFor,
|
|
2446
2446
|
Yr as hostFilterValuesToSlots,
|
|
2447
2447
|
Cd as inspectMatrixCardConfig,
|
|
2448
2448
|
Xr as isAdHocFilterValueOnTab,
|
|
@@ -2505,7 +2505,7 @@ export {
|
|
|
2505
2505
|
ks as parseCardQueryRequestContext,
|
|
2506
2506
|
fi as parseCardQueryRequestExtras,
|
|
2507
2507
|
No as parseExecutionControlBindingsShallow,
|
|
2508
|
-
|
|
2508
|
+
Wt as parseExecutionControlContext,
|
|
2509
2509
|
qo as parseExecutionControlContract,
|
|
2510
2510
|
ca as planCardLabels,
|
|
2511
2511
|
lt as planCardRequery,
|
|
@@ -2537,8 +2537,8 @@ export {
|
|
|
2537
2537
|
Qo as relativeToTimeWindow,
|
|
2538
2538
|
Vt as remapClickToFilterReferences,
|
|
2539
2539
|
Ko as remapLinkedClickToFilterOverrides,
|
|
2540
|
-
|
|
2541
|
-
|
|
2540
|
+
Wo as requireNormalizedDashboardInputs,
|
|
2541
|
+
Ho as resolveBindingControlValue,
|
|
2542
2542
|
vr as resolveCanonicalDetailResultRawKey,
|
|
2543
2543
|
wr as resolveCanonicalResultOutputKey,
|
|
2544
2544
|
xr as resolveCanonicalResultRawKey,
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { x as pt, q as gt,
|
|
5
|
-
import { a as Ro,
|
|
6
|
-
import { Z as ht, am as bt, al as vt, z as sr, q as ar, G as St } from "../chunks/matrix-operation-contract
|
|
7
|
-
import "../chunks/analytics-base-schemas-
|
|
4
|
+
import { x as pt, q as gt, a3 as mt, ak as xe, s as yt } from "../chunks/validators-CZo_H4E6.js";
|
|
5
|
+
import { a as Ro, aq as Lo } from "../chunks/validators-CZo_H4E6.js";
|
|
6
|
+
import { Z as ht, am as bt, al as vt, z as sr, q as ar, G as St } from "../chunks/matrix-operation-contract-C1G6AJNh.js";
|
|
7
|
+
import "../chunks/analytics-base-schemas-BUFUoO6G.js";
|
|
8
8
|
import "zod";
|
|
9
|
-
import { m as lr } from "../chunks/matrix-formatter-
|
|
10
|
-
import { M as wt, a as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-
|
|
9
|
+
import { m as lr } from "../chunks/matrix-formatter-C2kjsCDf.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-By4CSmEF.js";
|
|
11
11
|
import { X as Tt, C as kt } from "../chunks/x-4f5U2XwU.js";
|
|
12
12
|
import { j as Ct } from "../chunks/index-CuHybtft.js";
|
|
13
13
|
function he(e, r, t) {
|
|
@@ -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-CZo_H4E6.js";
|
|
3
|
+
import { a as F, c as b } from "../chunks/matrix-operation-contract-C1G6AJNh.js";
|
|
4
|
+
import "../chunks/analytics-base-schemas-BUFUoO6G.js";
|
|
5
5
|
import "zod";
|
|
6
6
|
function w(i) {
|
|
7
7
|
var n, r, o;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Z as Q } from "../chunks/matrix-operation-contract
|
|
3
|
-
import "../chunks/analytics-base-schemas-
|
|
1
|
+
import { a8 as b, ab as N, s as O, ao as v, q as E, a3 as K, ak as l } from "../chunks/validators-CZo_H4E6.js";
|
|
2
|
+
import { Z as Q } from "../chunks/matrix-operation-contract-C1G6AJNh.js";
|
|
3
|
+
import "../chunks/analytics-base-schemas-BUFUoO6G.js";
|
|
4
4
|
import "zod";
|
|
5
|
-
import { p as W } from "../chunks/report-runtime-context-
|
|
6
|
-
import { o as U } from "../chunks/source-entity-resolution-
|
|
5
|
+
import { p as W } from "../chunks/report-runtime-context-BgM-iNWB.js";
|
|
6
|
+
import { o as U } from "../chunks/source-entity-resolution-B46EZIzX.js";
|
|
7
7
|
import { toSemaphorMetricIntent as J, toSemaphorAnalysisIntent as V, toSemaphorRecordsIntent as G, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as Z, toSemaphorInputOptionsIntent as X } from "../data-app-sdk-adapters/index.js";
|
|
8
|
-
import { m as Y } from "../chunks/matrix-card-
|
|
8
|
+
import { m as Y } from "../chunks/matrix-card-yYibXSw1.js";
|
|
9
9
|
function ee({
|
|
10
10
|
intent: e,
|
|
11
11
|
field: r,
|