react-semaphor 0.1.600 → 0.1.601
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 +9 -9
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +48 -45
- package/dist/chunks/{assistant-chat-BULOkG9j.js → assistant-chat-BE0XXzZP.js} +12 -12
- package/dist/chunks/{bookmark-impact-kdvXke8n.js → bookmark-impact-DXDAN5AY.js} +3 -3
- package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-BMyB3Tb6.js} +4 -4
- package/dist/chunks/{card-filter-builder-CSCdSQQy.js → card-filter-builder-CE0-YVN5.js} +9 -9
- package/dist/chunks/comparison-window-caption-Dxj2CHOa.js +741 -0
- package/dist/chunks/{dashboard-briefing-launcher-9YwUclHA.js → dashboard-briefing-launcher-CntwKyiZ.js} +13 -13
- package/dist/chunks/{dashboard-controls-O6PNXMCp.js → dashboard-controls-XO089DMg.js} +15 -15
- package/dist/chunks/{dashboard-json-Bxf91TYq.js → dashboard-json-CQRiydUv.js} +4 -4
- package/dist/chunks/{dashboard-y9ON19ge.js → dashboard-mJKPFRbb.js} +1 -1
- package/dist/chunks/{dates-DPTbpNxK.js → dates-B-Urp5OD.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-CKwaW8H_.js → edit-dashboard-visual-f-Dm-BLR.js} +176 -176
- package/dist/chunks/filter-line-CKNMyNTQ.js +703 -0
- package/dist/chunks/{filter-reach-copy-ClzNcNhP.js → filter-reach-copy-B8GGyVuR.js} +1441 -1270
- package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-CRtKecI5.js} +6 -6
- package/dist/chunks/{index-CRo5--Y6.js → index-DoPApnxg.js} +386 -360
- package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-CiSCZdIr.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-i9PQY066.js → matrix-analytical-definition-myf3D3Qx.js} +35 -35
- package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-g0c_NpDW.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js} +35 -35
- package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-Cm0G893W.js} +3 -3
- package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-DQIwqlck.js} +1 -1
- package/dist/chunks/{palette-DFIFf_-m.js → palette-Cun747Rg.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C1Dyx8du.js} +17 -17
- package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-CBS-ssEp.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-DN_l-Tss.js} +16 -16
- package/dist/chunks/{report-preferences-dialog-DiDsYpng.js → report-preferences-dialog-SDZEcG2x.js} +13 -13
- package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-BbedQdtc.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-BAv33KGg.js → resolve-dashboard-input-context-DRBS0eRa.js} +553 -553
- package/dist/chunks/{save-CWQ02kHo.js → save-Dj5bjm7P.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-DWVlJcsa.js} +15 -15
- package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-DmAr7yqC.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-1PRI9Yh2.js → semaphor-ready-indicator-OFOoAY-A.js} +16370 -16518
- package/dist/chunks/{shelf-drop-preview-context-BLk5Nc6K.js → shelf-drop-preview-context-2swWypXu.js} +5 -5
- package/dist/chunks/{stored-dashboard-xhYYKBsO.js → stored-dashboard-NtOuEX6a.js} +111 -111
- package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Qv4UcLAo.js} +2 -2
- package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-Do7ZB0_F.js} +1 -1
- package/dist/chunks/{token-types-CnlEiAdS.js → token-types-Dy_aXO-U.js} +1 -1
- package/dist/chunks/{upload-DsqUSS8l.js → upload-Bq-puSVy.js} +1 -1
- package/dist/chunks/{validators-D2Hm57lJ.js → validators-C7DFk3QK.js} +78 -78
- package/dist/chunks/{variable-draft-DcKj8T1b.js → variable-draft-Cy03qnEi.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +80 -75
- package/dist/format-utils/index.js +238 -237
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +45 -4
- package/dist/types/briefings/index.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/export-utils.d.ts +72 -0
- package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
- package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as O, H as A, E as he, I as te, F as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { M as Se } from "./matrix-operation-contract-
|
|
1
|
+
import { G as O, H as A, E as he, I as te, F as U, L as pe } from "./raw-temporal-value-DN_l-Tss.js";
|
|
2
|
+
import { ah as z, ao as C, aq as w, ai as K, ag as p, ap as ve, av as Ne, aj as ke, a6 as Q, e as Ie, J as X, q as Ce } from "./validators-C7DFk3QK.js";
|
|
3
|
+
import { r as _e } from "./metric-comparison-Cm0G893W.js";
|
|
4
|
+
import { M as Se } from "./matrix-operation-contract-C1SuOHLZ.js";
|
|
5
5
|
class Y extends Error {
|
|
6
6
|
constructor(t) {
|
|
7
7
|
super(t), this.name = "RelativeDateUsageError";
|
|
@@ -15,7 +15,7 @@ function Ae(e, t, n = {}) {
|
|
|
15
15
|
case "periods": {
|
|
16
16
|
const o = ne(e, t);
|
|
17
17
|
return {
|
|
18
|
-
start:
|
|
18
|
+
start: U(o, e.unit, a, e.from).start,
|
|
19
19
|
end: e.toDate ? o : ie(o, e.unit, a, e.to)
|
|
20
20
|
};
|
|
21
21
|
}
|
|
@@ -37,14 +37,14 @@ function ne(e, t) {
|
|
|
37
37
|
return n === "latest_data" ? t.latestData ?? t.now : n === "now" ? t.now : new Date(O(t.now, n.lastComplete, t.calendar).getTime() - 1);
|
|
38
38
|
}
|
|
39
39
|
function ie(e, t, n, i) {
|
|
40
|
-
return new Date(
|
|
40
|
+
return new Date(U(e, t, n, i).endExclusive.getTime() - 1);
|
|
41
41
|
}
|
|
42
42
|
function Te(e, t, n) {
|
|
43
43
|
if (!Number.isInteger(n) || n < 0)
|
|
44
44
|
throw new Y(`spansBack must be a whole number of spans, got ${n}.`);
|
|
45
45
|
if (e.kind !== "periods" || typeof e.anchor != "object")
|
|
46
46
|
throw new Y("spansBack applies only to a window anchored at the end of the last complete period.");
|
|
47
|
-
const { calendar: i } = t, { unit: a } = e, r = Ae(e, t), o = -n * (e.to - e.from + 1), s =
|
|
47
|
+
const { calendar: i } = t, { unit: a } = e, r = Ae(e, t), o = -n * (e.to - e.from + 1), s = U(r.start, a, i, o).start;
|
|
48
48
|
if (A(r.end, a, i).getTime() === r.end.getTime())
|
|
49
49
|
return { start: s, end: ie(r.end, a, i, o) };
|
|
50
50
|
const l = te(ne(e, t), o, a, i), c = Math.min(
|
|
@@ -64,7 +64,7 @@ function G(e) {
|
|
|
64
64
|
function ae(e) {
|
|
65
65
|
const { recorded: t, capabilities: n } = e, i = G(n);
|
|
66
66
|
return !(t.databaseName && !i.includes("database") || t.schemaName && !i.includes("schema")) || !t.tableName ? t : {
|
|
67
|
-
...
|
|
67
|
+
...z({
|
|
68
68
|
qualifiedName: [t.databaseName, t.schemaName, t.tableName].filter(Boolean).join("."),
|
|
69
69
|
capabilities: n
|
|
70
70
|
}),
|
|
@@ -74,7 +74,7 @@ function ae(e) {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function rt(e) {
|
|
77
|
-
const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ?
|
|
77
|
+
const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ? w(e.source.dialect) : void 0, i = e.source.dialect && e.source.dialect !== "unknown" ? C(e.source.dialect) : void 0;
|
|
78
78
|
if (!e.capabilities && e.source.connectionType && e.source.dialect && e.source.dialect !== "unknown" && (!t || n === "unknown" || t.dialect !== n))
|
|
79
79
|
return { kind: "incompatible_capabilities" };
|
|
80
80
|
const a = e.capabilities || t || i;
|
|
@@ -129,7 +129,7 @@ function De(e) {
|
|
|
129
129
|
if (r.kind !== "valid")
|
|
130
130
|
return { kind: r.kind };
|
|
131
131
|
const o = r.coordinates, s = o ? t.filter(
|
|
132
|
-
(c) =>
|
|
132
|
+
(c) => K({
|
|
133
133
|
left: oe(
|
|
134
134
|
q(c, a),
|
|
135
135
|
a
|
|
@@ -244,7 +244,7 @@ function F(e) {
|
|
|
244
244
|
}
|
|
245
245
|
function qe(e) {
|
|
246
246
|
var N;
|
|
247
|
-
const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? F(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ?
|
|
247
|
+
const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? F(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ? w(n) : void 0, o = n && n !== "unknown" ? C(n) : void 0;
|
|
248
248
|
if (t && !a || n && n !== "unknown" && r === "unknown" || i && a && T(i) !== T(a))
|
|
249
249
|
return;
|
|
250
250
|
const s = i || (a ? F(a) : o ? F(o) : void 0);
|
|
@@ -256,10 +256,10 @@ function qe(e) {
|
|
|
256
256
|
evidence: "explicit"
|
|
257
257
|
};
|
|
258
258
|
const l = e.entities.map((b) => {
|
|
259
|
-
const k = D(b), h = f(k == null ? void 0 : k.connectionType), I = f(k == null ? void 0 : k.dialect), S = h ? C(h) : void 0, E = I ?
|
|
259
|
+
const k = D(b), h = f(k == null ? void 0 : k.connectionType), I = f(k == null ? void 0 : k.dialect), S = h ? C(h) : void 0, E = I ? w(I) : void 0, L = I && I !== "unknown" ? C(I) : void 0;
|
|
260
260
|
if (h && !S || I && I !== "unknown" && E === "unknown" || I && I !== "unknown" && !S && !L || S && E && E !== "unknown" && S.dialect !== E)
|
|
261
261
|
return;
|
|
262
|
-
const
|
|
262
|
+
const J = S || L, P = J ? F(J) : Fe(k);
|
|
263
263
|
return P ? {
|
|
264
264
|
capabilities: P,
|
|
265
265
|
connectionType: h,
|
|
@@ -331,7 +331,7 @@ function He(e) {
|
|
|
331
331
|
const a = xe(e.coordinateHint);
|
|
332
332
|
if (a.kind === "malformed") return a;
|
|
333
333
|
const r = Array.from(new Set(n)).map(
|
|
334
|
-
(m) =>
|
|
334
|
+
(m) => z({
|
|
335
335
|
qualifiedName: m,
|
|
336
336
|
capabilities: t
|
|
337
337
|
})
|
|
@@ -340,7 +340,7 @@ function He(e) {
|
|
|
340
340
|
return { kind: "conflicting" };
|
|
341
341
|
const o = [...new Set(n)].sort(
|
|
342
342
|
(m, g) => g.split(".").length - m.split(".").length
|
|
343
|
-
)[0], s = o ?
|
|
343
|
+
)[0], s = o ? z({
|
|
344
344
|
qualifiedName: o,
|
|
345
345
|
capabilities: t
|
|
346
346
|
}) : void 0, l = oe(
|
|
@@ -350,7 +350,7 @@ function He(e) {
|
|
|
350
350
|
a.coordinates,
|
|
351
351
|
e.capabilityAuthority
|
|
352
352
|
), d = !!(l.tableName && (l.databaseName || l.schemaName));
|
|
353
|
-
return s && d && !
|
|
353
|
+
return s && d && !K({
|
|
354
354
|
left: s,
|
|
355
355
|
right: l,
|
|
356
356
|
capabilities: t
|
|
@@ -387,7 +387,7 @@ function oe(e, t) {
|
|
|
387
387
|
function Le(e, t) {
|
|
388
388
|
return e.every(
|
|
389
389
|
(n, i) => e.slice(i + 1).every(
|
|
390
|
-
(a) =>
|
|
390
|
+
(a) => K({
|
|
391
391
|
left: n,
|
|
392
392
|
right: a,
|
|
393
393
|
capabilities: t
|
|
@@ -690,7 +690,7 @@ function lt(e, t) {
|
|
|
690
690
|
function dt(e) {
|
|
691
691
|
return typeof e == "string" && e.startsWith(le);
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function ze(e, t) {
|
|
694
694
|
return _e({ ...e, role: t });
|
|
695
695
|
}
|
|
696
696
|
function ut(e, t) {
|
|
@@ -702,7 +702,7 @@ function ut(e, t) {
|
|
|
702
702
|
})
|
|
703
703
|
);
|
|
704
704
|
const i = t.alias ? n.find(
|
|
705
|
-
({ group: a, index: r }) =>
|
|
705
|
+
({ group: a, index: r }) => ze(e[a].fields[r], e[a].role) === t.alias
|
|
706
706
|
) : void 0;
|
|
707
707
|
if (i) return i;
|
|
708
708
|
if (n.length === 1) return n[0];
|
|
@@ -721,7 +721,7 @@ function de(e, t) {
|
|
|
721
721
|
const [a, r] = n.length <= i.length ? [n, i] : [i, n], o = r.length - a.length;
|
|
722
722
|
return a.every((s, l) => s === r[l + o]);
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function we(e, t) {
|
|
725
725
|
const n = e.split("."), i = t.split("."), a = n.pop(), r = i.pop();
|
|
726
726
|
return !!(a && a === r && n.length > 0 && i.length > 0 && de(
|
|
727
727
|
n.join("."),
|
|
@@ -760,11 +760,11 @@ function We(e, t) {
|
|
|
760
760
|
(n, i) => e.slice(i + 1).every((a) => t(n, a))
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Ue(e, t) {
|
|
764
764
|
const n = y(e.id), i = y(e.name), a = y(t.entityId), r = y(t.entityName);
|
|
765
765
|
return !i || !a && !r ? !1 : (!a || a === n || a === i) && (!r || r === i);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Ke(e) {
|
|
768
768
|
const t = v(e.semanticContext) ? e.semanticContext : void 0, n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = y(t == null ? void 0 : t.semanticDomainId), a = Array.isArray(t == null ? void 0 : t.selectedEntities) ? t.selectedEntities.filter(
|
|
769
769
|
(h) => v(h) && h.type === "dataset"
|
|
770
770
|
) : [];
|
|
@@ -772,7 +772,7 @@ function Ue(e) {
|
|
|
772
772
|
if (!i)
|
|
773
773
|
return { status: "unresolved", reason: "incomplete_source_identity" };
|
|
774
774
|
const o = y(n == null ? void 0 : n.entityId), s = y(n == null ? void 0 : n.entityName), l = !!(o || s), c = l ? a.filter(
|
|
775
|
-
(h) =>
|
|
775
|
+
(h) => Ue(h, {
|
|
776
776
|
entityId: o,
|
|
777
777
|
entityName: s
|
|
778
778
|
})
|
|
@@ -826,13 +826,13 @@ function Ve(e, t) {
|
|
|
826
826
|
].filter(Boolean);
|
|
827
827
|
if (!We(
|
|
828
828
|
g,
|
|
829
|
-
|
|
829
|
+
we
|
|
830
830
|
))
|
|
831
831
|
return { status: "unresolved", reason: "divergent_field_identity" };
|
|
832
832
|
const N = o || a || m;
|
|
833
833
|
return N ? { status: "resolved", qualifiedFieldName: N } : { status: "unresolved", reason: "incomplete_field_identity" };
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function Je(e) {
|
|
836
836
|
if (!v(e))
|
|
837
837
|
return { status: "ineligible", reason: "invalid_input" };
|
|
838
838
|
if (e.kind === "global-date")
|
|
@@ -849,7 +849,7 @@ function Xe(e) {
|
|
|
849
849
|
return { status: "ineligible", reason: "custom_filter" };
|
|
850
850
|
if (e.targetColumns !== void 0 && (!Array.isArray(e.targetColumns) || e.targetColumns.length > 0))
|
|
851
851
|
return { status: "ineligible", reason: "multi_target_filter" };
|
|
852
|
-
const a =
|
|
852
|
+
const a = Ke(e), r = Ve(e, a === void 0);
|
|
853
853
|
if (r.status === "unresolved")
|
|
854
854
|
return { status: "ineligible", reason: r.reason };
|
|
855
855
|
const o = a || Ge(e, r.qualifiedFieldName);
|
|
@@ -860,16 +860,16 @@ function Xe(e) {
|
|
|
860
860
|
source: o.source
|
|
861
861
|
} : { status: "ineligible", reason: o.reason };
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function Xe(e) {
|
|
864
864
|
if (!v(e) || e.kind !== "filter" || !v(e.filter))
|
|
865
865
|
return { status: "ineligible", reason: "invalid_input" };
|
|
866
|
-
const t =
|
|
866
|
+
const t = Je(
|
|
867
867
|
e.filter
|
|
868
868
|
);
|
|
869
869
|
return t.status === "ineligible" ? t : t.kind === "field_date" && v(e.compatibility) && e.compatibility.source === "cardInlineFilter" ? { status: "ineligible", reason: "card_inline_filter" } : t;
|
|
870
870
|
}
|
|
871
871
|
function ft(e) {
|
|
872
|
-
return
|
|
872
|
+
return Xe(e).status === "eligible";
|
|
873
873
|
}
|
|
874
874
|
function mt(e) {
|
|
875
875
|
return `compat-filter:${e}`;
|
|
@@ -1105,7 +1105,7 @@ function Ft(e) {
|
|
|
1105
1105
|
},
|
|
1106
1106
|
// Sort scopes are keyed overrides, unlike ordered axes/calculation inputs.
|
|
1107
1107
|
sorts: [...e.sorts].sort((t, n) => {
|
|
1108
|
-
const i =
|
|
1108
|
+
const i = X(t), a = X(n);
|
|
1109
1109
|
return i < a ? -1 : i > a ? 1 : 0;
|
|
1110
1110
|
})
|
|
1111
1111
|
};
|
|
@@ -1132,7 +1132,7 @@ export {
|
|
|
1132
1132
|
Dt as S,
|
|
1133
1133
|
Qe as T,
|
|
1134
1134
|
V as U,
|
|
1135
|
-
|
|
1135
|
+
we as V,
|
|
1136
1136
|
Ft as a,
|
|
1137
1137
|
G as b,
|
|
1138
1138
|
rt as c,
|
|
@@ -1146,12 +1146,12 @@ export {
|
|
|
1146
1146
|
lt as k,
|
|
1147
1147
|
ut as l,
|
|
1148
1148
|
et as m,
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1149
|
+
Ue as n,
|
|
1150
|
+
Je as o,
|
|
1151
|
+
Xe as p,
|
|
1152
1152
|
ft as q,
|
|
1153
1153
|
ae as r,
|
|
1154
|
-
|
|
1154
|
+
ze as s,
|
|
1155
1155
|
mt as t,
|
|
1156
1156
|
bt as u,
|
|
1157
1157
|
gt as v,
|
package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
|
-
import { z as Le, P as De, X as Ue, Y as qe, a0 as Me, a1 as Be, s as D, L as $, n as Ge, V as ze, W as ce, g as Ve, r as We, N as
|
|
3
|
-
import {
|
|
2
|
+
import { z as Le, P as De, X as Ue, Y as qe, a0 as Me, a1 as Be, s as D, L as $, n as Ge, V as ze, W as ce, g as Ve, r as We, N as Ke, E as Xe, F as $e, o as le, b as ue, I as Ze } from "./analytics-base-schemas-DevrgqQb.js";
|
|
3
|
+
import { B as k, v as de, K as G, b0 as ee, m as A, E as Ye, aV as Z, w as He, o as Qe, q as me, a3 as Je, p as et, a6 as tt, a$ as nt } from "./validators-C7DFk3QK.js";
|
|
4
4
|
const Y = {
|
|
5
5
|
answerSummary: "string",
|
|
6
6
|
responseDetail: "responseDetail",
|
|
@@ -579,7 +579,7 @@ function vt(e) {
|
|
|
579
579
|
case "boolean":
|
|
580
580
|
return t.boolean().optional();
|
|
581
581
|
case "compactExecutionFieldArray":
|
|
582
|
-
return t.array(
|
|
582
|
+
return t.array(Ke).optional();
|
|
583
583
|
case "coverage":
|
|
584
584
|
return Te.optional();
|
|
585
585
|
case "diagnosticFeedback":
|
|
@@ -637,7 +637,7 @@ function An(e) {
|
|
|
637
637
|
);
|
|
638
638
|
return Rt.parse(e);
|
|
639
639
|
}
|
|
640
|
-
const Ee = 100,
|
|
640
|
+
const Ee = 100, F = "selection:";
|
|
641
641
|
function Re(e) {
|
|
642
642
|
return [
|
|
643
643
|
me(e.source),
|
|
@@ -646,13 +646,13 @@ function Re(e) {
|
|
|
646
646
|
].join("::");
|
|
647
647
|
}
|
|
648
648
|
function In(e) {
|
|
649
|
-
return `${
|
|
649
|
+
return `${F}${e}`;
|
|
650
650
|
}
|
|
651
651
|
function Ot(e) {
|
|
652
|
-
return e.startsWith(
|
|
652
|
+
return e.startsWith(F) && e.length > F.length;
|
|
653
653
|
}
|
|
654
654
|
function _n(e) {
|
|
655
|
-
return Ot(e) ? e.slice(
|
|
655
|
+
return Ot(e) ? e.slice(F.length) : void 0;
|
|
656
656
|
}
|
|
657
657
|
function Ce(e) {
|
|
658
658
|
if (!e) return "";
|
|
@@ -726,17 +726,17 @@ const Pt = "(Blank)";
|
|
|
726
726
|
function Tn(e) {
|
|
727
727
|
return e.conditions.map((n) => n.label ? n.label : n.operator === "isNull" || n.value === null ? Pt : String(n.value)).join(" · ");
|
|
728
728
|
}
|
|
729
|
-
const
|
|
730
|
-
|
|
729
|
+
const jt = t.union([
|
|
730
|
+
Xe,
|
|
731
731
|
$e
|
|
732
|
-
]),
|
|
732
|
+
]), Ft = t.object({
|
|
733
733
|
name: t.string().min(1),
|
|
734
|
-
source:
|
|
734
|
+
source: jt,
|
|
735
735
|
dataType: t.enum(["string", "number", "boolean", "date", "datetime"]),
|
|
736
736
|
sourceField: t.string().min(1).optional(),
|
|
737
737
|
nativeDataType: t.string().min(1).optional()
|
|
738
738
|
}).strict(), Lt = t.object({
|
|
739
|
-
field:
|
|
739
|
+
field: Ft,
|
|
740
740
|
operator: t.enum(["=", "isNull"]),
|
|
741
741
|
value: t.union([t.string(), t.number().finite(), t.null()]),
|
|
742
742
|
label: t.string().optional(),
|
|
@@ -907,7 +907,7 @@ function P(e, n) {
|
|
|
907
907
|
}
|
|
908
908
|
return e.length;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function j(e, n) {
|
|
911
911
|
let a = n;
|
|
912
912
|
for (; a < e.length && /\s/.test(e[a]); ) a += 1;
|
|
913
913
|
return a;
|
|
@@ -918,7 +918,7 @@ function M(e, n) {
|
|
|
918
918
|
return a;
|
|
919
919
|
}
|
|
920
920
|
const Wt = /\{([A-Za-z_][A-Za-z0-9_]*)\}/g;
|
|
921
|
-
function
|
|
921
|
+
function Kt(e) {
|
|
922
922
|
return Array.from(e.matchAll(Wt), (n) => n[1]);
|
|
923
923
|
}
|
|
924
924
|
function W(e, n = /* @__PURE__ */ new Set()) {
|
|
@@ -940,7 +940,7 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
if (ie.test(m)) {
|
|
943
|
-
const o = M(e, l), d = e.slice(l, o), p =
|
|
943
|
+
const o = M(e, l), d = e.slice(l, o), p = j(e, o);
|
|
944
944
|
if (e[p] === "(" && Bt(d)) {
|
|
945
945
|
let g = P(e, p);
|
|
946
946
|
const I = g - 1;
|
|
@@ -953,11 +953,11 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
953
953
|
W(C ? v.replace(/^\s*DISTINCT\b/i, "") : v).calls.length > 0 && (s = !0);
|
|
954
954
|
let b = !1, _ = !1;
|
|
955
955
|
for (; ; ) {
|
|
956
|
-
const h =
|
|
956
|
+
const h = j(e, g);
|
|
957
957
|
if (!ie.test(e[h] || "")) break;
|
|
958
|
-
const N = M(e, h), E = e.slice(h, N).toUpperCase(), u =
|
|
958
|
+
const N = M(e, h), E = e.slice(h, N).toUpperCase(), u = j(e, N);
|
|
959
959
|
if (E === "WITHIN") {
|
|
960
|
-
const S = M(e, u), w =
|
|
960
|
+
const S = M(e, u), w = j(e, S);
|
|
961
961
|
if (e.slice(u, S).toUpperCase() === "GROUP" && e[w] === "(") {
|
|
962
962
|
g = P(e, w), R = g;
|
|
963
963
|
continue;
|
|
@@ -974,7 +974,7 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
974
974
|
kind: xe(d, C),
|
|
975
975
|
distinct: C,
|
|
976
976
|
windowed: b,
|
|
977
|
-
tokens:
|
|
977
|
+
tokens: Kt(e.slice(p, g)),
|
|
978
978
|
span: { start: l, end: R, argumentStart: p + 1, argumentEnd: I },
|
|
979
979
|
argumentCount: x,
|
|
980
980
|
filtered: _
|
|
@@ -991,11 +991,11 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
991
991
|
nestedAggregate: s,
|
|
992
992
|
windowed: a.some((m) => m.windowed),
|
|
993
993
|
tokensOutsideAggregates: r,
|
|
994
|
-
aggregateInputsComplete: i &&
|
|
994
|
+
aggregateInputsComplete: i && Xt(c, n),
|
|
995
995
|
skeleton: c
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function Xt(e, n) {
|
|
999
999
|
var m;
|
|
1000
1000
|
const a = [];
|
|
1001
1001
|
let r = 0;
|
|
@@ -1158,11 +1158,11 @@ const Pe = /* @__PURE__ */ new Set([
|
|
|
1158
1158
|
"count_distinct",
|
|
1159
1159
|
"repeat_safe_other"
|
|
1160
1160
|
]);
|
|
1161
|
-
function
|
|
1161
|
+
function K(e) {
|
|
1162
1162
|
if (!(!e || !e.trim()))
|
|
1163
1163
|
return xe(e);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function je(e) {
|
|
1166
1166
|
switch (e) {
|
|
1167
1167
|
case "count":
|
|
1168
1168
|
case "sum":
|
|
@@ -1193,15 +1193,15 @@ const Q = {
|
|
|
1193
1193
|
outputType: "numeric",
|
|
1194
1194
|
identity: "unresolved",
|
|
1195
1195
|
unresolved: !0
|
|
1196
|
-
},
|
|
1197
|
-
function
|
|
1196
|
+
}, Fe = { ...Q, stage: "row" };
|
|
1197
|
+
function X(e) {
|
|
1198
1198
|
return {
|
|
1199
1199
|
stage: "row",
|
|
1200
1200
|
outer: e,
|
|
1201
1201
|
calls: [{ kind: e, distinct: e === "count_distinct" }],
|
|
1202
1202
|
windowed: !1,
|
|
1203
1203
|
repeatSafe: Pe.has(e),
|
|
1204
|
-
reaggregation:
|
|
1204
|
+
reaggregation: je(e),
|
|
1205
1205
|
outputType: e === "min" || e === "max" ? "input" : "numeric",
|
|
1206
1206
|
identity: e,
|
|
1207
1207
|
unresolved: !1
|
|
@@ -1218,8 +1218,8 @@ function Jt(e, n) {
|
|
|
1218
1218
|
const r = J(e, n + 1);
|
|
1219
1219
|
return r === "row_input" ? "raw" : r.unresolved || r.stage === "aggregate" || r.outer ? r : "raw";
|
|
1220
1220
|
}
|
|
1221
|
-
const a =
|
|
1222
|
-
return a ?
|
|
1221
|
+
const a = K(e.aggregate);
|
|
1222
|
+
return a ? X(a) : "raw";
|
|
1223
1223
|
}
|
|
1224
1224
|
const en = 12;
|
|
1225
1225
|
function J(e, n) {
|
|
@@ -1228,7 +1228,7 @@ function J(e, n) {
|
|
|
1228
1228
|
const a = typeof e.expression == "string" ? e.expression.trim() : "";
|
|
1229
1229
|
if (!a)
|
|
1230
1230
|
return B(
|
|
1231
|
-
K(
|
|
1231
|
+
X(K(e.aggregate) ?? "sum"),
|
|
1232
1232
|
e
|
|
1233
1233
|
);
|
|
1234
1234
|
const r = W(a), s = ((E = e.calculatedFormula) == null ? void 0 : E.inputFields) || [], c = (u) => {
|
|
@@ -1252,9 +1252,9 @@ function J(e, n) {
|
|
|
1252
1252
|
).map(([u]) => u)
|
|
1253
1253
|
), g = W(a, p).aggregateInputsComplete;
|
|
1254
1254
|
if (!d) {
|
|
1255
|
-
if (!g) return
|
|
1256
|
-
const u =
|
|
1257
|
-
return u ? B(
|
|
1255
|
+
if (!g) return Fe;
|
|
1256
|
+
const u = K(e.aggregate);
|
|
1257
|
+
return u ? B(X(u), e) : "row_input";
|
|
1258
1258
|
}
|
|
1259
1259
|
const I = !g || o || r.nestedAggregate || l || m.some((u) => u.unresolved) || r.calls.length === 0 && m.length === 0, R = [
|
|
1260
1260
|
...r.calls.map((u) => ({ kind: u.kind, distinct: u.distinct })),
|
|
@@ -1262,7 +1262,7 @@ function J(e, n) {
|
|
|
1262
1262
|
], v = r.windowed || m.some((u) => u.windowed), x = !I && !v && R.every((u) => Pe.has(u.kind)), C = (u) => {
|
|
1263
1263
|
if (u.kind === "call") {
|
|
1264
1264
|
const w = r.calls[u.index];
|
|
1265
|
-
return w ?
|
|
1265
|
+
return w ? je(w.kind) : { kind: "none", reason: "unresolved" };
|
|
1266
1266
|
}
|
|
1267
1267
|
const S = i.get(u.token);
|
|
1268
1268
|
return S && S !== "raw" ? S.reaggregation : { kind: "none", reason: "unresolved" };
|
|
@@ -1297,7 +1297,7 @@ function J(e, n) {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
function tn(e) {
|
|
1299
1299
|
const n = J(e, 0);
|
|
1300
|
-
return n === "row_input" ?
|
|
1300
|
+
return n === "row_input" ? Fe : n;
|
|
1301
1301
|
}
|
|
1302
1302
|
function Nn(e) {
|
|
1303
1303
|
const n = tt((e == null ? void 0 : e.dataType) || "number");
|
|
@@ -1328,7 +1328,7 @@ const rn = {
|
|
|
1328
1328
|
export {
|
|
1329
1329
|
dt as $,
|
|
1330
1330
|
Tn as A,
|
|
1331
|
-
|
|
1331
|
+
Ft as B,
|
|
1332
1332
|
Lt as C,
|
|
1333
1333
|
Dt as D,
|
|
1334
1334
|
vn as E,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as p, a as g, b as k } from "./analytics-base-schemas-DevrgqQb.js";
|
|
2
|
-
import { p as C } from "./validators-
|
|
2
|
+
import { p as C } from "./validators-C7DFk3QK.js";
|
|
3
3
|
function N(e) {
|
|
4
4
|
switch (e.kind) {
|
|
5
5
|
case "monthDay":
|
|
@@ -524,7 +524,7 @@ function j(e) {
|
|
|
524
524
|
export {
|
|
525
525
|
I as C,
|
|
526
526
|
$ as D,
|
|
527
|
-
|
|
527
|
+
N as a,
|
|
528
528
|
B as b,
|
|
529
529
|
_ as c,
|
|
530
530
|
R as d,
|
|
@@ -535,7 +535,7 @@ export {
|
|
|
535
535
|
j as i,
|
|
536
536
|
f as j,
|
|
537
537
|
A as k,
|
|
538
|
-
|
|
538
|
+
P as r,
|
|
539
539
|
h as v,
|
|
540
540
|
O as w
|
|
541
541
|
};
|
|
@@ -3,13 +3,13 @@ var Zn = (e, t, n) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var k = (e, t, n) => Zn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { z as p } from "zod";
|
|
5
5
|
import { E as Vt, l as Gt } from "./export-file-format-C-tJsxsf.js";
|
|
6
|
-
import { b2 as Qt, b3 as Xn, aX as Kn,
|
|
7
|
-
import "./matrix-operation-contract-
|
|
6
|
+
import { b2 as Qt, b3 as Xn, aX as Kn, a6 as Bn, m as mt, N as Vn, b4 as Gn, b5 as Qn, S as Jn, J as B, T as er } from "./validators-C7DFk3QK.js";
|
|
7
|
+
import "./matrix-operation-contract-C1SuOHLZ.js";
|
|
8
8
|
import { k as tr, i as pe } from "./analytics-base-schemas-DevrgqQb.js";
|
|
9
|
-
import { b as nr } from "./report-runtime-context-
|
|
9
|
+
import { b as nr } from "./report-runtime-context-BbedQdtc.js";
|
|
10
10
|
import { canonicalizeSupportedLocale as ee, canonicalizeSupportedCurrencyCode as je, DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as rr } from "../value-format-preferences/index.js";
|
|
11
|
-
import { p as ar, a as ir, c as or, i as ft, s as Te, C as sr, u as cr } from "./raw-temporal-value-
|
|
12
|
-
import {
|
|
11
|
+
import { p as ar, a as ir, c as or, i as ft, s as Te, C as sr, u as cr } from "./raw-temporal-value-DN_l-Tss.js";
|
|
12
|
+
import { r as ur } from "./metric-comparison-Cm0G893W.js";
|
|
13
13
|
function te(e) {
|
|
14
14
|
if (!e || typeof e != "object") return !1;
|
|
15
15
|
const t = e.type;
|
|
@@ -4957,15 +4957,15 @@ export {
|
|
|
4957
4957
|
Ns as aE,
|
|
4958
4958
|
Fc as aF,
|
|
4959
4959
|
Pc as aG,
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4960
|
+
Us as aH,
|
|
4961
|
+
Ko as aI,
|
|
4962
|
+
wc as aJ,
|
|
4963
|
+
Tc as aK,
|
|
4964
|
+
pc as aL,
|
|
4965
|
+
xc as aM,
|
|
4966
|
+
Tn as aN,
|
|
4967
|
+
js as aO,
|
|
4968
|
+
Sc as aP,
|
|
4969
4969
|
Dc as aQ,
|
|
4970
4970
|
bc as aR,
|
|
4971
4971
|
Qo as aS,
|
|
@@ -5009,9 +5009,9 @@ export {
|
|
|
5009
5009
|
ln as b2,
|
|
5010
5010
|
Er as b3,
|
|
5011
5011
|
za as b4,
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5012
|
+
Go as b5,
|
|
5013
|
+
Li as b6,
|
|
5014
|
+
br as b7,
|
|
5015
5015
|
zt as b8,
|
|
5016
5016
|
O as b9,
|
|
5017
5017
|
At as ba,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
2
|
var c = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var a = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { v as u } from "./metric-comparison-
|
|
4
|
+
import { v as u } from "./metric-comparison-Cm0G893W.js";
|
|
5
5
|
class l extends Error {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(`missing_pivot_member_identity: ${e}`);
|