react-semaphor 0.1.602 → 0.1.603
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 +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BWF3GYip.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-BF3iRx5a.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-CBSTdW6q.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-B8XHwMY6.js → card-filter-builder-Y22HizVx.js} +104 -104
- package/dist/chunks/{comparison-window-caption-W83qB4V5.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-DG5EIYYB.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CBSrhyWZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +103 -103
- package/dist/chunks/{dashboard-controls-D6ECO4N1.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-DrJftBSL.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-BDYAJIbb.js → edit-dashboard-visual-oxt3x1wb.js} +7976 -8184
- package/dist/chunks/{filter-line-BXT6y303.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-BukhZmzm.js → filter-reach-copy-CE_ZX147.js} +1590 -1729
- package/dist/chunks/{filter-value-text-D3-bf3_b.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-BW0yozjs.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-Ds0diMeY.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CgQgVeeI.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract--DkNCOzd.js → matrix-operation-contract-DPBj69D8.js} +3 -2
- package/dist/chunks/{metric-comparison-zMylnIkc.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-CX8pao1j.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-CuA0HlzF.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C8KL7hPx.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-C1AOH1PS.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-CbuVNDGi.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-E7USjN7E.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CULCE_hM.js → resolve-dashboard-input-context-Rtl1ffmE.js} +7115 -6963
- package/dist/chunks/{save-BKHlDONy.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-C1WlOx5z.js → saved-dashboard-context-tcyTU8jm.js} +193 -207
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-CBIRcDWs.js → semaphor-ready-indicator-FBvunj6S.js} +35550 -35273
- package/dist/chunks/{shelf-drop-preview-context-xR69SMA8.js → shelf-drop-preview-context-QKStrcK9.js} +6 -6
- package/dist/chunks/{stored-dashboard-BuM8vnWf.js → stored-dashboard-CHozcAY9.js} +621 -616
- package/dist/chunks/{style-sheet-parts-Bt9ZNre8.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-DVljtHkG.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-D_xKgyVS.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Dll_M7XQ.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-ClWHpYql.js → validators-Baf3VIf5.js} +3 -3
- package/dist/chunks/{variable-draft-CDGGl53R.js → variable-draft-C2y8Jp6Z.js} +3 -3
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2466 -2343
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +20 -20
- 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/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-Bz-qM5px.js +0 -164
- package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
- package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
- package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { aX as H, aW as xt, j as Tt, k as G, aE as ft, r as Et } from "./validators-
|
|
2
|
-
import {
|
|
3
|
-
import { c as Rt, b as et } from "./pivot-result-identity-
|
|
4
|
-
import { v as Vt, d as zt, c as Pt } from "./raw-temporal-value-
|
|
1
|
+
import { aX as H, aW as xt, j as Tt, k as G, aE as ft, r as Et } from "./validators-Baf3VIf5.js";
|
|
2
|
+
import { au as St, az as $t, av as Ft, f as kt, a as K, a7 as J, an as It, a5 as Dt, ao as Lt, ap as _t, q as Q, t as Nt, aG as At, Z as tt, $ as Mt, a1 as Kt, a8 as Ot } from "./pivot-result-contract-expectations-BYqAmG9n.js";
|
|
3
|
+
import { c as Rt, b as et } from "./pivot-result-identity-CAP4--iq.js";
|
|
4
|
+
import { v as Vt, d as zt, c as Pt } from "./raw-temporal-value-Dg_MTFF7.js";
|
|
5
5
|
import { e as jt, p as Bt, k as Ut } from "./export-file-format-C-tJsxsf.js";
|
|
6
|
-
import "./matrix-operation-contract
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
6
|
+
import "./matrix-operation-contract-DPBj69D8.js";
|
|
7
|
+
import { a as U } from "./metric-comparison-B0FR-Q8I.js";
|
|
8
|
+
import "./analytics-base-schemas-DsUh5Q3C.js";
|
|
9
9
|
import "../value-format-preferences/index.js";
|
|
10
10
|
const Ht = /* @__PURE__ */ new Set(["second", "minute", "hour", "day", "month"]);
|
|
11
11
|
function Gt(t) {
|
|
12
12
|
const { presentation: e } = t;
|
|
13
13
|
return t.formattedValues ? (e == null ? void 0 : e.kind) === "text" || (e == null ? void 0 : e.kind) === "measure" && e.format.type === "duration" ? "text" : (e == null ? void 0 : e.kind) === "temporal_bucket" ? Ht.has(e.grain) ? "date" : "text" : (e == null ? void 0 : e.kind) === "datetime" ? "date" : t.dataType === "number" ? "number" : t.dataType === "boolean" ? "boolean" : t.dataType === "unknown" ? "by_value" : "text" : "by_value";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function qt(t) {
|
|
16
16
|
const e = (i, d) => Number.isInteger(i) ? Math.min(20, Math.max(0, i)) : d, r = e(t.minimumFractionDigits, 0), o = Math.max(r, e(t.maximumFractionDigits, 2));
|
|
17
17
|
return o === 0 ? "" : `.${"0".repeat(o)}`;
|
|
18
18
|
}
|
|
19
19
|
function j(t) {
|
|
20
20
|
return `"${t.replace(/"/g, "")}"`;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Wt(t) {
|
|
23
23
|
let e;
|
|
24
24
|
try {
|
|
25
25
|
e = new Intl.NumberFormat(t.locale ?? "en-US", {
|
|
@@ -37,25 +37,25 @@ function qt(t) {
|
|
|
37
37
|
text: i(o + 1, r) + e[r].value
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const e =
|
|
40
|
+
function Xt(t) {
|
|
41
|
+
const e = qt(t);
|
|
42
42
|
let r;
|
|
43
43
|
if (t.type === "scientific")
|
|
44
44
|
r = `0${e}E+00`;
|
|
45
45
|
else {
|
|
46
46
|
const o = `${t.useGrouping === !1 ? "0" : "#,##0"}${e}`;
|
|
47
47
|
if (t.type === "currency") {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Wt(t);
|
|
49
49
|
r = i ? i.side === "before" ? `${j(i.text)}${o}` : `${o}${j(i.text)}` : o;
|
|
50
50
|
} else t.type === "percent" ? r = t.percentValueMode === "whole" ? `${o}${j("%")}` : `${o}%` : r = o;
|
|
51
51
|
}
|
|
52
52
|
return t.negativeStyle === "parentheses" ? `${r};(${r})` : r;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Yt(t, e) {
|
|
55
55
|
if (!t.formattedValues) return;
|
|
56
56
|
const { presentation: r } = t;
|
|
57
57
|
if (e === "number" || e === "by_value")
|
|
58
|
-
return (r == null ? void 0 : r.kind) !== "measure" || r.format.type === "duration" ? void 0 :
|
|
58
|
+
return (r == null ? void 0 : r.kind) !== "measure" || r.format.type === "duration" ? void 0 : Xt(r.format);
|
|
59
59
|
if (e === "date") {
|
|
60
60
|
if ((r == null ? void 0 : r.kind) === "temporal_bucket")
|
|
61
61
|
return r.grain === "day" ? "yyyy-mm-dd" : r.grain === "month" ? "mmm yyyy" : "yyyy-mm-dd hh:mm";
|
|
@@ -64,7 +64,7 @@ function Xt(t, e) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
function rt(t) {
|
|
67
|
-
const e = Gt(t), r =
|
|
67
|
+
const e = Gt(t), r = Yt(t, e);
|
|
68
68
|
return Object.freeze({
|
|
69
69
|
key: t.key,
|
|
70
70
|
label: t.label,
|
|
@@ -323,7 +323,7 @@ function De(t) {
|
|
|
323
323
|
const m = A(n);
|
|
324
324
|
return m && n.temporalBucket ? [[m, n.temporalBucket]] : [];
|
|
325
325
|
})
|
|
326
|
-
),
|
|
326
|
+
), W = /* @__PURE__ */ new Map();
|
|
327
327
|
for (const n of E) {
|
|
328
328
|
const m = J({
|
|
329
329
|
snapshot: e.presentationExecutionSnapshot,
|
|
@@ -334,7 +334,7 @@ function De(t) {
|
|
|
334
334
|
if (m && !v) throw new Error(`Missing temporal bucket metadata for column "${n}"`);
|
|
335
335
|
if (v && !m) throw new Error(`Missing resolved temporal presentation for column "${n}"`);
|
|
336
336
|
}
|
|
337
|
-
m && v &&
|
|
337
|
+
m && v && W.set(n, w(v, m));
|
|
338
338
|
}
|
|
339
339
|
const z = E.map((n) => {
|
|
340
340
|
const m = ht.get(n), v = m && ce.has(m) ? m : "unknown", S = o ? p(n, I, V) : void 0, F = y(n, k.get(n)), L = o && I.activatedColumnKeys.has(n) && at(I, n) === void 0;
|
|
@@ -353,7 +353,7 @@ function De(t) {
|
|
|
353
353
|
if (F !== void 0) return { text: F.text, value: n, ...F.wallClock ? { wallClock: F.wallClock } : {} };
|
|
354
354
|
const L = V.get(m);
|
|
355
355
|
if (L) {
|
|
356
|
-
const $ =
|
|
356
|
+
const $ = W.get(m);
|
|
357
357
|
if (!$) throw new Error(`Missing resolved temporal presentation for column "${m}"`);
|
|
358
358
|
if (n != null && typeof n != "string")
|
|
359
359
|
throw new Error(`Canonical temporal column "${m}" must contain a string or null`);
|
|
@@ -383,9 +383,9 @@ function De(t) {
|
|
|
383
383
|
return { text: D ? K(n, D) : n.value, value: n };
|
|
384
384
|
const M = st(e, m);
|
|
385
385
|
if (M && (n instanceof Date || typeof n == "string" && le.test(n))) {
|
|
386
|
-
const $ = n instanceof Date ? n.toISOString() : n, _ = typeof n == "string" && me.test(n), N = _ ? "UTC" : lt(M.timezone, e.timezone),
|
|
386
|
+
const $ = n instanceof Date ? n.toISOString() : n, _ = typeof n == "string" && me.test(n), N = _ ? "UTC" : lt(M.timezone, e.timezone), Y = _ ? "UTC" : M.sourceTimezone || "auto", Z = Nt($, N, Y);
|
|
387
387
|
return {
|
|
388
|
-
text: Q($, ct(M), N,
|
|
388
|
+
text: Q($, ct(M), N, Y),
|
|
389
389
|
value: n,
|
|
390
390
|
...Z ? { wallClock: Z } : {}
|
|
391
391
|
};
|
|
@@ -401,14 +401,14 @@ function De(t) {
|
|
|
401
401
|
const S = vt(n[v.key], v.key, m, v);
|
|
402
402
|
return O({ value: S.value, text: S.text, column: v.xlsx, wallClock: S.wallClock });
|
|
403
403
|
})
|
|
404
|
-
),
|
|
405
|
-
if (
|
|
404
|
+
), X = (l == null ? void 0 : l.withHeader) !== !1 && e.includeHeaders;
|
|
405
|
+
if (X)
|
|
406
406
|
for (const n of E) {
|
|
407
407
|
const m = k.get(n);
|
|
408
408
|
m != null && m.pivotIdentity && et({ identity: m.pivotIdentity, columnKey: A(m) || n });
|
|
409
409
|
}
|
|
410
410
|
return {
|
|
411
|
-
...
|
|
411
|
+
...X ? { header: z.map((n) => n.label) } : {},
|
|
412
412
|
columns: z,
|
|
413
413
|
rows: Ct,
|
|
414
414
|
...I.sqlChunkEvidence ? { rawTemporalClassification: I.sqlChunkEvidence } : {}
|
|
@@ -461,18 +461,18 @@ const be = /* @__PURE__ */ new Set([
|
|
|
461
461
|
"fileFormat",
|
|
462
462
|
"title"
|
|
463
463
|
]);
|
|
464
|
-
function
|
|
464
|
+
function q(t) {
|
|
465
465
|
return t !== null && typeof t == "object" && !Array.isArray(t);
|
|
466
466
|
}
|
|
467
467
|
function mt(t, e) {
|
|
468
468
|
if (t !== void 0) {
|
|
469
|
-
if (!
|
|
469
|
+
if (!q(t))
|
|
470
470
|
throw new Error(`formatting.${e} must be an object`);
|
|
471
471
|
return t;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
function Le(t) {
|
|
475
|
-
if (!
|
|
475
|
+
if (!q(t))
|
|
476
476
|
throw new Error("formatting must be an object");
|
|
477
477
|
const e = ["reportContext", "resolvedFormats"].find(
|
|
478
478
|
(a) => Object.prototype.hasOwnProperty.call(t, a)
|
|
@@ -550,7 +550,7 @@ function Le(t) {
|
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
552
|
function _e(t) {
|
|
553
|
-
const e = t.formatOptions, r = (o) =>
|
|
553
|
+
const e = t.formatOptions, r = (o) => q(o) ? o : void 0;
|
|
554
554
|
return {
|
|
555
555
|
scope: { dashboardId: t.dashboardId, cardId: t.cardId },
|
|
556
556
|
useFormattedValues: e.useFormattedValues !== !1,
|